Module:Sidebar/styles.css: Difference between revisions
move @print none to templatestyles from MediaWiki:Print.css to support MediaWiki talk:Common.css/to do#Turn mobile.css/js totally off |
|||
Line 167: | Line 167: | ||
/* Fixes: T367463 */ | /* Fixes: T367463 */ | ||
body.skin--responsive .sidebar a > img { | body.skin--responsive .sidebar a > img { | ||
max-width: none !important; | |||
} | } | ||
/* Disable backgrounds via style attribute in night mode Eg.https://phabricator.wikimedia.org/F55243859 | /* Disable backgrounds via style attribute in night mode Eg.https://phabricator.wikimedia.org/F55243859 | ||
@media screen | * https://en.wikipedia.org/w/index.php?title=Laissez-faire | ||
* Less the usual @media screen because of @media print below | |||
*/ | |||
html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-list-title, | |||
html.skin-theme-clientpref-night .sidebar:not( .notheme ) .sidebar-title-with-pretitle { | |||
background: transparent !important; | |||
} | |||
html.skin-theme-clientpref-night .sidebar .sidebar-title-with-pretitle a { | |||
color: var( --color-progressive ) !important; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
/* automatic mode */ | |||
html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-list-title, | |||
html.skin-theme-clientpref-os .sidebar:not( .notheme ) .sidebar-title-with-pretitle { | |||
background: transparent !important; | |||
} | |||
html.skin-theme-clientpref-os .sidebar .sidebar-title-with-pretitle a { | |||
color: var( --color-progressive ) !important; | |||
} | |||
} | } | ||
@media | |||
@media print { | |||
/* high specificity because Minerva */ | |||
body.mediawiki.ns-0 .sidebar { | |||
display: none !important; | |||
} | |||
} | } |