diff --git a/static/HtmlFormat.css b/static/HtmlFormat.css index 77df1296..457ad8b0 100644 --- a/static/HtmlFormat.css +++ b/static/HtmlFormat.css @@ -120,3 +120,26 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq } } + +/* Dark theme, will automatically be set for those that have dark mode on their OS. */ +@media (prefers-color-scheme: dark){ + + * { + scrollbar-color: #202324 #454a4d; + } + + body { + background-color: #202325; + color: #e8e6e3; + } + + a, a:link, a:visited { + color: #0A6AB6; + } + + /* Section */ + section { + background-color: #181A1B; + } + +} \ No newline at end of file diff --git a/static/style.css b/static/style.css index 80591e43..d8e954d2 100644 --- a/static/style.css +++ b/static/style.css @@ -382,4 +382,56 @@ h5 { width: 100%; } +} + +/* Dark theme */ +@media (prefers-color-scheme: dark){ + * { + scrollbar-color: #202324 #454a4d; + } + + body { + background-color: #202325; + color: #e8e6e3; + } + + a, a:link, a:visited { + color: #0A6AB6; + } + + /* Header */ + select, + input[type="text"], + input[type="number"] { + background-color: #181A1B; + /* does not apply to placeholder text without !important */ + color: white !important; + + border: 1px solid #393E40; + } + + /* Section */ + section { + background-color: #181A1B; + } + + /* Buttons */ + button { + background: #0A6AB6 none repeat scroll 0% 0%; + } + + button:hover { + background: #004daa; + } + + @supports (display: grid){ + .parameters input[type="number"] { + color: #BAB4AB; + } + } + + /* Show more / less */ + .showmore:hover, .showless:hover { + color: #d8d3cb; + } } \ No newline at end of file