File: D:/HostingSpaces/SBogers10/slenders.komma.pro/resources/sass/site/6-Organisms/_organisms.hero.scss
$heroMobileBp : 650;
.o-hero{
position: relative;
@include mq($heroMobileBp) {
&:before {
content: '';
position: absolute;
z-index: 2;
left: 0;
top: 0;
display: block;
width: 50vw;
height: 100%;
background-color: palette(primary, 700);
}
&:after {
content: '';
position: absolute;
z-index: 1;
left: 0;
top: 0;
display: block;
width: 100%;
height: calc( 100% - 120px );
background-color: palette(primary);
}
}
}
.o-hero__main {
position: relative;
z-index: 3;
padding: 160px 0 100px;
@include mq($heroMobileBp) {
@include contain();
&:before {
content: '';
position: absolute;
z-index: 2;
top: 0;
left: 0;
display: block;
width: column(9, 12);
height: 100%;
background: linear-gradient(90deg, rgba(palette(primary, 700), 1) 0%, rgba(palette(primary, 700), 1) column(2, 5), rgba(palette(primary, 700), 0) 100% );
}
}
@include mq(900) {
&:before {
width: column(7, 12);
}
}
@include mq(1200) {
&:before {
width: column(5, 12);
}
}
}
.o-hero__image{
align-items: center;
width: 100%;
@include mq($heroMobileBp) {
position: absolute;
left: 0;
top: 0;
z-index: 1;
height: 100%;
}
}
.o-hero__cta {
position: relative;
z-index: 3;
@include mq($max: $heroMobileBp) {
display: none;
}
}
.o-hero__title {
padding: 25px 40px;
background-color: palette(primary);
color: white;
@include mq($heroMobileBp) {
display: none;
}
}
.o-hero__button {
display: inline-block;
padding: 16px 45px 16px 40px;
background-color: palette(primary);
text-decoration: none;
}