MediaWiki:Gadget-DarkMode.css

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

@-moz-document url-prefix { html, body { height: auto; } html { background: #0E0D0E; } } img.whitebg { background: #fff !important; } html, 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; } .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; }
 * 1) wpTextbox1 { background: #ccc !important; color: #000 !important; }

/* Fixes */ body select { border-color: #8f8f9d; } blockquote { border-color: #888 !important; } .nav-right { background: #ccc !important; border-color: #aaa !important; } .mediawiki .navbox td a, .mediawiki .navbox td a:visited { color: #009CFF; } .mediawiki .notice-template.maintenance { background: #fff !important; } .notice-template.maintenance#delete { color: #000 !important; } .notice-template.maintenance#delete a:not(.new) { color: 00f !important; } html div.thumbimage { background: #000 !important; } body.mediawiki table.wikitable th { background-color: #bbb; } body.mediawiki table.wikitable, body.mediawiki table.wikitable td { background: #ccc; } table#foreignNames, table#foreignNames th, table#foreignNames td { border-color: #aaa !important; } table#foreignNames th { background-color: #bbb !important; } table#foreignNames, table#foreignNames td { background: #ccc !important; }	color: #000 !important; background: #fff !important; }
 * 1) pgod {

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

/* Navboxes */ body.mediawiki .navbox { color: #000 !important; background: #fff !important; border-color: #aaa !important; } body.mediawiki .navbox tr, body.mediawiki .navbox tr td, body.mediawiki .navbox tr th { color: #000 !important; border-color: #aaa !important; } body.mediawiki .navbox tr th a, body.mediawiki .navbox span, body.mediawiki .navbox font { color: #000 !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; }

/* File templates */ border-color: #aaa !important; }	color: #000 !important; background: #ccc !important; border-color: #aaa !important; }	color: #000 !important; background: #aaa !important; border-color: #aaa !important; }	color: #000 !important; } .notice-template.copyright { background: #ccc !important; border-color: #aaa !important; }
 * 1) aboutfile {
 * 1) aboutfile tr:first-of-type td {
 * 1) aboutfile tr:nth-of-type(2) td,
 * 2) aboutfile tr:last-of-type td {
 * 1) aboutfile tr:last-of-type td span {

/* Main Page */ .mainpagebox { background: #eee !important; } .mainpagebox#nav { background: #ddd !important; } .mainpagebox h2 { filter: invert(1) hue-rotate(180deg); } .mainpagebox h2 span { color: #fff !important; } .pds-answer-feedback .pds-answer-feedback-bar { background-color: #666 !important; }

/* Skin fixes */ body:not(.skin-minerva) #p-personal li, body:not(.skin-minerva) #p-personal li a { filter: invert(1) hue-rotate(180deg); } textarea, .CodeMirror, .catlinks { background-image: none !important; }

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

/* 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, body #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, body span.fakelink, body .notice-template.maintenance#delete a:not(.new) { color: #009CFF; }

/* Desktop skins */ 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 { background-color: #ddd !important; } .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 bottom,transparent 0,#ddd 100%) !important; } html img.thumbimage { border-color: #2F3237 !important; }
 * 1) content, #content h1, #content h2, #content h3,
 * 2) content h4, #content h5, #content h6 {
 * 1) personal .dropdown::after, .sidebar-inner::before, .sidebar-inner::after,

/* 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; } body.skin-timeless #mw-header-container, body.skin-timeless #mw-header-nav-hack, body.skin-minerva .header-container.header-chrome, body.skin-minerva, body.skin-minerva #mw-mf-page-left, body.skin-minerva #mw-mf-page-center, body.skin-minerva .minerva-footer { background: #666 !important; } body.mediawiki.skin-minerva h2.list-header, body.skin-minerva .last-modified-bar, body.skin-minerva .last-modified-bar.active, body.mediawiki.skin-minerva form.mw-mf-settings #beta-field::before { background: #777 !important; } body.mediawiki.skin-minerva form.mw-mf-settings .oo-ui-fieldLayout, body.skin-minerva .minerva-footer, body.skin-minerva .last-modified-bar, body.skin-minerva footer > .post-content > h2 { border-color: #888 !important; } body.skin-minerva #mw-mf-page-left ul li a:hover { box-shadow: inset 4px 0 0 0 #999 !important; } body.skin-timeless, body.skin-timeless #mw-footer-container, body.skin-timeless #mw-footer-container a { color: #000 !important; background: #fff !important; } body.skin-timeless #personal .dropdown h3, body.skin-timeless #mw-page-header-links li.selected, body.skin-timeless #mw-site-navigation .sidebar-chunk h3, body.skin-timeless #mw-related-navigation .sidebar-chunk h3, body.skin-timeless #mw-content h1, body.skin-timeless #mw-content h2, body.skin-timeless #mw-content h1::after, body.skin-timeless #mw-content h2::after, body.skin-timeless #mw-content h1.firstHeading, body.skin-timeless #mw-content-container { border-color: #aaa !important; } body.skin-timeless .color-left, body.skin-timeless .color-middle, body.skin-timeless .color-right, body.skin-timeless #content-bottom-stuff, body.skin-timeless .catlinks, body.skin-timeless .suggestions .suggestions-result-current { background: #ccc !important; }