MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. MOBILETOP FLOATING SEARCH BUTTONSQUARES (The44px "Ghost"| Button#F8F9FA Tone) */
/* ======================================================= */
 
/* --- A. RESET HEADER RESET (Non-StickyInvisible Container) --- */
/* The header scrolls away normally. This prevents all layering bugs. */
.header-container.header-chrome {
position: relativefixed !important;
top: auto0 !important; left: 0 !important; right: 0 !important;
height: 60px !important;
z-index: 1000 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
pointer-events: none !important;
transform: none !important;
transition: none !important;
overflow: visible !important;
}
 
/* Push content down */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { margin-top: 10px !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;
}
 
/* --- BC. CREATEBUTTON THE1: FLOATINGSEARCH BUTTONTRIGGER (TOP LEFT) --- */
#searchIcon {
/* We detach the standard Search Icon and float it at the Top Right */
body:not(.mw-mf-search-mode) #searchIcon {
/* 1. Position: Fixed Top Right */
position: fixed !important;
top: 15px;
right: 15px;
z-index: 999;
/* ALIGNMENT: 8px Top */
/* 2. Appearance: Transparent "Ghost" Style (Like your TOC) */
displaytop: flex8px !important;
align-itemsleft: center10px !important;
right: auto !important;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 50%;
/* TransparentFORCE GreySIZE BackgroundRESET */
backgroundmin-width: rgba(0, 0, 0, 0.05) !important;
bordermin-height: none0 !important;
boxmax-shadowwidth: none44px !important;
max-height: 44px !important;
z-index: 1003 !important;
/* 3. Hide the text label "Search" */
display: flex !important; align-items: center; justify-content: center;
text-indent: -9999px;
}
overflow: hidden;
 
padding: 0 !important;
/* Search Icon */
#searchIcon .minerva-icon {
font-size: 24px !important;
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- CD. ICONBUTTON STYLING2: TOC (RIGHT - 100px SPACE) --- */
#cps-open-toc {
/* Center the magnifying glass inside the bubble */
display: flex !important;
body:not(.mw-mf-search-mode) #searchIcon .minerva-icon {
text-indentposition: 0fixed !important;
font-sizetop: 20px8px !important;
color: #000; /* Icon Color */
/* Position: 100px from right edge */
opacity: 0.6; /* Subtle transparency */
filterright: none100px !important;
left: auto !important; bottom: auto !important;
z-index: 1002 !important;
color: #fff !important;
align-items: center; justify-content: center;
}
 
/* TOC Icon */
/* --- D. SEARCH ACTIVATION (The Magic Trick) --- */
#cps-open-toc .icon { font-size: 24px !important; }
/* When you click the ghost button, we MUST bring the header back
 
so you can actually see the search input box */
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
body.mw-mf-search-mode .header-container.header-chrome {
.branding-box {
position: fixed !important;
top: 08px !important;
left: 0;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 0;
z-indexright: 1000154px !important;
backgroundleft: #ffffffauto !important;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1002 !important;
display: flex !important;
align-items: center;
justify-content: center;
}
 
/* --- E1. HIDEThe GHOSTHome BUTTONIcon DURING(Bold SEARCH& ---White) */
.branding-box::after {
/* Hide the floating button so it doesn't overlap the "Cancel" button */
content: "⌂";
body.mw-mf-search-mode #searchIcon {
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;
}
 
/* --- F2. ENSURE INPUT IS VISIBLEPosition ---Wrapper */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
opacityposition: 1fixed !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;
}