MediaWiki:Minerva.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.
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* Center and stack the logo above the Minerva mobile header icons */
.minerva-header {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
}
.minerva-header .mw-logo {
order: -1; /* move logo to the top */
width: 100%;
text-align: center;
margin-bottom: 0.3em;
}
.minerva-header .mw-logo img {
max-width: 180px;
height: auto;
display: inline-block;
}
/* Ensure icons (hamburger/search/profile) appear below logo and stay centered */
.minerva-header .header {
width: 100%;
display: flex;
justify-content: center !important;
align-items: center !important;
flex-wrap: wrap;
}
.minerva-header .minerva-icon,
.minerva-header .toggle-list {
margin: 0 6px;
}
/* Add a bit of top padding so the logo isn’t squished under the URL bar */
body.skin-minerva {
padding-top: 0.5em;
}