Something went wrong on our end
adjacent-image-text.scss 3.53 KiB
:host {
display: block;
}
$margin-mobile: 16px;
$margin-narrow: 32px;
.hy-adjacent-image-text {
background: var(--grayscale-background-box);
display: flex;
flex-direction: column;
position: relative;
@include breakpoint($narrow) {
background: transparent;
}
@include breakpoint($wide) {
background: var(--grayscale-background-box);
flex-direction: row;
}
&__image-container {
display: flex;
flex: 1;
justify-content: stretch;
margin-bottom: 0;
min-height: 10rem;
position: relative;
padding-bottom: $margin-narrow;
@include breakpoint($narrow) {
padding-bottom: 0;
}
@include breakpoint($wide) {
flex-basis: 50%;
margin: 0 calc(#{var(--gutter-wide)} * -1) 0 0;
z-index: 1;
}
@include breakpoint($extrawide) {
margin: 0 calc(#{var(--gutter-extrawide)} * -1) 0 0;
}
img {
height: 100%;
object-fit: cover;
width: 100%;
@include breakpoint($narrow) {
max-height: 420px;
min-height: 160px;
}
@include breakpoint($wide) {
max-height: 100%;
}
}
}
&__text-container {
background: var(--grayscale-background-box);
border-image: none;
display: flex;
flex: 1;
flex-direction: column;
-webkit-border-image: none;
-moz-border-image: none;
-o-border-image: none;
@include breakpoint($narrow) {
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%;
}
@include breakpoint($wide) {
border-image: none;
border-left: none;
flex-basis: 50%;
margin-left: 0;
margin-top: 0;
padding-top: 0;
z-index: 0;
-webkit-border-image: none;
-moz-border-image: none;
-o-border-image: none;
}
&__info-wrapper {
padding-left: 0;
padding-right: 0;
@include breakpoint($narrow) {
padding-left: 50px;
}
@include breakpoint($wide) {
margin: 0 7% 0 14%;
padding: 0;
}
}
&__title {
@include font-size(22px, 28px);
@include font-weight($bold);
color: var(--brand-main-nearly-black);
font-family: var(--main-font-family);
letter-spacing: -0.69px;
margin-top: 32px;
padding: 0 1rem;
@include breakpoint($narrow) {
@include font-size(32px, 40px);
letter-spacing: -1px;
margin-top: 41px;
padding: 0;
}
}
&__description {
color: var(--grayscale-dark);
font-family: var(--main-font-family);
font-size: 14px;
letter-spacing: 0;
line-height: 20px;
margin: 20px 0 32px 0;
padding: 0 1rem;
@include breakpoint($narrow) {
font-size: 20px;
letter-spacing: -0.1;
line-height: 32px;
margin: 20px 0 61px 0;
padding: 0;
}
}
&__link {
display: flex;
justify-content: flex-end;
margin-bottom: 12px;
margin-right: -6px;
}
}
}
.hy-adjacent-image-text::after {
content: '';
clear: both;
}