もっと詳しく

Removed nested double eval.


← Previous revision Revision as of 11:19, 26 December 2021
Line 1: Line 1:
:root {
:root {
–dt: “dark1”;
/* colour names */
/* colour names */
Line 10: Line 9:
/* map colours to themes / palettes */
/* map colours to page parts */
–body-bg: var(–base10);
–content-bg: var(–base0);
–content-fg: var(–base100);
–body-bg-dark1: var(–base10);
–content-bg-dark1: var(–base0);
–content-fg-dark1: var(–base100);
}
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
/* make the border dark, normal is #f6f6f6 */
/* make the border dark, normal is #f6f6f6 */
body{background-color: var(–body-bg-var(–dt));}
body{background-color: var(–body-bg);}
/* main content panel */
/* main content panel */
.mw-body,.parsoid-body{
.mw-body,.parsoid-body{
background-color: var(–content-bg-var(–dt));
background-color: var(–content-bg);
color: var(–content-fg-dark1);
color: var(–content-fg);
}
}
}
}