Debian Codegraph @

skins/Vector/resources/skins.vector.styles/components/Header.less

raw
1 .mw-header {
2 // Vertical centering of header elements (IE>=11), requires Flexbox.
3 .flex-display();
4 flex-wrap: nowrap;
5 // https://caniuse.com/#search=align-items
6 align-items: center;
7 padding-top: 8px;
8 padding-bottom: 8px;
9
10 .vector-header-start,
11 .vector-header-end {
12 display: flex;
13 align-items: center;
14 }
15
16 .vector-header-end {
17 flex-grow: 1;
18 }
19
20 .search-toggle {
21 // At lower resolutions the search input is hidden and a toggle is shown
22 display: inline-flex;
23 // Ensures the button has a font size of 16px
24 font-size: unit( 16 / @font-size-browser, rem );
25
26 @media ( min-width: @min-width-breakpoint-mobile ) {
27 float: right;
28 }
29
30 @media ( min-width: @min-width-breakpoint-desktop ) {
31 // Override .cdx-button styles
32 display: none !important; /* stylelint-disable-line declaration-no-important */
33 }
34 }
35
36 .vector-typeahead-search-container {
37 display: none;
38
39 @media ( min-width: @min-width-breakpoint-desktop ) {
40 display: block;
41 }
42 }
43
44 @media ( max-width: @max-width-breakpoint-mobile ) {
45 #p-search,
46 .vector-header-end {
47 .cdx-mixin-button-layout-flush( 'start', true );
48 }
49 }
50
51 @media ( max-width: @max-width-breakpoint-tablet ) {
52 /**
53 * Toggles the visibility of the search box at lower resolutions.
54 */
55 &.vector-header-search-toggled {
56 .vector-header-start,
57 .search-toggle {
58 display: none;
59 }
60
61 .vector-typeahead-search-container {
62 display: block;
63 // Override default max width at lower resolutions
64 max-width: none;
65 }
66
67 .vector-search-box {
68 // T284242#7206507: Widen the suggestion results to the edge of the search
69 // button at small resolutions.
70 position: relative;
71 }
72
73 // Since the end button's corner is now right above the menu's corner, don't use a
74 // rounded corner here (T310525)
75 .cdx-typeahead-search--expanded .cdx-search-input__end-button {
76 border-bottom-right-radius: 0;
77 }
78 }
79 }
80 }