MediaWiki:Gadget-DarkMode.css

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

html, body { height: 100%; } body.skin-vector { height: auto; } @-moz-document url-prefix { html, body { height: auto; } } body:not(.skin-timeless):not(.skin-apioutput), body.skin-timeless.mobile, body.skin-timeless:not(.mobile) #mw-content-block, body.skin-timeless:not(.mobile) .footer-icons, img:not(.invert), video, .vjs-poster, iframe, #wpTextbox1, #p-logo, .mw-mmv-overlay, .mw-mmv-pre-image, .media-viewer, .image-details, body.skin-monobook #p-personal, body.skin-monobook #p-cactions, .results .list-thumb, .ext-related-articles-card-thumb, .mwe-popups-container, .mwe-popups-extract { filter: invert(1) hue-rotate(180deg); } .toc, pre, .catlinks, #content-bottom-stuff, body:not(.skin-minerva) div.thumbinner, li.gallerybox div.thumb { background: #ccc !important; border-color: #aaa !important; } .toctitle { border-color: #aaa !important; } textarea { background: #ccc !important; }	color: #000 !important; }
 * 1) wpTextbox1 {

/* Fixes */ div.thumb div.thumbinner div { color: inherit !important; } body.skin-roundedblue .mw-dismissable-notice, body.skin-roundedblue .td-body, body.skin-roundedblue .td-fbody, body.skin-roundedblue #p-lang { background: #ddd !important; } body.mediawiki table.wikitable th { background: #bbb; } body.mediawiki table.wikitable td { background: #ccc; }

/* 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; }

/* Navboxes */ body.mediawiki .navbox, body.mediawiki .navbox tr, body.mediawiki .navbox tr td, body.mediawiki .navbox tr th, body.mediawiki .navbox tr th a, body.mediawiki .navbox span, body.mediawiki .navbox font { color: #000 !important; } body.mediawiki .navbox { background: #fff !important; border-color: #aaa !important; } body.mediawiki .navbox tr:first-child th { background: #ccc !important; } body.mediawiki .navbox tr th { background: #ddd !important; } body.mediawiki .navbox tr td { background: #eee !important; }

/* Site notice */ background: #bbb !important; border-color: #999 !important; }	background: #999 !important; border-color: #aaa !important; }	color: #000 !important; }	color: #000 !important; }
 * 1) localNotice > table {
 * 1) localNotice > table th {
 * 1) localNotice > table th .altcolors {
 * 1) localNotice > table td a span {

/* Main Page */ body.page-Main_Page.mobile #mainpage > div:not(#mf-welcome), body.page-Main_Page .nav > a, body.page-Main_Page:not(.mobile) #mw-content-text, body.page-Main_Page #mw-content-text .floatnone, body.page-Main_Page #mw-content-text .floatleft, body.page-Main_Page #mw-content-text .floatright { filter: invert(1) hue-rotate(180deg); } body.page-Main_Page #content h3 { color: #fff !important; }

/* MonoBook */ body.skin-monobook #sidebar > div { background: #ccc !important; } body.skin-monobook #sidebar > div > h3 { filter: invert(1) hue-rotate(180deg); } body.skin-monobook #p-personal .pBody ul { background: #333 !important; border-color: #666 !important; } body.skin-monobook #p-cactions li a { color: #ddd; background: #555 !important; border-color: #333 !important; } body.skin-monobook #p-cactions li a:hover, body.skin-monobook #p-cactions li.selected a:hover { color: #111 !important; background: #aaa !important; border-color: #888 !important; } body.skin-monobook #p-cactions li.selected a { color: #fff !important; background: #222 !important; border-color: #666 !important; } body.skin-monobook #p-cactions li.new a { color: #f09cab; }

/* Desktop skins */ color: #222 !important; } body:not(.skin-roundedblue) #content, #mw-content, .skin-monobook #footer, .suite_tab, .suitediv, .mw-prefs-buttons, .oo-ui-tabSelectWidget-framed .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected { background: #ddd !important; } .vector-menu-tabs .selected { background: linear-gradient(to bottom,transparent 0,#ddd 100%) !important; }
 * 1) content, #content h1, #content h2, #content h3,
 * 2) content h4, #content h5, #content h6 {

/* Mobile skins */ body.skin-timeless.mobile #mw-content-container { background: #fff !important; } body.skin-timeless.mobile #mw-footer-container, body.skin-timeless.mobile #mw-footer-container a { color: #000 !important; }