MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 167: | Line 167: | ||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
} | |||
} | |||
/* ========================= | |||
MOBILE HOME PAGE FIXES | |||
========================= */ | |||
@media screen and (max-width: 768px) { | |||
/* 1) Hide "Home" page title on main page */ | |||
body.page-Main_Page h1.firstHeading, | |||
body.page-Home h1.firstHeading { | |||
display: none !important; | |||
} | |||
/* 2) Make search box full width */ | |||
body.page-Main_Page .mw-search-form, | |||
body.page-Home .mw-search-form { | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
padding-left: 12px !important; | |||
padding-right: 12px !important; | |||
box-sizing: border-box !important; | |||
} | |||
body.page-Main_Page .mw-search-input, | |||
body.page-Home .mw-search-input, | |||
body.page-Main_Page input[type="search"], | |||
body.page-Home input[type="search"] { | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
box-sizing: border-box !important; | |||
} | |||
/* 3) Center buttons nicely */ | |||
body.page-Main_Page .mw-search-button, | |||
body.page-Home .mw-search-button { | |||
margin-top: 10px !important; | |||
} | } | ||
} | } | ||