MediaWiki:Mobile.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 153:
 
/* ======================================================= */
/* 2. CUSTOM TOP TOOLBARFLOATING SQUARES (Home44px -| Search#F8F9FA - TOCTone) */
/* ======================================================= */
 
/* --- A. THEHEADER TOOLBARRESET CONTAINER(Invisible Container) --- */
/* We turn the header into a fixed, 50px tall white bar */
.header-container.header-chrome {
position: fixed !important;
top: 0 !important; left: 0 !important; right: 0 !important;
top: 0;
leftheight: 060px !important;
rightz-index: 01000 !important;
heightbackground: 50pxtransparent !important;
z-indexborder: 1000none !important;
backgroundbox-colorshadow: #ffffffnone !important;
borderpointer-bottomevents: 1pxnone solid #eaecf0!important;
transform: none !important;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
transition: none !important;
overflow: visible !important;
/* Flex layout to arrange our 3 buttons */
display: flex !important;
align-items: center;
justify-content: center; /* Center the middle elements */
}
 
/* EnsurePush content doesn't get hidden behind the toolbardown */
body.skin-minerva { padding-top: 60px !important; }
.mw-body { paddingmargin-top: 50px10px !important; }
}
 
/* Hide default elements */
/* --- B. HIDE UNWANTED ELEMENTS --- */
.header-container .navigation-drawer { display: none !important; }
/* Hide the Hamburger Menu */
.header-container .navigation-drawer {
display: none !important;
}
 
/* Hide--- theB. TextCOMMON InputSQUARE initiallySTYLE (we0.03 onlyTransparency wantfor the icon#F8F9FA) --- */
.branding-box,
body:not(.mw-mf-search-mode) .minerva-header .search-box {
#searchIcon,
display: none !important;
#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: HOMESEARCH TRIGGER (LeftTOP LEFT) --- */
#searchIcon {
/* We repurpose the Logo (.branding-box) to be the Home Button */
position: fixed !important;
.header-container .branding-box {
position: absolute !important;
/* ALIGNMENT: 8px Top */
left: 0 !important;
top: 08px !important;
heightleft: 50px10px !important;
widthright: 60pxauto !important;
display: flex !important;
/* FORCE SIZE RESET */
align-items: center;
justifymin-contentwidth: center0 !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 */
.header-container .branding-box a {
#searchIcon .minerva-icon {
/* Hide the text "bizslash.com" */
font-size: 024px !important;
color: transparent#fff !important;
text-decorationfill: none#fff !important;
opacity: 1 !important;
filter: brightness(0) invert(1);
margin: 0 !important;
}
 
/* --- D. BUTTON 2: TOC (RIGHT - 100px SPACE) --- */
/* Add the House Icon */
#cps-open-toc {
.header-container .branding-box a::before {
content: "⌂"; /* Unicode House */
font-size: 28px;
color: #000;
display: block;
line-height: 50px;
margin-top: -5px;
}
 
/* --- D. BUTTON 2: SEARCH (Center) --- */
/* Position the existing search icon in the middle */
#searchIcon {
display: flex !important;
align-itemsposition: centerfixed !important;
top: 8px !important;
justify-content: center;
height: 50px !important;
width: 60px !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
margin: 0 !important;
padding: 0 !important;
/* CenterPosition: it100px absolutelyfrom ifright flex failsedge */
positionright: absolute100px !important;
left: 50%auto !important; bottom: auto !important;
transform: translateX(-50%);
z-index: 1002 !important;
color: #fff !important;
align-items: center; justify-content: center;
}
 
/* TOC Icon */
#searchIcon .minerva-icon {
#cps-open-toc .icon { font-size: 24px !important; }
color: #000;
opacity: 0.7;
}
 
/* --- E. BUTTON 3: TABLEHOME (LEFT OF CONTENTS (RightTOC) --- */
.branding-box {
/* We move your custom TOC button from bottom-right to top-right */
position: fixed !important;
#cps-open-toc {
displaytop: flex8px !important; /* Ensure it is visible */
position: absolute !important;
/* Position: 100px (Space) + 44px (TOC) + 10px (Gap) */
top: 3px !important; /* Center vertically in 50px bar */
right: 10px154px !important; /* Pin to right */
bottom: auto !important; /* Remove bottom positioning */
left: auto !important;
widthz-index: 44px1002 !important;
heightdisplay: 44pxflex !important;
align-items: center;
background: transparent !important; /* Make it blend in */
justify-content: center;
color: #000 !important;
box-shadow: none !important;
}
 
/* 1. The Home Icon (Bold & White) */
/* Style the TOC icon to look like a standard list icon */
.branding-box::after {
#cps-open-toc .icon {
font-sizecontent: 24px !important"⌂";
font-weightsize: bold30px !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 */
/* --- F. THE INTERACTION: SEARCH BAR DRAWER --- */
.branding-box a {
/* When Search is clicked (.mw-mf-search-mode), show the input bar BELOW the header */
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. Reset the Header to ensure it stays fixed */
 
body.mw-mf-search-mode .header-container.header-chrome {
/* 1. Hide initially */
position: fixed !important;
body:not(.mw-mf-search-mode) .minerva-header .search-box {
z-index: 1000;
display: none !important;
}
 
/* 2. Position the Input BoxWrapper */
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;
left: 10px !important;
/* Put it exactly below the 50px header */
topright: 50px10px !important;
left: 0 !important;
right: 0 !important;
width: auto !important;
/* Style the drawer */
background-colorpadding: #f8f9fa0 !important; margin: 0 !important;
paddingbackground: 10pxtransparent !important;
border-bottomradius: 1px0 solid #ccc!important;
z-index: 999 !important; /* Just below the header */
height: auto !important;
}
 
/* 3. Style the Input Field inside the drawerPill */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
height: 36px44px !important;
border-radius: 1px solid #a2a9b18px !important;
borderbox-radiussizing: 4pxborder-box !important;
padding-left: 10px !important;
/* Background matches buttons */
background: #fff !important;
background-color: #000rgba(0, 0, 0, 0.03) !important;
-webkit-text-fill-color: #000 !important;
opacitycolor: 1#fff !important;
-webkit-text-fill-color: #fff !important;
font-size: 16px !important;
/* PADDING: 44px (Button) + 11px (Gap) */
padding-left: 55px !important;
padding-right: 55px !important;
margin: 0 !important;
}
 
/* 4. Hide Inner Icon */
/* 4. Hide the "Search" button while searching (Optional, avoids confusion) */
body.mw-mfminerva-header .search-modebox #searchIcon.search-box-icon-overlay {
opacitydisplay: 0.3none !important; /* Dim it to show it's active */
}
pointer-events: none;
 
/* 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;
}