Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Gadget-DarkMode.css: Difference between revisions

MediaWiki interface page
m (1 revision imported)
 
m (1 revision imported: Import custom interface messages)
 
(No difference)

Latest revision as of 11:07, 11 June 2022

/* Apply a quick color-inverted night theme */

@-moz-document url-prefix() {
	html { background: #050405; }
	html, body { height: auto; min-height: 100vh; }
	.ve-init-mw-welcomeDialog { display: none !important; }
}
.noinvert img, img.invert-light { filter: none !important; }
img.whitebg, .gallery.whitebg img { background: #fff !important; }
html, .noinvert, .gallery.invert a.image, img:not(.invert), canvas, video, .vjs-poster, iframe, #wpTextbox1, #p-logo,
.mw-mmv-overlay, .mw-mmv-pre-image, .media-viewer, .image-details, .results .list-thumb, .ext-related-articles-card-thumb,
.mwe-popups-container, .mwe-popups-extract {
	filter: invert(1) hue-rotate(180deg);
}
.toc, .toccolours, #filetoc, pre, .catlinks, #content-bottom-stuff,
body:not(.skin-minerva) div.thumbinner, li.gallerybox div.thumb {
	background: #ccc !important;
	border-color: #aaa !important;
}
.filehistory a img, #file img {
	background: url(https://ssb.wiki.gallery/images/checker-dark.png) repeat !important;
}
html div.thumbimage { background-color: #000; }
body.skin-timeless .thumbimage { border: 0 !important; }
@media all and (min-width: 851px) {
	body.skin-timeless .thumbimage { margin: 1px !important; }
}
#wpTextbox1 { background: #ccc !important; color: #000 !important; }
.mw-highlight .nc, .mw-highlight .nf, .mw-highlight .nn { color: #66f !important; }
code { border-color: #ccc !important; background: #aaa !important; }
.mw-special-ReplaceText textarea { background: #ccc !important; }
.mw-changeslist-legend { border-color: #ccc !important; }
.toctitle, fieldset { border-color: #aaa !important; }

/* Fixes */
.messagebox.invert { background: #e6e6e6 !important; }
.messagebox.invert td:first-of-type, #sa-box, #sa-box a.image {
	filter: invert(1) hue-rotate(180deg);
}
body.page-Main_Page td[style*="background:#f7f7fb"] {
	background: #eee !important;
}
.special-moves .wikitable caption {
	background: #bbb !important;
}
body.mediawiki table.wikitable th {
	background-color: #bbb;
}
body.mediawiki table.wikitable,
body.mediawiki table.wikitable td {
	background: #ccc;
}
div.noarticletext {
	background: #ddd;
}

/* Diffs */
.diff-addedline {
	background: #eee !important;
	border-color: lightskyblue !important;
}
.diff-addedline .diffchange {
	background: lightskyblue !important;
}
.diff-deletedline {
	background: #eee !important;
	border-color: pink !important;
}
.diff-deletedline .diffchange {
	background: pink !important;
}
.diff-context {
	background: none !important;
	border-color: #ccc !important;
}
.mw-plusminus-pos {
	color: #0d0 !important;
}
.mw-plusminus-neg {
	color: #f77 !important;
}

/* MonoBook */
body.skin-monobook .mw-footer {
	border-color: #aaa !important;
}
body.skin-monobook #p-cactions li.selected {
	border-color: #888 !important;
}
body.mediawiki.skin-monobook #p-personal li a,
body.mediawiki.skin-monobook #p-personal li a:hover {
	color: #009CFF;
}
body.mediawiki.skin-monobook #p-personal li a:hover {
	text-decoration: underline;
}

/* Links */
a.new, .new a, .error, .unpatrolled {
	color: #f66 !important;
}
body a, body .content a, body .vector-menu-tabs li a,
body .portal .body li a, html body.mediawiki #p-cactions li a,
body a:hover, body a:visited, body .content a:visited, body .portal .body li a:visited,
body a:active, body .content a:active, .toctogglelabel, ul.tabbernav li a {
	color: #009CFF;
}

/* Desktop skins */
.content, #content, #content h1, #content h2,
#content h3, #content h4, #content h5, #content h6 {
	color: #333 !important;
}
body.mediawiki:not(.skin-timeless) #content, #mw-content, #sidebar .pBody,
.skin-monobook #footer, .skin-monobook #p-cactions li a, .mediawiki .mw-prefs-buttons,
.mediawiki .oo-ui-tabSelectWidget-framed .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected,
.dropdown, .sidebar-inner, #p-cactions-mobile li.selected a, #p-cactions-mobile li:hover a {
	background-color: #ddd !important;
}
@media all and (max-width: 550px) {
	body.skin-monobook #p-cactions li a, body.skin-monobook #sidebar .pBody {
		background: none !important;
	}
}
#personal .dropdown::after, .sidebar-inner::before, .sidebar-inner::after,
.sidebar-chunk h2 span::before, .sidebar-chunk h2 span::after {
	border-bottom-color: #ddd !important;
}
@media all and (min-width: 1100px) {
	.sidebar-chunk { background: #ddd !important; }
}
.vector-menu-tabs .selected {
	background: linear-gradient(to top,#ddd 0,transparent 100%) !important;
}
html img.thumbimage {
	border-color: #2F3237 !important;
}

/* Mobile skins */
body.skin-minerva .page-actions-menu {
	border-top-color: #bbc0c3 !important;
	border-bottom-color: #53595d !important;
}
body.skin-minerva .content .mw-parser-output > h2,
body.skin-minerva .content .section-heading {
	border-color: #53595d !important;
}
.mw-ui-icon-mf-expand::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eexpand%3C/title%3E%3Cpath fill=%22%23333%22 d=%22M17.5 4.75l-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z%22/%3E%3C/svg%3E") !important;
}