MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. FIXED TOP TOOLBARFLOATING SQUARES (The44px "Mode| Switch"#F8F9FA SolutionTone) */
/* ======================================================= */
 
/* --- A. READINGHEADER MODERESET (TheInvisible Sticky ToolbarContainer) --- */
.header-container.header-chrome {
/* We style the header strictly when NOT searching */
body:not(.mw-mf-search-mode) .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;
/* Force layout */
displaytransform: flexnone !important;
align-items: center;
justify-content: center;
transform: none !important; /* Stop hiding on scroll */
transition: none !important;
overflow: visible !important;
}
 
/* Push content down so it isn't hidden behind the bar */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { paddingmargin-top: 50px10px !important; }
 
/* Hide default elements */
.header-container .navigation-drawer { display: none !important; }
 
/* --- B. COMMON SQUARE STYLE (0.03 Transparency for #F8F9FA) --- */
.branding-box,
#searchIcon,
#cps-open-toc,
body.mw-mf-search-mode .minerva-header .search-box input {
/* 3% Black = ~#F8F9FA on white */
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;
box-shadow: none !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) --- */
/* Hide standard elements during reading mode */
#searchIcon {
body:not(.mw-mf-search-mode) .header-container .navigation-drawer,
position: fixed !important;
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
/* ALIGNMENT: 8px Top */
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 */
/* --- B. CUSTOM BUTTONS (Visible ONLY when Reading) --- */
#searchIcon .minerva-icon {
font-size: 24px !important;
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* 1--- D. HOME BUTTON 2: TOC (LeftRIGHT - 100px SPACE) --- */
#cps-open-toc {
body:not(.mw-mf-search-mode) .branding-box {
position: absolute !important;
top: 0; left: 0;
width: 60px; height: 50px;
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;
z-index: 1002;
}
 
body:not(.mw-mf-search-mode) .branding-box a {
/* TOC Icon */
font-size: 0 !important; color: transparent !important;
#cps-open-toc .icon { font-size: 24px !important; }
}
 
body:not(.mw-mf-search-mode) .branding-box a::before {
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
content: "⌂"; font-size: 28px; color: #000; margin-top: -4px;
.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;
}
 
/* 21. SEARCHThe TRIGGERHome Icon (CenterBold & White) */
.branding-box::after {
body:not(.mw-mf-search-mode) #searchIcon {
content: "⌂";
position: absolute !important;
font-size: 30px !important;
top: 0; left: 50%;
transformcolor: translateX(-50%)#fff !important;
-webkit-text-stroke: 1px #fff !important;
width: 60px; height: 50px;
displaymargin-top: flex-6px !important;
display: block !important;
align-items: center; justify-content: center;
zline-indexheight: 10021 !important;
background: transparent !important;
border: none; margin: 0; padding: 0;
box-shadow: none;
}
body:not(.mw-mf-search-mode) #searchIcon .minerva-icon {
font-size: 24px; color: #000; opacity: 0.7;
}
 
/* 32. TOCThe BUTTONLink (Right)Overlay */
.branding-box a {
body:not(.mw-mf-search-mode) #cps-open-toc {
display: flex !important;
position: absolute !important;
top: 3px0 !important; rightleft: 5px0 !important;
bottomwidth: auto100% !important; leftheight: auto100% !important;
opacity: 0 !important;
width: 44px; height: 44px;
z-index: 10022 !important;
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
}
.branding-box a * { display: none !important; }
.branding-box a::before { display: none !important; }
 
/* --- CF. THE SEARCH MODE (The "Transparent" Fix)INPUT --- */
/* When search activates, we HIDE the custom buttons so they don't block the view */
 
/* 1. Hide the Custom Buttonsinitially */
body:not(.mw-mf-search-mode) .brandingminerva-header .search-box, {
body.mw-mf-search-mode #searchIcon,
body.mw-mf-search-mode #cps-open-toc {
display: none !important;
}
 
/* 2. Position Wrapper */
/* 2. Reset Header to allow Standard Search Bar */
/* We remove the fixed height so the search bar can fit naturally */
body.mw-mf-search-mode .header-container.header-chrome {
position: fixed !important;
top: 0 !important;
height: auto !important; /* Let it grow */
min-height: 50px !important;
background-color: #ffffff !important;
z-index: 1000 !important;
border-bottom: 1px solid #eaecf0;
}
 
/* 3. Show the Real Search Bar */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
opacityposition: 1fixed !important;
visibilitytop: visible8px !important;
backgroundheight: #fff44px !important;
paddingz-index: 8px1001 !important;
left: 10px !important;
right: 10px !important;
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 43. Style the Input Text (Make sure it's black)Pill */
body.mw-mf-search-mode .minerva-header .search-box input {
colorwidth: #000000100% !important;
-webkit-text-fill-colorheight: #00000044px !important;
opacityborder-radius: 18px !important;
backgroundbox-sizing: #fffborder-box !important;
border: 1px solid #ccc !important;
/* Background matches buttons */
border-radius: 4px !important;
heightbackground-color: 36pxrgba(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;
}