MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
Vector 2022: Center header search WITHOUT moving user tools
========================================================= */
/* Use Vector's real header row as the layout context */
.vector-header {
position: relative !important;
display: flex !important;
align-items: center !important;
}
/* Force the right-side tools to remain FAR RIGHT */
.vector-header-end {
margin-left: auto !important;
display: flex !important;
align-items: center !important;
justify-content: flex-end !important;
}
/* Center ONLY the actual search box (do NOT touch wrappers like [role="search"]) */
.vector-header .vector-search-box,
.vector-header .vector-search-box-vue,
.vector-header #p-search {
position: absolute !important;
left: 38.7% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
margin: 0 !important;
z-index: 1 !important;
width: min(620px, calc(100vw - 760px)) !important;
}
/* Keep user tools clickable above any overlap */
.vector-header-end,
.vector-user-links,
.vector-user-menu,
#p-personal {
position: relative !important;
z-index: 2 !important;
}
/* Mobile: revert to normal flow */
@media (max-width: 900px) {
.vector-header .vector-search-box,
.vector-header .vector-search-box-vue,
.vector-header #p-search {
position: static !important;
transform: none !important;
width: 100% !important;
margin-top: 8px !important;
}
}
/* =========================================================
Lumenward visual policy (grayscale-only)
========================================================= */
/* Logo text always black */
.mw-logo a,
.mw-logo a:visited,
.mw-logo a:hover,
.mw-logo a:active {
color: #000 !important;
text-decoration: none !important;
}
/* Links: grayscale only */
a { color: #111 !important; }
a:visited { color: #333 !important; }
a:hover,
a:focus {
color: #111 !important;
text-decoration: underline !important;
}
/* TOC links specifically */
.vector-toc a,
.vector-toc a:visited,
#toc a,
#toc a:visited {
color: #111 !important;
}
/* Footer centered on every page */
#footer { text-align: center !important; }
#footer ul,
#footer-info,
#footer-places,
#footer-icons {
float: none !important;
display: inline-block !important;
text-align: center !important;
margin-left: auto !important;
margin-right: auto !important;
}
#footer li {
float: none !important;
display: inline !important;
margin: 0 8px !important;
}
/* Base infobox styling */
.infobox {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 0;
color: #202122;
}
/* Header/title row */
.infobox th,
.infobox > tbody > tr:first-child > td {
background: #eaecf0;
border-bottom: 1px solid #a2a9b1;
font-weight: 600;
}
/* Image cell */
.infobox img {
background: #ffffff;
border: 1px solid #c8ccd1;
}
/* Label cells */
.infobox td:first-child {
color: #54595d;
font-weight: 600;
}
/* Value cells */
.infobox td:last-child {
color: #202122;
}
/* Row separators */
.infobox tr + tr td {
border-top: 1px solid #eaecf0;
}