File: D:/HostingSpaces/SBogers10/boldt.komma.pro/resources/sass/site/5-Components/_components.header.scss
.c-header {
@include z(z-header);
position: relative;
padding: 50px 0;
}
.c-header__main {
position: relative;
@include flex(space-between center);
@include contain;
@include mq(900, 1300) {
padding-top: 30px;
}
}
.c-header__logo {
@include flex(center center);
width: 240px;
z-index: 5;
}
.c-header__nav {
display: none;
flex: 1;
}
.c-header__overlay-button {
padding: 10px;
appearance: none;
background-color: transparent;
border: none;
cursor: pointer;
> * {
width: 25px;
height: 3px;
display: block;
transform: scale3d(1, 1, 1);
transform-origin: 0 50%;
background-color: white;
transition: transform 0.6s;
&:nth-of-type(2) {
transform: scale3d(0.8, 1, 1);
}
&:nth-of-type(3) {
transform: scale3d(0.45, 1, 1);
}
}
> * + * {
margin-top: 3px;
}
&:hover {
> * {
transform: scale3d(1, 1, 1) !important;
}
}
}
.technical-fiche-materials {
position: absolute;
top: -50px;
left: 0;
&:before {
content: '';
display: block;
width: 160%;
height: 300%;
position: absolute;
z-index: 0;
top: 0;
left: 0;
background: -moz-linear-gradient(-35deg, rgba(0,0,19,0) 25%, rgba(0,0,19,1) 70%); /* FF3.6-15 */
background: -webkit-linear-gradient(-35deg, rgba(0,0,19,0) 25%,rgba(0,0,19,1) 70%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(-35deg, rgba(0,0,19,0) 25%,rgba(0,0,19,1) 70%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000013', endColorstr='#000013',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.c-nav__link {
padding: 7px 20px 7px 10px;
color: palette(dark);
background-color: palette(action);
z-index: 10;
&::before {
content: none;
}
&:after {
content: "";
position: absolute;
bottom: -1px;
right: -1px;
border-width: 16px 16px 0 0;
border-style: solid;
border-color: transparent palette(dark);
}
&:hover {
color: palette(dark);
background-color: scale-color(palette(action), $lightness: -20%);
}
}
}
/**
* -----------------------------------------------------------------------------
* Large viewport gets a stacked navigation that toggles with a hamburger button
* -----------------------------------------------------------------------------
*/
@include mq($overlay-menu) {
.c-header__logo {
flex: 0 0 240px;
}
.c-header__nav {
display: block;
}
.c-header__overlay-button {
display: none
}
}