mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 02:13:49 +00:00
Skin invert shouldn't apply in day mode.
Bug: T356425 Change-Id: Ic5c754734f7df093629d1121d61e89cd1f3225fc
This commit is contained in:
parent
2085354755
commit
9cec6a2230
|
@ -64,13 +64,6 @@
|
|||
.light-mode-palette();
|
||||
}
|
||||
|
||||
/** Content that uses the mw-invert class is inverted and the light mode palette should be used. */
|
||||
.skin-invert {
|
||||
color-scheme: light;
|
||||
.light-mode-palette();
|
||||
filter: invert( 1 ) hue-rotate( 180deg );
|
||||
}
|
||||
|
||||
/**
|
||||
* Placeholder Night mode color palette.
|
||||
* NOTE: These values are temporarily hard coded.
|
||||
|
@ -105,13 +98,29 @@
|
|||
--box-shadow-color-drawer: #afb6e9;
|
||||
}
|
||||
|
||||
.night-mode-invert() {
|
||||
color-scheme: light;
|
||||
.light-mode-palette();
|
||||
filter: invert( 1 ) hue-rotate( 180deg );
|
||||
}
|
||||
|
||||
html.skin-night-mode-clientpref-1 {
|
||||
color-scheme: dark;
|
||||
.night-mode-palette();
|
||||
|
||||
/** Content that uses the mw-invert class is inverted and the light mode palette should be used. */
|
||||
.skin-invert {
|
||||
.night-mode-invert();
|
||||
}
|
||||
}
|
||||
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
html.skin-night-mode-clientpref-2 {
|
||||
.night-mode-palette();
|
||||
|
||||
/** Content that uses the mw-invert class is inverted and the light mode palette should be used. */
|
||||
.skin-invert {
|
||||
.night-mode-invert();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue