Skip to content

Commit c86c3a4

Browse files
committed
work-in-progress support for prefers-color-scheme
Swap some of the foreground and background colors
1 parent 2e61047 commit c86c3a4

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

datafiles/static/hackage.css

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,26 @@ html {
99
height: 100%;
1010
}
1111

12+
@media (prefers-color-scheme: dark) {
13+
body {
14+
background: #333;
15+
color: #fefefe;
16+
}
17+
pre {
18+
background-color: black;
19+
}
20+
}
21+
@media (prefers-color-scheme: light) {
22+
body {
23+
background: #fefefe;
24+
color: #333;
25+
}
26+
pre {
27+
background-color: white;
28+
}
29+
}
30+
1231
body {
13-
background: #fefefe;
14-
color: #333;
1532
text-align: left;
1633
min-height: 100vh;
1734
position: relative;
@@ -197,7 +214,6 @@ ul.links li a, ul.links li form {
197214
pre {
198215
padding: 0.5rem 1rem;
199216
margin: 1em 0;
200-
background-color: #f7f7f7;
201217
overflow: auto;
202218
}
203219

0 commit comments

Comments
 (0)