MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. TRANSPARENTTOP STICKYFLOATING TOOLBARSQUARES (Home44px -| Search#F8F9FA - TOCTone) */
/* ======================================================= */
 
/* --- A. READINGHEADER MODERESET (TransparentInvisible & StickyContainer) --- */
.header-container.header-chrome {
 
position: fixed !important;
/* 1. HIDE THE CONTAINER (But keep it technically there) */
top: 0 !important; left: 0 !important; right: 0 !important;
/* We make the container invisible so you see the page content behind it. */
height: 60px !important;
body:not(.mw-mf-search-mode) .header-container.header-chrome {
z-index: 1000 !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
pointer-events: none !important; /* Let clicks pass through empty space */
positiontransform: absolutenone !important; /* Get out of the way */
transition: none !important;
overflow: visible !important;
}
 
/* 2.Push HIDEcontent UNWANTED ELEMENTSdown */
body.skin-minerva { padding-top: 60px !important; }
body:not(.mw-mf-search-mode) .navigation-drawer,
.mw-body { margin-top: 10px !important; }
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* Hide default elements */
/* --- B. THE 3 STICKY BUTTONS (Pinned to Screen) --- */
.header-container .navigation-drawer { display: none !important; }
/* We use 'position: fixed' on the buttons themselves so they never hide */
 
/* --- B. COMMON SQUARE STYLE (0.03 Transparency for #F8F9FA) --- */
/* BUTTON 1: HOME (Top Left) */
body:not(.mw-mf-search-mode) .branding-box, {
#searchIcon,
display: flex !important;
#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) --- */
#searchIcon {
position: fixed !important;
top: 5px !important;
/* ALIGNMENT: 8px Top */
top: 8px !important;
left: 10px !important;
z-indexright: 1002auto !important;
pointer-events: auto !important; /* Re-enable clicking */
/* 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;
}
 
body:not(.mw-mf-search-mode) .branding-box a {
/* Search Icon */
font-size: 0 !important; color: transparent !important;
#searchIcon .minerva-icon {
}
font-size: 24px !important;
body:not(.mw-mf-search-mode) .branding-box a::before {
contentcolor: "⌂";#fff !important;
font-sizefill: 30px#fff !important;
font-weightopacity: bold1 !important;
filter: brightness(0) invert(1);
color: #000;
margin: 0 !important;
/* White glow to ensure visibility on dark images */
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
 
/* --- D. BUTTON 2: SEARCHTOC (TopRIGHT Center- 100px SPACE) --- */
#cps-open-toc {
body:not(.mw-mf-search-mode) #searchIcon {
display: flex !important;
align-items: center; justify-content: center;
position: fixed !important;
top: 5px8px !important;
left: 50% !important;
/* Position: 100px from right edge */
transform: translateX(-50%) !important;
widthright: 44px100px !important; height: 44px !important;
left: auto !important; bottom: auto !important;
z-index: 1002 !important;
backgroundcolor: transparent#fff !important;
align-items: center; justify-content: center;
border: none !important;
box-shadow: none !important;
pointer-events: auto !important;
margin: 0 !important; padding: 0 !important;
}
body:not(.mw-mf-search-mode) #searchIcon .minerva-icon {
font-size: 24px;
color: #000;
opacity: 0.8;
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
 
/* BUTTON 3: TOC (Top Right)Icon */
#cps-open-toc .icon { font-size: 24px !important; }
body:not(.mw-mf-search-mode) #cps-open-toc {
 
display: flex !important;
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box {
position: fixed !important;
top: 5px8px !important;
right: 10px !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
bottom: auto !important; left: auto !important;
widthright: 44px !important; height: 44px154px !important;
left: auto !important;
z-index: 1002 !important;
backgrounddisplay: transparentflex !important;
coloralign-items: #000 !importantcenter;
boxjustify-shadowcontent: none !importantcenter;
pointer-events: auto !important;
}
 
/* Ensure the TOC icon matches the others */
/* 1. The Home Icon (Bold & White) */
body:not(.mw-mf-search-mode) #cps-open-toc .icon {
.branding-box::after {
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
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;
}
 
/* --- C2. SEARCH MODE (The Clean Switch)Link ---Overlay */
.branding-box a {
/* When you click Search, we hide the sticky buttons and show a clean white bar. */
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; }
 
/* 1.--- HideF. theTHE TransparentSEARCH StickyINPUT Buttons--- */
 
body.mw-mf-search-mode .branding-box,
/* 1. Hide initially */
body.mw-mf-search-mode #searchIcon,
body:not(.mw-mf-search-mode) #cps.minerva-openheader .search-tocbox {
display: none !important;
}
 
/* 2. ShowPosition the Standard White HeaderWrapper */
body.mw-mf-search-mode .header-container.header-chrome {
position: fixed !important;
top: 0 !important;
left: 0 !important; right: 0 !important;
background: #ffffff !important;
border-bottom: 1px solid #ccc !important;
height: auto !important;
pointer-events: auto !important;
z-index: 1000 !important;
display: block !important;
}
 
/* 3. Show the Input Field */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
paddingposition: 8pxfixed !important;
opacitytop: 18px !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;
}
 
/* 43. Style the Input TextPill */
body.mw-mf-search-mode .minerva-header .search-box input {
backgroundwidth: #fff100% !important;
colorheight: #00044px !important;
border-radius: 1px solid #ccc8px !important;
borderbox-radiussizing: 4pxborder-box !important;
height: 36px !important;
/* Background matches buttons */
opacity: 1 !important;
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;
}