Skip to content
Snippets Groups Projects
Commit aee1c4ab authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Add a "prefers-color-scheme" block

parent 969d0e92
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
* this work. If not, see
* http://creativecommons.org/publicdomain/zero/1.0/. */
/* $Id: quiz.css,v 1.3 2024/01/21 13:01:04 oj14ozun Exp oj14ozun $ */
/* $Id: quiz.css,v 1.4 2024/01/22 10:08:19 oj14ozun Exp oj14ozun $ */
:root {
font-family: system-ui, "Open Sans", "Noto Sans", "Lato", Arial, sans-serif;
......@@ -274,3 +274,23 @@ footer > code {
opacity: 50%;
}
}
/* basic "dark theme" support */
@media screen and (prefers-color-scheme: dark) {
:root {
--deafult-tint: darkslategray;
--highlight: cyan;
--correct: seagreen;
--wrong: maroon;
--ambiguous: sienna;
}
html {
background: black;
color: white;
}
a, button, input {
filter: invert(90%);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment