Newer
Older
$margin-mobile: 16px;
$margin-narrow: 32px;

Ekaterina Kondareva
committed
.hy-adjacent-image-text {
Ekaterina Kondareva
committed
&__image-container {
display: flex;
flex: 1;
justify-content: stretch;
margin-bottom: 0;
min-height: 10rem;
position: relative;
padding-bottom: var(--aspectRatio);
Ekaterina Kondareva
committed
@include breakpoint($medium) {
padding-bottom: 0;
Ekaterina Kondareva
committed
img {
bottom: 0;
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
right: 0;
top: 0;
width: 100%;
flex: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 6);
flex: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 6 + #{var(--gutter-extrawide)} * 6);
}
}
&__text-container {
Ekaterina Kondareva
committed
flex: 1;
-webkit-border-image: none;
-moz-border-image: none;
-o-border-image: none;
border-left: 1px solid transparent;
border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
margin-left: 66px;
margin-top: -63px;
padding-top: 38px;
position: relative;
z-index: 99;
-webkit-border-image: -webkit-linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0
100%;
-moz-border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
-o-border-image: linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;
flex: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5);
margin-left: 0;
margin-top: 0;
padding-top: 0;
z-index: 0;
-webkit-border-image: none;
-moz-border-image: none;
-o-border-image: none;
flex: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 6 + #{var(--gutter-extrawide)} * 5);
Ekaterina Kondareva
committed
&__info-wrapper {
padding-left: 0;
padding-right: 0;
Ekaterina Kondareva
committed
padding-left: 50px;
Ekaterina Kondareva
committed
@include breakpoint($wide) {
padding-left: calc((100% - #{var(--gutter-narrow)} * 5) / 6);
padding-right: calc((100% - #{var(--gutter-narrow)} * 5) / 6);
padding-left: calc((100% - #{var(--gutter-extrawide)} * 5) / 6);
padding-right: calc((100% - #{var(--gutter-extrawide)} * 5) / 6);
Ekaterina Kondareva
committed
}
}
&__title {
color: var(--brand-main-nearly-black);
letter-spacing: -0.69px;
line-height: 28px;
margin-top: 32px;
Ekaterina Kondareva
committed
padding: 0 1rem;
Ekaterina Kondareva
committed
font-size: 32px;
letter-spacing: -1px;
line-height: 40px;
margin-top: 41px;
padding: 0;
}
&__description {
color: var(--grayscale-dark);
Ekaterina Kondareva
committed
padding: 0 1rem;
Ekaterina Kondareva
committed
font-size: 20px;
letter-spacing: -0.1;
line-height: 32px;
margin: 20px 0 61px 0;
padding: 0;
Ekaterina Kondareva
committed
display: flex;
justify-content: flex-end;
margin-bottom: 12px;
margin-right: -6px;
Ekaterina Kondareva
committed
}

Ekaterina Kondareva
committed
.hy-adjacent-image-text::after {
Ekaterina Kondareva
committed
clear: both;