Skip to content

Commit 1205eb5

Browse files
authored
Merge pull request #2996 from elkcityhazard/feature/theme-toggle
feature/theme-toggle fixes #2909
2 parents 1abc36c + bd3468b commit 1205eb5

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

index.html

+49-1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,55 @@
259259
width: 100%;
260260
}
261261
}
262+
263+
@media screen and (prefers-color-scheme: dark) {
264+
body {
265+
background: #111 !important;
266+
color: #c6c6c6;
267+
}
268+
div#sidebar {
269+
background: #111;
270+
border-right: 1px solid #666;
271+
box-shadow: 0 0 20px #555;
272+
-webkit-box-shadow: 0 0 20px #555;
273+
-moz-box-shadow: 0 0 20px #555;
274+
}
275+
a.toc_title,
276+
a.toc_title:visited {
277+
color: #f4f4f4;
278+
}
279+
a.toc_title:hover {
280+
text-decoration: underline;
281+
}
282+
.toc_section li a {
283+
text-decoration: none;
284+
color: #f4f4f4;
285+
}
286+
img#logo {
287+
filter: invert(1) hue-rotate(180deg) brightness(0.9);
288+
}
289+
div.warning {
290+
color: #CC6060;
291+
}
292+
a,
293+
a:visited {
294+
color: #f4f4f4;
295+
}
296+
a:active,
297+
a:hover {
298+
color: #ffffff;
299+
}
300+
table .rule {
301+
background: #777;
302+
}
303+
tt {
304+
background: #444;
305+
border: 1px solid #777;
306+
}
307+
pre {
308+
border-left: 5px solid #aaa;
309+
}
310+
}
262311
</style>
263312
</head>
264313
<body>
@@ -4333,6 +4382,5 @@ <h2 id="changelog">Change Log</h2>
43334382
}
43344383
})
43354384
</script>
4336-
43374385
</body>
43384386
</html>

0 commit comments

Comments
 (0)