MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
Main Page | Main Page: keep ONE search bar (header), hide sticky duplicate | ||
========================================================= */ | ========================================================= */ | ||
/* | /* 1) HIDE the sticky/duplicate header (this is the second search UI) */ | ||
.page-Main_Page .vector-sticky-header, | |||
.page-Main_Page .vector-sticky-header-container { | |||
/ | |||
.page-Main_Page . | |||
.page-Main_Page . | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* 2) SHOW the normal header search no matter what previous rules did */ | ||
.page-Main_Page .mw-header #p-search, | |||
.page-Main_Page .mw-header .vector-search-box, | |||
.page-Main_Page .mw-header .mw-search { | |||
display: block !important; | |||
visibility: visible !important; | |||
opacity: 1 !important; | |||
.page-Main_Page .mw-header | |||
.page-Main_Page .mw- | |||
.page-Main_Page .mw- | |||
. | |||
} | } | ||
/* | /* 3) Make the header search look like the hero */ | ||
.page-Main_Page .mw-header .vector-search-box { | .page-Main_Page .mw-header .vector-search-box { | ||
max-width: 720px !important; | max-width: 720px !important; | ||
margin: 28px auto 0 !important; | margin: 28px auto 0 !important; | ||
} | } | ||
Revision as of 19:02, 13 December 2025
/* =========================================================
Main Page: keep ONE search bar (header), hide sticky duplicate
========================================================= */
/* 1) HIDE the sticky/duplicate header (this is the second search UI) */
.page-Main_Page .vector-sticky-header,
.page-Main_Page .vector-sticky-header-container {
display: none !important;
}
/* 2) SHOW the normal header search no matter what previous rules did */
.page-Main_Page .mw-header #p-search,
.page-Main_Page .mw-header .vector-search-box,
.page-Main_Page .mw-header .mw-search {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* 3) Make the header search look like the hero */
.page-Main_Page .mw-header .vector-search-box {
max-width: 720px !important;
margin: 28px auto 0 !important;
}