MediaWiki:Common.css: Difference between revisions
AZMindroma (talk | contribs) Undo revision 1770 by AZMindroma (talk) Tag: Undo |
AZMindroma (talk | contribs) No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 345: | Line 345: | ||
/* @noflip */ | /* @noflip */ | ||
text-align: right; | text-align: right; | ||
} | |||
/* Dark mode support for infoboxes */ | |||
@media screen { | |||
html.skin-theme-clientpref-night .infobox { | |||
background-color: #202122; | |||
border-color: #54595d; | |||
color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-night .infobox th, | |||
html.skin-theme-clientpref-night .infobox td { | |||
color: #eaecf0; | |||
} | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .infobox { | |||
background-color: #202122; | |||
border-color: #54595d; | |||
color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-os .infobox th, | |||
html.skin-theme-clientpref-os .infobox td { | |||
color: #eaecf0; | |||
} | |||
} | } | ||
| Line 411: | Line 438: | ||
} | } | ||
} | } | ||
@media (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-night .mw-logo-icon, | |||
html.skin-theme-clientpref-os .mw-logo-icon { | |||
filter: invert(1); | |||
} | |||
} | |||
/* | /* | ||