MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 153:
 
/* ======================================================= */
/* 2. TOP FLOATING BUBBLES (HomeSubtle Version) - Search - TOC) */
/* ======================================================= */
 
/* --- A. HEADER RESET (Make it Invisible) --- */
/* We keep the container to push content down, but make it invisible */
.header-container.header-chrome {
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
height: 60px !important; /* Space for buttons */
z-index: 1000 !important;
Line 167 ⟶ 166:
border: none !important;
box-shadow: none !important;
pointer-events: none !important; /* Let clicks pass through empty space */
transform: none !important;
Line 174 ⟶ 173:
}
 
/* Push page content down slightly */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { margin-top: 10px !important; }
Line 181 ⟶ 180:
.header-container .navigation-drawer { display: none !important; }
 
/* --- B. COMMON BUBBLE STYLE (The 0.1 Transparency) --- */
/* Shared style for Home, Search, TOC, and Input Box */
.branding-box,
#searchIcon,
#cps-open-toc,
body.mw-mf-search-mode .minerva-header .search-box input {
/* VERY Subtle Background (10% Black) */
background-color: rgba(0, 0, 0, 0.6) !important; /* Transparent Black */
backdropbackground-filtercolor: blurrgba(4px0, 0, 0, 0.1) !important; /* Frosted Glass */
backdrop-filter: blur(2px) !important; /* Slight blur for readability */
border-radius: 50% !important; /* Perfect Circle */
box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
pointer-events: auto !important; /* Re-enable clicking */
background-colorborder: 1px solid rgba(0, 0, 0, 0.605) !important; /* TransparentTiny border for Blackdefinition */
}
 
Line 197:
.branding-box, .branding-box a {
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
left: 10px !important; /* Left Spacing */
width: 44px !important; height: 44px !important;
z-index: 1002 !important;
display: flex !important; align-items: center; justify-content: center;
}
/* CENTER FIX: Apply flex to the anchor tag itself */
.branding-box a { font-size: 0 !important; color: transparent !important; background: transparent !important; box-shadow: none !important; }
.branding-box a {
display: flex !important;
align-items: center;
justify-content: center;
width: 100% !important; height: 100% !important;
font-size: 0 !important;
color: transparent !important;
}
.branding-box a::before {
content: "⌂";
font-size: 24px22px; color:/* #fff;Matched margin-top:size -4px;*/
color: #fff;
margin-top: -3px;
boxtext-shadow: 0 1px 2px 5px rgba(0,0,0,0.2) !important;
}
 
Line 213 ⟶ 223:
display: flex !important;
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
right: 10px !important; /* Right Spacing */
left: auto !important; bottom: auto !important;
width: 44px !important; height: 44px !important;
Line 220 ⟶ 230:
color: #fff !important;
align-items: center; justify-content: center;
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
#cps-open-toc .icon { font-size: 20px22px !important; } /* Matched size */
 
/* --- E. BUTTON 3: SEARCH TRIGGER (Left of TOC) --- */
#searchIcon {
position: fixed !important;
top: 8px !important; /* Vertical Alignment */
right: 64px !important; /* 10px (Right) + 44px (TOC) + 10px (Gap) */
left: auto !important;
width: 44px !important; height: 44px !important;
Line 234 ⟶ 245:
border: none !important; margin: 0 !important; padding: 0 !important;
}
 
/* COLOR FIX: Force White Icon using Filters */
#searchIcon .minerva-icon {
font-size: 20px !important; color:/* #fff;Reduced opacity:size 1;to match others */
color: #fff !important;
fill: #fff !important;
opacity: 1;
/* This forces black icons to turn white */
filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
 
Line 249 ⟶ 267:
display: block !important;
position: fixed !important;
top: 8px !important; /* Same top alignment as buttons */
height: 44px !important;
z-index: 1001 !important;
/* ALIGNMENT LOGIC: Fits between bubbles */
left: 64px !important; /* 10px (Left) + 44px (Home) + 10px Gap */
right: 118px !important; /* 10px (Right) + 44px (TOC) + 10px Gap + 44px (Search) + 10px Gap */
padding: 0 !important; margin: 0 !important;
Line 265 ⟶ 283:
width: 100% !important;
height: 44px !important;
border-radius: 22px !important; /* Pill Shape */
border: none !important;
/* VisualsBackground (Inheritsslightly commondarker bubblethan stylebuttons +for adjustments)readability */
background-color: rgba(0, 0, 0, 0.64) !important;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
Line 277 ⟶ 295:
}
 
/* 4. REMOVERemove INNERInner ICON (Clean look)Icon */
.minerva-header .search-box .search-box-icon-overlay {
display: none !important;
Line 284 ⟶ 302:
/* 5. Placeholder Text */
body.mw-mf-search-mode .minerva-header .search-box input::placeholder {
color: rgba(255, 255, 255, 0.78) !important;
-webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
}