summaryrefslogtreecommitdiff
path: root/site/style.css
diff options
context:
space:
mode:
authorstuebinm2021-04-08 16:01:26 +0200
committerstuebinm2021-04-08 16:04:36 +0200
commit7e38d7f84463342dd428e7400777fdc675a8fbce (patch)
tree379d45cf07979be2b509ad869cbe67752b9f1edd /site/style.css
parent215ca162c2c767df56a4802ed7edde7fd5e7fbd0 (diff)
site: add a rudimentary dark mode
This is a very simple, very high-contrast dark mode (for now). However, not all default ui elements seem to respect it by default — i.e. textareas stay entirely white by default and require additional theming. I'm not sure if this is my system stlye or firefox interfering, but for now I've added custom css rules which at least make text areas black. Buttons and checkboxes are still white, however.
Diffstat (limited to 'site/style.css')
-rw-r--r--site/style.css26
1 files changed, 26 insertions, 0 deletions
diff --git a/site/style.css b/site/style.css
index b8be0dd..08f22a6 100644
--- a/site/style.css
+++ b/site/style.css
@@ -30,3 +30,29 @@ textarea {
resize: vertical;
min-height: 2em;
}
+
+
+@media screen and (prefers-color-scheme: dark) {
+
+ html {
+ background-color: black;
+ color: white;
+ }
+
+ body {
+ background-color: black;
+ box-shadow: none;
+ border: 2px solid white;
+ border-radius: 1em;
+ }
+
+ .error {
+ color: red;
+ }
+
+ textarea {
+ color: white;
+ background-color: black;
+ }
+
+}