MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 153:
/* ======================================================= */
/* 2.
/* ======================================================= */
/* --- A. THE
/* We
.header-container.header-chrome {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
height: 50px !important;
z-index: 1000 !important;
background-color: #ffffff !important;
border-bottom: 1px solid #eaecf0 !important;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);▼
display: flex !important;▼
}
/*
body.skin-minerva {
padding-top: 50px !important;
}
.mw-body {
/* Hide the Hamburger Menu */▼
.header-container .navigation-drawer {▼
▲ display: none !important;
}
/* Hide the
body:not(.mw-mf-search-mode) .minerva-header .search-box {
display: none !important;
}
/* ---
/* We
position: absolute !important;▼
top: 0 !important;
width: 60px !important;▼
height: 50px !important;
display: flex !important;
align-items: center;
Line 204 ⟶ 201:
}
▲.header-container .branding-box a {
.branding-box a {
font-size: 0 !important;
color: transparent !important;
text-decoration: none !important;▼
}
▲.header-container .branding-box a::before {
font-size: 28px;
color: #000;
line-height: 50px;▼
}
/* ---
/*
#searchIcon {
position: fixed !important; /* Pin to Viewport */▼
transform: translateX(-50%) !important; /* Perfect Center */▼
display: flex !important;
align-items: center;
justify-content: center;
height: 50px !important;▼
▲ width: 60px !important;
background: transparent !important;
border: none !important;
Line 234 ⟶ 233:
margin: 0 !important;
padding: 0 !important;
▲ transform: translateX(-50%);
}
/* Icon Style */
#searchIcon .minerva-icon {
font-size: 24px;
Line 247 ⟶ 242:
}
/* ---
/* We
#cps-open-toc {
display: flex !important;
position:
top: 3px !important;
right:
bottom: auto !important; /*
left: auto !important;
width: 44px !important;
height: 44px !important;
▲ color: #000 !important;
color: #000 !important; /* Black icon */▼
box-shadow: none !important;
}
/*
/* When search is clicked, the input box appears BELOW the header */
/* 1. Reset the container visibility */
visibility: visible !important;
opacity: 1 !important;
▲ position: fixed !important;
}
/* 2. Position the
body.mw-mf-search-mode .minerva-header .search-box {
position: fixed !important;
top: 50px !important; /* Starts exactly where header ends */
▲ top: 50px !important;
left: 0 !important;
right: 0 !important;
padding: 10px !important;▼
background-color: #f0f0f0 !important; /*
▲ padding: 10px !important;
border-bottom: 1px solid #ccc;
z-index: 999 !important; /*
}
/* 3. Style the Input Field
body.mw-mf-search-mode .
▲ width: 100% !important;
▲ background: #fff !important;
▲ color: #000 !important;
▲ opacity: 1 !important;
▲ opacity: 0.3 !important; /* Dim it to show it's active */
| |||