@ilo-org/styles 0.13.0 → 0.13.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ilo-org/styles",
3
3
  "description": "Styles for products using ILO's Design System",
4
- "version": "0.13.0",
4
+ "version": "0.13.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
package/scss/_mixins.scss CHANGED
@@ -214,79 +214,63 @@
214
214
 
215
215
  @mixin linkstyles() {
216
216
  background: map-get($color, "link", "background", "default");
217
- border-bottom: $widths-border-sm solid
218
- map-get($color, "link", "underline", "default");
219
217
  color: map-get($color, "link", "text", "default");
220
218
  font-size: inherit;
221
219
  font-weight: inherit;
222
220
  line-height: inherit;
223
- text-decoration: none;
221
+ text-decoration: underline;
222
+ text-underline-offset: px-to-rem(6px);
223
+ text-decoration-thickness: px-to-rem(1.5px);
224
+ padding-bottom: spacing(1);
224
225
 
225
226
  &:visited {
226
227
  background: map-get($color, "link", "background", "visited");
227
- border-bottom: $widths-border-sm solid
228
- map-get($color, "link", "underline", "visited");
229
228
  color: map-get($color, "link", "text", "visited");
230
229
  }
231
230
 
232
231
  &:hover {
233
232
  background: map-get($color, "link", "background", "hover");
234
- border-bottom: $widths-border-med solid
235
- map-get($color, "link", "underline", "hover");
236
233
  color: map-get($color, "link", "text", "hover");
237
- text-decoration: none;
234
+ text-decoration-thickness: 3px;
238
235
  }
239
236
 
240
237
  &:active {
241
238
  background: map-get($color, "link", "background", "active");
242
- border-bottom: $widths-border-med solid
243
- map-get($color, "link", "underline", "active");
244
239
  color: map-get($color, "link", "text", "active");
245
- outline: none;
240
+ text-decoration-thickness: 3px;
246
241
  }
247
242
 
248
243
  &:focus {
249
244
  background: map-get($color, "link", "background", "focus");
250
- border-bottom: $widths-border-lg solid
251
- map-get($color, "link", "underline", "focus");
252
245
  color: map-get($color, "link", "text", "focus");
253
- outline: none;
246
+ text-decoration-thickness: 3px;
254
247
  }
255
248
 
256
249
  &--dark {
257
250
  background: map-get($color, "link", "background-dark", "default");
258
- border-bottom: $widths-border-sm solid
259
- map-get($color, "link", "underline-dark", "default");
260
251
  color: map-get($color, "link", "text-dark", "default");
261
252
 
262
253
  &:visited {
263
254
  background: map-get($color, "link", "background-dark", "visited");
264
- border-bottom: $widths-border-sm solid
265
- map-get($color, "link", "underline-dark", "visited");
266
255
  color: map-get($color, "link", "text-dark", "visited");
267
256
  }
268
257
 
269
258
  &:hover {
270
259
  background: map-get($color, "link", "background-dark", "hover");
271
- border-bottom: $widths-border-med solid
272
- map-get($color, "link", "underline-dark", "hover");
273
260
  color: map-get($color, "link", "text-dark", "hover");
261
+ text-decoration-thickness: 3px;
274
262
  }
275
263
 
276
264
  &:active {
277
265
  background: map-get($color, "link", "background-dark", "active");
278
- border-bottom: $widths-border-med solid
279
- map-get($color, "link", "underline-dark", "active");
280
266
  color: map-get($color, "link", "text-dark", "active");
281
- outline: none;
267
+ text-decoration-thickness: 3px;
282
268
  }
283
269
 
284
270
  &:focus {
285
271
  background: map-get($color, "link", "background-dark", "focus");
286
- border-bottom: $widths-border-lg solid
287
- map-get($color, "link", "underline-dark", "focus");
288
272
  color: map-get($color, "link", "text-dark", "focus");
289
- outline: none;
273
+ text-decoration-thickness: 3px;
290
274
  }
291
275
  }
292
276
 
@@ -294,38 +278,29 @@
294
278
  @include font-styles("body-xxs");
295
279
 
296
280
  background: map-get($color, "link", "background-footer", "default");
297
- border-bottom: $widths-border-xsm solid
298
- map-get($color, "link", "underline-footer", "default");
299
281
  color: map-get($color, "link", "text-footer", "default");
300
282
 
301
283
  &:visited {
302
284
  background: map-get($color, "link", "background-footer", "visited");
303
- border-bottom: $widths-border-xsm solid
304
- map-get($color, "link", "underline-footer", "visited");
305
285
  color: map-get($color, "link", "text-footer", "visited");
306
286
  }
307
287
 
308
288
  &:hover {
309
289
  background: map-get($color, "link", "background-footer", "hover");
310
- border-bottom: $widths-border-sm solid
311
- map-get($color, "link", "underline-footer", "hover");
312
290
  color: map-get($color, "link", "text-footer", "hover");
291
+ text-decoration-thickness: 3px;
313
292
  }
314
293
 
315
294
  &:active {
316
295
  background: map-get($color, "link", "background-footer", "active");
317
- border-bottom: $widths-border-sm solid
318
- map-get($color, "link", "underline-footer", "active");
319
296
  color: map-get($color, "link", "text-footer", "active");
320
- outline: none;
297
+ text-decoration-thickness: 3px;
321
298
  }
322
299
 
323
300
  &:focus {
324
301
  background: map-get($color, "link", "background-footer", "focus");
325
- border-bottom: $widths-border-med-sm solid
326
- map-get($color, "link", "underline-footer", "focus");
327
302
  color: map-get($color, "link", "text-footer", "focus");
328
- outline: none;
303
+ text-decoration-thickness: 3px;
329
304
  }
330
305
  }
331
306
  }
@@ -80,8 +80,7 @@
80
80
  &--link,
81
81
  &--link:hover {
82
82
  border-bottom: none;
83
- padding-left: spacing(6);
84
- padding-right: spacing(6);
83
+ padding-inline: spacing(6) spacing(2);
85
84
  }
86
85
  }
87
86
 
@@ -89,7 +89,7 @@
89
89
  @include font-styles("body-small");
90
90
  padding-top: spacing(4);
91
91
  padding-bottom: spacing(4);
92
- padding-right: spacing(8);
92
+ padding-inline-end: spacing(8);
93
93
  text-decoration: none;
94
94
  @include dataurlicon("arrowright", $color-link-text-default);
95
95
  @include globaltransition("color, background-color, border-color");
@@ -119,7 +119,6 @@
119
119
  [dir="rtl"] & {
120
120
  background-position: px-to-rem(4px) center;
121
121
  @include dataurlicon("arrowleft", $color-link-text-default);
122
- padding-right: 0;
123
122
 
124
123
  &:hover,
125
124
  &:focus {
@@ -118,7 +118,7 @@
118
118
 
119
119
  &--utility-bar {
120
120
  display: none;
121
-
121
+ min-height: px-to-rem(24px);
122
122
  &--local {
123
123
  background: $brand-ilo-blue;
124
124
  display: flex;
@@ -619,6 +619,11 @@
619
619
  position: relative;
620
620
  }
621
621
 
622
+ &--empty {
623
+ height: px-to-rem(26);
624
+ width: px-to-rem(100);
625
+ }
626
+
622
627
  &--button {
623
628
  @include font-styles("image-credit");
624
629
  @include dataurlicon("global", $brand-ilo-white);
@@ -22,6 +22,7 @@
22
22
  p + figure,
23
23
  p + img,
24
24
  p + blockquote,
25
+ p + iframe,
25
26
  ul + img,
26
27
  ol + img,
27
28
  dl + img,
@@ -40,6 +41,10 @@
40
41
  );
41
42
  }
42
43
 
44
+ iframe {
45
+ margin-bottom: spacing(14);
46
+ }
47
+
43
48
  figure {
44
49
  width: 100%;
45
50
  margin-bottom: spacing(14);
@@ -335,6 +340,7 @@
335
340
  p + figure,
336
341
  p + img,
337
342
  p + blockquote,
343
+ p + iframe,
338
344
  ul + img,
339
345
  ol + img,
340
346
  dl + img,
@@ -83,6 +83,7 @@
83
83
 
84
84
  .ilo--link {
85
85
  @include font-styles("image-credit");
86
+ line-height: px-to-rem(24px);
86
87
  }
87
88
  }
88
89
  }
@@ -135,6 +135,7 @@
135
135
  font-weight: 500;
136
136
  margin: 0 spacing(2) 0 spacing(2);
137
137
  padding: spacing(4) spacing(2) spacing(4);
138
+ padding-inline-end: spacing(12);
138
139
  position: relative;
139
140
  text-decoration: none;
140
141
  width: calc(100% - 16px);