@ilo-org/styles 0.13.2 → 0.14.0

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.
Files changed (54) hide show
  1. package/build/css/components/index.css +1181 -794
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/global.css +1 -1
  4. package/build/css/global.css.map +1 -1
  5. package/build/css/index.css +1181 -794
  6. package/build/css/index.css.map +1 -1
  7. package/build/css/monorepo.css +1181 -794
  8. package/build/css/monorepo.css.map +1 -1
  9. package/build/minified/index.css +1 -1
  10. package/build/minified/index.css.map +1 -1
  11. package/build/minified/monorepo.css +1 -1
  12. package/build/minified/monorepo.css.map +1 -1
  13. package/css/components/accordion.css +1 -1
  14. package/css/components/breadcrumb.css +1 -1
  15. package/css/components/featurecard.css +1 -1
  16. package/css/components/hero.css +1 -1
  17. package/css/components/icon.css +1 -0
  18. package/css/components/list.css +1 -1
  19. package/css/components/navigation.css +1 -1
  20. package/css/components/pagination.css +1 -1
  21. package/css/components/richtext.css +1 -1
  22. package/css/components/searchfield.css +1 -1
  23. package/css/components/tag.css +1 -1
  24. package/css/components/video-legacy.css +1 -0
  25. package/css/components/video.css +1 -1
  26. package/css/global.css.map +1 -1
  27. package/css/index.css +8 -8
  28. package/css/index.css.map +1 -1
  29. package/css/monorepo.css +8 -8
  30. package/css/monorepo.css.map +1 -1
  31. package/package.json +2 -2
  32. package/scss/_mixins.scss +27 -1
  33. package/scss/components/_accordion.scss +7 -5
  34. package/scss/components/_breadcrumb.scss +5 -1
  35. package/scss/components/_card.scss +2 -2
  36. package/scss/components/_cardgroup.scss +1 -1
  37. package/scss/components/_datacard.scss +1 -1
  38. package/scss/components/_detailcard.scss +1 -1
  39. package/scss/components/_factlistcard.scss +1 -1
  40. package/scss/components/_featurecard.scss +3 -11
  41. package/scss/components/_hero.scss +206 -214
  42. package/scss/components/_icon.scss +6 -0
  43. package/scss/components/_list.scss +0 -2
  44. package/scss/components/_multilinkcard.scss +2 -2
  45. package/scss/components/_navigation.scss +11 -9
  46. package/scss/components/_pagination.scss +1 -3
  47. package/scss/components/_profile.scss +1 -1
  48. package/scss/components/_promocard.scss +1 -1
  49. package/scss/components/_richtext.scss +14 -40
  50. package/scss/components/_searchfield.scss +36 -4
  51. package/scss/components/_tag.scss +1 -1
  52. package/scss/components/_video-legacy.scss +795 -0
  53. package/scss/components/_video.scss +191 -636
  54. package/scss/components/index.scss +2 -0
@@ -70,10 +70,6 @@
70
70
  }
71
71
  }
72
72
 
73
- &--breadcrumbs {
74
- display: none;
75
- }
76
-
77
73
  &--background {
78
74
  display: grid;
79
75
  background-color: map-get($color, "base", "blue", "light");
@@ -104,264 +100,262 @@
104
100
  }
105
101
  }
106
102
 
107
- @include breakpoint("large") {
108
- --card-width: 625px;
109
- --corner-cut-height: #{$spacing-hero-card-corner-cut-height-lg};
110
- --breadcrumbs-height: 48px;
111
- --image-gap: 240px;
112
-
113
- // Defaults to baseline
114
- --row-1-lg: var(--breadcrumbs-height);
115
- --row-2-lg: calc(var(--image-gap) - var(--breadcrumbs-height));
116
- --row-3-lg: auto;
117
- --row-4-lg: #{$spacing-hero-tooltip-height};
118
- --row-5-lg: 72px;
119
-
120
- --col-1-lg: 0;
121
- --col-2-lg: var(--card-width);
122
- --col-3-lg: #{$spacing-hero-tooltip-width};
123
- --col-4-lg: 1fr;
124
-
125
- grid-template-rows:
126
- var(--row-1-lg)
127
- var(--row-2-lg)
128
- var(--row-3-lg)
129
- var(--row-4-lg);
130
-
131
- grid-template-columns:
132
- var(--col-1-lg)
133
- var(--col-2-lg)
134
- var(--col-3-lg)
135
- var(--col-4-lg);
136
-
137
- &__poster-size {
138
- &__small {
139
- --image-gap: 112px;
140
- }
103
+ --card-width: 625px;
104
+ --corner-cut-height: #{$spacing-hero-card-corner-cut-height-lg};
105
+ --breadcrumbs-height: 48px;
106
+ --image-gap: 240px;
107
+
108
+ // Defaults to baseline
109
+ --row-1-lg: var(--breadcrumbs-height);
110
+ --row-2-lg: calc(var(--image-gap) - var(--breadcrumbs-height));
111
+ --row-3-lg: auto;
112
+ --row-4-lg: #{$spacing-hero-tooltip-height};
113
+ --row-5-lg: 72px;
114
+
115
+ --col-1-lg: 0;
116
+ --col-2-lg: var(--card-width);
117
+ --col-3-lg: #{$spacing-hero-tooltip-width};
118
+ --col-4-lg: 1fr;
119
+
120
+ grid-template-rows:
121
+ var(--row-1-lg)
122
+ var(--row-2-lg)
123
+ var(--row-3-lg)
124
+ var(--row-4-lg);
125
+
126
+ grid-template-columns:
127
+ var(--col-1-lg)
128
+ var(--col-2-lg)
129
+ var(--col-3-lg)
130
+ var(--col-4-lg);
131
+
132
+ &__poster-size {
133
+ &__small {
134
+ --image-gap: 112px;
135
+ }
141
136
 
142
- &__medium {
143
- --image-gap: 176px;
144
- }
137
+ &__medium {
138
+ --image-gap: 176px;
139
+ }
145
140
 
146
- &__large {
147
- --image-gap: 240px;
148
- }
141
+ &__large {
142
+ --image-gap: 240px;
143
+ }
149
144
 
150
- &__xlarge {
151
- --image-gap: 527px;
152
- }
145
+ &__xlarge {
146
+ --image-gap: 527px;
153
147
  }
148
+ }
154
149
 
155
- &__card-size {
156
- &__small {
157
- --card-width: 625px;
158
- }
150
+ &__card-size {
151
+ &__small {
152
+ --card-width: 625px;
153
+ }
159
154
 
160
- &__medium {
161
- --card-width: 721px;
162
- }
155
+ &__medium {
156
+ --card-width: 721px;
157
+ }
163
158
 
164
- &__large {
165
- --card-width: 856px;
166
- }
159
+ &__large {
160
+ --card-width: 856px;
161
+ }
167
162
 
168
- &__xlarge {
169
- --card-width: 920px;
170
- }
163
+ &__xlarge {
164
+ --card-width: 920px;
165
+ }
171
166
 
172
- &__xxlarge {
173
- --card-width: 998px;
174
- }
167
+ &__xxlarge {
168
+ --card-width: 998px;
175
169
  }
170
+ }
176
171
 
177
- &__card-justify {
178
- &__start,
179
- &__offset {
180
- --card-padding-start: #{$squeezy-padding-start};
181
- --col-1-lg: #{$card-offset};
182
- }
172
+ &__card-justify {
173
+ &__start,
174
+ &__offset {
175
+ --card-padding-start: #{$squeezy-padding-start};
176
+ --col-1-lg: #{$card-offset};
177
+ }
183
178
 
184
- &__offset {
185
- --added-offset: 109px;
186
- }
179
+ &__offset {
180
+ --added-offset: 109px;
181
+ }
187
182
 
188
- &__center {
189
- --col-1-lg: calc((100% - var(--card-width)) / 2);
190
- --col-4-lg: calc(
191
- ((100% - var(--card-width)) / 2) - #{$spacing-hero-tooltip-width}
192
- );
193
- }
183
+ &__center {
184
+ --col-1-lg: calc((100% - var(--card-width)) / 2);
185
+ --col-4-lg: calc(
186
+ ((100% - var(--card-width)) / 2) - #{$spacing-hero-tooltip-width}
187
+ );
194
188
  }
189
+ }
195
190
 
196
- &__card-align {
197
- &__center {
198
- --row-4-lg: calc(72px - #{$spacing-hero-tooltip-height});
199
- --row-5-lg: #{$spacing-hero-tooltip-height};
200
- }
191
+ &__card-align {
192
+ &__center {
193
+ --row-4-lg: calc(72px - #{$spacing-hero-tooltip-height});
194
+ --row-5-lg: #{$spacing-hero-tooltip-height};
195
+ }
201
196
 
202
- &__bottom {
203
- --row-3-lg: 0;
204
- --row-4-lg: var(--corner-cut-height);
205
- --row-5-lg: auto;
206
- }
197
+ &__bottom {
198
+ --row-3-lg: 0;
199
+ --row-4-lg: var(--corner-cut-height);
200
+ --row-5-lg: auto;
207
201
  }
202
+ }
208
203
 
209
- &__card-background {
210
- &__transparent {
211
- #{$c}--card-offset {
212
- background-color: transparent !important;
213
- }
204
+ &__card-background {
205
+ &__transparent {
206
+ #{$c}--card-offset {
207
+ background-color: transparent !important;
214
208
  }
215
209
  }
210
+ }
216
211
 
217
- &__card-theme {
218
- &__dark {
219
- #{$c}--card-offset {
220
- background-color: map-get($color, "base", "blue", "dark");
221
- position: relative;
222
- box-shadow: 0.3px 0 0 0 map-get($color, "base", "blue", "dark");
223
- }
212
+ &__card-theme {
213
+ &__dark {
214
+ #{$c}--card-offset {
215
+ background-color: map-get($color, "base", "blue", "dark");
216
+ position: relative;
217
+ box-shadow: 0.3px 0 0 0 map-get($color, "base", "blue", "dark");
218
+ }
224
219
 
225
- &[class*="semi-transparent"] {
226
- #{$c}--card-offset {
227
- background: rgba(
220
+ &[class*="semi-transparent"] {
221
+ #{$c}--card-offset {
222
+ background: rgba(
223
+ map-get($color, "hero", "card", "dark", "background"),
224
+ $opacity-semi-transparent
225
+ );
226
+ box-shadow: 0.3px 0 0 0
227
+ rgba(
228
228
  map-get($color, "hero", "card", "dark", "background"),
229
229
  $opacity-semi-transparent
230
230
  );
231
- box-shadow: 0.3px 0 0 0
232
- rgba(
233
- map-get($color, "hero", "card", "dark", "background"),
234
- $opacity-semi-transparent
235
- );
236
- }
237
231
  }
238
232
  }
233
+ }
234
+
235
+ &__light {
236
+ #{$c}--card-offset {
237
+ background: map-get($color, "hero", "card", "light", "background");
238
+ box-shadow: 0.3px 0 0 0
239
+ map-get($color, "hero", "card", "light", "background");
240
+ }
239
241
 
240
- &__light {
242
+ &[class*="semi-transparent"] {
241
243
  #{$c}--card-offset {
242
- background: map-get($color, "hero", "card", "light", "background");
244
+ background: rgba(
245
+ map-get($color, "hero", "card", "light", "background"),
246
+ $opacity-semi-transparent
247
+ );
243
248
  box-shadow: 0.3px 0 0 0
244
- map-get($color, "hero", "card", "light", "background");
245
- }
246
-
247
- &[class*="semi-transparent"] {
248
- #{$c}--card-offset {
249
- background: rgba(
249
+ rgba(
250
250
  map-get($color, "hero", "card", "light", "background"),
251
251
  $opacity-semi-transparent
252
252
  );
253
- box-shadow: 0.3px 0 0 0
254
- rgba(
255
- map-get($color, "hero", "card", "light", "background"),
256
- $opacity-semi-transparent
257
- );
258
- }
259
253
  }
260
254
  }
261
255
  }
256
+ }
262
257
 
263
- &--breadcrumbs {
264
- grid-area: 1 / 1 / 2 / 5;
265
- z-index: 1;
266
- display: flex;
267
- flex-flow: row nowrap;
258
+ &--breadcrumbs {
259
+ grid-area: 1 / 1 / 2 / 5;
260
+ z-index: 1;
261
+ display: flex;
262
+ flex-flow: row nowrap;
268
263
 
269
- &--wrapper {
270
- width: 100%;
271
- }
264
+ &--wrapper {
265
+ width: 100%;
272
266
  }
267
+ }
273
268
 
274
- &--background {
275
- grid-area: 1 / 1 / 5 / 5;
269
+ &--background {
270
+ grid-area: 1 / 1 / 5 / 5;
276
271
 
277
- #{$c}__card-align__center & {
278
- grid-area: 1 / 1 / 6 / 5;
279
- }
272
+ #{$c}__card-align__center & {
273
+ grid-area: 1 / 1 / 6 / 5;
274
+ }
280
275
 
281
- #{$c}__card-align__bottom & {
282
- grid-area: 1 / 1 / 5 / 5;
283
- }
276
+ #{$c}__card-align__bottom & {
277
+ grid-area: 1 / 1 / 5 / 5;
284
278
  }
279
+ }
285
280
 
286
- &--card-offset {
287
- grid-area: 3 / 1 / 6 / 2;
288
- z-index: 0;
289
- position: relative;
281
+ &--card-offset {
282
+ grid-area: 3 / 1 / 6 / 2;
283
+ z-index: 0;
284
+ position: relative;
290
285
 
291
- #{$c}__card-justify__offset &,
292
- #{$c}__card-justify__center & {
293
- background: transparent !important;
294
- }
286
+ #{$c}__card-justify__offset &,
287
+ #{$c}__card-justify__center & {
288
+ background: transparent !important;
289
+ }
295
290
 
296
- #{$c}__card-align__center & {
297
- grid-area: 3 / 1 / 4 / 2;
298
- }
291
+ #{$c}__card-align__center & {
292
+ grid-area: 3 / 1 / 4 / 2;
293
+ }
299
294
 
300
- #{$c}__card-align__bottom & {
301
- grid-area: 4 / 1 / 6 / 2;
302
- }
295
+ #{$c}__card-align__bottom & {
296
+ grid-area: 4 / 1 / 6 / 2;
303
297
  }
298
+ }
304
299
 
305
- &--card {
306
- grid-area: 3 / 2 / 6 / 3;
300
+ &--card {
301
+ grid-area: 3 / 2 / 6 / 3;
307
302
 
308
- #{$c}__card-align__center & {
309
- grid-area: 3 / 2 / 4 / 3;
310
- }
303
+ #{$c}__card-align__center & {
304
+ grid-area: 3 / 2 / 4 / 3;
305
+ }
311
306
 
312
- #{$c}__card-align__bottom & {
313
- grid-area: 4 / 2 / 6 / 3;
314
- }
307
+ #{$c}__card-align__bottom & {
308
+ grid-area: 4 / 2 / 6 / 3;
315
309
  }
310
+ }
316
311
 
317
- &--caption {
318
- grid-area: 4 / 3 / 5 / 4;
319
- position: relative;
312
+ &--caption {
313
+ grid-area: 4 / 3 / 5 / 4;
314
+ position: relative;
320
315
 
321
- #{$c}__card-align__center & {
322
- grid-area: 5 / 1 / 6 / 3;
323
- }
316
+ #{$c}__card-align__center & {
317
+ grid-area: 5 / 1 / 6 / 3;
318
+ }
324
319
 
325
- #{$c}__card-align__bottom & {
326
- grid-area: 4 / 1 / 5 / 2;
327
- }
320
+ #{$c}__card-align__bottom & {
321
+ grid-area: 4 / 1 / 5 / 2;
322
+ }
328
323
 
329
- #{$c}__card-align__center &,
330
- #{$c}__card-align__bottom & {
331
- &--wrapper {
332
- position: absolute;
333
- left: 0;
334
- bottom: 0;
335
- }
324
+ #{$c}__card-align__center &,
325
+ #{$c}__card-align__bottom & {
326
+ &--wrapper {
327
+ position: absolute;
328
+ left: 0;
329
+ bottom: 0;
336
330
  }
331
+ }
337
332
 
338
- #{$c}__card-align__bottom#{$c}__card-justify__start & {
339
- grid-area: 1 / 1 / 3 / 3;
340
- }
333
+ #{$c}__card-align__bottom#{$c}__card-justify__start & {
334
+ grid-area: 1 / 1 / 3 / 3;
335
+ }
341
336
 
342
- #{$c}__card-align__bottom#{$c}__card-justify__offset & {
343
- grid-area: 1 / 2 / 3 / 3;
344
- }
337
+ #{$c}__card-align__bottom#{$c}__card-justify__offset & {
338
+ grid-area: 1 / 2 / 3 / 3;
339
+ }
345
340
 
346
- #{$c}__card-align__bottom#{$c}__card-justify__start &,
347
- #{$c}__card-align__bottom#{$c}__card-justify__offset & {
348
- #{$c}--caption--wrapper {
349
- @include caption-icon-wrapper(
350
- "right",
351
- $spacing-hero-tooltip-width,
352
- $spacing-hero-tooltip-height
353
- );
341
+ #{$c}__card-align__bottom#{$c}__card-justify__start &,
342
+ #{$c}__card-align__bottom#{$c}__card-justify__offset & {
343
+ #{$c}--caption--wrapper {
344
+ @include caption-icon-wrapper(
345
+ "right",
346
+ $spacing-hero-tooltip-width,
347
+ $spacing-hero-tooltip-height
348
+ );
354
349
 
355
- position: absolute;
356
- left: 0;
357
- right: initial;
358
- bottom: 0;
359
- }
350
+ position: absolute;
351
+ left: 0;
352
+ right: initial;
353
+ bottom: 0;
360
354
  }
355
+ }
361
356
 
362
- &--wrapper {
363
- left: 2px;
364
- }
357
+ &--wrapper {
358
+ left: 2px;
365
359
  }
366
360
  }
367
361
 
@@ -378,22 +372,20 @@
378
372
  }
379
373
  }
380
374
 
381
- @include breakpoint("large") {
382
- &__card-align__bottom {
383
- &#{$c}__card-justify__start,
384
- &#{$c}__card-justify__offset {
385
- #{$c}--caption--wrapper {
386
- @include caption-icon-wrapper(
387
- "left",
388
- $spacing-hero-tooltip-width,
389
- $spacing-hero-tooltip-height
390
- );
375
+ &__card-align__bottom {
376
+ &#{$c}__card-justify__start,
377
+ &#{$c}__card-justify__offset {
378
+ #{$c}--caption--wrapper {
379
+ @include caption-icon-wrapper(
380
+ "left",
381
+ $spacing-hero-tooltip-width,
382
+ $spacing-hero-tooltip-height
383
+ );
391
384
 
392
- position: absolute;
393
- left: initial;
394
- right: 0;
395
- bottom: 0;
396
- }
385
+ position: absolute;
386
+ left: initial;
387
+ right: 0;
388
+ bottom: 0;
397
389
  }
398
390
  }
399
391
  }
@@ -0,0 +1,6 @@
1
+ .ilo--icon {
2
+ &:not([data-js-processed="true"]) {
3
+ height: 24px;
4
+ width: 24px;
5
+ }
6
+ }
@@ -43,9 +43,7 @@
43
43
  content: none;
44
44
  }
45
45
  }
46
- align-items: center;
47
46
  display: flex;
48
- flex-wrap: wrap;
49
47
  list-style: none;
50
48
 
51
49
  .ilo--list__title {
@@ -35,7 +35,7 @@
35
35
  #{$self}--title {
36
36
  @include font-styles("headline-5");
37
37
  margin-bottom: spacing(8);
38
- color: $brand-ilo-grey-charcoal;
38
+ color: $brand-ilo-black;
39
39
 
40
40
  @include breakpoint("medium") {
41
41
  @include font-styles("headline-4");
@@ -45,7 +45,7 @@
45
45
  #{$self}--intro {
46
46
  @include font-styles("body-small");
47
47
  margin-bottom: spacing(8);
48
- color: $brand-ilo-grey-charcoal;
48
+ color: $brand-ilo-black;
49
49
 
50
50
  @include breakpoint("medium") {
51
51
  @include font-styles("base");
@@ -86,17 +86,19 @@
86
86
 
87
87
  &--logo {
88
88
  display: block;
89
- width: 100%;
89
+ height: spacing(14);
90
+
91
+ @include breakpoint("large") {
92
+ height: spacing(18);
93
+ }
90
94
 
91
95
  &-link {
92
96
  display: block;
93
- padding: 16px 0;
94
- max-width: 150px;
95
- width: 100%;
97
+ padding: spacing(4) 0;
98
+ width: auto;
96
99
 
97
100
  @include breakpoint("large") {
98
- padding: 0 0 24px;
99
- max-width: 200px;
101
+ padding: 0 0 spacing(6);
100
102
  }
101
103
  }
102
104
  }
@@ -780,7 +782,7 @@
780
782
  cursor: pointer;
781
783
  font-family: $fonts-display;
782
784
  font-weight: 500;
783
- padding: spacing(4) spacing(4) spacing(4) spacing(8);
785
+ padding: spacing(5) spacing(4) spacing(4) spacing(8);
784
786
  position: relative;
785
787
  transition: all 150ms ease-out;
786
788
 
@@ -800,7 +802,7 @@
800
802
  }
801
803
 
802
804
  [dir="rtl"] & {
803
- padding: 16px 32px 16px 16px;
805
+ padding: spacing(5) spacing(8) spacing(4) spacing(4);
804
806
 
805
807
  &::before {
806
808
  @include dataurlicon("arrowright", $brand-ilo-dark-blue);
@@ -842,7 +844,7 @@
842
844
  &--label {
843
845
  @include font-styles("headline-6");
844
846
  border-bottom: 3px solid $brand-ilo-grey-light;
845
- color: $brand-ilo-grey-charcoal;
847
+ color: $brand-ilo-black;
846
848
  font-family: $fonts-display;
847
849
  font-weight: 700;
848
850
  margin-bottom: spacing(4);
@@ -185,8 +185,6 @@
185
185
  }
186
186
 
187
187
  &--last-page {
188
- margin: 0 0 0 spacing(2);
189
-
190
188
  &::before {
191
189
  @include dataurlicon(
192
190
  "doublearrow",
@@ -227,7 +225,7 @@
227
225
 
228
226
  &--page {
229
227
  @include font-styles("nav-md-sm");
230
-
228
+ margin-inline-end: spacing(2);
231
229
  font-family: $fonts-copy;
232
230
  font-weight: 400;
233
231
  line-height: 45px;
@@ -84,7 +84,7 @@ $avatar-size-lg: $row-1-lg;
84
84
  bottom: px-to-rem(1px);
85
85
  height: px-to-rem(24px);
86
86
  width: px-to-rem(24px);
87
- margin-inline-start: px-to-rem(8px);
87
+ margin-inline-start: spacing(2);
88
88
  content: "";
89
89
  @include dataurlicon("arrowright", $color-link-text-default);
90
90
 
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  &#{$self}__theme__light:not(:hover) #{$self}--title {
107
- color: $brand-ilo-grey-charcoal;
107
+ color: $brand-ilo-black;
108
108
  @include globaltransition("color");
109
109
  }
110
110