MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 252:
/* ======================================================= */
/* 2. GLOBAL HIDE (READ-ONLY MODE) */
/* These elements are hidden for everyone by default. */
/* They are UNHIDDEN in MediaWiki:Group-user.css */
/* ======================================================= */
Line 260:
#p-personal,
#pt-login,
#pt-login-2, /* Sticky Header Login */
#pt-createaccount,
#pt-createaccount-2, /* Sticky Header Create Account */
#pt-userpage,
#pt-mytalk,
Line 273:
/* HIDE TOOLS (Sidebar, Dropdowns, Tabs) */
#p-tb, /* Toolbox */
#vector-page-tools, /* Vector 22 Sidebar */
#vector-page-tools-dropdown, /* Vector 22 Dropdown */
.vector-p-tb,
Line 382:
/* 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 394 ⟶ 388:
position: sticky;
top: 0;
/* Z-Index 99 is sufficient
z-index: 99;
background-color: #ffffff;
Line 401 ⟶ 395:
}
/* 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 410 ⟶ 404:
/* ======================================================= */
/* 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;
}
| |||