MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. TOP FLOATING BUBBLESSQUARES (Home44px -| Search#F8F9FA - TOCTone) */
/* ======================================================= */
 
/* --- A. HEADER RESET (MakeInvisible it InvisibleContainer) --- */
/* We keep the container to push content down, but make it invisible */
.header-container.header-chrome {
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
height: 60px !important; /* Space for buttons */
z-index: 1000 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
pointer-events: none !important; /* Let clicks pass through empty space */
transform: none !important;
transition: none !important;
Line 174 ⟶ 171:
}
 
/* Push page content down */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { margin-top: 10px !important; }
Line 181 ⟶ 178:
.header-container .navigation-drawer { display: none !important; }
 
/* --- B. COMMON BUBBLESQUARE STYLE (0.03 Transparency for #F8F9FA) --- */
/* Shared style for Home, Search, TOC, and Input Box */
.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.6) !important; /* Transparent Black */
backdropbackground-filtercolor: blurrgba(4px0, 0, 0, 0.03) !important; /* Frosted Glass */
border-radius: 50% !important; /* Perfect Circle */
/* Force Full Opacity & Strip Defaults */
box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
pointer-eventsopacity: auto1 !important; /* Re-enable clicking */
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: HOMESEARCH TRIGGER (TopTOP LeftLEFT) --- */
#searchIcon {
.branding-box, .branding-box a {
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
/* ALIGNMENT: 8px Top */
left: 10px !important; /* Left Spacing */
widthtop: 44px8px !important; height: 44px !important;
z-indexleft: 100210px !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;
}
 
.branding-box a { font-size: 0 !important; color: transparent !important; background: transparent !important; box-shadow: none !important; }
/* Search Icon */
.branding-box a::before {
#searchIcon .minerva-icon {
content: "⌂";
font-size: 24px; color: #fff; margin-top: -4px!important;
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- D. BUTTON 2: TOC (Top RightRIGHT - Far100px RightSPACE) --- */
#cps-open-toc {
display: flex !important;
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
right: 10px !important; /* Right Spacing */
/* Position: 100px from right edge */
right: 100px !important;
left: auto !important; bottom: auto !important;
width: 44px !important; height: 44px !important;
z-index: 1002 !important;
color: #fff !important;
align-items: center; justify-content: center;
}
#cps-open-toc .icon { font-size: 20px !important; }
 
/* TOC Icon */
/* --- E. BUTTON 3: SEARCH TRIGGER (Left of TOC) --- */
#cps-open-toc .icon { font-size: 24px !important; }
#searchIcon {
 
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box {
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
right: 64px !important; /* 10px (Right) + 44px (TOC) + 10px (Gap) */
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 154px !important;
left: auto !important;
width: 44px !important; height: 44px !important;
z-index: 1002 !important;
display: flex !important; align-items: center; justify-content: center;
align-items: center;
border: none !important; margin: 0 !important; padding: 0 !important;
justify-content: center;
}
 
#searchIcon .minerva-icon {
/* 1. The Home Icon (Bold & White) */
font-size: 20px; color: #fff; opacity: 1;
.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 (Appears in the Middle) --- */
 
/* 1. Hide initially */
Line 245 ⟶ 296:
}
 
/* 2. Position ContainerWrapper */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
position: fixed !important;
top: 8px !important; /* Same top alignment as buttons */
height: 44px !important;
z-index: 1001 !important;
left: 10px !important;
/* ALIGNMENT LOGIC: */
leftright: 64px10px !important; /* 10px (Left) + 44px (Home) + 10px Gap */
right: 118px !important; /* 10px (Right) + 44px (TOC) + 10px Gap + 44px (Search) + 10px Gap */
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 3. Style the Input Pill */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
height: 44px !important;
border-radius: 22px8px !important; /* Pill Shape */
borderbox-sizing: noneborder-box !important;
/* Background matches buttons */
background-color: rgba(0, 0, 0, 0.03) !important;
/* Visuals (Inherits common bubble style + adjustments) */
background-color: rgba(0, 0, 0, 0.6) !important;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
padding-left: 15px !important;
padding-right: 15px !important;
font-size: 16px !important;
/* PADDING: 44px (Button) + 11px (Gap) */
padding-left: 55px !important;
padding-right: 55px !important;
margin: 0 !important;
}
 
/* 4. REMOVEHide INNERInner ICON (Clean look)Icon */
.minerva-header .search-box .search-box-icon-overlay {
display: none !important;
}
 
/* 5. Placeholder Text */
body.mw-mf-search-mode .minerva-header .search-box input::placeholder {
color: rgba(255, 255, 255, 0.7) !important;
Line 288 ⟶ 345:
}
 
/* 6. Hide Cancel "X" Button */
.search-box .search-box-cancel { display: none !important; }
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;
}