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.

165 lines
2.9 KiB

5 years ago
@import "../../src/scss/variables.scss";
@import "../../src/scss/mixins.scss";
.component-header {
5 years ago
position: fixed;
top: 0;
left: 0;
5 years ago
width: 100%;
5 years ago
background: $white;
color: $black;
5 years ago
z-index: 200;
5 years ago
.header-wrapper {
5 years ago
display: flex;
position: relative;
5 years ago
transition: min-height .4s;
5 years ago
min-height: $header-height-mobile;
5 years ago
5 years ago
.logo {
position: absolute;
top: 50%;
left: 50%;
5 years ago
height: 100%;
5 years ago
max-height: 50px;
5 years ago
margin: auto 0;
transition: max-height .4s;
5 years ago
transform: translate(-50%, -50%);
}
5 years ago
4 years ago
.cart-cta {
position: absolute;
top: 20px;
right: 70px;
font-size: $font-34;
padding: 0 4px !important;
color: $black;
.counter {
position: absolute;
left: 50%;
top: 14px;
transform: translateX(-50%);
@include font-style($font-sans, 'semibold', $font-14);
}
}
5 years ago
.hamburger {
position: absolute;
5 years ago
top: 20px;
5 years ago
right: 20px;
}
5 years ago
5 years ago
.menu-container {
5 years ago
margin: 60px 0 20px auto;
5 years ago
.menu-label {
//display: none;
position: absolute;
right: 35px;
5 years ago
top: 60px;
5 years ago
opacity: 0;
transition: transform .4s, right .4s, opacity .4s;
transform-origin: right;
transform: rotate(-90deg);
-webkit-backface-visibility: hidden;
5 years ago
.label {
5 years ago
@include font-style($font-serif, 'regular', $font-18);
color: $brown;
transition: font-size .4s;
5 years ago
-webkit-backface-visibility: hidden;
}
5 years ago
}
5 years ago
.menu {
text-align: right;
display: none;
opacity: 0;
5 years ago
padding-top: 20px;
5 years ago
transition: opacity .4s;
.item {
padding: 0 5px;
.label {
5 years ago
@include font-style($font-serif, 'regular', $font-18);
color: $olive-dark;
}
5 years ago
&:first-of-type {
padding-top: 5px;
}
}
5 years ago
}
5 years ago
&.active {
.menu-label {
5 years ago
opacity: 1 !important;
5 years ago
transform: rotate(0deg);
right: 20px;
.label {
5 years ago
font-size:$font-14;
}
5 years ago
}
5 years ago
.menu {
opacity: 1;
}
}
5 years ago
}
}
5 years ago
&.sticky {
.header-wrapper {
min-height: $header-height-mobile-sticky;
.logo {
max-height: 50px;
}
.menu-container {
.menu-label {
opacity: 0;
}
}
}
}
5 years ago
&.is-home {
background: transparent;
.header-wrapper {
.logo {
display: none;
}
}
}
5 years ago
}
@media (min-width: map-get($grid-breakpoints, 'md')) {
.component-header {
.header-wrapper {
5 years ago
min-height: $header-height;
5 years ago
.logo {
5 years ago
max-height: 70px;
5 years ago
}
5 years ago
.menu-container {
.menu-label {
//display: block;
opacity: 1;
}
}
5 years ago
}
5 years ago
&.sticky {
.header-wrapper {
min-height: $header-height-sticky;
}
}
5 years ago
}
5 years ago
}
5 years ago