I'm trying to color this background for read alerts, so they're readable. I can't seem to find which of the many sections for style customizations have this setting? Any help?
You'll typically want to use the .m-colorScheme mixin to target color schemes (light/dark):
Less:
.some-class{// normal rules (default color scheme -- light in the default style)
.m-colorScheme({{ $xf.style.getAlternateStyleType()}},{// alternate rules (alternate color scheme -- dark in the default style)});}
However you can target specific variations if you want:
Less:
.some-class{// normal rules (system or implicit default variation):root[data-variation="alternate"] &{// alternate rules (explicit alternate variation -- will...
I have lots of styles for various games the community plays, 9 right now so essentially 18 styles, I guess? Each with a day and night coloration and the same background.
This is the default theme's color palette though. Left being day/light, right being night/dark:
.menu-row.menu-row--separated{// colour for the light variationbackground: #FFFFFF;
.m-colorScheme({{ $xf.style.getAlternateStyleType()}},{// colour for the dark variationbackground: #000000;});}
True, I think you can use "color:#000000" if needed for text color though. I have extremely limited knowledge of CSS, and essentially nothing else, but not nearly enough to build something from scratch.
.menu-row.menu-row--separated{// colour for the light variationbackground: #FFFFFF;
.m-colorScheme({{ $xf.style.getAlternateStyleType()}},{// colour for the dark variationbackground: #000000;});}