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);
}
}
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);
}
}
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) {

Ekaterina Kondareva
committed
}

Ekaterina Kondareva
committed
&__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%;
}
}
// Front and Landing pages
&__landing {
.hy-link-box__text-container {
margin-bottom: 60px;
padding: 0 12px;
@include breakpoint($narrow) {
padding: 0 16px;
}
@include breakpoint($wide) {
padding: 0 12px;
}
@include breakpoint($xlarge) {
padding: 0 16px;
}
&__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.6px;
margin-bottom: 8px;
// Margin if there is no image above the title
margin-top: 20px;
// Margin if there is an image above the title
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
&__image {
margin-top: 16px;
}
@include breakpoint($narrow) {
@include font-size(24px, 30px);
color: var(--grayscale-black);
letter-spacing: -0.7px;
}
@include breakpoint($wide) {
margin-top: 24px;
&__image {
margin-top: 18px;
}
}
@include breakpoint($extrawide) {
// with sidebar
&__common {
@include font-size(24px, 30px);
letter-spacing: -0.7px;
}
// without sidebar
&__large {
@include font-size(28px, 36px);
letter-spacing: -0.8px;
margin-bottom: 12px;
margin-top: 32px;
}
&__large.image {
// Margin if there is an image above the title
margin-top: 20px;
}
}
@include breakpoint($xlarge) {
// Both with and without sidebar
@include font-size(28px, 36px);
letter-spacing: -0.8px;
margin-bottom: 12px;
// Margin if there is no image above the title
margin-top: 32px;
// Margin if there is an image above the title
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
&__image {
margin-top: 20px;
}
}
}
&__description {
@include font-size(14px, 18px);
color: var(--grayscale-dark);
font-family: var(--main-font-family);
letter-spacing: -0.2px;
margin-bottom: 12px;
@include breakpoint($extrawide) {
// with sidebar
&__common {
@include font-size(14px, 18px);
letter-spacing: -0.2px;
}
// without sidebar
&__large {
@include font-size(16px, 22px);
letter-spacing: -0.2px;
}
}
@include breakpoint($xlarge) {
// Both with and without sidebar
@include font-size(16px, 22px);
letter-spacing: -0.2px;
}
}

Ekaterina Kondareva
committed
}
}
// Content pages
&__content {
.hy-link-box__text-container {
margin-bottom: 60px;
padding: 0 12px;
@include breakpoint($narrow) {
padding: 0 16px;
}
@include breakpoint($wide) {
padding: 0 12px;
}
//@todo check title + description styles
&__title {
@include font-size(18px, 22px);
@include font-weight($bold);
color: var(--brand-main-nearly-black);
font-family: var(--main-font-family);
letter-spacing: -0.5px;
margin-bottom: 8px;
// Margin if there is no image above the title
margin-top: 24px;
// Margin if there is an image above the title
&__image {
margin-top: 20px;
}
@include breakpoint($wide) {
// Margin if there is an image above the title
&__image {
margin-top: 16px;
}
}
@include breakpoint($extrawide) {
// with sidebar
&__common {
@include font-size(18px, 22px);
letter-spacing: -0.5px;
}
// without sidebar
&__large {
@include font-size(20px, 24px);
letter-spacing: -0.6px;
margin-bottom: 12px;
// Margin if there is no image above the title
margin-top: 32px;
// Margin if there is an image above the title
&__image {
margin-top: 20px;
}
}
}
@include breakpoint($xlarge) {
// both with and without sidebar
@include font-size(20px, 24px);
letter-spacing: -0.6px;
margin-bottom: 12px;
// Margin if there is no image above the title
margin-top: 32px;
// Margin if there is an image above the title
&__image {
margin-top: 20px;
}
}
}
&__description {
@include font-size(14px, 18px);
color: var(--grayscale-dark);
font-family: var(--main-font-family);
letter-spacing: -0.2px;
margin-bottom: 10px;
}
// General styles for title
.hy-link-box__text-container {
&__title {
&__hover {
color: var(--brand-main);
text-decoration: underline;
}
}
}

Ekaterina Kondareva
committed
}
.hy-link-box-link {
bottom: 12px;
position: absolute;
right: -6px;
svg {
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
fill: var(--grayscale-white);
height: 32px;
padding: 6px;
width: 32px;
}
&__hover {
svg {
background-color: var(--brand-main);
}
}
@include breakpoint($extrawide) {
// without sidebar, Landing MAJOR variation only
&__landing.large {
svg {
height: 40px;
padding: 8px;
width: 40px;
}
}
@include breakpoint($xlarge) {
// MAJOR (Landing and Front pages)
&__landing {
svg {
height: 40px;
padding: 8px;
width: 40px;
}