Actions

MediaWiki

Common.css: Difference between revisions

Frankly (talk | contribs)
mNo edit summary
Tag: Reverted
Frankly (talk | contribs)
mNo edit summary
Tags: Manual revert Reverted
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Default to the white image for light theme */
/* Invert colors for a specific image in dark mode */
.theme-sensitive-image {
    content: url("https://abexilas.skywiki.org/wiki/Special:Redirect/file/Number_2.png");
}
 
/* Use the darkened image for dark theme */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
     .theme-sensitive-image {
     img[src*="File:1111111111111111111.png"] {
         content: url("https://abexilas.skywiki.org/wiki/Special:Redirect/file/1111111111111111111.png");
         filter: invert(1);
        background-color: #000; /* Optional: prevent light background halo */
     }
     }
}
}