MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Manual revert |
No edit summary |
||
Line 153:
/* ======================================================= */
/* 2.
/* ======================================================= */
/* --- A.
/* 1. HIDE THE CONTAINER (But keep it technically there) */
/* We make the container invisible so you see the page content behind it. */
body:not(.mw-mf-search-mode) .header-container.header-chrome {
background: transparent !important;
border: none !important;
pointer-events: none !important; /* Let clicks pass through empty space */
position: absolute !important; /* Get out of the way */
}
/*
body:not(.
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
/* --- B.
/* We use 'position: fixed' on the buttons themselves so they never hide */
/* BUTTON 1: HOME (Top Left) */
body:not(.mw-mf-search-mode) .branding-box {
display: flex !important;
top: 5px !important;
left: 10px !important;
z-index: 1002 !important;
pointer-events: auto !important; /* Re-enable clicking */
}
body:not(.mw-mf-search-mode) .branding-box a {
font-size: 0 !important; color: transparent !important;
}
body:not(.mw-mf-search-mode) .branding-box a::before {
content: "⌂";
font-size:
font-weight: bold;
color: #000;
/* White glow to ensure visibility on dark images */
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
/*
body:not(.mw-mf-search-mode) #searchIcon {
display: flex !important;
align-items: center; justify-content: center;
position: fixed !important;
top:
left: 50% !important;
transform: translateX(-50%) !important;
width:
z-index: 1002 !important;
background: transparent !important;
border: none !important;
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.
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
/*
body:not(.mw-mf-search-mode) #cps-open-toc {
display: flex !important;
position: fixed !important;
top:
right:
bottom: auto !important; left: auto !important;
z-index: 1002 !important;
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
pointer-events: auto !important;
}
/* Ensure the TOC icon matches the others */
body:not(.mw-mf-search-mode) #cps-open-toc .icon {
text-shadow: 0 0 5px rgba(255,255,255, 0.8);
}
/* ---
/* When you click Search, we hide the sticky buttons and show a clean white bar. */
/* 1.
body.mw-mf-search-mode .branding-box,
body.mw-mf-search-mode
body.mw-mf-search-mode #cps-open-toc {
display: none !important;
}
/* 2. Show the Standard White Header */
body.mw-mf-search-mode .header-container.header-chrome {
position: fixed !important;
top:
left: 0 !important; right: 0 !important;
height: auto !important;
pointer-events: auto !important;
z-index: 1000 !important;
display: block !important;
}
/*
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
}
/*
body.mw-mf-search-mode .minerva-header .search-box input {
background: #fff !important;
color: #000 !important;
border: 1px solid #ccc !important;
border-radius: 4px !important;
opacity: 1 !important;
}
| |||