File: D:/HostingSpaces/SBogers10/stafa.komma.pro/resources/sass/site/6-Organisms/_organisms.hero.scss
// The __MAIN element can contain 2 elements:
// __CONTENT is always used
// The other is or __FIGURE or __ASIDE
// __FIGURE is used for an image
// __ASIDE is used for extra content. i.e. a servicepoint
$bp-hero-switch: m;
.o-hero {
position: relative;
z-index: 1; // so it sits on top of the content (hexagon must overlap body)
color: palette(neutral);
&::after {
@include ornament-hex-stroked('large', 'bottomleft');
content: '';
display: block;
}
}
.o-hero__main {
position: relative;
z-index: 1;
@include mq(m) {
@include contain;
}
@include mq($bp-hero-switch) {
display: flex;
flex-direction: row-reverse;
}
}
.o-hero__figure {
@include mq($max: $bp-hero-switch) {
text-align: center;
}
@include mq($bp-hero-switch) {
flex-basis: column(6,12);
padding-bottom: space(5);
}
}
.o-hero__image {
@include mq($max: m) {
width: 100%;
}
}
.o-hero__content {
position: relative;
@include vspacing(
'padding-top' 1,
'padding-bottom' 1
);
@include mq($max: m) {
@include contain;
}
@include mq($bp-hero-switch) {
flex-basis: column(6,12);
}
}
/*
* --------------------------------
* Body text inside o-hero__content
* --------------------------------
*/
// show only on large screens
.o-hero__back {
display: none;
@include mq($bp-hero-switch) {
display: block;
position: absolute;
top: 0;
left: 0;
}
}
.o-hero__title {
@include text-style(5);
margin-bottom: space(3);
color: palette(secondary, 500);
}
.o-hero__header {
@include text-style(1);
margin-bottom: space(6);
@include mq($bp-hero-switch) {
padding-right: column(0.5, 6);
}
}
.o-hero__text {
@include mq($bp-hero-switch) {
padding-right: column(1, 6);
}
}
.o-hero__action {
margin-top: space(6);
}
// Contact person
$bp-hero-switch--contact-person: l;
.o-hero__main {
&[data-type="contact-person"] {
flex-wrap: wrap;
@include mq($bp-hero-switch--contact-person) {
flex-direction: row;
}
}
.o-hero__contact-person {
@include vspacing-s(
'padding-bottom' 1
);
@include vspacing-m(
'padding-bottom' 1
);
@include vspacing-l-up(
'padding-top' 1
);
@include mq($bp-hero-switch--contact-person) {
flex-basis: column(6,12);
margin-top: space(5);
padding-bottom: space(5);
}
@include mq($max: $bp-hero-switch--contact-person) {
flex-basis: 100%;
}
}
.o-hero__content {
@include mq($max: $bp-hero-switch--contact-person) {
flex-basis: 100%;
}
}
}
// Slider
$bp-hero-switch--slider: l;
.o-hero__main {
&[data-type="slider"] {
display: block;
@include mq($bp-hero-switch--slider) {
display: flex;
flex-direction: row;
}
.o-hero__slider {
@include vspacing(
'padding-bottom' 1
);
@include vspacing-l-up(
'padding-top' 1
);
@include mq($max: m) {
@include contain;
}
@include mq($max: $bp-hero-switch--slider) {
text-align: center;
}
@include mq($bp-hero-switch--slider) {
flex-basis: column(6, 12);
}
}
}
}