MediaWiki:Mobile.css
Jump to navigation
Jump to search
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.
/* ===== CLEAN TOP AREA (remove white gap) ===== */
.mw-mf-page-center,
.header-container,
.minerva-header {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* ===== Hide top bars on Home page ===== */
.page-Home .minerva__tabs,
.page-Home .minerva__navigation,
.page-Home .minerva__header {
display: none !important;
}
/* ===== Logo large & centered ===== */
.page-Home img {
max-width: 90% !important;
height: auto !important;
}
/* ===== Big heading ===== */
.page-Home h1 {
font-size: 28px !important;
text-align: center !important;
}
/* ===== Fix search bar overflow on mobile ===== */
.page-Home form,
.page-Home .mw-search-form {
max-width: 100% !important;
padding: 0 12px !important;
box-sizing: border-box !important;
}
/* Search input */
.page-Home input[type="search"],
.page-Home input[type="text"] {
width: 100% !important;
max-width: 100% !important;
font-size: 17px !important;
padding: 12px !important;
box-sizing: border-box !important;
}
/* Buttons alignment */
.page-Home input[type="submit"],
.page-Home button {
font-size: 15px !important;
padding: 8px 12px !important;
margin-top: 6px !important;
}
/* ===== Remove footer junk (last edited, license etc.) ===== */
.page-Home #footer-info,
.page-Home #footer-places,
.page-Home .last-modified-bar,
.page-Home .printfooter {
display: none !important;
}