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