mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Revert "Prevent dark-mode styles from affecting print media"
This reverts commit b3ca12e628
.
Reason for revert: Icons are appearing black on black in dark mode
in origin/wmf/1.43.0-wmf.18.
Change-Id: Ifdf3970c77b66e5a7835ca44eb45deec2b44eb43
This commit is contained in:
parent
b3ca12e628
commit
2d281db7b1
|
@ -52,18 +52,16 @@
|
|||
.vector-icon.mw-ui-icon-wikimedia-userGroup,
|
||||
.vector-icon.mw-ui-icon-wikimedia-listBullet,
|
||||
.vector-icon.mw-ui-icon-wikimedia-close {
|
||||
@media screen {
|
||||
html.skin-theme-clientpref-night & {
|
||||
filter: invert( 1 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Auto night mode.
|
||||
*
|
||||
* Applies the night mode color palette only in response to system settings.
|
||||
*/
|
||||
@media screen and ( prefers-color-scheme: dark ) {
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
html.skin-theme-clientpref-os & {
|
||||
filter: invert( 1 );
|
||||
}
|
||||
|
|
|
@ -22,13 +22,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
@media screen {
|
||||
html.skin-theme-clientpref-night {
|
||||
.dark-mode-image-styles();
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( prefers-color-scheme: dark ) {
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
html.skin-theme-clientpref-os {
|
||||
.dark-mode-image-styles();
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
// https://phabricator.wikimedia.org/T319070#8284272
|
||||
margin-left: 7px;
|
||||
|
||||
@media screen {
|
||||
html.skin-theme-clientpref-night & {
|
||||
// For night-mode, invert icons so they go from black to white.
|
||||
// Since invert( 1 ) changes the hue (e.g. from blue to orange)
|
||||
|
@ -35,14 +34,13 @@
|
|||
// (although their lightness & saturation are still different, e.g. language button).
|
||||
filter: invert( 1 ) hue-rotate( 180deg );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Auto night mode.
|
||||
*
|
||||
* Applies the night mode color palette only in response to system settings.
|
||||
*/
|
||||
@media screen and ( prefers-color-scheme: dark ) {
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
html.skin-theme-clientpref-os & {
|
||||
filter: invert( 1 ) hue-rotate( 180deg );
|
||||
}
|
||||
|
|
|
@ -6,16 +6,14 @@ html.ve-activated {
|
|||
}
|
||||
|
||||
// T367822
|
||||
@media screen {
|
||||
&.skin-theme-clientpref-night {
|
||||
.ve-ce-branchNode-blockSlug,
|
||||
body p.ve-ce-branchNode-newSlug {
|
||||
background-color: rgba( 241, 247, 251, 0.1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( prefers-color-scheme: dark ) {
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
&.skin-theme-clientpref-os {
|
||||
.ve-ce-branchNode-blockSlug,
|
||||
body p.ve-ce-branchNode-newSlug {
|
||||
|
|
Loading…
Reference in a new issue