User:Iamdavidman/monobook.css: Difference between revisions
Iamdavidman (talk | contribs) dark mode effect! |
Iamdavidman (talk | contribs) m testing out a new version of this Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* Ensure all outer layout wrappers and backgrounds are dark */ | ||
html, body, #globalWrapper, #content, #column-one { | |||
background-color: #111; | |||
} | |||
@media screen { | @media screen { | ||
/* Invert colors while keeping the base canvas dark */ | |||
/* Invert colors | |||
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 | /* 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);
}
}
Categories
- No categories associated with this article