Skip to content

Commit 45c4aff

Browse files
committed
deploy: f0e8d44
1 parent f1e1b50 commit 45c4aff

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

user/css/general.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:root {
66
/* Browser default font-size is 16px, this way 1 rem = 10px */
77
font-size: 62.5%;
8+
color-scheme: var(--color-scheme);
89
}
910

1011
html {

user/css/print.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@
2222
overflow-y: initial;
2323
}
2424

25-
code {
26-
background-color: #666666;
27-
border-radius: 5px;
28-
29-
/* Force background to be printed in Chrome */
30-
-webkit-print-color-adjust: exact;
31-
}
32-
3325
pre > .buttons {
3426
z-index: 2;
3527
}

user/css/variables.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
--searchresults-border-color: #888;
5151
--searchresults-li-bg: #252932;
5252
--search-mark-bg: #e3b171;
53+
54+
--color-scheme: dark;
5355
}
5456

5557
.coal {
@@ -90,6 +92,8 @@
9092
--searchresults-border-color: #98a3ad;
9193
--searchresults-li-bg: #2b2b2f;
9294
--search-mark-bg: #355c7d;
95+
96+
--color-scheme: dark;
9397
}
9498

9599
.light {
@@ -130,6 +134,8 @@
130134
--searchresults-border-color: #888;
131135
--searchresults-li-bg: #e4f2fe;
132136
--search-mark-bg: #a2cff5;
137+
138+
--color-scheme: light;
133139
}
134140

135141
.navy {
@@ -170,6 +176,8 @@
170176
--searchresults-border-color: #5c5c68;
171177
--searchresults-li-bg: #242430;
172178
--search-mark-bg: #a2cff5;
179+
180+
--color-scheme: dark;
173181
}
174182

175183
.rust {
@@ -210,6 +218,8 @@
210218
--searchresults-border-color: #888;
211219
--searchresults-li-bg: #dec2a2;
212220
--search-mark-bg: #e69f67;
221+
222+
--color-scheme: light;
213223
}
214224

215225
@media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)