MediaWiki:Common.css: Difference between revisions

No edit summary
m Added attribution
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/*
* This file uses material from the Wikipedia/MediaWiki project,
* released under the Creative Commons Attribution-ShareAlike 4.0 International License.
* Source: https://en.wikipedia.org/wiki/MediaWiki:Common.css
*/
/*
/*
  * This is the CSS common to all desktop skins on en.Wikipedia.
  * This is the CSS common to all desktop skins on en.Wikipedia.
Line 439: Line 445:
}
}


/* Invert logo when user manually toggles dark mode */
html.skin-theme-clientpref-night .mw-logo-icon {
    filter: invert(1);
}
/* Invert logo when user's device is in dark mode (and wiki is set to "Automatic") */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-night .mw-logo-icon,
     html.skin-theme-clientpref-os .mw-logo-icon {
     html.skin-theme-clientpref-os .mw-logo-icon {
         filter: invert(1);
         filter: invert(1);