File: /var/www/quadcode-site/src/style/components/news/block-hero.scss
.block-hero {
position: relative;
display: flex;
align-items: center;
min-height: 550px;
@include breakpoint-down('deskL') {
min-height: 480px;
}
@include breakpoint-down('deskS') {
min-height: 360px;
}
@include breakpoint-down('tabM') {
min-height: 320px;
}
&__image {
position: absolute;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}
&:after {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(194, 64, 87, 0.9) 0%, rgba(0, 73, 126, 0.4) 100%);
z-index: 1;
}
.container {
padding-top: 86px;
display: flex;
justify-content: center;
flex-direction: column;
z-index: 2;
@include breakpoint-down('deskS') {
padding-top: 60px;
}
@include breakpoint-down('tabM') {
padding-top: 68px;
}
}
&__date {
margin-bottom: 8px;
color: $white;
display: flex;
align-items: center;
@include breakpoint-down('deskS') {
margin-bottom: 0;
}
span {
display: flex;
font-weight: 400;
@include breakpoint-down('deskL') {
font-size: 14px;
line-height: 20px;
}
@include breakpoint-down('deskS') {
font-size: 11px;
line-height: 15px;
}
}
svg {
display: flex;
margin-right: 4px;
}
}
&__title {
margin-bottom: 24px;
max-width: 780px;
width: 100%;
color: $white;
@include breakpoint-down('deskS') {
font-weight: 700;
font-size: 31px;
line-height: 44px;
max-width: 688px;
}
@include breakpoint-down('tabM') {
max-width: none;
font-size: 22px;
line-height: 30px;
margin-bottom: 32px;
}
}
&__link {
color: $white;
}
&.inside {
.block-hero__title {
text-align: center;
margin: 0 auto;
@include breakpoint-down('deskS') {
font-size: 43px;
line-height: 47px;
max-width: 620px;
}
@include breakpoint-down('tabM') {
font-size: 31px;
line-height: 44px;
}
}
}
}