MediaWiki:Common.css

From Pirate Software Wiki
Revision as of 22:55, 20 November 2023 by Djinnet (talk | contribs) (Resolved the upload form thumbnail issue)

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.
/* CSS placed here will be applied to all skins */
/* oo-ui-selectFileWidget-thumbnail is from when someone are uploading images
   And cdx-menu-item-thumbnail are from the search dropdown
Above are these classes who need to have filter invert disabled
*/
.cdx-menu-item__thumbnail{
    filter: unset !important;
}

/* Sort of workaround for the inverted image fix */
.client-darkmode .oo-ui-selectFileWidget-thumbnail{
    filter: invert(1) hue-rotate(180deg);
    -webkit-filter: invert(1) hue-rotate(180deg);
}

.client-darkmode div.thumbinner canvas{
    filter: invert(1) hue-rotate(180deg);
    -webkit-filter: invert(1) hue-rotate(180deg);
}