| 1 |
.header-container { |
| 2 |
border-bottom: @border-subtle; |
| 3 |
padding: 0 @padding-content; |
| 4 |
|
| 5 |
&.header-chrome { |
| 6 |
background-color: @background-color-interactive; |
| 7 |
border: 0; |
| 8 |
box-shadow: inset 0 -1px 3px rgba( 0, 0, 0, 0.08 ); |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
.minerva-header { |
| 13 |
.navigation-drawer .toggle-list__toggle { |
| 14 |
.cdx-mixin-button-layout-flush( 'start', true, 'large' ); |
| 15 |
} |
| 16 |
|
| 17 |
.branding-box { |
| 18 |
opacity: @opacity-icon-subtle; // T251135 |
| 19 |
|
| 20 |
a { |
| 21 |
float: left; |
| 22 |
margin-left: 5px; |
| 23 |
font-size: 1em; |
| 24 |
text-decoration: none; |
| 25 |
color: @color-base; |
| 26 |
|
| 27 |
span { |
| 28 |
line-height: 0; |
| 29 |
font-size: inherit; |
| 30 |
} |
| 31 |
|
| 32 |
> * { |
| 33 |
float: left; |
| 34 |
} |
| 35 |
|
| 36 |
sup { |
| 37 |
color: @color-subtle; |
| 38 |
display: none; |
| 39 |
|
| 40 |
.beta & { |
| 41 |
display: initial; |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
.search-box { |
| 48 |
// Search box should grow to fill rest of header |
| 49 |
flex: 1 0 auto; |
| 50 |
display: none; |
| 51 |
} |
| 52 |
|
| 53 |
// Fix cursor for Safari |
| 54 |
#searchInput { // stylelint-disable-line selector-max-id |
| 55 |
cursor: text; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
@media screen and ( min-width: @min-width-breakpoint-tablet ) { |
| 60 |
.minerva-header { |
| 61 |
.branding-box { |
| 62 |
// Handle logos that are larger than the set branding box width |
| 63 |
// This will also cause the searchbox overlay to be misaligned with the .minerva-heading searchbox |
| 64 |
min-width: @min-width-branding-box-ems; |
| 65 |
width: auto; |
| 66 |
} |
| 67 |
|
| 68 |
.search-box { |
| 69 |
display: block; |
| 70 |
width: @width-search-box; |
| 71 |
max-width: @width-search-box; |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
/* FIXME: Remove when T366859 has been addressed */ |
| 77 |
@media screen and ( min-width: 720px ) { |
| 78 |
.minerva-header { |
| 79 |
.branding-box { |
| 80 |
min-width: @T366859-min-width-branding-box-ems; |
| 81 |
} |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
// Night mode |
| 86 |
@media screen { |
| 87 |
html.skin-theme-clientpref-night { |
| 88 |
.branding-box img { |
| 89 |
.night-mode-invert-image(); |
| 90 |
} |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
@media screen and ( prefers-color-scheme: dark ) { |
| 95 |
html.skin-theme-clientpref-os { |
| 96 |
.branding-box img { |
| 97 |
.night-mode-invert-image(); |
| 98 |
} |
| 99 |
} |
| 100 |
} |