MediaWiki:Common.css: Difference between revisions

Import from wiki-src
Import from wiki-src
Line 15: Line 15:
body.page-Main_Page.action-view #siteSub { display: none; }
body.page-Main_Page.action-view #siteSub { display: none; }


/* Wordmark and tagline: swap in light-coloured files for dark mode.
/* Dark mode for the wordmark and tagline needs no rule here: Vector puts
  (A CSS filter was unreliable on these images; swapping the file is deterministic.) */
  .skin-invert on .mw-logo-container, which already inverts them. */
html.skin-theme-clientpref-night .mw-logo-wordmark { content: url(/mohan-assets/wordmark-dark.svg); }
html.skin-theme-clientpref-night .mw-logo-tagline { content: url(/mohan-assets/tagline-dark.svg); }
@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .mw-logo-wordmark { content: url(/mohan-assets/wordmark-dark.svg); }
  html.skin-theme-clientpref-os .mw-logo-tagline  { content: url(/mohan-assets/tagline-dark.svg); }
}


/* ---------------------------------------------------------------- Infobox */
/* ---------------------------------------------------------------- Infobox */