MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 153:
/* ======================================================= */
/* 2. TOP FLOATING SQUARES (
/* ======================================================= */
Line 160:
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
height:
z-index: 1000 !important;
background: transparent !important;
Line 172:
/* Push content down */
body.skin-minerva { padding-top:
.mw-body { margin-top: 10px !important; }
Line 178:
.header-container .navigation-drawer { display: none !important; }
/* --- B. COMMON SQUARE STYLE (44px | 0.05 Transparency) --- */
.branding-box,
#searchIcon,
#cps-open-toc,
body.mw-mf-search-mode .minerva-header .search-box input {
background-color: rgba(0, 0, 0, 0.05) !important;
box-sizing: border-box !important;▼
width: 40px !important; ▼
height: 40px !important;▼
border-radius: 8px !important;
pointer-events: auto !important;
border: none !important;
box-shadow: none !important;
backdrop-filter: none !important;
padding: 0 !important; /* Ensure no hidden padding */▼
/* STANDARD 44px SIZING */
▲ box-sizing: border-box !important;
margin: 0 !important;
}
Line 207 ⟶ 205:
right: auto !important;
z-index: 1003 !important;
display: flex !important; align-items: center; justify-content: center;
}
/* Search Icon
#searchIcon .minerva-icon {
font-size: 24px !important;
Line 217 ⟶ 215:
fill: #fff !important;
opacity: 1;
filter: brightness(0) invert(1);
margin: 0 !important;
}
Line 227 ⟶ 225:
top: 10px !important;
/*
right: 100px !important;
left: auto !important; bottom: auto !important;
Line 236 ⟶ 234:
}
/* TOC Icon
#cps-open-toc .icon { font-size: 24px !important; }
font-size: 24px !important; ▼
}▼
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box
position: fixed !important;
top: 10px !important;
/*
right:
left: auto !important;
z-index: 1002 !important;
justify-content: center;
}
/*
.branding-box
display: flex !important; ▼
▲ align-items: center; justify-content: center;
width: 100% !important; height: 100% !important;▼
padding: 0 !important; margin: 0 !important;▼
.branding-box a::before {▼
content: "⌂";
font-size: 24px !important;
Line 267 ⟶ 259:
margin-top: -4px;
display: block !important;
line-height: 1 !important;
▲}
/* 2. The Link (Invisible clickable cover) */
position: absolute !important;
▲ width: 100% !important; height: 100% !important;
opacity: 0 !important; /* Invisible */
}
/* Hide default contents of the link */
.branding-box a * { display: none !important; }
.branding-box a::before { display: none !important; }
/* --- F. THE SEARCH INPUT
/* 1. Hide initially */
Line 281 ⟶ 286:
position: fixed !important;
top: 10px !important;
height:
z-index: 1001 !important;
Line 287 ⟶ 292:
right: 10px !important; /* Stretches to Right Edge */
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:
border-radius: 8px !important;
box-sizing: border-box !important;
Line 307 ⟶ 310:
font-size: 16px !important;
/* PADDING:
padding-left: 55px !important;
padding-right:
}
Line 329 ⟶ 332:
top: 0 !important;
right: 0 !important;
width:
height:
line-height:
text-align: center !important;
color: #fff !important;
| |||