MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary Tag: Reverted |
||
Line 129:
/* ======================================================= */
/* 1. DESKTOP
/* ======================================================= */
/*
.vector-header-container {
position: fixed !important;
Line 144 ⟶ 143:
}
body.skin-vector-2022 {
padding-top: 60px;
Line 153 ⟶ 151:
/* ======================================================= */
/* 2. MOBILE
/* ======================================================= */
/* A. Sticky Header (Normal Reading Mode) */
/* We
@media (max-width: 991px) {
body:not(.mw-mf-search-mode) .header-container.header-chrome {▼
position: -webkit-sticky !important; /* For iOS */▼
position: sticky !important;▼
top: 0 !important;▼
z-index: 99 !important; ▼
background-color: #ffffff !important;▼
border-bottom: 1px solid #eaecf0 !important;▼
▲body:not(.mw-mf-search-mode) .header-container.header-chrome {
/* Note: width: 100% is REMOVED to fix the displaced icon bug */
▲ position: -webkit-sticky;
▲ }
▲ position: sticky;
}
▲ top: 0;
/* B. Search Mode Reset (Crucial) */
▲ z-index: 99;
/* When search is active, we explicitly force the header back to "Static"
▲ background-color: #ffffff;
so the Minerva skin can handle the full-screen animation without our interference. */
▲ border-bottom: 1px solid #eaecf0;
position: static !important;
border-bottom: none !important;
}
/* C. Force Text Visibility */
/* This guarantees the text inside the search bar is black and visible */
.minerva-header .search-box .search {
color: #000 !important;
▲body:not(.mw-mf-search-mode) .minerva-header .search-box {
-webkit-text-fill-color: #000 !important; /* Fix for iOS Safari */
}
| |||