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.
/* ===== Final Fix: Remove top empty space in Vector 2022 header ===== */
/* Collapsible section toggle styling */
.mw-collapsible-toggle {
background: #f8f9fa;
border: 1px solid #a2a9b1;
padding: 8px;
cursor: pointer;
font-weight: bold;
margin-bottom: 5px;
text-align: center;
border-radius: 4px;
}
.mw-collapsible-content {
padding: 5px;
}
/* Remove unwanted padding and min-height in Vector 2022 header */
.vector-header,
.vector-header-container,
.vector-sticky-header {
padding: 0 !important;
margin: 0 !important;
height: auto !important;
min-height: 0 !important;
}
/* Logo wrapper adjustments to align with search bar */
.vector-header-start {
display: flex !important;
align-items: flex-start !important; /* Align logo to top inside container */
justify-content: center !important;
padding-top: 10px !important; /* Adjust this value (8px, 10px, 12px) to align with search bar */
padding-bottom: 0 !important;
margin: 0 !important;
height: auto !important;
}
/* Logo adjustments */
.vector-header-logo,
.mw-logo-icon {
width: 120px !important; /* Adjust size as needed */
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: top center !important;
display: flex !important;
align-items: flex-start !important;
justify-content: center !important;
padding: 0 !important;
margin: 0 !important;
height: auto !important;
}
/* Hide site title in Vector 2022 */
.vector-header .vector-header-start .mw-logo-wordmark,
.vector-header .vector-header-start .mw-logo-wiki-name {
display: none !important;
}