Jump to content

MediaWiki:Minerva.css: Difference between revisions

No edit summary
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 */
/* Fix overlapping logo on mobile and clean up header layout */
.minerva-header {
.skin-minerva .minerva-header {
     display: flex !important;
     display: flex !important;
     flex-direction: column !important;
     flex-direction: column !important;
     align-items: center !important;
     align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 0.5em;
}
}


.minerva-header .mw-logo {
/* Center the logo and make it responsive */
     order: -1; /* move logo to the top */
.skin-minerva .minerva-header .mw-logo {
    width: 100%;
     display: block !important;
     text-align: center;
     text-align: center !important;
     margin-bottom: 0.3em;
     margin: 0 auto 0.25em auto !important;
    width: auto !important;
}
}


.minerva-header .mw-logo img {
.skin-minerva .minerva-header .mw-logo img {
     max-width: 180px;
     max-width: 160px !important;
     height: auto;
     height: auto !important;
     display: inline-block;
     display: inline-block !important;
}
}


/* Ensure icons (hamburger/search/profile) appear below logo and stay centered */
/* Properly align menu icons under the logo */
.minerva-header .header {
.skin-minerva .minerva-header .minerva-user-navigation,
    width: 100%;
.skin-minerva .minerva-header .minerva-menu {
     display: flex;
     display: flex !important;
     justify-content: center !important;
     justify-content: center !important;
     align-items: center !important;
     width: 100% !important;
     flex-wrap: wrap;
     margin-top: 0.2em !important;
}
}


.minerva-header .minerva-icon,
/* Prevent overlap and spacing issues */
.minerva-header .toggle-list {
.skin-minerva .minerva-header .minerva-user-navigation a,
     margin: 0 6px;
.skin-minerva .minerva-header .minerva-menu a {
     margin: 0 6px !important;
}
}


/* Add a bit of top padding so the logo isn’t squished under the URL bar */
@media (max-width: 720px) {
body.skin-minerva {
    .skin-minerva .minerva-header {
    padding-top: 0.5em;
        flex-wrap: wrap !important;
    }
}
}