@ilo-org/styles 0.1.11 → 0.1.13
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.
- package/build/css/components/index.css +783 -187
- package/build/css/components/index.css.map +1 -1
- package/build/css/index.css +783 -187
- package/build/css/index.css.map +1 -1
- package/build/css/monorepo.css +783 -187
- package/build/css/monorepo.css.map +1 -1
- package/build/minified/index.css +1 -1
- package/build/minified/index.css.map +1 -1
- package/build/minified/monorepo.css +1 -1
- package/build/minified/monorepo.css.map +1 -1
- package/package.json +4 -4
- package/scss/_mixins.scss +26 -0
- package/scss/components/_breadcrumb.scss +33 -0
- package/scss/components/_card.scss +340 -76
- package/scss/components/_cardgroup.scss +3 -3
- package/scss/components/_contextmenu.scss +4 -2
- package/scss/components/_dropdown.scss +2 -0
- package/scss/components/_hero.scss +96 -26
- package/scss/components/_list.scss +8 -18
- package/scss/components/_navigation.scss +104 -9
- package/scss/components/_pagination.scss +6 -0
- package/scss/components/_tooltip.scss +7 -1
- package/scss/components/_video.scss +2 -1
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"background"
|
|
61
61
|
);
|
|
62
62
|
@include bordervalues("input", "formelements", "hover");
|
|
63
|
+
border-left-width: 2px;
|
|
63
64
|
background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-hover)}"),
|
|
64
65
|
linear-gradient(
|
|
65
66
|
to right,
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"background"
|
|
83
84
|
);
|
|
84
85
|
@include bordervalues("input", "formelements", "focus");
|
|
86
|
+
border-left-width: 2px;
|
|
85
87
|
background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-hover)}"),
|
|
86
88
|
linear-gradient(
|
|
87
89
|
to right,
|
|
@@ -163,20 +163,27 @@
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.ilo--breadcrumb {
|
|
166
|
-
left: 0;
|
|
167
|
-
max-width: 560px;
|
|
168
|
-
position: absolute;
|
|
169
|
-
top: 0;
|
|
170
166
|
width: 100%;
|
|
171
167
|
|
|
172
168
|
.right-to-left & {
|
|
173
169
|
left: auto;
|
|
174
170
|
right: 0;
|
|
175
171
|
}
|
|
172
|
+
|
|
173
|
+
@include breakpoint("medium") {
|
|
174
|
+
left: 0;
|
|
175
|
+
max-width: 560px;
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 0;
|
|
178
|
+
}
|
|
176
179
|
}
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
.ilo--hero-card {
|
|
183
|
+
@include cornercut(
|
|
184
|
+
map-get($color, "hero", "card", "light", "background"),
|
|
185
|
+
40px
|
|
186
|
+
);
|
|
180
187
|
background: map-get($color, "hero", "card", "light", "background");
|
|
181
188
|
color: map-get($color, "hero", "card", "light", "color");
|
|
182
189
|
max-width: 998px;
|
|
@@ -184,29 +191,39 @@
|
|
|
184
191
|
padding: 16px 16px 40px 16px;
|
|
185
192
|
|
|
186
193
|
&::before {
|
|
187
|
-
background: inherit;
|
|
188
|
-
clip-path: polygon(90% 0, 100% 100%, 100% 100%, 0% 100%, 0% 0%);
|
|
189
|
-
content: "";
|
|
190
|
-
display: block;
|
|
191
|
-
height: 40px;
|
|
192
194
|
left: 0;
|
|
193
|
-
position: absolute;
|
|
194
195
|
top: -39.7px;
|
|
195
|
-
width: 100%;
|
|
196
196
|
|
|
197
197
|
.right-to-left & {
|
|
198
|
-
clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0% 100%, 10% 0%);
|
|
199
198
|
left: auto;
|
|
200
199
|
right: 0;
|
|
201
200
|
}
|
|
202
201
|
|
|
203
202
|
@include breakpoint("large") {
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
top: -63.7px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&::after {
|
|
208
|
+
right: 0;
|
|
209
|
+
top: -39.7px;
|
|
210
|
+
|
|
211
|
+
.right-to-left & {
|
|
212
|
+
left: 0;
|
|
213
|
+
right: auto;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@include breakpoint("large") {
|
|
217
|
+
top: -63.7px;
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
220
|
|
|
209
221
|
@include breakpoint("large") {
|
|
222
|
+
@include cornercut(
|
|
223
|
+
map-get($color, "hero", "card", "light", "background"),
|
|
224
|
+
64px,
|
|
225
|
+
116px
|
|
226
|
+
);
|
|
210
227
|
padding: 0 70px 70px 56px;
|
|
211
228
|
|
|
212
229
|
&.ilo--hero-card--graphic {
|
|
@@ -227,6 +244,10 @@
|
|
|
227
244
|
border-bottom: 3px solid $color-base-red-medium;
|
|
228
245
|
color: map-get($color, "hero", "card", "dark", "color");
|
|
229
246
|
|
|
247
|
+
&::after {
|
|
248
|
+
@include dataurlicon("triangledecoration", $brand-ilo-dark-blue);
|
|
249
|
+
}
|
|
250
|
+
|
|
230
251
|
.ilo--hero-card--link.icon {
|
|
231
252
|
color: map-get($color, "hero", "card", "dark", "icon", "color");
|
|
232
253
|
|
|
@@ -305,7 +326,24 @@
|
|
|
305
326
|
display: none;
|
|
306
327
|
}
|
|
307
328
|
|
|
329
|
+
&.ilo--hero-card--nobackground {
|
|
330
|
+
background: transparent;
|
|
331
|
+
|
|
332
|
+
> * {
|
|
333
|
+
filter: drop-shadow(0px 12px 32px rgba(0, 0, 0, 0.16))
|
|
334
|
+
drop-shadow(0px 0.8px 1.6px rgba(0, 0, 0, 0.02))
|
|
335
|
+
drop-shadow(0px 2.7px 4.8px rgba(0, 0, 0, 0.04))
|
|
336
|
+
drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.08));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&::before,
|
|
340
|
+
&::after {
|
|
341
|
+
content: "";
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
308
345
|
@include breakpoint("large") {
|
|
346
|
+
@include cornercut($brand-ilo-white, 48px, 87.4px);
|
|
309
347
|
bottom: 72px;
|
|
310
348
|
max-width: 720px;
|
|
311
349
|
padding: 0 48px 48px 72px;
|
|
@@ -313,23 +351,25 @@
|
|
|
313
351
|
width: 100%;
|
|
314
352
|
|
|
315
353
|
&::before {
|
|
316
|
-
background: inherit;
|
|
317
|
-
clip-path: polygon(90% 0, 100% 100%, 100% 100%, 0% 100%, 0% 0%);
|
|
318
|
-
content: "";
|
|
319
|
-
display: block;
|
|
320
|
-
height: 59px;
|
|
321
354
|
left: 0;
|
|
322
|
-
|
|
323
|
-
top: -58.7px;
|
|
324
|
-
width: 100%;
|
|
355
|
+
top: -48px;
|
|
325
356
|
|
|
326
357
|
.right-to-left & {
|
|
327
|
-
clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0% 100%, 10% 0%);
|
|
328
358
|
left: auto;
|
|
329
359
|
right: 0;
|
|
330
360
|
}
|
|
331
361
|
}
|
|
332
362
|
|
|
363
|
+
&::after {
|
|
364
|
+
right: 0;
|
|
365
|
+
top: -48px;
|
|
366
|
+
|
|
367
|
+
.right-to-left & {
|
|
368
|
+
left: 0;
|
|
369
|
+
right: auto;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
333
373
|
&.ilo--hero-card--center {
|
|
334
374
|
left: 50%;
|
|
335
375
|
right: auto;
|
|
@@ -345,6 +385,15 @@
|
|
|
345
385
|
left: auto;
|
|
346
386
|
right: 0;
|
|
347
387
|
}
|
|
388
|
+
|
|
389
|
+
&.ilo--hero-card--nobackground {
|
|
390
|
+
background: transparent;
|
|
391
|
+
|
|
392
|
+
&::before,
|
|
393
|
+
&::after {
|
|
394
|
+
content: "";
|
|
395
|
+
}
|
|
396
|
+
}
|
|
348
397
|
}
|
|
349
398
|
|
|
350
399
|
&.ilo--hero-card--dark {
|
|
@@ -353,6 +402,22 @@
|
|
|
353
402
|
map-get($color, "hero", "card", "dark", "background"),
|
|
354
403
|
0.55
|
|
355
404
|
);
|
|
405
|
+
|
|
406
|
+
&.ilo--hero-card--nobackground {
|
|
407
|
+
background: transparent;
|
|
408
|
+
|
|
409
|
+
&::before,
|
|
410
|
+
&::after {
|
|
411
|
+
content: "";
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
&::after {
|
|
417
|
+
@include dataurlicon(
|
|
418
|
+
"triangledecoration",
|
|
419
|
+
rgba($brand-ilo-dark-blue, 0.55)
|
|
420
|
+
);
|
|
356
421
|
}
|
|
357
422
|
}
|
|
358
423
|
}
|
|
@@ -364,7 +429,7 @@
|
|
|
364
429
|
|
|
365
430
|
@include breakpoint("large") {
|
|
366
431
|
max-width: 625px;
|
|
367
|
-
padding: 0 48px
|
|
432
|
+
padding: 0 48px 42px 72px;
|
|
368
433
|
width: 100%;
|
|
369
434
|
}
|
|
370
435
|
}
|
|
@@ -372,10 +437,15 @@
|
|
|
372
437
|
&--publication {
|
|
373
438
|
padding: 24px;
|
|
374
439
|
|
|
440
|
+
.ilo--hero-card--eyebrow {
|
|
441
|
+
margin-bottom: px-to-rem(6px);
|
|
442
|
+
}
|
|
443
|
+
|
|
375
444
|
@include breakpoint("large") {
|
|
445
|
+
margin-left: 106px;
|
|
376
446
|
margin-top: -64px;
|
|
377
447
|
max-width: 720px;
|
|
378
|
-
padding: 0 48px 48px
|
|
448
|
+
padding: 0 48px 48px 48px;
|
|
379
449
|
width: 100%;
|
|
380
450
|
}
|
|
381
451
|
}
|
|
@@ -428,7 +498,7 @@
|
|
|
428
498
|
|
|
429
499
|
&--list--item {
|
|
430
500
|
display: inline-block;
|
|
431
|
-
margin-right:
|
|
501
|
+
margin-right: 24px;
|
|
432
502
|
|
|
433
503
|
&:last-of-type {
|
|
434
504
|
margin-right: 0;
|
|
@@ -58,18 +58,15 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&__title {
|
|
61
|
-
@include font-styles("headline-
|
|
62
|
-
|
|
61
|
+
@include font-styles("headline-6");
|
|
62
|
+
margin-bottom: px-to-rem(21px);
|
|
63
63
|
font-family: $fonts-display;
|
|
64
64
|
font-weight: 700;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"base",
|
|
71
|
-
"copy"
|
|
72
|
-
);
|
|
65
|
+
|
|
66
|
+
@include breakpoint("medium") {
|
|
67
|
+
@include font-styles("headline-5");
|
|
68
|
+
margin-bottom: px-to-rem(27px);
|
|
69
|
+
}
|
|
73
70
|
}
|
|
74
71
|
|
|
75
72
|
&__item {
|
|
@@ -95,14 +92,7 @@
|
|
|
95
92
|
|
|
96
93
|
@include breakpoint("medium") {
|
|
97
94
|
@include font-styles("base");
|
|
98
|
-
@include textmargin(
|
|
99
|
-
"margin-bottom",
|
|
100
|
-
map-get($spacing, "ui-padding-lg"),
|
|
101
|
-
"base",
|
|
102
|
-
"copy",
|
|
103
|
-
0,
|
|
104
|
-
0
|
|
105
|
-
);
|
|
95
|
+
@include textmargin("margin-bottom", 20px, "base", "copy", 0, 0);
|
|
106
96
|
}
|
|
107
97
|
}
|
|
108
98
|
}
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
z-index: 4;
|
|
10
10
|
|
|
11
11
|
&.ilo--mobile--open {
|
|
12
|
-
height:
|
|
12
|
+
height: 100%;
|
|
13
|
+
left: 0;
|
|
14
|
+
min-height: 100vh;
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 0;
|
|
17
|
+
width: 100%;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
@include breakpoint("large") {
|
|
@@ -124,6 +129,50 @@
|
|
|
124
129
|
.ilo--language-switcher {
|
|
125
130
|
display: none;
|
|
126
131
|
|
|
132
|
+
&--link {
|
|
133
|
+
@include dataurlicon("arrowleft", $brand-ilo-white);
|
|
134
|
+
@include font-styles("language-switcher");
|
|
135
|
+
appearance: none;
|
|
136
|
+
background-color: inherit;
|
|
137
|
+
background-position: 16px 50%;
|
|
138
|
+
background-repeat: no-repeat;
|
|
139
|
+
background-size: 24px;
|
|
140
|
+
border: none;
|
|
141
|
+
color: $brand-ilo-white;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
font-family: $fonts-display;
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
padding: 16px 16px 16px 36px;
|
|
146
|
+
text-decoration: none;
|
|
147
|
+
transition: all 150ms ease-out;
|
|
148
|
+
width: 100%;
|
|
149
|
+
|
|
150
|
+
&:focus,
|
|
151
|
+
&:hover {
|
|
152
|
+
@include dataurlicon("arrowleft", $brand-ilo-blue);
|
|
153
|
+
background-color: $brand-ilo-light-blue;
|
|
154
|
+
color: $brand-ilo-blue;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.right-to-left & {
|
|
158
|
+
@include dataurlicon("arrowright", $brand-ilo-white);
|
|
159
|
+
background-position: calc(100% - 16px) 50%;
|
|
160
|
+
padding: 16px 36px 16px 16px;
|
|
161
|
+
|
|
162
|
+
&:focus,
|
|
163
|
+
&:hover {
|
|
164
|
+
@include dataurlicon("arrowright", $brand-ilo-blue);
|
|
165
|
+
background-color: $brand-ilo-light-blue;
|
|
166
|
+
color: $brand-ilo-blue;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&--wrap {
|
|
171
|
+
align-items: center;
|
|
172
|
+
display: flex;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
127
176
|
@include breakpoint("large") {
|
|
128
177
|
display: flex;
|
|
129
178
|
}
|
|
@@ -169,9 +218,12 @@
|
|
|
169
218
|
|
|
170
219
|
&--navigation {
|
|
171
220
|
background: $brand-ilo-white;
|
|
221
|
+
height: 100%;
|
|
222
|
+
left: 0;
|
|
223
|
+
overflow-x: hidden;
|
|
224
|
+
overflow-y: scroll;
|
|
172
225
|
position: absolute;
|
|
173
226
|
top: 0;
|
|
174
|
-
left: 0;
|
|
175
227
|
transform: translateX(100%);
|
|
176
228
|
transition: transform 225ms ease-out;
|
|
177
229
|
width: 100%;
|
|
@@ -188,6 +240,7 @@
|
|
|
188
240
|
|
|
189
241
|
@include breakpoint("large") {
|
|
190
242
|
background: $brand-ilo-dark-blue;
|
|
243
|
+
overflow: visible;
|
|
191
244
|
position: static;
|
|
192
245
|
transform: none;
|
|
193
246
|
}
|
|
@@ -297,7 +350,7 @@
|
|
|
297
350
|
background-color: $brand-ilo-white;
|
|
298
351
|
background-position: calc(100% - 16px) 55%;
|
|
299
352
|
background-repeat: no-repeat;
|
|
300
|
-
background-size:
|
|
353
|
+
background-size: 24px;
|
|
301
354
|
border: none;
|
|
302
355
|
color: $brand-ilo-dark-blue;
|
|
303
356
|
cursor: pointer;
|
|
@@ -382,6 +435,14 @@
|
|
|
382
435
|
display: flex;
|
|
383
436
|
justify-content: space-between;
|
|
384
437
|
|
|
438
|
+
.right-to-left & {
|
|
439
|
+
direction: rtl;
|
|
440
|
+
|
|
441
|
+
@include breakpoint("large") {
|
|
442
|
+
padding: 0 max((100% - 1260px) / 2, 20px) 0 0;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
385
446
|
@include breakpoint("large") {
|
|
386
447
|
padding: 0 0 0 max((100% - 1260px) / 2, 20px);
|
|
387
448
|
}
|
|
@@ -574,11 +635,18 @@
|
|
|
574
635
|
transition: opacity 150ms ease-out;
|
|
575
636
|
z-index: -1;
|
|
576
637
|
|
|
577
|
-
.ilo--context--open
|
|
638
|
+
.ilo--context--open &,
|
|
639
|
+
.ilo--language-switcher:focus-within &,
|
|
640
|
+
&:focus-within {
|
|
578
641
|
opacity: 1;
|
|
579
642
|
z-index: 1;
|
|
580
643
|
}
|
|
581
644
|
}
|
|
645
|
+
|
|
646
|
+
.ilo--language-switcher--button:focus + .ilo--context-menu {
|
|
647
|
+
opacity: 1;
|
|
648
|
+
z-index: 1;
|
|
649
|
+
}
|
|
582
650
|
}
|
|
583
651
|
|
|
584
652
|
.ilo--subnav {
|
|
@@ -601,9 +669,6 @@
|
|
|
601
669
|
}
|
|
602
670
|
|
|
603
671
|
@include breakpoint("large") {
|
|
604
|
-
filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
|
|
605
|
-
drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
|
|
606
|
-
drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
|
|
607
672
|
height: auto;
|
|
608
673
|
left: 0;
|
|
609
674
|
padding: 32px 0;
|
|
@@ -613,6 +678,14 @@
|
|
|
613
678
|
z-index: -1;
|
|
614
679
|
|
|
615
680
|
.ilo--header.ilo--subnav--open & {
|
|
681
|
+
border-bottom: px-to-rem(3px) solid $color-base-neutrals-light;
|
|
682
|
+
filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
|
|
683
|
+
drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
|
|
684
|
+
drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
|
|
685
|
+
transform: translateY(0);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
&:has(.ilo--subnav--link:focus) {
|
|
616
689
|
transform: translateY(0);
|
|
617
690
|
}
|
|
618
691
|
}
|
|
@@ -779,6 +852,11 @@
|
|
|
779
852
|
.ilo--header.ilo--search--open & {
|
|
780
853
|
transform: translateY(0);
|
|
781
854
|
}
|
|
855
|
+
|
|
856
|
+
&:has(.ilo--input:focus),
|
|
857
|
+
&:has(.ilo--searchfield--button:focus) {
|
|
858
|
+
transform: translateY(0);
|
|
859
|
+
}
|
|
782
860
|
}
|
|
783
861
|
|
|
784
862
|
.ilo--header--inner {
|
|
@@ -810,7 +888,7 @@
|
|
|
810
888
|
background-color: transparent;
|
|
811
889
|
background-position: center;
|
|
812
890
|
background-repeat: no-repeat;
|
|
813
|
-
background-size:
|
|
891
|
+
background-size: 32px 32px;
|
|
814
892
|
border: none;
|
|
815
893
|
border-radius: 0;
|
|
816
894
|
cursor: pointer;
|
|
@@ -830,7 +908,7 @@
|
|
|
830
908
|
background-color: $brand-ilo-white;
|
|
831
909
|
background-position: center;
|
|
832
910
|
background-repeat: no-repeat;
|
|
833
|
-
background-size:
|
|
911
|
+
background-size: 32px 32px;
|
|
834
912
|
|
|
835
913
|
&:hover,
|
|
836
914
|
&:focus {
|
|
@@ -840,3 +918,20 @@
|
|
|
840
918
|
}
|
|
841
919
|
}
|
|
842
920
|
}
|
|
921
|
+
|
|
922
|
+
.ilo--menu--open {
|
|
923
|
+
height: 100%;
|
|
924
|
+
padding-top: 85px;
|
|
925
|
+
overflow: hidden;
|
|
926
|
+
width: 100%;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
#anchor--components-navigation--navigation .docs-story {
|
|
930
|
+
& > div:first-child {
|
|
931
|
+
padding-top: 0;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.sb-show-main.sb-main-padded {
|
|
936
|
+
padding-top: 0;
|
|
937
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "../tokens" as *;
|
|
2
2
|
@use "../functions" as *;
|
|
3
|
+
@use "../animations" as *;
|
|
3
4
|
@import "../mixins";
|
|
4
5
|
|
|
5
6
|
.ilo--tooltip {
|
|
@@ -16,12 +17,13 @@
|
|
|
16
17
|
opacity: 0;
|
|
17
18
|
padding: px-to-rem($spacing-padding-1) px-to-rem($spacing-padding-1-5);
|
|
18
19
|
position: absolute;
|
|
19
|
-
transition: opacity 150ms ease-out;
|
|
20
20
|
visibility: hidden;
|
|
21
21
|
width: auto;
|
|
22
|
+
@include globaltransition("opacity");
|
|
22
23
|
|
|
23
24
|
&--fade {
|
|
24
25
|
opacity: 1;
|
|
26
|
+
@include globaltransition("opacity");
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
&--visible {
|
|
@@ -191,3 +193,7 @@
|
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
195
|
}
|
|
196
|
+
|
|
197
|
+
.docs-story div[height] {
|
|
198
|
+
min-height: 150px;
|
|
199
|
+
}
|