MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 410: | Line 410: | ||
} | } | ||
/* | //* Fix logo and menu alignment on mobile */ | ||
@media (max-width: | @media screen and (max-width: 720px) { | ||
. | /* Center the header content */ | ||
display: | .mw-header, .minerva-header { | ||
display: flex !important; | |||
flex-direction: column !important; | |||
align-items: center !important; | |||
justify-content: center !important; | |||
} | } | ||
/* Center the logo itself */ | |||
#p-logo a, .mw-logo a, .mw-logo-wordmark { | |||
display: block !important; | display: block !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
text-align: center !important; | |||
} | } | ||
/* | /* Add spacing below logo so it doesn’t crowd the menu */ | ||
#p-logo, .mw-logo-container { | |||
margin-bottom: 0.5em !important; | |||
margin: 0 | |||
} | } | ||
/* | /* Center the hamburger/search row underneath */ | ||
. | .minerva-header .menu-toggle, | ||
.minerva-header .search-toggle { | |||
margin: 0.2em auto !important; | |||
} | } | ||
} | } | ||