@ilo-org/styles 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@
5
5
  .ilo--hero {
6
6
  background: map-get($color, "ux", "pagination", "default", "background");
7
7
  display: block;
8
+ position: relative;
8
9
  width: 100%;
9
10
 
10
11
  &--home {
@@ -160,6 +161,18 @@
160
161
  }
161
162
  }
162
163
  }
164
+
165
+ .ilo--breadcrumb {
166
+ left: 0;
167
+ max-width: 560px;
168
+ position: absolute;
169
+ top: 0;
170
+
171
+ .right-to-left & {
172
+ left: auto;
173
+ right: 0;
174
+ }
175
+ }
163
176
  }
164
177
 
165
178
  .ilo--hero-card {
@@ -187,13 +200,17 @@
187
200
  }
188
201
 
189
202
  @include breakpoint("large") {
190
- height: 64px;
191
- top: -63.7px;
203
+ height: 56px;
204
+ top: -55.7px;
192
205
  }
193
206
  }
194
207
 
195
208
  @include breakpoint("large") {
196
209
  padding: 0 70px 70px 56px;
210
+
211
+ &.ilo--hero-card--graphic {
212
+ padding: 0 70px 44px 56px;
213
+ }
197
214
  }
198
215
 
199
216
  .right-to-left & {
@@ -206,7 +223,7 @@
206
223
 
207
224
  &--dark {
208
225
  background: map-get($color, "hero", "card", "dark", "background");
209
- border-bottom: 3px solid $brand-ilo-red;
226
+ border-bottom: 3px solid $color-base-red-medium;
210
227
  color: map-get($color, "hero", "card", "dark", "color");
211
228
 
212
229
  .ilo--hero-card--link.icon {
@@ -283,6 +300,10 @@
283
300
  border: none;
284
301
  padding: 24px;
285
302
 
303
+ &::before {
304
+ display: none;
305
+ }
306
+
286
307
  @include breakpoint("large") {
287
308
  bottom: 72px;
288
309
  max-width: 720px;
@@ -290,6 +311,24 @@
290
311
  position: absolute;
291
312
  width: 100%;
292
313
 
314
+ &::before {
315
+ background: inherit;
316
+ clip-path: polygon(90% 0, 100% 100%, 100% 100%, 0% 100%, 0% 0%);
317
+ content: "";
318
+ display: block;
319
+ height: 59px;
320
+ left: 0;
321
+ position: absolute;
322
+ top: -58.7px;
323
+ width: 100%;
324
+
325
+ .right-to-left & {
326
+ clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0% 100%, 10% 0%);
327
+ left: auto;
328
+ right: 0;
329
+ }
330
+ }
331
+
293
332
  &.ilo--hero-card--center {
294
333
  left: 50%;
295
334
  right: auto;
@@ -308,10 +347,12 @@
308
347
  }
309
348
 
310
349
  &.ilo--hero-card--dark {
311
- background: rgba(
312
- map-get($color, "hero", "card", "dark", "background"),
313
- 0.55
314
- );
350
+ @include breakpoint("large") {
351
+ background: rgba(
352
+ map-get($color, "hero", "card", "dark", "background"),
353
+ 0.55
354
+ );
355
+ }
315
356
  }
316
357
  }
317
358
 
@@ -328,10 +369,10 @@
328
369
  }
329
370
 
330
371
  &--publication {
331
- margin-top: -64px;
332
372
  padding: 24px;
333
373
 
334
374
  @include breakpoint("large") {
375
+ margin-top: -64px;
335
376
  max-width: 720px;
336
377
  padding: 0 48px 48px 72px;
337
378
  width: 100%;
@@ -340,35 +381,21 @@
340
381
 
341
382
  &--datecopy {
342
383
  @include font-styles("body-small");
343
- @include textmargin("margin-bottom", 40px, "body-small", "copy", 0, 0);
384
+ margin-bottom: px-to-rem(28px);
344
385
 
345
386
  color: map-get($color, "hero", "card", "light", "datecopy", "color");
346
387
  }
347
388
 
348
389
  &--eyebrow {
349
390
  @include font-styles("body-small");
350
- @include textmargin(
351
- "margin-bottom",
352
- 32px,
353
- "body-small",
354
- "copy",
355
- "headline-2",
356
- "display"
357
- );
391
+ margin-bottom: px-to-rem(16px);
358
392
 
359
393
  color: map-get($color, "hero", "card", "light", "eyebrow", "color");
360
394
  }
361
395
 
362
396
  &--intro {
363
397
  @include font-styles("body-small");
364
- @include textmargin(
365
- "margin-bottom",
366
- 40px,
367
- "base",
368
- "copy",
369
- "body-small",
370
- "copy"
371
- );
398
+ margin-bottom: px-to-rem(28px);
372
399
 
373
400
  @include breakpoint("large") {
374
401
  @include font-styles("base");
@@ -41,13 +41,13 @@
41
41
 
42
42
  &--anchor {
43
43
  cursor: unset;
44
+ pointer-events: none;
44
45
 
45
46
  &.ilo--tag--active {
46
47
  background: map-get($color, "tag", "background", "active");
47
48
  color: map-get($color, "tag", "text", "active");
48
49
  cursor: pointer;
49
50
  outline: none;
50
- pointer-events: none;
51
51
 
52
52
  &:hover {
53
53
  background: map-get($color, "tag", "background", "hover");