MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. FIXED TOP COMMANDFLOATING BARSQUARES (Home44px -| Search#F8F9FA - TOCTone) - FIXED */
/* ======================================================= */
 
/* --- A. THEHEADER WHITERESET BACKGROUND(Invisible STRIPContainer) --- */
.header-container.header-chrome {
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
leftheight: 060px !important;
right: 0 !important;
height: 50px !important;
z-index: 1000 !important;
background-color: #fffffftransparent !important;
border-bottom: 1px solid #eaecf0none !important;
box-shadow: none !important;
pointer-events: none !important;
/* CRITICAL FIXES: */
transform: none !important; /* Stop scrolling logic */
transition: none !important;
overflow: visible !important; /* Allow search drawer to hang out the bottom */
}
 
/* Push page content down */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { paddingmargin-top: 50px10px !important; }
}
.mw-body {
margin-top: 50px !important;
}
 
/* Hide unwanteddefault elements */
.header-container .navigation-drawer, { display: none !important; }
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* --- B. BUTTONCOMMON 1:SQUARE HOMESTYLE (Fixed0.03 LeftTransparency for #F8F9FA) --- */
.branding-box, .branding-box a {
#searchIcon,
position: fixed !important;
#cps-open-toc,
top: 0 !important;
body.mw-mf-search-mode .minerva-header .search-box input {
left: 0 !important;
/* 3% Black = ~#F8F9FA on white */
width: 60px !important;
heightbackground-color: 50pxrgba(0, 0, 0, 0.03) !important;
z-index: 1002 !important; /* Above the strip */
/* Force Full Opacity & Strip Defaults */
display: flex !important;
align-itemsopacity: center1 !important;
background-image: none !important;
justify-content: center;
-webkit-appearance: none !important;
}
.branding-box a { font-size: 0 !important; colorborder: transparentnone !important; }
box-shadow: none !important;
.branding-box a::before {
backdrop-filter: none !important;
content: "⌂";
font-size: 28px;
colorborder-radius: #0008px !important;
marginpointer-topevents: -4pxauto !important;
/* STANDARD 44px SIZING */
box-sizing: border-box !important;
width: 44px !important;
height: 44px !important;
padding: 0 !important;
margin: 0 !important;
}
 
/* --- C. BUTTON 21: SEARCH TRIGGER (FixedTOP CenterLEFT) --- */
#searchIcon {
position: fixed !important;
top: 0 !important;
/* ALIGNMENT: 8px Top */
left: 50% !important;
transformtop: translateX(-50%)8px !important;
widthleft: 60px10px !important;
heightright: 50pxauto !important;
z-index: 1002 !important;
/* FORCE SIZE RESET */
display: flex !important;
alignmin-itemswidth: center0 !important;
justifymin-contentheight: center0 !important;
backgroundmax-width: transparent44px !important;
bordermax-height: none44px !important;
margin: 0 !important; padding: 0 !important;
boxz-shadowindex: none1003 !important;
display: flex !important; align-items: center; justify-content: center;
}
 
/* Search Icon */
#searchIcon .minerva-icon {
font-size: 24px !important;
color: #000fff !important;
opacityfill: 0.7#fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- D. BUTTON 32: TOC (FixedRIGHT Right- 100px SPACE) --- */
#cps-open-toc {
display: flex !important;
position: fixed !important;
top: 3px8px !important;
right: 5px !important;
/* Position: 100px from right edge */
bottom: auto !important;
leftright: auto100px !important;
widthleft: 44pxauto !important; bottom: auto !important;
height: 44px !important;
z-index: 1002 !important;
backgroundcolor: transparent#fff !important;
align-items: center; justify-content: center;
color: #000 !important;
box-shadow: none !important;
}
 
/* TOC Icon */
/* --- E. THE REAL SEARCH BAR (The Drawer) --- */
#cps-open-toc .icon { font-size: 24px !important; }
 
/* 1.--- TargetE. theBUTTON FORM3: container,HOME not(LEFT justOF theTOC) input--- */
.branding-box {
/* We force the entire form wrapper to drop down below the header */
body.mw-mf-search-mode .minerva-search-form {
display: block !important;
position: fixed !important;
top: 50px8px !important; /* Pushes it exactly below the toolbar */
left: 0 !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 0 !important;
z-indexright: 999154px !important; /* Below the toolbar buttons */
marginleft: 0auto !important;
padding: 0 !important;
heightz-index: auto1002 !important;
display: flex !important;
align-items: center;
justify-content: center;
}
 
/* 21. TargetThe theHome innerIcon Box(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: relativefixed !important; /* Relative to the form above */
top: 08px !important;
widthheight: 100%44px !important;
paddingz-index: 10px1001 !important;
background-color: #f0f0f0 !important; /* Grey drawer background */
border-bottomleft: 1px10px solid #ccc!important;
right: 10px !important;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
box-sizing: border-box !important;
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 3. Style the Input FieldPill */
body.mw-mf-search-mode .minerva-header .search-box input {
display: block !important;
width: 100% !important;
height: 40px44px !important;
paddingborder-leftradius: 10px8px !important;
backgroundbox-sizing: #fffborder-box !important;
color: #000 !important;
/* Background matches buttons */
border: 1px solid #ccc !important;
borderbackground-radiuscolor: 4pxrgba(0, 0, 0, 0.03) !important;
-webkit-appearance: none !important;
opacitycolor: 1#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 duplicateInner icons inside the drawerIcon */
body.mw-mf-search-mode .minerva-header .search-box .search-box-icon-overlay {
display: none !important;
}
 
/* 5. Placeholder */
/* 5. Dim the Search Trigger Button while searching */
body.mw-mf-search-mode #searchIcon.minerva-header .search-box input::placeholder {
opacitycolor: rgba(255, 255, 255, 0.27) !important;
-webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
pointer-events: none;
}
 
/* 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;
}