liebling/src/sass/components/hero/_hero.scss

91 lines
1.3 KiB
SCSS
Raw Normal View History

2019-05-21 19:50:29 +00:00
.m-hero {
position: relative;
flex-direction: column;
min-height: 365px;
overflow: hidden;
padding: 100px 0 75px;
2019-09-28 22:02:59 +00:00
background-color: var(--secondary-subtle-color);
2019-05-21 19:50:29 +00:00
@extend .content-centered;
@include respond-to('medium') {
min-height: 400px;
padding: 150px 0 75px;
}
&.with-picture {
color: $white;
2019-09-28 22:02:59 +00:00
background-color: $black;
2019-05-21 19:50:29 +00:00
@include respond-to('medium') {
min-height: 450px;
}
@include respond-to('extra-large') {
min-height: 565px;
}
.m-hero-title {
color: $white;
}
}
2019-10-03 15:07:33 +00:00
&.no-picture.in-post {
display: none;
}
2019-05-21 19:50:29 +00:00
}
.m-hero__picture {
2020-12-14 14:16:53 +00:00
display: flex;
align-items: center;
justify-content: center;
2019-05-21 19:50:29 +00:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0.7;
2020-12-14 14:16:53 +00:00
2019-05-21 19:50:29 +00:00
&.in-post {
opacity: 1;
}
2020-12-14 14:16:53 +00:00
img {
width: 100%;
height: 100%;
object-fit: cover;
}
2019-05-21 19:50:29 +00:00
}
2019-05-21 19:50:29 +00:00
.m-hero__content {
position: relative;
text-align: center;
padding: 0 $mobile-space;
z-index: 2;
@include respond-to('medium') {
max-width: 700px;
}
@include respond-to('extra-large') {
padding: 0;
}
}
.m-hero__meta {
margin: 0 auto;
@include respond-to('medium') {
display: flex;
align-items: center;
justify-content: center;
}
}
2019-09-20 21:30:08 +00:00
.rtl {
.m-hero__meta {
direction: ltr;
}
}