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.
110 lines
2.0 KiB
110 lines
2.0 KiB
@import "../../src/scss/variables.scss";
|
|
@import "../../src/scss/mixins.scss";
|
|
|
|
.component-header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
min-height: $header-height-mobile;
|
|
width: 100%;
|
|
background: $white;
|
|
color: $black;
|
|
z-index: 200;
|
|
|
|
.header-wrapper {
|
|
display: flex;
|
|
position: relative;
|
|
min-height: $header-height-mobile;
|
|
|
|
.logo {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
height: 70px;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.hamburger {
|
|
position: absolute;
|
|
top: 45px;
|
|
right: 20px;
|
|
}
|
|
|
|
.menu-container {
|
|
margin: 100px 0 20px auto;
|
|
|
|
.menu-label {
|
|
//display: none;
|
|
position: absolute;
|
|
right: 35px;
|
|
top: 80px;
|
|
opacity: 0;
|
|
transition: transform .4s, right .4s, opacity .4s;
|
|
transform-origin: right;
|
|
transform: rotate(-90deg);
|
|
-webkit-backface-visibility: hidden;
|
|
|
|
.label {
|
|
@include font-style($font-serif, 'regular', $font-18);
|
|
color: $brown;
|
|
transition: font-size .4s;
|
|
}
|
|
}
|
|
|
|
.menu {
|
|
text-align: right;
|
|
display: none;
|
|
opacity: 0;
|
|
transition: opacity .4s;
|
|
|
|
.item {
|
|
padding: 0 5px;
|
|
|
|
.label {
|
|
@include font-style($font-serif, 'regular', $font-18);
|
|
color: $olive-dark;
|
|
}
|
|
|
|
&:first-of-type {
|
|
padding-top: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
.menu-label {
|
|
opacity: 1;
|
|
transform: rotate(0deg);
|
|
right: 20px;
|
|
.label {
|
|
font-size:$font-14;
|
|
}
|
|
}
|
|
|
|
.menu {
|
|
opacity: 1;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: map-get($grid-breakpoints, 'md')) {
|
|
.component-header {
|
|
min-height: $header-height;
|
|
.header-wrapper {
|
|
min-height: $header-height;
|
|
.menu-container {
|
|
.menu-label {
|
|
//display: block;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|