From 2000a2f18d9e5cfb2009dd5f1c1bb51530308ecc Mon Sep 17 00:00:00 2001 From: Enstrayed <48845980+Enstrayed@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:07:44 -0700 Subject: [PATCH] etyd Frontend add dark mode support --- etydFrontend/_static/index.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/etydFrontend/_static/index.css b/etydFrontend/_static/index.css index cf34de1..66ddd02 100644 --- a/etydFrontend/_static/index.css +++ b/etydFrontend/_static/index.css @@ -19,4 +19,22 @@ body { .resultfeed { min-height: 20vh; } +} + +@media (prefers-color-scheme: dark) { /* Dark mode support */ + body { + background-color: black; + color: white; + } + + input, select, textarea, button { + background: none; + color: white; + border: 2px solid white; + } + + input:disabled, button:disabled { + opacity: 0.8; + cursor: not-allowed; + } } \ No newline at end of file