2021-11-12 17:56:44 +00:00
|
|
|
.header-container {
|
2023-04-09 13:49:29 +00:00
|
|
|
border-bottom: @border-subtle;
|
2024-01-31 15:06:56 +00:00
|
|
|
padding: 0 @padding-content;
|
2021-11-12 17:56:44 +00:00
|
|
|
|
|
|
|
&.header-chrome {
|
2024-06-10 20:52:01 +00:00
|
|
|
background-color: @background-color-interactive;
|
2021-11-12 17:56:44 +00:00
|
|
|
border: 0;
|
|
|
|
box-shadow: inset 0 -1px 3px rgba( 0, 0, 0, 0.08 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-28 21:48:05 +00:00
|
|
|
.minerva-header {
|
2023-08-09 21:49:19 +00:00
|
|
|
.navigation-drawer .toggle-list__toggle {
|
|
|
|
.cdx-mixin-button-layout-flush( 'start', true, 'large' );
|
|
|
|
}
|
|
|
|
|
2021-10-28 21:48:05 +00:00
|
|
|
.branding-box {
|
|
|
|
opacity: @opacity-icon-subtle; // T251135
|
|
|
|
|
|
|
|
a {
|
|
|
|
float: left;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 1em;
|
|
|
|
text-decoration: none;
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-base;
|
2021-10-28 21:48:05 +00:00
|
|
|
|
|
|
|
span {
|
|
|
|
line-height: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-subtle;
|
2021-10-28 21:48:05 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
.beta & {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
// Search box should grow to fill rest of header
|
|
|
|
flex: 1 0 auto;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix cursor for Safari
|
|
|
|
#searchInput { // stylelint-disable-line selector-max-id
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-07 09:03:29 +00:00
|
|
|
@media screen and ( min-width: @min-width-breakpoint-tablet ) {
|
2021-10-28 21:48:05 +00:00
|
|
|
.minerva-header {
|
|
|
|
.branding-box {
|
|
|
|
// Handle logos that are larger than the set branding box width
|
|
|
|
// This will also cause the searchbox overlay to be misaligned with the .minerva-heading searchbox
|
2023-11-07 09:03:29 +00:00
|
|
|
min-width: @min-width-branding-box-ems;
|
2021-10-28 21:48:05 +00:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-box {
|
|
|
|
display: block;
|
2024-01-31 15:06:56 +00:00
|
|
|
width: @width-search-box;
|
|
|
|
max-width: @width-search-box;
|
2021-10-28 21:48:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-02-13 18:47:54 +00:00
|
|
|
|
2023-11-07 09:03:29 +00:00
|
|
|
/* FIXME: Remove when T366859 has been addressed */
|
|
|
|
@media screen and ( min-width: 720px ) {
|
|
|
|
.minerva-header {
|
|
|
|
.branding-box {
|
|
|
|
min-width: @T366859-min-width-branding-box-ems;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-13 18:47:54 +00:00
|
|
|
// Night mode
|
2024-08-08 18:27:30 +00:00
|
|
|
@media screen {
|
|
|
|
html.skin-theme-clientpref-night {
|
|
|
|
.branding-box img {
|
|
|
|
.night-mode-invert-image();
|
|
|
|
}
|
2024-02-13 18:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-08 18:27:30 +00:00
|
|
|
@media screen and ( prefers-color-scheme: dark ) {
|
2024-03-18 19:14:23 +00:00
|
|
|
html.skin-theme-clientpref-os {
|
2024-02-13 18:47:54 +00:00
|
|
|
.branding-box img {
|
2024-02-27 18:27:59 +00:00
|
|
|
.night-mode-invert-image();
|
2024-02-13 18:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|