MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 129:
 
/* ======================================================= */
/* 1. DESKTOP FIXSTICKY HEADER (Vector 2022 Skin) */
/* ======================================================= */
/* This part works perfectly, as confirmed. */
/* Confirmed working */
 
.vector-header-container {
Line 144:
}
 
/* Pushes article content down so it isn't hidden behind the fixed header */
body.skin-vector-2022 {
padding-top: 60px;
Line 152 ⟶ 153:
 
/* ======================================================= */
/* 2. MOBILETOP FIXFLOATING SQUARES (Minerva Skin) 44px | #F8F9FA Tone) */
/* ======================================================= */
 
/* --- A. FIXED HEADER RESET (NormalInvisible Reading ModeContainer) --- */
.header-container.header-chrome {
/* Targeted via Media Query to ensure it doesn't touch Desktop */
position: fixed !important;
@media (max-width: 991px) {
top: 0 !important; left: 0 !important; right: 0 !important;
body:not(.mw-mf-search-mode) .header-container.header-chrome {
positionheight: fixed60px !important;
z-index: 1000 top: 0!important;
background: transparent !important;
border: none !important;
/* FIX FOR DISPLACED ICON:
box-shadow: none !important;
Instead of width: 100%, we anchor left and right to 0.
pointer-events: none !important;
This ensures the bar stretches to the exact screen width
transform: none !important;
without adding extra padding that pushes the icon off-edge. */
lefttransition: 0none !important;
rightoverflow: 0visible !important;
width: auto !important;
z-index: 99;
background-color: #fff;
border-bottom: 1px solid #eaecf0;
}
 
/* PADDING COMPENSATOR */
/* Push content down so the top isn't hidden behind the fixed header */
body:not(.mw-mf-search-mode) #mw-mf-page-center {
padding-top: 60px !important;
}
}
 
/* Push content down */
/* B. SEARCH MODE (The "Full Reset") */
body.skin-minerva { padding-top: 60px !important; }
/* When search is active, we must convert the header from "Fixed Bar"
.mw-body { margin-top: 10px !important; }
to "Full Screen Overlay" so the input text and results work naturally. */
 
html.mw-mf-search-mode .header-container.header-chrome,
/* Hide default elements */
body.mw-mf-search-mode .header-container.header-chrome {
.header-container .navigation-drawer { positiondisplay: absolutenone !important; }
 
top: 0 !important;
/* --- B. COMMON SQUARE STYLE (0.03 Transparency for #F8F9FA) --- */
left: 0 !important;
.branding-box,
right: 0 !important;
#searchIcon,
bottom: 0 !important;
#cps-open-toc,
height: 100vh !important; /* Force full height */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
z-index:/* 10003% !important;Black /*= Bring~#F8F9FA toon frontwhite */
background-color: rgba(0, 0, 0, 0.03) !important;
/* Force Full Opacity & Strip Defaults */
opacity: 1 !important;
background-image: none !important;
-webkit-appearance: none !important;
border: none !important;
overflowbox-shadow: hiddennone !important;
backdrop-filter: none !important;
border-radius: 8px !important;
pointer-events: auto !important;
/* STANDARD 44px SIZING */
box-sizing: border-box !important;
width: 44px !important;
height: 44px !important;
padding: 0 !important;
margin: 0 !important;
}
 
/* --- C. BUTTON 1: SEARCH TRIGGER (TOP LEFT) --- */
/* C. VISIBILITY ENFORCER */
#searchIcon {
/* Force the text color to black and ensure input is on top */
position: fixed !important;
.minerva-header .search-box .search {
color: #000 !important;
/* ALIGNMENT: 8px Top */
-webkit-text-fill-color: #000 !important; /* iOS Safari Fix */
top: 8px !important;
left: 10px !important;
right: auto !important;
/* FORCE SIZE RESET */
min-width: 0 !important;
min-height: 0 !important;
max-width: 44px !important;
max-height: 44px !important;
z-index: 1003 !important;
display: flex !important; align-items: center; justify-content: center;
}
 
/* Search Icon */
#searchIcon .minerva-icon {
font-size: 24px !important;
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
background-color: #fff !important;
margin: 0 !important;
}
 
/* --- D. BUTTON 2: TOC (RIGHT - 100px SPACE) --- */
#cps-open-toc {
display: flex !important;
position: fixed !important;
top: 8px !important;
/* Position: 100px from right edge */
right: 100px !important;
left: auto !important; bottom: auto !important;
z-index: 1002 !important;
color: #fff !important;
align-items: center; justify-content: center;
}
 
/* TOC Icon */
#cps-open-toc .icon { font-size: 24px !important; }
 
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box {
position: fixed !important;
top: 8px !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 154px !important;
left: auto !important;
z-index: 1002 !important;
display: flex !important;
align-items: center;
justify-content: center;
}
 
/* 1. The Home Icon (Bold & White) */
.branding-box::after {
content: "⌂";
font-size: 30px !important;
color: #fff !important;
-webkit-text-stroke: 1px #fff !important;
margin-top: -6px !important;
display: block !important;
line-height: 1 !important;
}
 
/* 2. The Link Overlay */
.branding-box a {
position: absolute !important;
top: 0 !important; left: 0 !important;
width: 100% !important; height: 100% !important;
opacity: 0 !important;
z-index: 2 !important;
}
.branding-box a * { display: none !important; }
.branding-box a::before { display: none !important; }
 
/* --- F. THE SEARCH INPUT --- */
 
/* 1. Hide initially */
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* 2. Position Wrapper */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
position: fixed !important;
top: 8px !important;
height: 44px !important;
z-index: 1001 !important;
left: 10px !important;
right: 10px !important;
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 3. Style Input Pill */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
height: 44px !important;
border-radius: 8px !important;
box-sizing: border-box !important;
/* Background matches buttons */
background-color: rgba(0, 0, 0, 0.03) !important;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
font-size: 16px !important;
/* PADDING: 44px (Button) + 11px (Gap) */
padding-left: 55px !important;
padding-right: 55px !important;
margin: 0 !important;
}
 
/* 4. Hide Inner Icon */
.minerva-header .search-box .search-box-icon-overlay {
display: none !important;
}
 
/* 5. Placeholder */
body.mw-mf-search-mode .minerva-header .search-box input::placeholder {
color: rgba(255, 255, 255, 0.7) !important;
-webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
}
 
/* 6. Cancel "X" Button */
.search-box .search-box-cancel {
display: block !important;
position: absolute !important;
top: 0 !important;
right: 0 !important;
width: 44px !important;
height: 44px !important;
line-height: 44px !important;
text-align: center !important;
color: #fff !important;
z-index: 1004 !important;
}