File: D:/HostingSpaces/SBogers10/veltech.komma.pro/resources/sass/site/6-Organisms/_organisms.header.scss
// Component settings: Header
// ------------------------------------------
$o-header: (
'bgcolor-alternative': palette(primary),
'toggle-color': palette(dark),
'logo-width': 200px
);
// ------------------------------------------
.o-header {
@include z(z-header);
position: relative;
padding: space(4) 0;
&.is-header-alt {
background-color: map-get($o-header, 'bgcolor-alternative');
}
&.is-sticky {
opacity: 0;
position: fixed;
z-index: 50;
top: 0;
left: 0;
width: 100%;
padding-top: space(4);
padding-bottom: space(4);
box-shadow: 0 -5px 30px black;
transform: translateY(-100%);
transition-property: transform, opacity;
transition-duration: 300ms;
transition-delay: 0s, 300ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
@include mq($bp-header-large) {
display: none;
}
.is-sticky-header-visible & {
opacity: 1;
transform: none;
transition-delay: 0s;
}
}
}
.o-header__main {
@include contain;
@include flex(center space-between);
position: relative;
}
.o-header__nav {
width: 100%;
@include mq($max: $bp-header-large) {
display: none;
}
}
.o-header__language {
margin-left: space(2);
@include mq($max: $bp-header-large) {
margin-left: auto;
}
}
.o-header__logo {
flex: none;
&:focus {
outline-offset: 2px;
outline-color: palette(feedback, action);
}
}
.o-header__img {
max-height: space(12.25);
width: map-get($o-header, 'logo-width');
}
.o-header__toggle {
@include mq($bp-header-large) {
display: none;
}
}