Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/theme-toggle fixes #2909 #2996

Merged
merged 9 commits into from
Jul 24, 2024
61 changes: 60 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,66 @@
width: 100%;
}
}

@media screen and (prefers-color-scheme: dark) {
body {
background: #333 !important;
jgonggrijp marked this conversation as resolved.
Show resolved Hide resolved
color: #c6c6c6;
}

div#sidebar {
background: #444;
border-right: 1px solid #666;
box-shadow: 0 0 20px #555;
-webkit-box-shadow: 0 0 20px #555;
-moz-box-shadow: 0 0 20px #555;
}

a.toc_title,
a.toc_title:visited {
color: #f4f4f4;
}

a.toc_title:hover {
text-decoration: underline;
}

.toc_section li a {
text-decoration: none;
color: #f4f4f4;
}

img#logo {
filter: brightness(0) invert(1);
}

div.warning {
color: #CC6060;
}

a,
a:visited {
color: #f4f4f4;
}

a:active,
a:hover {
color: #ffffff;
}

table .rule {
background: #777;
}

tt {
background: #444;
border: 1px solid #777;
}

pre {
border-left: 5px solid #aaa;
}
}
</style>
</head>
<body>
Expand Down Expand Up @@ -4333,6 +4393,5 @@ <h2 id="changelog">Change Log</h2>
}
})
</script>

</body>
</html>