MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 157:
/* We apply 'position: sticky' ONLY when the search overlay is CLOSED.
The ':not(.mw-mf-search-mode)' part is the magic switch.
*/
body:not(.mw-mf-search-mode) .header-container.header-chrome {
Line 169 ⟶ 163:
position: sticky;
top: 0;
/* Z-Index 99 is sufficient
z-index: 99;
background-color: #ffffff;
Line 176 ⟶ 170:
}
/* Safeguard: Ensure the search box sits on top of the white header background
so text doesn't get buried behind it.
*/
body:not(.mw-mf-search-mode) .minerva-header .search-box {
Line 185 ⟶ 179:
/* ======================================================= */
/* FIX: MOBILE SEARCH INPUT VISIBILITY (THE NUCLEAR
/* ======================================================= */
/* 1.
body.mw-mf-search-mode .header-container.header-chrome {
z-index: 1000 !important;
▲ background-color: #fff !important;
}
/* 2.
We use [type="search"] to target the REAL input, not the "trigger"
body.mw-mf-search-mode .minerva-header .search-box input.search {▼
*/
z-index: 1001 !important; /* Sit on top of the header */▼
position: relative !important; /* Ensure it respects z-index */▼
-webkit-text-fill-color: #
background: #ffffff !important;
box-shadow: none !important;
}
/* 3. Ensure the placeholder text is also visible
body.mw-mf-search-mode .minerva-header .search-box input
color: #72777d !important;
opacity: 1 !important;
-webkit-text-fill-color: #72777d !important;
}
/* 4. Force the Form container to be visible and have height */
body.mw-mf-search-mode .search-box form {
display: block !important;
visibility: visible !important;
height: auto !important;
margin: 0 !important;
}
| |||