MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 129:
/* ======================================================= */
/*
/* ======================================================= */
/* Apply sticky ONLY when search is CLOSED.
We use :not(.mw-mf-search-mode) to disable sticky positioning
the moment you click search. This prevents the "white screen"
display: none !important;▼
and "invisible text" bugs by letting the native full-screen
}▼
search work exactly as designed. */
body:not(.mw-mf-search-mode) .header-container.header-chrome {▼
display: none !important;▼
/* ======================================================= */▼
/* ======================================================= */▼
▲ position: -webkit-sticky; /* Safari */
position: sticky;
top: 0;
/* Z-Index: 999 sits above images/text, but below your
z-index: 999;
/* Background must be white to cover scrolling text */
background-color: #fff;
border-bottom: 1px solid #eaecf0;
Line 170 ⟶ 152:
}
/*
Just in case, we force the text to be black so it is never invisible. */
.minerva-header .search-box .search {
▲}
▲/* ======================================================= */
▲body.mw-mf-search-mode .header-container.header-chrome {
/* 2. DESKTOP STICKY HEADER (Vector 2022 Skin) */
▲/* ======================================================= */
/* This targets the main top bar in Vector 2022 */
position: -webkit-sticky;
position: sticky;
top: 0;
/* Z-Index: 100 ensures it stays above the article content
but doesn't block higher priority modals */
z-index: 100;
/* Ensure background is solid white */
background-color: #ffffff;
/* Add a subtle shadow so you can see where the header ends */
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
| |||