MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 153:
/* ======================================================= */
/* 2.
/* ======================================================= */
/* --- A.
/* We turn the header into a fixed, 50px tall white bar */
.header-container.header-chrome {
position: fixed !important;
top:
height: 50px !important;
z-index: 1000;
background-color: #ffffff !important;
border-bottom: 1px solid #eaecf0;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
/*
display: flex !important;
align-items: center;
justify-content: center; /* Center the middle elements */
}
/* Ensure content doesn't get hidden behind the toolbar */
body.skin-minerva {
padding-top: 50px !important;
}
/* --- B. HIDE UNWANTED ELEMENTS --- */
/* Hide the Hamburger Menu */
.header-container .navigation-drawer {
display: none !important;
}
/* Hide the Text Input initially (we only want the icon) */
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
/* --- C. BUTTON 1: HOME (Left) --- */
/* We repurpose the Logo (.branding-box) to be the Home Button */
.header-container .branding-box {
position: absolute !important;
left: 0 !important;
top: 0 !important;
height: 50px !important;
width: 60px !important;
display: flex !important;
align-items: center;
justify-content: center;
}
.header-container .branding-box a {
/* Hide the text "bizslash.com" */
font-size: 0 !important;
color: transparent !important;
text-decoration: none !important;
}
/* Add the House Icon */
.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-items: center;
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;
/*
}
#searchIcon .minerva-icon {
font-size: 24px;
color: #000;
opacity: 0.7;
}
/* --- E. BUTTON 3: TABLE OF CONTENTS (Right) --- */
/* We move your custom TOC button from bottom-right to top-right */
#cps-open-toc {
display: flex !important; /* Ensure it is visible */
position: absolute !important;
top: 3px !important; /* Center vertically in 50px bar */
right: 10px !important; /* Pin to right */
bottom: auto !important; /* Remove bottom positioning */
left: auto !important;
width: 44px !important;
background: transparent !important; /* Make it blend in */
}
/* Style the TOC icon to look like a standard list icon */
#cps-open-toc .icon {
font-size: 24px !important;
}
/* ---
/* When
/* 1. Reset the Header to ensure it stays fixed */
body.mw-mf-search-mode .header-container.header-chrome {
position: fixed !important;
z-index: 1000;
}
/*
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
position: fixed !important;
/* Put it exactly below the 50px header */
top: 50px !important;
left: 0 !important;
right: 0 !important;
/* Style the drawer */
background-color: #f8f9fa !important;
padding: 10px !important;
border-bottom: 1px solid #ccc;
z-index: 999 !important; /* Just below the header */
height: auto !important;
}
/* 3. Style the Input Field inside the drawer */
body.mw-mf-search-mode .minerva-header .search-box input {
width: 100% !important;
height: 36px !important;
border: 1px solid #a2a9b1 !important;
border-radius: 4px !important;
padding-left: 10px !important;
background: #fff !important;
color: #000 !important;
-webkit-text-fill-color: #000 !important;
opacity: 1 !important;
}
/* 4. Hide the "Search" button while searching (Optional, avoids confusion) */
body.mw-mf-search-mode #searchIcon {
opacity: 0.3 !important; /* Dim it to show it's active */
pointer-events: none;
}
| |||