MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. FIXED TOP COMMANDFLOATING BARSQUARES (Home44px -| Search#F8F9FA -Tone) TOC) */
/* ======================================================= */
 
/* --- A. THEHEADER WHITERESET BACKGROUND(Invisible STRIPContainer) --- */
/* We freeze the header container to act as the white background */
.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;
transformbox-shadow: none !important; /* STOP MediaWiki from hiding it on scroll */
pointer-events: none !important;
transform: none !important;
transition: none !important;
overflow: visible !important;
}
 
/* Push page content down so it starts below the bar */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { paddingmargin-top: 50px10px !important; }
}
.mw-body {
margin-top: 50px !important;
}
 
/* Hide the default Hamburger Menu and Search Inputelements */
.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,
/* We detach the logo and pin it to the screen */
#searchIcon,
.branding-box,
#cps-open-toc,
.branding-box a {
body.mw-mf-search-mode .minerva-header .search-box input {
position: fixed !important; /* Pin to Viewport */
/* 3% Black = ~#F8F9FA on white */
top: 0 !important;
leftbackground-color: rgba(0, 0, 0, 0.03) !important;
width: 60px !important;
height: 50px !important;
z-index: 1002 !important; /* Above the white strip */
/* Force Full Opacity & Strip Defaults */
display: flex !important;
align-itemsopacity: center1 !important;
background-image: none !important;
justify-content: center;
-webkit-appearance: none !important;
}
border: none !important;
 
box-shadow: none !important;
/* Hide text, show Icon */
backdrop-filter: none !important;
.branding-box a {
font-size: 0 !important;
colorborder-radius: transparent8px !important;
pointer-events: auto !important;
}
.branding-box a::before {
content: "⌂"; /* HouseSTANDARD 44px IconSIZING */
fontbox-sizesizing: 28pxborder-box !important;
colorwidth: #00044px !important;
margin-topheight: -4px44px !important;
padding: 0 !important;
margin: 0 !important;
}
 
/* --- C. BUTTON 21: SEARCH TRIGGER (FixedTOP CenterLEFT) --- */
/* We detach the search icon and pin it to the center */
#searchIcon {
position: fixed !important; /* Pin to Viewport */
top: 0 !important;
left: 50% !important;
transform: translateX(-50%) !important; /* Perfect Center */
/* ALIGNMENT: 8px Top */
width: 60px !important;
heighttop: 50px8px !important;
z-indexleft: 100210px !important;
right: auto !important;
/* FORCE SIZE RESET */
display: flex !important;
alignmin-itemswidth: center0 !important;
justifymin-contentheight: center0 !important;
backgroundmax-width: transparent44px !important;
bordermax-height: none44px !important;
box-shadow: none !important;
marginz-index: 01003 !important;
paddingdisplay: 0flex !important; align-items: center; justify-content: center;
}
 
/* IconSearch StyleIcon */
#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) --- */
/* We pin your TOC button to the top right */
#cps-open-toc {
display: flex !important;
position: fixed !important; /* Pin to Viewport */
top: 3px8px !important;
right: 5px !important;
bottom: auto !important; /* Override old bottom setting */
left: auto !important;
/* Position: 100px from right edge */
width: 44px !important;
heightright: 44px100px !important;
z-indexleft: 1002auto !important; bottom: auto !important;
backgroundz-index: transparent1002 !important;
color: #000fff !important; /* Black icon */
align-items: center; justify-content: center;
box-shadow: none !important;
}
 
/* TOC Icon */
/* --- E. THE REAL SEARCH BAR (The Drawer) --- */
#cps-open-toc .icon { font-size: 24px !important; }
/* When search is clicked, the input box appears BELOW the header */
 
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
/* 1. Reset the container visibility */
.branding-box {
body.mw-mf-search-mode .minerva-header .search-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;
visibilityline-height: visible1 !important;
opacity: 1 !important;
}
 
/* 2. PositionThe theLink DrawerOverlay */
.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: 50px8px !important; /* Starts exactly where header ends */
leftheight: 044px !important;
rightz-index: 01001 !important;
height: auto !important;
padding: 10px !important;
background-colorleft: #f0f0f010px !important; /* Light grey drawer background */
border-bottomright: 1px10px solid #ccc!important;
z-index: 999 !important; /* Below the buttons, but above content */
width: auto !important;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 3. Style the Input FieldPill */
body.mw-mf-search-mode .minminerva-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;
}