css: only override background color in dark mode, closes #1066 (#1117)

This commit is contained in:
Huang Xin
2025-05-11 15:33:03 +08:00
committed by GitHub
parent 60ae0c9ac3
commit 2a624ef57a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ const getLayoutStyles = (
background: var(--background-set, none);
}
body.pbg, body *:not(a):not(#b1):not(#b1 *):not(#b2):not(#b2 *):not(img):not(.bg):not(.bg *):not(.vol):not(.vol *):not(.background):not(.background *) {
${bg === '#ffffff' ? '' : `background-color: ${bg} !important;`}
${isDarkMode ? `background-color: ${bg} !important;` : ''}
}
body {
overflow: unset;