Module:Sidebar/styles.css: Difference between revisions
Appearance
use --background-color-neutral-subtle (with fallback) as background, for dark mode compatibility |
Disable background in night mode mw:Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis |
||
Line 163: | Line 163: | ||
* query. | * query. | ||
*/ | */ | ||
} | |||
/* Disable backgrounds via style attribute in night mode Eg.https://phabricator.wikimedia.org/F55243859 / https://en.wikipedia.org/w/index.php?title=Laissez-faire */ | |||
html.skin-theme-clientpref-night .sidebar-list-title { | |||
background: transparent !important; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
/* automatic mode */ | |||
html.skin-theme-clientpref-os .sidebar-list-title { | |||
background: transparent !important; | |||
} | |||
} | } |