Skip to content

Commit 31e5e11

Browse files
committed
docs: use dark theme for devices that prefer dark theme
1 parent 95b7460 commit 31e5e11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/_assets/style.css

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
body, #content-wrapper {
2+
background-color: white;
3+
}
4+
5+
@media (prefers-color-scheme: dark) {
6+
body {
7+
background-color: #222;
8+
filter: invert(1) hue-rotate(180deg);
9+
}
10+
}
11+
112
body[layout='layout-home'] .markdown-body .call-to-action:nth-of-type(2) {
213
background: linear-gradient(to right, #555, #222);
314
}

0 commit comments

Comments
 (0)