Skip to content

Commit 776fd25

Browse files
committed
Fix web page dark modes for Chrome/FF (they don't support color-scheme)
1 parent 264ab99 commit 776fd25

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

stylesheets/stylesheet_dark.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22
* Custom modified stylesheet to support dark mode as upstream doesn't support
33
* it.
44
*/
5-
:root {
6-
prefer-color-schemes: light dark;
7-
color-scheme: light dark;
5+
@supports (color-scheme: light dark) {
6+
:root {
7+
color-scheme: light dark;
8+
}
9+
}
10+
@supports not (color-scheme: light dark) {
11+
@media (prefers-color-scheme: dark) {
12+
body {
13+
background-color: #1E1E1E;
14+
}
15+
}
816
}
17+
918
@media (prefers-color-scheme: dark) {
1019
a {
1120
color: #2583E2;

0 commit comments

Comments
 (0)