MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
Line 153:
/* ======================================================= */
/* 2. TOP FLOATING SQUARES (
/* ======================================================= */
Line 178:
.header-container .navigation-drawer { display: none !important; }
/* --- B. COMMON SQUARE STYLE (0.
.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.1) !important; ▼
border-radius: 8px !important;▼
/* Force Full Opacity & Strip Defaults */
pointer-events: auto !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;
}
/* --- C. BUTTON 1: SEARCH TRIGGER (
#searchIcon {
position: fixed !important;
▲ top: 8px !important;
left: 10px !important;
right: auto !important;
▲ width: 44px !important; height: 44px !important;
/* FORCE SIZE RESET */
z-index: 1003 !important; /* Highest Z-Index to overlay the bar */▼
min-width: 0 !important;
min-height: 0 !important;
max-width: 44px !important;
max-height: 44px !important;
display: flex !important; align-items: center; justify-content: center;
▲ margin: 0 !important; padding: 0 !important;
}
/*
#searchIcon .minerva-icon {
font-size:
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
}
/* --- D. BUTTON 2: TOC (
#cps-open-toc {
display: flex !important;
position: fixed !important;
top: 8px !important;
/* 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: 22px !important; }▼
/* TOC Icon */
/* --- E. BUTTON 3: HOME (Now NEXT TO TOC) --- */▼
.branding-box, .branding-box a {▼
position: fixed !important;
top: 8px !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
left: auto !important; /* Removed Left positioning */▼
z-index: 1002 !important;
}▼
▲.branding-box a {
display: flex !important;
align-items: center;
justify-content: center;
▲ width: 100% !important; height: 100% !important;
▲ padding: 0 !important; margin: 0 !important;
font-size: 0 !important; color: transparent !important; ▼
}
.branding-box a::before {▼
/* 1. The Home Icon (Bold & White) */
content: "⌂";
font-size:
color: #fff !important;
-webkit-text-stroke: 1px #fff !important;
▲ margin-top: -4px;
margin-top: -6px !important;
display: block !important;
}
/* 2. The Link Overlay */
/* --- F. THE SEARCH INPUT (Overlaid by Search Button) --- */▼
position: absolute !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. Hide initially */
Line 267 ⟶ 302:
top: 8px !important;
height: 44px !important;
z-index: 1001 !important;
left: 10px !important;
right: 10px !important;
▲ width: auto !important;
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
Line 282 ⟶ 318:
height: 44px !important;
border-radius: 8px !important;
box-sizing: border-box !important;
/* Background matches buttons */
▲ background-color: rgba(0, 0, 0, 0.4) !important;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
font-size: 16px !important;
/* PADDING:
padding-left:
padding-right:
margin: 0 !important;
}
/* 4. Hide Inner Icon
.minerva-header .search-box .search-box-icon-overlay {
display: none !important;
Line 304 ⟶ 345:
}
/* 6.
.search-box .search-box-cancel {
display: block !important;
| |||