Newer
Older

Ekaterina Kondareva
committed
background: var(--grayscale-background-box);

Ekaterina Kondareva
committed
margin-bottom: 32px;
@include breakpoint($narrow) {
margin-right: var(--gutter-narrow);
}
@include breakpoint($wide) {
margin-right: var(--gutter-wide);
}
@include breakpoint($extrawide) {
margin-right: var(--gutter-extrawide);
}
.hy-link-box__link {
bottom: 12px;
position: absolute;
right: -6px;
svg {
background-color: var(--brand-main-light);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
fill: var(--grayscale-white);
padding: 10.29px;
}

Ekaterina Kondareva
committed
width: 100%;
}
max-width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 4 + #{var(--gutter-narrow)} * 3);
width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 4 + #{var(--gutter-narrow)} * 3);
}
@include breakpoint($wide) {
max-width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 4 + #{var(--gutter-wide)} * 3);
width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 4 + #{var(--gutter-wide)} * 3);
}
@include breakpoint($extrawide) {
max-width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 4 + #{var(--gutter-extrawide)} * 3);
width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 4 + #{var(--gutter-extrawide)} * 3);
}
}
max-width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5);
width: calc(((100% - #{var(--gutter-narrow)} * 11) / 12) * 6 + #{var(--gutter-narrow)} * 5);
}
@include breakpoint($wide) {
max-width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 3 + #{var(--gutter-wide)} * 2);
width: calc(((100% - #{var(--gutter-wide)} * 11) / 12) * 3 + #{var(--gutter-wide)} * 2);
}
@include breakpoint($extrawide) {
max-width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 3 + #{var(--gutter-extrawide)} * 2);
width: calc(((100% - #{var(--gutter-extrawide)} * 11) / 12) * 3 + #{var(--gutter-extrawide)} * 2);
}
}
:host(.big:nth-of-type(3n + 0)) {
margin-right: 0;
}
:host(.small:nth-of-type(2n + 0)) {
margin-right: 0;
}
@include breakpoint($wide) {
margin-right: var(--gutter-wide);
}
@include breakpoint($extrawide) {
margin-right: var(--gutter-extrawide);
}
}
:host(.small:nth-of-type(4n + 0)) {
margin-right: 0;
}
}
:host(:last-of-type) {
margin-right: 0;
}
.hy-link-box {
text-decoration: none;

Ekaterina Kondareva
committed
@include breakpoint($wide) {
text-align: left;
}
&__image-container {
display: flex;
justify-content: stretch;
margin-bottom: 0;
min-height: 10rem;
position: relative;
&:before {

Ekaterina Kondareva
committed
content: '';
display: block;
padding-top: (10 / 16) * 100%;
width: 100%;
}
> img {
bottom: 0;
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
right: 0;
top: 0;
width: 100%;
}
}

Ekaterina Kondareva
committed
}

Ekaterina Kondareva
committed
// placed in Landing pages
.hy-link-box.landing {
.hy-link-box__text-container {

Ekaterina Kondareva
committed
&__title {
@include font-weight($bold);
@include font-size(40px, 44px);
color: var(--brand-main-nearly-black);
font-family: var(--main-font-family);

Ekaterina Kondareva
committed
letter-spacing: -1.26px;
margin-bottom: 20px;
margin-top: 28px;
}
&__description {
@include font-size(20px, 32px);

Ekaterina Kondareva
committed
color: var(--brand-main-nearly-black);
font-family: var(--main-font-family);
letter-spacing: -0.1px;

Ekaterina Kondareva
committed
}

Ekaterina Kondareva
committed
// placed in Content pages
.hy-link-box.content {
.hy-link-box__text-container {
@include font-weight($bold);
@include font-size(20px, 26px);

Ekaterina Kondareva
committed
font-family: var(--main-font-family);
letter-spacing: -0.63px;
margin-bottom: 11px;

Ekaterina Kondareva
committed
margin-top: 20px;
@include font-size(14px, 20px);

Ekaterina Kondareva
committed
font-family: var(--main-font-family);