MediaWiki:Common.css: Difference between revisions

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: } }"
 
Frankly (talk | contribs)
mNo edit summary
Tag: Manual revert
 
(6 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 */


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