Actions

MediaWiki

MediaWiki:Common.css

From abexilas.skywiki.org

Revision as of 22:33, 5 December 2024 by Frankly (talk | contribs) (Created page with "CSS placed here will be applied to all skins: Invert colors for a specific image in dark mode: @media (prefers-color-scheme: dark) { img[src*="File:1111111111111111111.png"] { filter: invert(1); background-color: #000; Optional: prevent light background halo: } }")
(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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

/* Invert colors for a specific image in dark mode */
@media (prefers-color-scheme: dark) {
    img[src*="File:1111111111111111111.png"] {
        filter: invert(1);
        background-color: #000; /* Optional: prevent light background halo */
    }
}