MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 153:
 
/* ======================================================= */
/* 2. TRANSPARENTTRANSLUCENT STICKYBLACK TOOLBAR (HomeSingle -Line SearchLayout) - TOC) */
/* ======================================================= */
 
/* --- A. READINGTHE MODEHEADER CONTAINER (TransparentThe &Black StickyStrip) --- */
.header-container.header-chrome {
 
position: fixed !important;
/* 1. HIDE THE CONTAINER (But keep it technically there) */
top: 0 !important;
/* We make the container invisible so you see the page content behind it. */
left: 0 !important;
body:not(.mw-mf-search-mode) .header-container.header-chrome {
backgroundright: transparent0 !important;
borderheight: none50px !important;
boxz-shadowindex: none1000 !important;
pointer-events: none !important; /* Let clicks pass through empty space */
/* Translucent Black Background */
position: absolute !important; /* Get out of the way */
background-color: rgba(0, 0, 0, 0.85) !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(5px); /* Optional: Adds the "frosted glass" effect */
/* Fixes */
transform: none !important;
transition: none !important;
overflow: visible !important;
}
 
/* 2.Push HIDEbody UNWANTEDcontent ELEMENTSdown */
body.skin-minerva { padding-top: 50px !important; }
body:not(.mw-mf-search-mode) .navigation-drawer,
.mw-body { margin-top: 50px !important; }
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
 
/* Hide default elements */
/* --- B. THE 3 STICKY BUTTONS (Pinned to Screen) --- */
.header-container .navigation-drawer { display: none !important; }
/* We use 'position: fixed' on the buttons themselves so they never hide */
 
/* --- B. BUTTON 1: HOME (Top Left) --- */
body:not(.mwbranding-mf-search-mode)box, .branding-box a {
display: flex !important;
position: fixed !important;
top: 5px0 !important; left: 0 !important;
leftwidth: 10px50px !important; height: 50px !important;
z-index: 1002 !important;
pointer-eventsdisplay: autoflex !important; /* Realign-enableitems: clickingcenter; */justify-content: center;
}
body:not(.mw-mf-search-mode) .branding-box a {
font-size: 0 !important; color: transparent !important;
}
.branding-box a { font-size: 0 !important; color: transparent !important; }
body:not(.mw-mf-search-mode) .branding-box a::before {
.branding-box a::before {
content: "⌂";
font-size: 30px28px; color: #fff; /* White Icon */
fontmargin-weighttop: bold-4px;
color: #000;
/* White glow to ensure visibility on dark images */
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
 
/* --- C. BUTTON 2: SEARCHTOC (Top CenterRight - Far Right) --- */
#cps-open-toc {
body:not(.mw-mf-search-mode) #searchIcon {
display: flex !important;
align-items: center; justify-content: center;
position: fixed !important;
top: 5px3px !important;
leftright: 50%0 !important; /* Pinned to right edge */
transformleft: translateX(-50%)auto !important; bottom: auto !important;
width: 44px50px !important; height: 44px !important;
z-index: 1002 !important;
background: transparent !important;
bordercolor: none#fff !important; /* White Icon */
box-shadow: none !important;
pointer-events: auto !important;
margin: 0 !important; padding: 0 !important;
}
body:not(.mw-mf-search-mode) #searchIcon .minerva-icon {
font-size: 24px;
color: #000;
opacity: 0.8;
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
 
/* --- D. BUTTON 3: TOCSEARCH TRIGGER (Top Right - Next to TOC) --- */
#searchIcon {
body:not(.mw-mf-search-mode) #cps-open-toc {
display: flex !important;
position: fixed !important;
top: 5px0 !important;
right: 10px50px !important; /* Offset by width of TOC button */
bottom: auto !important; left: auto !important;
width: 44px50px !important; height: 44px50px !important;
z-index: 1002 !important;
backgrounddisplay: transparentflex !important; align-items: center; justify-content: center;
colorbackground: #000transparent !important; border: none !important;
margin: 0 !important; padding: 0 !important; box-shadow: none !important;
pointer-events: auto !important;
}
#searchIcon .minerva-icon {
/* Ensure the TOC icon matches the others */
font-size: 24px;
body:not(.mw-mf-search-mode) #cps-open-toc .icon {
color: #fff; /* White Icon */
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
opacity: 1;
}
 
/* --- CE. THE SEARCH MODEINPUT FIELD (TheFITS IN CleanTHE SwitchMIDDLE) --- */
/* When you click Search, we hide the sticky buttons and show a clean white bar. */
 
/* 1. Hide theInput Transparentwhen StickyNOT Buttonssearching */
body:not(.mw-mf-search-mode) .brandingminerva-header .search-box, {
body.mw-mf-search-mode #searchIcon,
body.mw-mf-search-mode #cps-open-toc {
display: none !important;
}
 
/* 2. ShowPosition theInput Standardwhen White HeaderSEARCHING */
body.mw-mf-search-mode .header-container.header-chrome {
position: fixed !important;
top: 0 !important;
left: 0 !important; right: 0 !important;
background: #ffffff !important;
border-bottom: 1px solid #ccc !important;
height: auto !important;
pointer-events: auto !important;
z-index: 1000 !important;
display: block !important;
}
 
/* 3. Show the Input Field */
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
paddingposition: 8pxfixed !important;
opacitytop: 17px !important; /* Vertically centered */
height: 36px !important;
z-index: 1001 !important;
/* THE PADDING LOGIC: Fit between buttons */
left: 60px !important; /* Clear the Home Button */
right: 110px !important; /* Clear Search (50px) + TOC (50px) + Gap */
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
}
 
/* 43. Style the InputBox Textitself */
body.mw-mf-search-mode .minerva-header .search-box input {
backgroundwidth: #fff100% !important;
color: #000 !important;
border: 1px solid #ccc !important;
border-radius: 4px !important;
height: 36px !important;
opacityborder-radius: 14px !important;
border: none !important;
/* Visual Style */
background-color: rgba(255, 255, 255, 0.2) !important; /* Semi-transparent white box */
color: #ffffff !important; /* White text */
-webkit-text-fill-color: #ffffff !important;
padding-left: 10px !important; /* Text padding */
}
 
/* 4. REMOVE THE INNER MAGNIFYING GLASS (As requested) */
/* This hides the icon inside the input box */
.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;
-webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
}
 
/* 6. Hide the Cancel button text if it appears */
.search-box .search-box-cancel { display: none !important; }