2021-09-09 21:03:15 +00:00
|
|
|
.mw-header {
|
2022-07-20 15:09:18 +00:00
|
|
|
// Vertical centering of header elements (IE>=11), requires Flexbox.
|
2021-09-09 21:03:15 +00:00
|
|
|
.flex-display();
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
// https://caniuse.com/#search=align-items
|
|
|
|
align-items: center;
|
2023-03-31 19:25:09 +00:00
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
2021-09-09 21:03:15 +00:00
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
.vector-header-start,
|
|
|
|
.vector-header-end {
|
2022-05-04 22:20:23 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
.vector-header-end {
|
2022-05-04 22:20:23 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2023-05-24 19:39:52 +00:00
|
|
|
.search-toggle {
|
|
|
|
// At lower resolutions the search input is hidden and a toggle is shown
|
|
|
|
display: inline-flex;
|
|
|
|
float: right;
|
|
|
|
// Ensures the button has a font size of 16px
|
|
|
|
font-size: unit( 16 / @font-size-browser, rem );
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-desktop ) {
|
|
|
|
// Override .cdx-button styles
|
|
|
|
display: none !important; /* stylelint-disable-line declaration-no-important */
|
2023-01-06 18:07:35 +00:00
|
|
|
}
|
2022-06-13 20:57:13 +00:00
|
|
|
}
|
|
|
|
|
2023-05-24 19:39:52 +00:00
|
|
|
.vector-typeahead-search-container {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-desktop ) {
|
|
|
|
display: block;
|
2021-09-09 21:03:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-23 21:33:47 +00:00
|
|
|
@media ( max-width: @max-width-tablet ) {
|
2022-09-01 16:23:55 +00:00
|
|
|
/**
|
|
|
|
* Toggles the visibility of the search box at lower resolutions.
|
|
|
|
*/
|
2021-09-09 21:03:15 +00:00
|
|
|
&.vector-header-search-toggled {
|
2023-01-06 18:07:35 +00:00
|
|
|
.vector-header-start,
|
2021-09-09 21:03:15 +00:00
|
|
|
.search-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-05-24 19:39:52 +00:00
|
|
|
.vector-typeahead-search-container {
|
2021-09-09 21:03:15 +00:00
|
|
|
display: block;
|
2023-05-24 19:39:52 +00:00
|
|
|
// Override default max width at lower resolutions
|
|
|
|
max-width: none;
|
2021-09-09 21:03:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-search-box {
|
|
|
|
// T284242#7206507: Widen the suggestion results to the edge of the search
|
|
|
|
// button at small resolutions.
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-02-01 20:52:16 +00:00
|
|
|
// Since the end button's corner is now right above the menu's corner, don't use a
|
|
|
|
// rounded corner here (T310525)
|
|
|
|
.cdx-typeahead-search--expanded .cdx-search-input__end-button {
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2021-09-09 21:03:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|