MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 131:
/* 1. DESKTOP FIX (Vector 2022 Skin) */
/* ======================================================= */
/* KeepThis this,section asworks youwell (confirmed it works perfectly) */
 
.vector-header-container {
position: fixed !important;
Line 143 ⟶ 144:
}
 
/* Push desktop content down so it doesn't hide behind header */
body.skin-vector-2022 {
padding-top: 60px;
Line 154 ⟶ 156:
/* ======================================================= */
 
/* A. StickyFIXED HeaderHEADER (Normal Reading Mode) */
/* We targetuse the'fixed' headerinstead ONLYof when'sticky' theto searchensure isit NOTNEVER active */disappears,
even if you scroll to the very bottom of a long article. */
@media (max-width: 991px) {
body:not(.mw-mf-search-mode) .header-container.header-chrome {
position: -webkit-stickyfixed !important; /* For iOS */
positiontop: sticky !important0;
topleft: 0 !important;
z-indexright: 99 !important0;
background-colorwidth: #ffffff !important100%;
z-index: 99; /* Low enough to not block popups */
border-bottom: 1px solid #eaecf0 !important;
background-color: #fff;
/* Note: width: 100% is REMOVED to fix the displaced icon bug */
border-bottom: 1px solid #eaecf0 !important;
}
 
/* PADDING COMPENSATOR */
/* Because the header is now fixed (floating), we must push the
page content down, otherwise the top of the article is hidden. */
body:not(.mw-mf-search-mode) #mw-mf-page-center {
padding-top: 55px !important; /* Adjust if your header is taller */
}
}
 
/* B. SearchSEARCH ModeMODE Reset"KILL SWITCH" (Crucial for Mobile) */
/* When you tap search, Minerva adds the class '.mw-mf-search-mode'.
/* When search is active, weWe explicitly forcereset the header back to "Static"'static'.
so the Minerva skin can handle the full-screen animation without our interference. */
This allows Minerva to take over and expand the search bar to
full screen naturally, fixing the "invisible text" and "hidden box" bugs. */
body.mw-mf-search-mode .header-container.header-chrome {
position: static !important;
border-bottom: none !important;
height: 100% !important; /* Allow full screen expansion */
}
 
/* C. ForceiOS TextINPUT VisibilityTEXT FIX */
/* ThisForces guarantees thesearch text insideto thebe searchblack, barovercoming is blackiOS andtransparency visiblebugs */
.minerva-header .search-box .search {
color: #000 !important;
opacity: 1 !important;
background-webkit-text-fill-color: #fff000 !important;
-webkit-text-fillbackground-color: #000fff !important; /* Fix for iOS Safari */
}