From f0795da618cf5eb65cf592c69579e77da8f1dddb Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 14 Apr 2022 16:09:59 +0100 Subject: [PATCH] use opacity code in soft_media module --- modules/darkmode.css | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/darkmode.css b/modules/darkmode.css index f267ec8..1084aee 100644 --- a/modules/darkmode.css +++ b/modules/darkmode.css @@ -1,13 +1,8 @@ +@import url("https://styles.alv.cx/modules/soft_media.css") screen and (prefers-color-scheme: dark); + @media (prefers-color-scheme: dark) { :root { --fg: var(--colorscheme-light); --bg: var(--colorscheme-dark); } - img, video { - opacity: .75; - transition: opacity .5s ease-in-out; - } - img:hover, video:hover { - opacity: 1; - } }