Skip to content

Commit

Permalink
Merge pull request #316 from aopell/develop
Browse files Browse the repository at this point in the history
Version 7.8.2
  • Loading branch information
aopell authored Aug 21, 2023
2 parents d3096dd + 769eb44 commit f7d1425
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 24 deletions.
41 changes: 37 additions & 4 deletions css/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,28 @@
background-color: var(--primary-color) !important;
}

nav li button._1Z0RM,
nav li a._1Z0RM {
background-color: var(--primary-color) !important;
}

nav button._1wP6w,
nav a._1Z0RM {
color: var(--contrast-text-color) !important;
}

nav button svg.KebabIcon-kebab-icon-2-N7X {
filter: Invert(1) !important;
}

._2kpZl:focus:not(:active),
._2T2dA,
._2W23R:active,
._3OAXJ:hover:not(:active) {
._3OAXJ:hover:not(:active),
nav li button._1Z0RM:hover:not(:active),
nav li button._1Z0RM:focus:not(:active),
nav li a._1Z0RM:hover:not(:active),
nav li a._1Z0RM:focus:not(:active) {
background-color: var(--hover-color) !important;
}

Expand Down Expand Up @@ -64,6 +82,7 @@ footer button {
background-color: transparent !important;
}

#site-navigation-footer > div._3W1Kw,
footer._2T2dA {
background-color: var(--primary-color) !important;
}
Expand All @@ -74,7 +93,18 @@ footer._2T2dA {
background-color: var(--primary-color) !important;
}

.use-custom-url #header>header nav>ul>li>a._2JX1Q {
/* This version is used for the old header style (pre 23/24 school year) */
.use-custom-url #header>header nav>ul>li>a._2JX1Q:not(:has(> div._3UYz2)) {
background: var(--background-url) no-repeat !important;
background-image: var(--background-url) !important;
background-size: 160px !important;
background-position: center center !important;
height: 60px !important;
margin-top: 0 !important;
}

/* This version is used for the new header style (23/24 school year) */
.use-custom-url #header>header nav>ul>li>a._2JX1Q div._3UYz2 {
background: var(--background-url) no-repeat !important;
background-image: var(--background-url) !important;
background-size: 160px !important;
Expand Down Expand Up @@ -452,7 +482,7 @@ section.sgy-card .sgy-card-lens img.injected-course-icon {

*:not(.submit-span-wrapper)>input[type=button],
*:not(.submit-span-wrapper)>input[type=submit] {
height: 29px !important;
height: 32px !important;
vertical-align: middle !important;
border: 2px solid var(--border-color) !important;
background-color: var(--primary-color) !important;
Expand All @@ -463,12 +493,12 @@ section.sgy-card .sgy-card-lens img.injected-course-icon {
background-color: var(--hover-color) !important;
}

.submit-span-wrapper,
.submit-span-wrapper input[type=button],
.submit-span-wrapper input[type=submit] {
height: 25px !important;
vertical-align: middle !important;
color: var(--contrast-text-color) !important;
padding: 4px 8px !important;
}

.submit-span-wrapper, .submit-span-wrapper[style] {
Expand Down Expand Up @@ -750,6 +780,9 @@ ul.tabs li a {
}

footer li a,
footer div button,
#copyright,
footer li.Footer-vertical-divider-3-9qQ::after,
header li a,
.splus-modal-footer-text a,
body a.link-btn.active,
Expand Down
8 changes: 5 additions & 3 deletions css/modern/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ variable-intellisense {
[modern=true]:root body a.link-btn.active,
[modern=true]:root div.courses-left-menu,
[modern=true]:root .portfolio-list a.btn,
[modern=true]:root a._3_bfp {
[modern=true]:root a._3_bfp,
[modern=true]:root nav li a._1Z0RM,
[modern=true]:root nav li button._1Z0RM {
color: var(--contrast-text) !important;
}

Expand Down Expand Up @@ -2325,7 +2327,7 @@ variable-intellisense {

[modern=true]:root ._1IGEH:focus:not(:active),
[modern=true]:root ._1oxpz:hover:not(:active),
[modern=true]:root ._1Z0RM,
[modern=true]:root #wrapper ._1Z0RM,
[modern=true]:root .Dkh_K:active {
background-color: var(--accent);
color: var(--text);
Expand Down Expand Up @@ -2357,7 +2359,7 @@ variable-intellisense {

[modern=true]:root ._1IGEH:focus:not(:active),
[modern=true]:root ._1oxpz:hover:not(:active),
[modern=true]:root ._1Z0RM,
[modern=true]:root #wrapper ._1Z0RM,
[modern=true]:root .Dkh_K:active {
background-color: var(--accent) !important;
}
Expand Down
5 changes: 4 additions & 1 deletion js/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ let courseSettingsCourseName;
let img = createSvgLogo();
Object.assign(img.style, { verticalAlign: "middle", paddingLeft: "4px", width: "18px" });
button.prepend(img);
button.querySelector("input").style.paddingLeft = "4px";
button.style.setProperty("height", "36px", "important");
let buttonInput = button.querySelector("input");
buttonInput.style.paddingLeft = "4px";
buttonInput.style.setProperty("height", "36px", "important");
button.style.cursor = "pointer";
button.addEventListener("click", () => openModal("course-settings-modal", { courseId: document.location.href.match(/\/(\d+)\//)[1], courseName: document.querySelector(".page-title").textContent }));

Expand Down
24 changes: 12 additions & 12 deletions js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,22 +1152,22 @@ Setting.import = function () {

try {
let importedSettingsObj = JSON.parse(importedSettings);

Setting.setValues(importedSettingsObj, () => {
trackEvent("button_click", {
id: "import-settings-success",
context: "Settings",
legacyTarget: "import-settings",
legacyAction: "successfully imported settings",
legacyLabel: "Setting"
});
alert("Successfully imported settings. If Schoology Plus breaks, please restore defaults or reinstall. Reloading page.")
location.reload();
});
} catch (err) {
alert("Failed to import settings! They were probably malformed. Make sure the settings are valid JSON.");
return;
}

Setting.setValues(importedSettingsObj, () => {
trackEvent("button_click", {
id: "import-settings-success",
context: "Settings",
legacyTarget: "import-settings",
legacyAction: "successfully imported settings",
legacyLabel: "Setting"
});
alert("Successfully imported settings. If Schoology Plus breaks, please restore defaults or reinstall. Reloading page.")
location.reload();
});
}
}

Expand Down
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"update_url": "https://schoologypl.us/firefox_updates.json"
}
},
"version": "7.8.1",
"version": "7.8.2",
"icons": {
"128": "imgs/[email protected]",
"64": "imgs/[email protected]",
Expand Down Expand Up @@ -50,6 +50,7 @@
"content_security_policy": "script-src 'self'; object-src 'self'",
"background": {
"scripts": [
"js/loader.js",
"js/analytics.js",
"lib/js/analytics.js",
"lib/js/purify.min.js",
Expand Down
8 changes: 5 additions & 3 deletions scss/modern/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ variable-intellisense {
body a.link-btn.active,
div.courses-left-menu,
.portfolio-list a.btn,
a._3_bfp {
a._3_bfp,
nav li a._1Z0RM,
nav li button._1Z0RM {
color: var(--contrast-text) !important;
}

Expand Down Expand Up @@ -2558,7 +2560,7 @@ variable-intellisense {

._1IGEH:focus:not(:active),
._1oxpz:hover:not(:active),
._1Z0RM,
#wrapper ._1Z0RM,
.Dkh_K:active {
background-color: var(--accent);
color: var(--text);
Expand Down Expand Up @@ -2596,7 +2598,7 @@ variable-intellisense {

._1IGEH:focus:not(:active),
._1oxpz:hover:not(:active),
._1Z0RM,
#wrapper ._1Z0RM,
.Dkh_K:active {
background-color: var(--accent) !important;
}
Expand Down

0 comments on commit f7d1425

Please sign in to comment.