MediaWiki:Mobile.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 129:
/* ======================================================= */
/* 1. MOBILE
/* ======================================================= */
/*
body:not(.mw-mf-search-mode) .header-container.header-chrome {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 999;
background-color: #fff;
border-bottom: 1px solid #eaecf0;
Line 152 ⟶ 143:
}
/*
/* This
.minerva-header .search-box .search {
color: #
opacity: 1 !important; /* Ensure it's not transparent */
text-shadow: none !important; /* Remove any text shadows */
-webkit-text-fill-color: #202122 !important; /* iOS fix */
}
/* C. Search Icon Displacement Fix */
/* This prevents the search box from stretching too wide and pushing the icon */
.minerva-header .search-box {
box-sizing: border-box !important;
/* Ensure there is room for the icon on the right */
padding-right: 0 !important;
}
/* Force the icon overlay to stay in the correct spot */
.minerva-header .search-box .search-box-icon-overlay {
right: 0 !important;
left: auto !important;
top: 0 !important;
bottom: 0 !important;
width: 44px !important; /* Standard touch target size */
height: 100% !important;
display: flex !important;
align-items: center;
justify-content: center;
position: absolute !important;
z-index: 2 !important; /* Sit on top of the input */
pointer-events: none; /* Allow clicking "through" to the input if needed */
}
/* Adjust input padding so text doesn't go under the icon */
.minerva-header .search-box input.search {
padding-right: 40px !important;
box-sizing: border-box !important;
width: 100% !important;
}
/* ======================================================= */
/* 2. DESKTOP
/* ======================================================= */
/* Use FIXED instead of STICKY.
Sticky stops working if its parent container ends.
Fixed forces it to stay on screen forever. */
.vector-header-container {
position:
▲ position: sticky;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index:
▲ background-color: #ffffff;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
/* PADDING COMPENSATION (Important!)
Since the header is now "fixed" (floating above everything),
it no longer takes up space in the page flow.
We must push the page content down so it isn't hidden behind the header. */
body.skin-vector-2022 {
padding-top: 60px; /* Adjust this number if the header covers your title */
}
/* Ensure the scrollable content container behaves correctly */
.mw-page-container {
margin-top: 10px;
}
| |||