MediaWiki:Common.css: Difference between revisions
mNo edit summary |
explicit dark mode, rm `important` and set colors for menu |
||
| Line 1: | Line 1: | ||
/* only public wiki - hide talk link */ | /* only public wiki - hide talk link */ | ||
:root { | |||
color-scheme: dark; | |||
} | |||
.minerva__tab-container { | .minerva__tab-container { | ||
display: none; | display: none; | ||
| Line 16: | Line 20: | ||
} | } | ||
/* body { | |||
body { | |||
background-image:url(-) !important; | background-image:url(-) !important; | ||
} | } | ||
| Line 25: | Line 28: | ||
background-image: unset !important; | background-image: unset !important; | ||
} | } | ||
*/ | |||
/* <span class="light-bg"> for transparent images */ | /* <span class="light-bg"> for transparent images */ | ||
.light-bg { | .light-bg { | ||
background-color: #fff; | background-color: #fff; | ||
} | |||
/* Search input — Minerva header and JS overlay */ | |||
.minerva-search-form .search, | |||
.search-box .search, | |||
.search-overlay .search, | |||
input[type="search"] { | |||
background-color: #343739; | |||
color: #f8f9fa; | |||
border-color: #555; | |||
} | |||
.minerva-search-form .search::placeholder, | |||
.search-box .search::placeholder, | |||
input[type="search"]::placeholder { | |||
color: #aaa; | |||
} | |||
/* Search results overlay background */ | |||
.search-overlay, | |||
.overlay-content, | |||
.search-overlay .results { | |||
background-color: #222; | |||
color: #fff; | |||
} | } | ||
| Line 49: | Line 77: | ||
body table.prettytable > * > tr > th, | body table.prettytable > * > tr > th, | ||
body table.prettytable > * > tr > td { | body table.prettytable > * > tr > td { | ||
background-color: #333 | background-color: #333; | ||
border-color: #000 | border-color: #000; | ||
} | } | ||
| Line 72: | Line 100: | ||
} | } | ||
#mw-script-doc { | #mw-script-doc { | ||
background-color: #222 | background-color: #222; | ||
} | } | ||
| Line 101: | Line 129: | ||
border: 0; | border: 0; | ||
} | } | ||
fmbox-warning { | |||
background-color: #794747; | background-color: #794747; | ||
} | } | ||
| Line 108: | Line 136: | ||
.extiw a, .extiw a:visited, .branding-box a, .branding-box a:visited, | .extiw a, .extiw a:visited, .branding-box a, .branding-box a:visited, | ||
.pBody ul li a, .pBody ul li a:visited, .subpages a, .subpages a:visited, body a, body a:visited, a, a:visited { | .pBody ul li a, .pBody ul li a:visited, .subpages a, .subpages a:visited, body a, body a:visited, a, a:visited { | ||
color: #ec7 | color: #ec7; | ||
} | } | ||
| Line 115: | Line 143: | ||
} | } | ||
mw-kartographer-autostyled { | |||
color: #fff | color: #fff; | ||
} | } | ||
| Line 135: | Line 163: | ||
#mw-panel | #mw-panel | ||
{ | { | ||
background-image: none | background-image: none; | ||
background-color: #444 | background-color: #444; | ||
} | } | ||
.vector-menu-tabs li { | .vector-menu-tabs li { | ||
background-image: unset | background-image: unset; | ||
background-color: #444 | background-color: #444; | ||
} | } | ||
| Line 147: | Line 175: | ||
background-color: #333; | background-color: #333; | ||
} | } | ||
.mw-sidebar-action .mw-sidebar-action-item mw-sidebar-action-heading, | |||
body .vector-menu-portal .vector-menu-heading { | body .vector-menu-portal .vector-menu-heading { | ||
color: #fff; | color: #fff; | ||
} | } | ||