Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit a5c540b

Browse files
committed
Signed-off-by: Ryan Luu <ryan.luu@ryanluu.dev>
2 parents f8fe484 + 3610488 commit a5c540b

4 files changed

Lines changed: 48 additions & 21 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
builds/
1+
builds/

src/manifest.firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"content_scripts": [
1515
{
1616
"matches": ["*://classroom.google.com/*"],
17-
"css": ["dark-mode.css"],
17+
"css": ["style.css"],
1818
"run_at": "document_start"
1919
}
2020
],

src/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"content_scripts": [
1515
{
1616
"matches": ["*://classroom.google.com/*"],
17-
"css": ["dark-mode.css"]
17+
"css": ["style.css"],
18+
"run_at": "document_start"
1819
}
1920
],
2021
"author": "ryan.luu@ryanluu.dev"

src/dark-mode.css renamed to src/style.css

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ body {
4949
color: var(--font-color) !important;
5050
}
5151

52+
.gb_F {
53+
fill: var(--font-color) !important;
54+
}
55+
5256
.gb_Fa svg,
5357
.gb_Pc svg,
5458
.gb_sd .gb_td,
@@ -68,7 +72,7 @@ body {
6872
.gb_pd .gb_qd,
6973
.gb_0c .gb_qd {
7074
color: var(--font-color) !important;
71-
opacity: 1;
75+
opacity: 1 !important;
7276
}
7377

7478
.gb_ha svg,
@@ -134,7 +138,7 @@ body {
134138

135139
/* Sidebar */
136140
.yWU57c.AjWMy .rknsod {
137-
background-color: var(--bg-color);
141+
background-color: var(--bg-color) !important;
138142
}
139143

140144
.yWU57c.AjWMy {
@@ -193,7 +197,8 @@ body {
193197

194198
.ETRkCe {
195199
background-color: var(--bg-color) !important;
196-
box-shadow: 0 4px 4px 0 var(--shadow-heavy), 0 8px 12px 6px var(--shadow-medium);
200+
box-shadow: 0 4px 4px 0 var(--shadow-heavy),
201+
0 8px 12px 6px var(--shadow-medium);
197202
}
198203

199204
.Tabkde .OX4Vcb {
@@ -314,7 +319,7 @@ body {
314319
}
315320

316321
/* Join Classroom */
317-
.xiutKc>.I7OXgf {
322+
.xiutKc > .I7OXgf {
318323
background-color: var(--bg-color) !important;
319324
}
320325

@@ -596,11 +601,14 @@ body {
596601

597602
/* People */
598603
.f8nwhd-qb23S-b9nz9e-OWXEXe-uqeOfd .f8nwhd-qb23S-b9nz9e-V67aGc {
599-
color: var(--font-color);
604+
color: var(--font-color) !important;
600605
}
601606

602607
.f8nwhd-qb23S-b9nz9e-OWXEXe-gk6SMd {
603-
background-color: var(--gm3-segmented-button-outlined-selected-container-color, var(--gm3-sys-color-secondary-container, #c2e7ff));
608+
background-color: var(
609+
--gm3-segmented-button-outlined-selected-container-color,
610+
var(--gm3-sys-color-secondary-container, #c2e7ff)
611+
) !important;
604612
}
605613

606614
.ycbm1d {
@@ -1675,16 +1683,16 @@ input.tAUuQ {
16751683
border-color: var(--bd-color) !important;
16761684
}
16771685

1678-
.jsbB5e.IYewr>.Yalane>.oQ5Hqe,
1679-
.jsbB5e.IYewr>.Yalane>.aCxcAe {
1686+
.jsbB5e.IYewr > .Yalane > .oQ5Hqe,
1687+
.jsbB5e.IYewr > .Yalane > .aCxcAe {
16801688
background-color: #d93025 !important;
16811689
}
16821690

16831691
.W9wDc.IYewr .poFWNe {
16841692
caret-color: #d93025 !important;
16851693
}
16861694

1687-
.W9wDc.IYewr .poFWNe:not([disabled]):focus~.qTs5Xc,
1695+
.W9wDc.IYewr .poFWNe:not([disabled]):focus ~ .qTs5Xc,
16881696
.W9wDc.IYewr .n9IS1 .qTs5Xc {
16891697
color: #d93025 !important;
16901698
}
@@ -1720,11 +1728,10 @@ input.tAUuQ {
17201728
}
17211729

17221730
/* Grading */
1723-
17241731
.WbZEIe {
17251732
background-color: var(--bg-secondary-color) !important;
1726-
display: flex;
1727-
overflow: hidden;
1733+
display: flex !important;
1734+
overflow: hidden !important;
17281735
}
17291736

17301737
/* Assets -> More actions */
@@ -1741,7 +1748,8 @@ input.tAUuQ {
17411748
background-color: var(--bd-secondary-color) !important;
17421749
}
17431750

1744-
.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-j7LFlb-Bz112c.ndfHFb-c4YZDc-C7uZwb-LgbsSe-Bz112c,
1751+
.ndfHFb-c4YZDc-i5oIFb
1752+
.ndfHFb-c4YZDc-j7LFlb-Bz112c.ndfHFb-c4YZDc-C7uZwb-LgbsSe-Bz112c,
17451753
.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-bN97Pc-nupQLb-LgbsSe-Bz112c {
17461754
filter: invert(1) !important;
17471755
}
@@ -1772,7 +1780,8 @@ input.tAUuQ {
17721780
/* Mark As Done/Unsubmit Confirmation */
17731781
.cC1eCc .VfPpkd-P5QLlc {
17741782
background-color: var(--bg-color) !important;
1775-
box-shadow: 0 1px 3px 0 var(--shadow-heavy), 0 4px 8px 3px var(--shadow-medium) !important;
1783+
box-shadow: 0 1px 3px 0 var(--shadow-heavy),
1784+
0 4px 8px 3px var(--shadow-medium) !important;
17761785
}
17771786

17781787
/* Quick Links */
@@ -1784,7 +1793,8 @@ input.tAUuQ {
17841793

17851794
/* Skip to main content */
17861795
.EXL71e {
1787-
box-shadow: 0 1px 2px 0 var(--shadow-heavy), 0 2px 6px 2px var(--shadow-medium) !important;
1796+
box-shadow: 0 1px 2px 0 var(--shadow-heavy),
1797+
0 2px 6px 2px var(--shadow-medium) !important;
17881798
background: var(--bg-color) !important;
17891799
}
17901800

@@ -1817,14 +1827,16 @@ input.tAUuQ {
18171827
}
18181828

18191829
.hmG2yf:hover {
1820-
box-shadow: 0 1px 2px 0 var(--shadow-medium), 0 2px 6px 2px var(--shadow-medium) !important;
1830+
box-shadow: 0 1px 2px 0 var(--shadow-medium),
1831+
0 2px 6px 2px var(--shadow-medium) !important;
18211832
}
18221833

18231834
.Rvesne {
18241835
background-color: var(--bg-color) !important;
18251836
}
18261837

1827-
.VfPpkd-xl07Ob .VfPpkd-StrnGf-rymPhb-IhFlZd, .VfPpkd-xl07Ob .VfPpkd-StrnGf-rymPhb-f7MjDc {
1838+
.VfPpkd-xl07Ob .VfPpkd-StrnGf-rymPhb-IhFlZd,
1839+
.VfPpkd-xl07Ob .VfPpkd-StrnGf-rymPhb-f7MjDc {
18281840
color: var(--font-color) !important;
18291841
}
18301842

@@ -1843,4 +1855,18 @@ button[_ngcontent-ng-c3487231784] {
18431855

18441856
.prompt-message[_ngcontent-ng-c888528256] {
18451857
color: var(--font-color) !important;
1846-
}
1858+
}
1859+
1860+
/* Embed background */
1861+
iframe {
1862+
color-scheme: light !important;
1863+
}
1864+
1865+
/* More actions icons */
1866+
.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-MZArnb-Bz112c {
1867+
background-position: 0 -2604px !important;
1868+
}
1869+
1870+
.ndfHFb-c4YZDc-i5oIFb .ndfHFb-c4YZDc-j7LFlb-Bz112c.ndfHFb-c4YZDc-GSQQnc-LgbsSe {
1871+
background-position: 0 -1516px !important;
1872+
}

0 commit comments

Comments
 (0)