MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 153:
/* ======================================================= */
/* 2.
/* ======================================================= */
/* --- A.
.header-container.header-chrome {
position: fixed !important;
top: 0 !important;
left: 0 !important;
/* Translucent Black Background */
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;
}
/*
body.skin-minerva { padding-top: 50px !important; }
.mw-body { margin-top: 50px !important; }
/* Hide default elements */
.header-container .navigation-drawer { display: none !important; }
/* --- B. BUTTON 1: HOME (Top Left) --- */
position: fixed !important;
top:
z-index: 1002 !important;
}
.branding-box a { font-size: 0 !important; color: transparent !important; }
.branding-box a::before {
content: "⌂";
font-size:
}
/* --- C. BUTTON 2:
#cps-open-toc {
display: flex !important;
position: fixed !important;
top:
width:
z-index: 1002 !important;
background: transparent !important;
box-shadow: none !important;
}
/* --- D. BUTTON 3:
#searchIcon {
position: fixed !important;
top:
right:
width:
z-index: 1002 !important;
margin: 0 !important; padding: 0 !important; box-shadow: none !important;
}
#searchIcon .minerva-icon {
font-size: 24px;
color: #fff; /* White Icon */
opacity: 1;
}
/* ---
/* 1. Hide
body:not(.mw-mf-search-mode) .
display: none !important;
}
/* 2.
body.mw-mf-search-mode .minerva-header .search-box {
display: block !important;
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;
}
/*
body.mw-mf-search-mode .minerva-header .search-box input {
height: 36px !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; }
| |||