You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.3 KiB
105 lines
2.3 KiB
7 years ago
|
.header {
|
||
7 years ago
|
@extend %explorer-header-min-height;
|
||
7 years ago
|
background: explorer-color("gray", "50");
|
||
|
box-shadow: 0 2px 2px 0 rgba(explorer-color("slate", "900"), 0.16),
|
||
|
0 0px 2px 0 rgba(explorer-color("slate", "900"), 0.12);
|
||
7 years ago
|
position: fixed;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
7 years ago
|
|
||
7 years ago
|
&__container { width: 100%; }
|
||
7 years ago
|
&__row { vertical-align: middle; }
|
||
|
&__cell {
|
||
|
@extend %explorer-header-height;
|
||
|
&--logo { @extend %explorer-header-square-width; }
|
||
7 years ago
|
&--links {
|
||
|
display: flex;
|
||
|
flex-direction: row-reverse;
|
||
|
padding-right: explorer-size(0);
|
||
|
}
|
||
7 years ago
|
&--search {
|
||
|
@include explorer-typography("body1");
|
||
|
padding-left: explorer-size(0);
|
||
|
}
|
||
|
|
||
|
&--search-form {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
&--search-glass {
|
||
|
height: 16px;
|
||
|
width: 16px;
|
||
|
position: absolute;
|
||
|
top: 14px;
|
||
|
left: 16px;
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
|
||
|
&--search-input {
|
||
|
width: 100%;
|
||
|
border: none;
|
||
|
background-color: transparent;
|
||
|
height: explorer-size(1);
|
||
|
padding-left: explorer-size(1);
|
||
|
padding-right: explorer-size(-1);
|
||
|
}
|
||
|
|
||
|
&--search-input[placeholder] {
|
||
|
text-overflow: ellipsis;
|
||
|
}
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
7 years ago
|
&__logo-link {
|
||
|
@extend %explorer-header-height;
|
||
|
@extend %explorer-header-square-width;
|
||
7 years ago
|
display: flex;
|
||
|
background: explorer-color("blue", "500");
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
7 years ago
|
&__logo {
|
||
7 years ago
|
width: 32px;
|
||
|
height: 36px;
|
||
7 years ago
|
display: block;
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
|
&__link {
|
||
|
@extend %explorer-header-height;
|
||
|
display: block;
|
||
|
text-decoration: none;
|
||
|
border-top: explorer-size(-4) solid transparent;
|
||
|
border-left: explorer-size(-4) solid transparent;
|
||
|
border-right: explorer-size(-4) solid transparent;
|
||
|
padding: explorer-size(-3);
|
||
7 years ago
|
color: explorer-color("slate", "900");
|
||
7 years ago
|
|
||
|
&:hover {
|
||
|
border-top-color: explorer-color("blue", "500");
|
||
|
color: explorer-color("blue", "500");
|
||
|
}
|
||
7 years ago
|
|
||
|
& + & { margin-right: explorer-size(-2); }
|
||
7 years ago
|
&--optional { display: none; }
|
||
7 years ago
|
}
|
||
|
|
||
|
&__link-name {
|
||
|
@include explorer-typography("body1");
|
||
|
margin-left: explorer-size(-3);
|
||
|
}
|
||
|
|
||
|
&__link-image, &__link-name {
|
||
|
display: inline-block;
|
||
|
vertical-align: middle;
|
||
|
}
|
||
7 years ago
|
}
|
||
7 years ago
|
|
||
|
@media (min-width: $explorer-breakpoint-sm) {
|
||
|
.header {
|
||
|
&__link {
|
||
|
&--optional { display: block; }
|
||
|
}
|
||
|
}
|
||
|
}
|