MediaWiki:Common.css

From DETR
Revision as of 21:11, 4 July 2026 by Santranti (talk | contribs) (Created page with "→‎Force global dark mode for the entire interface: html, body { background-color: #121212 !important; filter: invert(1) hue-rotate(180deg); } →‎Un-invert images, media, and logos so they look normal: img, video, .mw-logo, .cdx-button--weight-primary, iframe { filter: invert(1) hue-rotate(180deg); } →‎Clean up background details for page content cards: .mw-page-container { background-color: #ffffff !important; }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Force global dark mode for the entire interface */
html, body {
    background-color: #121212 !important;
    filter: invert(1) hue-rotate(180deg);
}

/* Un-invert images, media, and logos so they look normal */
img, 
video, 
.mw-logo, 
.cdx-button--weight-primary,
iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* Clean up background details for page content cards */
.mw-page-container {
    background-color: #ffffff !important;
}