MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. HIGH-TRANSPARENCYTOP TOOLBARFLOATING SQUARES (Single44px Line| Layout#F8F9FA Tone) */
/* ======================================================= */
 
/* --- A. THE HEADER CONTAINERRESET (The TransparentInvisible StripContainer) --- */
.header-container.header-chrome {
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
leftheight: 060px !important;
right: 0 !important;
height: 50px !important;
z-index: 1000 !important;
background: transparent !important;
border: none !important;
/* VISIBILITY TWEAK: 0.3 is very transparent (30% opacity) */
backgroundbox-colorshadow: rgba(0, 0, 0, 0.3)none !important;
borderpointer-bottomevents: 1px solid rgba(255, 255, 255, 0.1)none !important;
/* Frosted glass effect (keeps text readable behind it) */
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
/* Fixes */
transform: none !important;
transition: none !important;
Line 179 ⟶ 171:
}
 
/* Push body content down */
body.skin-minerva { padding-top: 50px60px !important; }
.mw-body { margin-top: 50px10px !important; }
 
/* Hide default elements */
.header-container .navigation-drawer { display: none !important; }
 
/* --- B. BUTTONCOMMON 1:SQUARE HOMESTYLE (Top0.03 LeftTransparency for #F8F9FA) --- */
.branding-box, .branding-box a {
#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;
}
 
/* --- C. BUTTON 1: SEARCH TRIGGER (TOP LEFT) --- */
#searchIcon {
position: fixed !important;
top: 0 !important; left: 0 !important;
/* ALIGNMENT: 8px Top */
width: 50px !important; height: 50px !important;
z-indextop: 10028px !important;
left: 10px !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; }
/* Search Icon */
.branding-box a::before {
#searchIcon .minerva-icon {
content: "⌂";
font-size: 28px;24px color: #fff!important;
margin-topcolor: -4px#fff !important;
fill: #fff !important;
/* Shadow ensures button is visible if page background is white */
opacity: 1 !important;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- CD. BUTTON 2: TOC (Top RightRIGHT - Far100px RightSPACE) --- */
#cps-open-toc {
display: flex !important;
position: fixed !important;
top: 3px8px !important;
right: 0 !important; /* Pinned to right edge */
/* Position: 100px from right edge */
right: 100px !important;
left: auto !important; bottom: auto !important;
width: 50px !important; height: 44px !important;
z-index: 1002 !important;
background: transparent !important;
color: #fff !important;
align-items: center; justify-content: center;
box-shadow: none !important;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
 
/* TOC Icon */
/* --- D. BUTTON 3: SEARCH TRIGGER (Top Right - Next to TOC) --- */
#cps-open-toc .icon { font-size: 24px !important; }
#searchIcon {
 
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box {
position: fixed !important;
top: 08px !important;
right: 50px !important; /* Offset by width of TOC button */
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 154px !important;
left: auto !important;
width: 50px !important; height: 50px !important;
z-index: 1002 !important;
display: flex !important; align-items: center; justify-content: center;
align-items: center;
background: transparent !important; border: none !important;
justify-content: center;
margin: 0 !important; padding: 0 !important; box-shadow: none !important;
}
 
#searchIcon .minerva-icon {
/* 1. The Home Icon (Bold & White) */
font-size: 24px;
.branding-box::after {
color: #fff;
opacitycontent: 1"⌂";
font-size: 30px !important;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
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; }
 
/* --- EF. THE SEARCH INPUT FIELD (FITS IN THE MIDDLE) --- */
 
/* 1. Hide Input when NOT searchinginitially */
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* 2. Position Input when SEARCHINGWrapper */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
position: fixed !important;
top: 7px8px !important; /* Vertically centered */
height: 36px44px !important;
z-index: 1001 !important;
left: 10px !important;
/* THE PADDING LOGIC: Fit between buttons */
leftright: 60px10px !important; /* Clear the Home Button */
right: 110px !important; /* Clear Search (50px) + TOC (50px) + Gap */
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
paddingborder-radius: 0 !important;
margin: 0 !important;
}
 
/* 3. Style theInput Box itselfPill */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
height: 36px44px !important;
border-radius: 4px8px !important;
borderbox-sizing: noneborder-box !important;
/* Background matches buttons */
/* Visual Style: Darker background so white text is readable */
background-color: rgba(0, 0, 0, 0.503) !important;
color: #ffffff !important;
-webkit-text-fill-color: #fffffffff !important;
padding-leftwebkit-text-fill-color: 10px#fff !important;
font-size: 16px !important;
/* PADDING: 44px (Button) + 11px (Gap) */
padding-left: 55px !important;
padding-right: 55px !important;
margin: 0 !important;
}
 
/* 4. REMOVEHide THEInner INNER MAGNIFYING GLASSIcon */
.minerva-header .search-box .search-box-icon-overlay {
display: none !important;
}
 
/* 5. Placeholder Text Color */
body.mw-mf-search-mode .minerva-header .search-box input::placeholder {
color: rgba(255, 255, 255, 0.7) !important;
Line 286 ⟶ 345:
}
 
/* 6. Hide the Cancel button text if it"X" appearsButton */
.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;
}