Actions

MediaWiki

Common.css: Difference between revisions

From abexilas.skywiki.org

Frankly (talk | contribs)
No edit summary
Tags: Manual revert Reverted
Frankly (talk | contribs)
mNo edit summary
Tag: Manual revert
 
(2 intermediate revisions by the same user not shown)
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 */
/* Target the specific image on its file page in dark mode */
.theme-sensitive-image {
    content: url("https://abexilas.skywiki.org/wiki/File:Number_2.png");
}
 
/* Override to use the darkened image for dark theme */
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
     .theme-sensitive-image {
     body.page-File_1111111111111111111_png img {
         content: url("https://abexilas.skywiki.org/wiki/File:1111111111111111111.png");
         filter: invert(1);
        background-color: #000;
     }
     }
}
}

Latest revision as of 23:07, 5 December 2024

/* CSS placed here will be applied to all skins */

/* Target the specific image on its file page in dark mode */
@media (prefers-color-scheme: dark) {
    body.page-File_1111111111111111111_png img {
        filter: invert(1);
        background-color: #000;
    }
}