Toggle menu
155
274
1
2.9K
DemocracyCraft Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox styles.css: Difference between revisions

Template page
test
added pref for user night mode (still testing)
Line 1: Line 1:
/* For explicit client preference dark mode */
@media screen {
@media screen {
.skin-theme-clientpref-night .infobox { background-color: #151A23; color: red; }
  .skin-theme-clientpref-night .infobox {
    background-color: #151A23;
    color: red;
  }
}
}
/* For OS-level dark mode preference */
@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
.skin-theme-clientpref-os .infobox { background-color: #151A23; color: red; }
  .skin-theme-clientpref-os .infobox {
    background-color: #151A23;
    color: red;
  }
}
}

Revision as of 03:34, 27 March 2025

/* For explicit client preference dark mode */
@media screen {
  .skin-theme-clientpref-night .infobox {
    background-color: #151A23;
    color: red;
  }
}

/* For OS-level dark mode preference */
@media screen and (prefers-color-scheme: dark) {
  .skin-theme-clientpref-os .infobox {
    background-color: #151A23;
    color: red;
  }
}