User:Iamdavidman/monobook.css: Difference between revisions

dark mode effect!
 
m testing out a new version of this
Tag: Reverted
Line 1: Line 1:
/* Enable dark mode for MonoBook via CSS filters */
/* Ensure all outer layout wrappers and backgrounds are dark */
html, body, #globalWrapper, #content, #column-one {
  background-color: #111;
}
 
@media screen {
@media screen {
  /* Ensure the root HTML element takes up full height */
   /* Invert colors while keeping the base canvas dark */
  html {
    height: 100%;
    background-color: #111;
  }
 
   /* Invert colors and shift hues to preserve relative contrast */
   body {
   body {
     filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
     filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
Line 13: Line 11:
   }
   }


   /* Un-invert images, videos, thumbnails, and mathematical formulas so they display correctly */
   /* Un-invert standard media, view overlays, and lightbox elements */
   img,  
   img,  
   video,  
   video,  
   math,  
   math,  
   .thumbimage,  
   .thumbimage,  
   .mwe-math-fallback-image-inline {
   .mwe-math-fallback-image-inline,
  .mw-file-description img,
  .image img,
  fullImageLink img,
  .mw-mmv-image-wrapper img {
     filter: invert(100%) hue-rotate(180deg);
     filter: invert(100%) hue-rotate(180deg);
   }
   }
}
}

Revision as of 02:27, 27 July 2026

/* Ensure all outer layout wrappers and backgrounds are dark */
html, body, #globalWrapper, #content, #column-one {
  background-color: #111;
}

@media screen {
  /* Invert colors while keeping the base canvas dark */
  body {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
    background-color: #111;
  }

  /* Un-invert standard media, view overlays, and lightbox elements */
  img, 
  video, 
  math, 
  .thumbimage, 
  .mwe-math-fallback-image-inline,
  .mw-file-description img,
  .image img,
  fullImageLink img,
  .mw-mmv-image-wrapper img {
    filter: invert(100%) hue-rotate(180deg);
  }
}