From 08636768d885e960a87bd5ce0297fd83806b23e9 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 30 May 2024 14:00:44 +0300 Subject: [PATCH] amber.user.css: actually only apply to light sites --- web-browsers/amber.user.css | 46 +++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/web-browsers/amber.user.css b/web-browsers/amber.user.css index ed95468..b565848 100644 --- a/web-browsers/amber.user.css +++ b/web-browsers/amber.user.css @@ -2,7 +2,7 @@ @name Dark Amber @updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/amber.user.css @namespace eu.aminda -@version 2024.22.2 +@version 2024.22.3 @preprocessor stylus @var select FontSet "Font Set" { "Liberation Serif, Tinos, Times New Roman, serif": 'serif', @@ -10,28 +10,30 @@ } ==/UserStyle== */ -:root { - color-scheme: only dark !important; -} +@media (prefers-color-scheme: light) { + :root { + color-scheme: only dark !important; + } -*:not(a) { - color: revert !important; - overflow-wrap: break-word !important; - hyphens: auto !important; - color: #ffb700 !important; - border-color: #ffb700 !important; - background-color: #000000 !important; - font-family: FontSet !important; -} + *:not(a) { + color: revert !important; + overflow-wrap: break-word !important; + hyphens: auto !important; + color: #ffb700 !important; + border-color: #ffb700 !important; + background-color: #000000 !important; + font-family: FontSet !important; + } -a { - color: revert !important; - text-decoration: underline !important; - font-family: FontSet !important; -} + a { + color: revert !important; + text-decoration: underline !important; + font-family: FontSet !important; + } -code, -pre { - font-family: $monospace-font-family !important; - font-size: 0.8em !important; + code, + pre { + font-family: $monospace-font-family !important; + font-size: 0.8em !important; + } }