/* Colors */
@media screen {
:root {
--x-footer-border: #aa0038;
}
#searchInput {
outline-color: var(--x-link);
}
.suggestions .suggestions-result-current {
background-color: var(--x-accent);
}
.mw-body h1.firstHeading {
border-bottom-color: #013;
}
#mw-page-header-links li.selected {
color: #013;
border-bottom-color: #013;
}
#mw-page-header-links li:hover {
border-bottom-color: var(--x-link);
}
#mw-content-container {
border-bottom-color: var(--x-footer-border);
}
#mw-page-header-links li.new:hover {
border-bottom-color: var(--x-newlink);
}
}
@media screen {
/* Reduce padding in search bar */
#searchInput {
padding: 0 0.625em;
}
#searchButton, #mw-searchButton {
top: -0.1em; right: -0.125em;
}
/* Fix vertical alignment of Wikipedia logo */
#p-logo-text {
margin-top: -0.0625em;
}
/* Hide username outside of user dropdown */
#personal h2 span {
display: none;
}
/* Add margin below TOC title */
.toctogglecheckbox:not(:checked) ~ .toctitle {
margin-bottom: 1em;
}
/* Keep TOC width consistent when hidden */
.toctogglecheckbox:checked ~ ul {
display: block; visibility: collapse; height: 0; margin: 0;
}
/* Remove underline from header links */
#p-logo-text a:hover, #mw-page-header-links a:hover {
text-decoration: none;
}
}
@media screen and (max-width: 550px) {
/* Put Wikipedia logo on first line of header on narrower mobile screens */
#p-logo-text {
position: absolute;
top: 1.125em;
left: 3.5em;
}
}
@media screen and (max-width: 850px) {
/* Reduce horizontal spacing between alerts/notices icons and tools/user icons
* on mobile */
#personal-extra {
right: 7em;
}
}
@media screen and (min-width: 851px) and (max-width: 1099px) {
/* Remove border between first and second lines of header */
#mw-header-nav-hack {
border-top-color: transparent;
}
/* Fix vertical alignment of second line of header */
#mw-site-navigation, #mw-related-navigation {
margin-top: -0.375em;
}
}
/* Allow user menu icon to be styled with a CSS filter
* Note: PNGs are used beecause SVG background images do not get filtered. */
@media screen {
#personal h2 {
background: none;
}
#personal h2:before {
content: " ";
display: inline-block;
position: absolute; top: 7px; right: 27px;
width: 20px; height: 20px;
background-image: url("/w/skins/Timeless/resources/images/user-grey.png");
background-repeat: no-repeat;
filter: var(--js-accent-filter);
}
}
@media screen and (max-width: 850px) {
body #personal h2:before {
top: 0; right: 0px;
width: 30px; height: 30px;
background-image: url("/w/skins/Timeless/resources/images/user-large-grey.png");
}
}