From a79d025d1055bb71808c479f648a8b3a7fe86132 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Wed, 13 Apr 2022 02:23:45 +0100 Subject: [PATCH] fix darkmode always applying when module loaded --- modules/darkmode.css | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/darkmode.css b/modules/darkmode.css index a26d891..f21c0c5 100644 --- a/modules/darkmode.css +++ b/modules/darkmode.css @@ -1,11 +1,10 @@ -:root { - --fg: #ccc; - --bg: #111; - --a: #07a; - --a-visited: #aa346d; -} - @media (prefers-color-scheme: dark) { + :root { + --fg: #ccc; + --bg: #111; + --a: #07a; + --a-visited: #aa346d; + } img, video { opacity: .75; transition: opacity .5s ease-in-out;