Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 11:38, 22 October 2025 by Corni muesli (talk | contribs) (Attempt overwrite enforcement)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

:root.skin-theme-clientpref-night {
  --body-background-color:#323339;
  --text-color:#DFE0E2;
  --link-color:#72a7eb;
  --infobox-text:#DFE0E2 !important;
  --infobox-background:#323339 !important
}

@media (prefers-color-scheme:dark) {
  :root {
    --body-background-color:#323339;
    --text-color:#DFE0E2;
    --link-color:#72a7eb;
    --infobox-text:#DFE0E2 !important;
    --infobox-background:#323339  !important
  }
} 

/* Copied from https://en.wikipedia.org/w/index.php?action=edit&title=MediaWiki:Common.css */
/*
 * BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
 * SEE [[MediaWiki talk:Common.css/to do]]
 * CSS is separated by component (which is why media queries are not joined)
 */
/* for background of specific page
        .page-Main_Page {
            background-image: url('YOUR_IMAGE_URL');
            background-size: cover; /* Optional: adjust as needed */
            background-repeat: no-repeat; /* Optional: adjust as needed */
        }
*/