2021-09-09 21:03:15 +00:00
|
|
|
@import '../../common/variables.less';
|
2022-09-29 22:54:55 +00:00
|
|
|
@import '../../common/mixins.less';
|
2021-09-09 21:03:15 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2022-06-23 21:33:47 +00:00
|
|
|
@media ( min-width: @min-width-desktop-wide ) {
|
2023-03-28 15:26:22 +00:00
|
|
|
.client-js & .vector-search-box.vector-search-box-auto-expand-width {
|
2023-01-06 18:07:35 +00:00
|
|
|
// Ensure search box is aligned with content when it autoexpands (i.e. search thumbnails)
|
|
|
|
margin-left: -@size-search-expand;
|
|
|
|
}
|
2022-06-13 20:57:13 +00:00
|
|
|
}
|
|
|
|
|
2022-06-23 21:33:47 +00:00
|
|
|
@media ( min-width: @min-width-desktop ) {
|
2021-09-09 21:03:15 +00:00
|
|
|
.vector-search-box {
|
2022-06-24 22:44:02 +00:00
|
|
|
margin-right: @margin-end-search;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-search-box-collapses > div {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vector-search-box {
|
|
|
|
// T284242#7206507: Widen the suggestion results to the edge of the search
|
|
|
|
// button at small resolutions.
|
|
|
|
position: relative;
|
|
|
|
margin-right: @margin-end-search;
|
2022-06-13 20:57:13 +00:00
|
|
|
|
|
|
|
// Override default max width at lower resolutions
|
|
|
|
> div {
|
|
|
|
max-width: none;
|
|
|
|
}
|
2021-09-09 21:03:15 +00:00
|
|
|
}
|
|
|
|
|
2022-02-01 20:52:16 +00:00
|
|
|
// Make the menu below the search input wider, to match the width of the input+button
|
|
|
|
// rather than just the width of the input
|
|
|
|
.cdx-search-input__input-wrapper {
|
2021-09-09 21:03:15 +00:00
|
|
|
position: static;
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|