File: D:/HostingSpaces/slenders/slenders.nl/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: 30px 0;
#component-item-1 & {
padding: 0;
}
@include mq($heroMobileBp) {
@include contain();
padding: 160px 0 100px;
#component-item-1 & {
padding: 160px 0 100px;
}
&: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-wrapper {
background-color: palette(primary);
padding: 40px 25px;
@include mq($heroMobileBp) {
display: none;
}
#component-item-1 & {
padding-top: 0;
}
}
.o-hero__page-location {
@include font(mid, 24, semi-bold);
color: palette(text, 200);
}
.o-hero__title {
margin-top: 12px;
color: white;
@include font(x-large, 37, semi-bold);
}
.o-hero__button {
display: none;
padding: 16px 45px 16px 40px;
background-color: palette(primary);
text-decoration: none;
@include mq($max: $heroMobileBp) {
display: inline-block;
.c-text-button {
font-size: 1rem;
}
}
}