MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. MOBILETOP STICKYFLOATING HEADERSQUARES &(44px SEARCH| FIX#F8F9FA (FinalTone) */
/* ======================================================= */
 
/* --- A. STICKY HEADER BEHAVIORRESET (Invisible Container) --- */
.header-container.header-chrome {
/* Only sticky when reading. Disabled when searching to prevent bugs. */
position: fixed !important;
body:not(.mw-mf-search-mode) .header-container.header-chrome {
positiontop: -webkit-sticky0 !important; left: 0 !important; right: 0 !important;
positionheight: sticky60px !important;
topz-index: 01000 !important;
background: transparent !important;
z-index: 99;
background-colorborder: #ffffffnone !important;
borderbox-bottomshadow: 1pxnone solid #eaecf0!important;
pointer-events: none !important;
width: 100%;
transform: none !important;
transition: none !important;
overflow: visible !important;
}
 
/* Push content down */
/* --- B. SEARCH CONTAINER SETUP --- */
body.skin-minerva { padding-top: 60px !important; }
/* We establish a 'coordinate system' (relative) for the icon to sit inside */
.mw-body { margin-top: 10px !important; }
.minerva-header .search-box {
 
position: relative !important;
/* Hide default elements */
display: block !important;
.header-container .navigation-drawer { widthdisplay: 100%none !important; }
 
background: #ffffff !important;
/* --- B. COMMON SQUARE STYLE (0.03 Transparency for #F8F9FA) --- */
.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.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. THEBUTTON ICON1: (AbsoluteSEARCH PositionTRIGGER (TOP FixLEFT) --- */
#searchIcon {
/* We physically pin the icon to the top-left corner so it can't move */
position: fixed !important;
.minerva-header .search-box .search-box-icon-overlay {
position: absolute !important;
top: 0 !important;
left: 0 !important;
bottom: 0 !important;
width: 36px !important; /* Reserve exact space */
/* ALIGNMENT: 8px Top */
top: 8px !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;
}
 
/* Search Icon */
#searchIcon .minerva-icon {
font-size: 24px !important;
color: #fff !important;
fill: #fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- D. BUTTON 2: TOC (RIGHT - 100px SPACE) --- */
#cps-open-toc {
display: flex !important;
align-itemsposition: centerfixed !important;
top: 8px !important;
/* Position: 100px from right edge */
right: 100px !important;
left: auto !important; bottom: auto !important;
z-index: 1002 !important;
color: #fff !important;
align-items: center; justify-content: center;
}
 
/* TOC Icon */
#cps-open-toc .icon { font-size: 24px !important; }
 
/* --- E. BUTTON 3: HOME (LEFT OF TOC) --- */
.branding-box {
position: fixed !important;
top: 8px !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
right: 154px !important;
left: auto !important;
z-index: 1002 !important;
display: flex !important;
align-items: center;
justify-content: center;
}
 
/* 1. The Home Icon (Bold & White) */
.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 --- */
 
/* 1. Hide initially */
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* 2. Position Wrapper */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
position: fixed !important;
top: 8px !important;
height: 44px !important;
z-index: 1001 !important;
z-indexleft: 2010px !important; /* Must be HIGHER than input */
right: 10px !important;
pointer-events: none; /* Lets you click 'through' the icon to the box */
color: #72777d !important; /* Grey icon color */
width: auto !important;
padding: 0 !important; margin: 0 !important;
background: transparent !important;
border-radius: 0 !important;
}
 
/* 3. Style Input Pill */
/* --- D. THE INPUT FIELD (Transparency Fix) --- */
body.mw-mf-search-mode .minerva-header .search-box input {
/* We target the ID explicitly found in your HTML */
.minerva-header .search-box input#searchInput {
/* 1. Layout */
position: relative !important;
z-index: 10 !important; /* Lower than icon */
width: 100% !important;
height: 32px44px !important; /* Force a standard height */
paddingborder-leftradius: 36px8px !important; /* Pushes text to the right of the icon */
marginbox-sizing: 0border-box !important;
/* 2.Background Appearancematches Reset (Removes Ghosting)buttons */
background-webkit-appearancecolor: nonergba(0, 0, 0, 0.03) !important;
border: 1px solid #a2a9b1 !important; /* Adds a visible border */
border-radius: 2px !important;
box-shadow: none !important;
color: #fff !important;
/* 3. Color Forcing (The "Invisible Text" Fix) */
background-webkit-text-fill-color: #fffffffff !important;
colorfont-size: #00000016px !important;
-webkit-text-fill-color: #000000 !important; /* Forces iOS Black Text */
/* PADDING: 44px (Button) + 11px (Gap) */
opacity: 1 !important;
padding-left: 55px !important;
padding-right: 55px !important;
margin: 0 !important;
}
 
/* --- E4. PLACEHOLDERHide TEXTInner ---Icon */
.minerva-header .search-box input#searchInput::placeholder.search-box-icon-overlay {
colordisplay: #72777dnone !important;
}
-webkit-text-fill-color: #72777d !important;
 
opacity: 1 !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;
}