amber.user.css: actually only apply to light sites

This commit is contained in:
Aminda Suomalainen 2024-05-30 14:00:44 +03:00
parent 5fdec9b16b
commit 08636768d8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -2,7 +2,7 @@
@name Dark Amber @name Dark Amber
@updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/amber.user.css @updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/amber.user.css
@namespace eu.aminda @namespace eu.aminda
@version 2024.22.2 @version 2024.22.3
@preprocessor stylus @preprocessor stylus
@var select FontSet "Font Set" { @var select FontSet "Font Set" {
"Liberation Serif, Tinos, Times New Roman, serif": 'serif', "Liberation Serif, Tinos, Times New Roman, serif": 'serif',
@ -10,28 +10,30 @@
} }
==/UserStyle== */ ==/UserStyle== */
:root { @media (prefers-color-scheme: light) {
color-scheme: only dark !important; :root {
} color-scheme: only dark !important;
}
*:not(a) { *:not(a) {
color: revert !important; color: revert !important;
overflow-wrap: break-word !important; overflow-wrap: break-word !important;
hyphens: auto !important; hyphens: auto !important;
color: #ffb700 !important; color: #ffb700 !important;
border-color: #ffb700 !important; border-color: #ffb700 !important;
background-color: #000000 !important; background-color: #000000 !important;
font-family: FontSet !important; font-family: FontSet !important;
} }
a { a {
color: revert !important; color: revert !important;
text-decoration: underline !important; text-decoration: underline !important;
font-family: FontSet !important; font-family: FontSet !important;
} }
code, code,
pre { pre {
font-family: $monospace-font-family !important; font-family: $monospace-font-family !important;
font-size: 0.8em !important; font-size: 0.8em !important;
}
} }