From 3fd832b8f86641ea6046a776dda8f54a17834d7b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 May 2024 07:47:50 +0200 Subject: fix(css): barely-visible text in dark mode --- frontend/static/style.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'frontend') 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; } -- cgit 1.4.1