mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 02:13:49 +00:00
5d6b866890
The classes: - skin-night-mode-clientpref-0 - skin-night-mode-clientpref-1 - skin-night-mode-clientpref-2 is being replaced with - skin-theme-clientpref-day - skin-theme-clientpref-night - skin-theme-clientpref-os - Moved $forceNightMode to be a text parameter (dat|night|os) - Keep adding the old classes to the html element, to give the ability of gradual deployment The preference is renamed from minerva-night-mode to minerva-theme (a follow up to consider migrating existing values will follow). The query string minervanightmode continues to behave the same but now accepts other values such as day, night and os. Bug: T359983 Change-Id: Ia253de68f94236e7fe2219b736dd6084c64ce838
14 lines
331 B
Plaintext
14 lines
331 B
Plaintext
.skin-theme-clientpref-night .page-Main_Page {
|
|
.mw-parser-output :not( .notheme ):not( a ) {
|
|
.night-mode-strip-all-colors-when-safe();
|
|
}
|
|
}
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
.skin-theme-clientpref-os .page-Main_Page {
|
|
.mw-parser-output :not( .notheme ):not( a ) {
|
|
.night-mode-strip-all-colors-when-safe();
|
|
}
|
|
}
|
|
}
|