MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 596: | Line 596: | ||
.vector-search-box { | .vector-search-box { | ||
max-width: 420px; | max-width: 420px; | ||
} | |||
/* ===== Prevent header shifting on search ===== */ | |||
.vector-header { | |||
display: flex !important; | |||
align-items: center; | |||
justify-content: space-between; | |||
} | |||
.vector-header-start { | |||
flex: 0 0 auto !important; | |||
display: flex; | |||
align-items: center; | |||
} | |||
.vector-header-end { | |||
flex: 0 0 auto !important; | |||
display: flex; | |||
align-items: center; | |||
} | |||
/* Keep search contained */ | |||
.vector-search-box { | |||
flex: 0 0 360px !important; | |||
} | |||
/* Keep logo visible ALWAYS */ | |||
.mw-logo { | |||
display: flex !important; | |||
align-items: center; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
/* ===== Search dropdown (fix visibility) ===== */ | |||
.cdx-typeahead-search { | |||
background: #ffffff !important; | |||
color: #202124 !important; | |||
border-radius: 10px; | |||
box-shadow: 0 6px 24px rgba(0,0,0,0.2); | |||
} | |||
/* Search results text */ | |||
.cdx-menu-item { | |||
color: #202124 !important; | |||
} | |||
/* Hover */ | |||
.cdx-menu-item:hover { | |||
background: #f1f3f4 !important; | |||
} | |||
/* Input text color */ | |||
.cdx-text-input__input { | |||
color: #ffffff !important; | |||
} | |||
/* When typing */ | |||
.cdx-text-input__input:focus { | |||
background: rgba(255,255,255,0.18) !important; | |||
} | |||
/* Disable auto expand behavior */ | |||
.vector-search-box-auto-expand-width { | |||
max-width: 360px !important; | |||
} | } | ||
body.page-Main_Page #mw-panel, | body.page-Main_Page #mw-panel, | ||