about summary refs log tree commit diff stats
path: root/frontend
diff options
context:
space:
mode:
authorAlan Pearce2024-05-14 07:47:50 +0200
committerAlan Pearce2024-05-14 07:47:50 +0200
commit3fd832b8f86641ea6046a776dda8f54a17834d7b (patch)
tree603f057c318c9c69cbf01560a00051c401d9d386 /frontend
parent67e1a28ad3972a31bb995eaeec83434221ed5cf6 (diff)
downloadsearchix-3fd832b8f86641ea6046a776dda8f54a17834d7b.tar.lz
searchix-3fd832b8f86641ea6046a776dda8f54a17834d7b.tar.zst
searchix-3fd832b8f86641ea6046a776dda8f54a17834d7b.zip
fix(css): barely-visible text in dark mode
Diffstat (limited to 'frontend')
-rw-r--r--frontend/static/style.css9
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index 4274cc6..8f93079 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -1,11 +1,16 @@
 :root {
   --standard-border-radius: 0;
-  --text: black;
-  --text-light: #212121;
   --preformatted: var(--code);
   --min-width: 60rem;
 }
 
+@media (prefers-color-scheme: light) {
+  :root {
+    --text: black;
+    --text-light: #212121;
+  }
+}
+
 body {
   grid-template-columns: 1fr min(var(--min-width), 90%) 1fr;
 }