(adjust colors, especially dark theme) |
(i don't think this padding rule is necessary anymore?) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.colortable { | .colortable { | ||
--green-l: #a7f6b0; | --green-l: #a7f6b0; | ||
--red-l: #fabfb9; | --red-l: #fabfb9; | ||
Line 15: | Line 13: | ||
--red: var(--red-l); | --red: var(--red-l); | ||
--blue: var(--blue-l); | --blue: var(--blue-l); | ||
--yellow: var(-- | --yellow: var(--yellow-l); | ||
} | } | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
/* only timeless has a dark theme skin right now */ | /* only timeless has a dark theme skin right now */ | ||
body.skin-timeless .colortable, | |||
body.skin- | html.skin-theme-clientpref-os body.skin-citizen .colortable { | ||
--green: var(--green-d); | --green: var(--green-d); | ||
--red: var(--red-d); | --red: var(--red-d); | ||
Line 29: | Line 27: | ||
} | } | ||
html.skin-citizen-dark .colortable { | html.skin-citizen-dark .colortable, | ||
html.skin-theme-clientpref-night body.skin-citizen .colortable { | |||
--green: var(--green-d); | --green: var(--green-d); | ||
--red: var(--red-d); | --red: var(--red-d); | ||
Line 36: | Line 35: | ||
} | } | ||
.ct-green { text-align: center; background-color: var(--green) } | |||
.ct-red { text-align: center; background-color: var(--red) } | |||
.ct-blue { text-align: center; background-color: var(--blue) } | |||
.ct-yellow { text-align: center; background-color: var(--yellow) } | |||
.ct-green { background-color: var(--green) } | |||
.ct-red { background-color: var(--red) } | |||
.ct-blue { background-color: var(--blue) } | |||
.ct-yellow { background-color: var(--yellow) } |
Latest revision as of 02:47, 2 May 2024
.colortable {
--green-l: #a7f6b0;
--red-l: #fabfb9;
--blue-l: #bfd4ff;
--yellow-l: #fff9ac;
--green-d: #30623c;
--red-d: #5c312e;
--blue-d: #383477;
--yellow-d: #5e5324;
--green: var(--green-l);
--red: var(--red-l);
--blue: var(--blue-l);
--yellow: var(--yellow-l);
}
@media screen and (prefers-color-scheme: dark) {
/* only timeless has a dark theme skin right now */
body.skin-timeless .colortable,
html.skin-theme-clientpref-os body.skin-citizen .colortable {
--green: var(--green-d);
--red: var(--red-d);
--blue: var(--blue-d);
--yellow: var(--yellow-d);
}
}
html.skin-citizen-dark .colortable,
html.skin-theme-clientpref-night body.skin-citizen .colortable {
--green: var(--green-d);
--red: var(--red-d);
--blue: var(--blue-d);
--yellow: var(--yellow-d);
}
.ct-green { text-align: center; background-color: var(--green) }
.ct-red { text-align: center; background-color: var(--red) }
.ct-blue { text-align: center; background-color: var(--blue) }
.ct-yellow { text-align: center; background-color: var(--yellow) }