Skip to content

Commit

Permalink
Merge pull request #197 from aopell/develop
Browse files Browse the repository at this point in the history
Version 6.4.1
  • Loading branch information
aopell authored Sep 5, 2020
2 parents a795e6c + 76c63ff commit 325f29f
Show file tree
Hide file tree
Showing 7 changed files with 281 additions and 16 deletions.
2 changes: 1 addition & 1 deletion css/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ a._3_bfp {
}

.setting-highlight {
color: lightyellow !important;
background-color: lightyellow !important;
}

.course-dashboard section.sgy-card img.injected-course-icon {
Expand Down
275 changes: 270 additions & 5 deletions css/modern.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ p {
color: var(--text) !important;
}

pre {
background-color: var(--input);
color: var(--contrast-text);
}

#youtube-disclaimer {
color: var(--contrast-text);
background-color: var(--secondary);
}

textarea,
select,
input[type=text] {
Expand Down Expand Up @@ -156,6 +166,18 @@ body button.link-btn {
display: none !important;
}

.s-polls-results-overlay {
background-color: var(--input) !important;
}

.s-notifications-mini .edge-sentence {
color: var(--text);
}

#main .s-notifications-mini .edge-time, #main .s-notifications-mini .created {
color: var(--muted-text) !important;
}

.splus-modal-title,
.submit-span-wrapper,
.submit-span-wrapper input[type="button"],
Expand Down Expand Up @@ -210,8 +232,13 @@ footer button,
border: none !important;
}

.popups-close:hover a {
background-color: var(--input) !important;
}

.popups-close a {
background-position-y: calc(-80px - (20px * var(--theme-is-dark))) !important;
border-radius: 2px;
}

.likers li:not(.last) {
Expand All @@ -231,13 +258,15 @@ footer button,
.splus-courses-navbar-button article,
.splus-courses-navbar-button article a,
.splus-groups-navbar-button article,
.splus-groups-navbar-button article a {
.splus-groups-navbar-button article a,
.JoinCard-card-1qWtS {
border: var(--border-size) solid transparent !important;
outline: none !important;
}

.splus-courses-navbar-button article a:hover,
.splus-groups-navbar-button article a:hover {
.splus-groups-navbar-button article a:hover,
.JoinCard-card-1qWtS:hover {
border: var(--border-size) solid var(--contrast-border) !important;
border-radius: var(--border-radius) !important;
}
Expand Down Expand Up @@ -280,6 +309,25 @@ header div.Je0RK button._1SIMq {
border: var(--border-size) solid var(--contrast-border) !important;
}

.JoinCard-card-1qWtS ._1Z0RM {
background-color: var(--primary) !important;
}

/* Calendar Page */
.fcalendar-filter-menu-wrapper {
background-color: var(--secondary) !important;
border-radius: var(--border-radius);
}

.color-codes-box {
/* Does not fix the left-pointing arrow, as that's a PNG */
background-color: var(--accent) !important;
}

.fcalendar-filter-menu-wrapper .checkbox.filter-selected {
background-position-y: -19px !important;
}

/* Navbar menus */
div.les2- {
background-color: var(--secondary) !important;
Expand Down Expand Up @@ -412,6 +460,18 @@ img.splus-logo-inline {
border-bottom: 5px solid var(--contrast-border) !important;
}

.s-edge-type-update-post .update-body, .s-edge-type-update-poll .update-body {
color: var(--text) !important;
}

.user span.name-wrapper {
background: var(--secondary) !important;
}

.selected-realm .name-text {
color: var(--text) !important;
}

/* Grades Page */
.gradebook-course.hierarchical-grading-report .period-row .grade-column,
.gradebook-course.hierarchical-grading-report .category-row .grade-column,
Expand Down Expand Up @@ -730,7 +790,8 @@ body.library-view #library-left {
border-radius: var(--border-radius) !important;
}

#sidebar-left #left-nav #menu-s-main ul li a.active {
#sidebar-left #left-nav #menu-s-main ul li a.active,
#sidebar-left #menu-s-main .active-trail .active-trail a.course-materials-left-menu {
background-color: var(--accent) !important;
border: var(--border-size) solid var(--contrast-border) !important;
border-right: none !important;
Expand All @@ -752,6 +813,25 @@ th.profile-header {
color: var(--text) !important;
}

#wrapper {
background-color: var(--primary) !important;
}

.navigator-buttons a.navbtn.link-btn {
background-color: var(--primary) !important;
border-radius: var(--border-radius) !important;
}

.has-folder-player #center-top .content-top-upper,
.has-materials-player #center-top .content-top-upper {
background-color: var(--secondary) !important;
border: none !important;
}

#course-profile-materials {
background-color: var(--accent) !important;
}

.materials-filter-wrapper .action-links-wrapper .action-links-unfold,
.action-links-wrapper-gearless .action-links-unfold.active,
.action-links-wrapper-gearless .action-links-unfold:active {
Expand All @@ -775,8 +855,8 @@ body .action-links a:hover {
border-bottom: var(--border-size) solid var(--contrast-border) !important;
}

.s-edge-feed li {
border-top: var(--border-size) solid var(--contrast-border) !important;
.s-edge-feed li, .s-edge-feed span[style] {
color: var(--text) !important;
}

.s-like-sentence:not(:last-child) {
Expand Down Expand Up @@ -821,6 +901,191 @@ span#updates-count {
background-color: var(--active) !important;
}

/* Messages */
.privatemsg-list td {
background-color: var(--accent) !important;
}

.privatemsg-list .privatemsg-unread td {
background-color: var(--active) !important;
}

table.privatemsg-list {
border-top: var(--border-size) solid var(--contrast-border) !important;
}

table.privatemsg-list td.no-messages {
color: var(--muted-text) !important;
}

#attachment-selector {
background: var(--secondary) !important;
border: none !important;
border-bottom-left-radius: 5px !important;
border-bottom-right-radius: 5px !important;
}

#attachment-selector li {
border-right: none !important;
}

#ids {
background: none !important;
border: none !important;
}

#ids .userlist_input {
border: none !important;
}

#ids .name-wrapper {
background: var(--secondary) !important;
color: var(--text) !important;
}

.ac_results {
background: var(--secondary) !important;
color: var(--text) !important;
}

.ac_results ul li {
background: var(--secondary) !important;
border-color: var(--contrast-border) !important;
}

.ac-name, .ac-top {
color: var(--text) !important;
}

.ac-row .ac-bot, .ac-row .ac-school {
color: var(--muted-text) !important;
}

.ac_results .ac_over {
border-color: var(--contrast-border) !important;
background: var(--active) !important;
}

#sUserAutocomplete-recipient-helper {
background-color: var(--secondary) !important;
color: var(--muted-text) !important;
border: var(--border-size) solid var(--contrast-border) !important;
border-radius: var(--border-radius) !important;
}

.message-participants {
color: var(--muted-text) !important;
}

.message-title, .message-view-row {
border-bottom: var(--border-size) solid var(--contrast-border) !important;
}

/* Discussion Board */

.discussion-view .sticky-wrapper h2.page-title {
background: var(--primary) !important;
}

.discussion-view #content-wrapper {
border: none !important;
border-radius: var(--border-radius) !important;
}

.discussion-view #center-top h2.page-title {
border: none !important;
}

.grade-title {
color: var(--text) !important;
}

.received-grade {
color: var(--grades) !important;
}

.grading-grade .max-points {
color: var(--muted-text) !important;
}

.assignment-details, .extra-details {
border-bottom: var(--border-size) solid var(--contrast-border) !important;
}

.discussion-view .sticky-wrapper .s-comments-post-form, .discussion-view .sticky-wrapper .s-comments-post-form-new {
background: var(--primary) !important;
border-bottom-left-radius: var(--border-radius) !important;
border-bottom-right-radius: var(--border-radius) !important;
}

.discussion-action-bar {
background: var(--secondary) !important;
border: none !important;
border-bottom-left-radius: var(--border-radius) !important;
border-bottom-right-radius: var(--border-radius) !important;
}

.discussion-view .discussion-content #s_comments .discussion-card {
background: var(--primary) !important;
box-shadow: none !important;
border-radius: var(--border-radius) !important;
}

.discussion-view #content-wrapper .discussion-content div#s_comments .s_comments_level .s_comments_level, .discussion-view #content-wrapper .s-comments-post-form-new div#s_comments .s_comments_level .s_comments_level {
background: var(--accent) !important;
border: none !important;
border-bottom-left-radius: var(--border-radius) !important;
border-bottom-right-radius: var(--border-radius) !important;
}

.discussion-view .expander-bar {
background: var(--accent) !important;
border: none !important;
border-top-left-radius: var(--border-radius) !important;
}

.discussion-view .comment-body-wrapper span[style] {
color: var(--text) !important;
}

.post-count {
color: var(--muted-text) !important;
}

.discussion-view .discussion-content {
border-top: var(--border-size) solid var(--contrast-border) !important;
}

.bar-right-wrapper, .comment-counts {
border-color: var(--contrast-border) !important;
}

.discussion-view #comment-placeholder {
background: var(--accent) !important;
border-radius: var(--border-radius) !important;
border: none !important;
color: var(--muted-text) !important;
}

.content-top-wrapper .info-container.not-admin .link-btn {
background: var(--secondary) !important;
border: none !important;
border-radius: var(--border-radius) !important;
}

#comment-navigator td {
background: var(--primary) !important;
border: none !important;
}

#comment-navigator td.slide-toggler-cell {
background: var(--secondary) !important;
}

.num-comments-wrapper {
color: var(--muted-text) !important;
}

/* User Page */
.info-tab th,
.info-tab td,
Expand Down
4 changes: 2 additions & 2 deletions js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ let source = createElement("source", [], {
let sourceSet = false;

document.body.onkeydown = (data) => {
if (data.altKey && data.key === "c") {
if (data.altKey && data.code === "KeyC") {
if (!sourceSet) {
video.appendChild(source);
sourceSet = true;
Expand All @@ -423,7 +423,7 @@ document.body.onkeydown = (data) => {
video.currentTime = 0;
video.play();
trackEvent("Easter Egg", "play", "Easter Egg");
} else if (data.altKey && data.key === "b") {
} else if (data.altKey && data.code === "KeyB") {
openModal("beta-modal");
}
else if (data.key === "Escape") {
Expand Down
4 changes: 2 additions & 2 deletions js/grades.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var fetchQueue = [];

// if there's no PERIOD \d string in the course name, match will return null; in that case, use the array [null, i++]
// OR is lazy, so the ++ won't trigger unnecessarily; upperPeriodSortBound is our array key, and we use it to give a unique index (after all course) to periodless courses
coursesByPeriod[Number.parseInt((title.textContent.match(/PERIOD (\d+)/) || [null, upperPeriodSortBound++])[1])] = course;
coursesByPeriod[Number.parseInt((title.textContent.match(/[Pp][Ee][Rr][Ii]?[Oo]?[Dd]?\s*(\d+)/) || [null, upperPeriodSortBound++])[1])] = course;

// Fix width of assignment columns
table.appendChild(createElement("colgroup", [], {}, [
Expand Down Expand Up @@ -1563,4 +1563,4 @@ function processNonenteredAssignments(sleep, attempts = 0) {
});
}, sleep ? 3000 : 0);
}
}
}
Loading

0 comments on commit 325f29f

Please sign in to comment.