@ilo-org/styles 1.14.0 → 1.14.1

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": "1.14.0",
4
+ "version": "1.14.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/international-labour-organization/designsystem.git",
@@ -41,6 +41,9 @@
41
41
  font-size: var(--ilo-font-size-sm);
42
42
  font-weight: var(--ilo-font-weight-medium);
43
43
  line-height: var(--ilo-line-height-lg);
44
+ text-overflow: ellipsis;
45
+ overflow: hidden;
46
+ white-space: nowrap;
44
47
  }
45
48
  &--track-details {
46
49
  display: flex;
@@ -195,6 +198,9 @@
195
198
  padding-inline: spacing(3) 0;
196
199
  padding-block: 0;
197
200
  }
201
+ &--track-name {
202
+ width: 30vw;
203
+ }
198
204
  &--center {
199
205
  justify-content: center;
200
206
  padding: 0;
@@ -6,7 +6,7 @@
6
6
  // Video Button
7
7
  // ======================================
8
8
  @mixin videobutton($name, $size: "standard") {
9
- $height: if($size == "big", 72px, 32px);
9
+ $height: if($size == "big", 72px, 24px);
10
10
  $box: if($size == "big", 80px, 40px);
11
11
  $width: $height;
12
12
  $icon-color-default: rgba(237, 240, 242, 1);
@@ -233,7 +233,7 @@
233
233
  }
234
234
 
235
235
  .vjs-menu {
236
- background: var(--ilo-color-brand-200);
236
+ background: var(--ilo-color-brand-100);
237
237
  border: 0;
238
238
  bottom: calc(100% + #{px-to-rem(8px)});
239
239
  display: none;
@@ -243,7 +243,7 @@
243
243
  right: auto;
244
244
  transform: translateX(-50%);
245
245
  z-index: 40;
246
- padding-top: px-to-rem(28px);
246
+ padding-top: px-to-rem(8px);
247
247
 
248
248
  // gap added to ensure vjs-hover persists when hovering to menu from captions button
249
249
  &::after {
@@ -256,13 +256,12 @@
256
256
  }
257
257
 
258
258
  &:before {
259
- @include typography("body-xsmall");
259
+ @include typography("highlight-medium-bold");
260
260
  content: var(--ilo-video-choose-subtitle-text, "Choose subtitles");
261
261
  color: var(--ilo-color-gray-charcoal);
262
- font-weight: var(--ilo-font-weight-bold);
263
- left: px-to-rem(12px);
264
- position: absolute;
265
- top: px-to-rem(8px);
262
+ display: block;
263
+ margin-bottom: spacing(2);
264
+ padding-left: px-to-rem(12px);
266
265
  }
267
266
  }
268
267
 
@@ -278,10 +277,13 @@
278
277
  max-height: px-to-rem(120px);
279
278
  overflow-y: auto;
280
279
  padding: 0 0 px-to-rem(4px);
280
+ display: flex;
281
+ flex-direction: column;
282
+ gap: spacing(2);
281
283
  }
282
284
 
283
285
  .vjs-menu-item {
284
- @include typography("body-xsmall");
286
+ @include typography("body-small");
285
287
  align-items: center;
286
288
  color: var(--ilo-color-gray-charcoal);
287
289
  display: flex;
@@ -294,37 +296,63 @@
294
296
 
295
297
  &:hover {
296
298
  background: var(--ilo-color-neutrals-200);
299
+ cursor: pointer;
297
300
  }
298
301
 
302
+ // Radio control — mirrors .ilo--radio in _radio.scss:
303
+ // :before is the outer 20px circle (in flow, reserves space),
304
+ // :after is the inner 14px dot overlaid on top.
299
305
  &:before {
300
- background: transparent;
301
- border: 2px solid var(--ilo-color-neutrals-500);
302
- border-radius: 50%;
303
306
  content: "";
304
- display: inline-block;
305
- height: px-to-rem(10px);
306
- width: px-to-rem(10px);
307
+ background-color: var(--ilo-color-gray-base);
308
+ border-radius: 50%;
309
+ height: px-to-rem(20px);
310
+ width: px-to-rem(20px);
307
311
  flex-shrink: 0;
312
+ display: inline-block;
313
+ }
314
+
315
+ &:after {
316
+ content: "";
317
+ background-color: var(--ilo-color-gray-base);
318
+ border: px-to-rem(4px) solid var(--ilo-color-gray-base);
319
+ border-radius: 50%;
320
+ height: px-to-rem(14px);
321
+ width: px-to-rem(14px);
322
+ // padding-left (12px) + radio's 3px inset
323
+ left: px-to-rem(15px);
324
+ top: 50%;
325
+ transform: translateY(-50%);
326
+ position: absolute;
327
+ z-index: 1;
328
+ pointer-events: none;
308
329
  }
309
330
 
310
331
  &.vjs-selected {
311
332
  color: var(--ilo-color-gray-charcoal);
312
333
 
313
334
  &:before {
314
- border-color: var(--ilo-color-neutrals-black);
315
- box-shadow: inset 0 0 0 px-to-rem(2px) var(--ilo-color-neutrals-200);
316
- background: var(--ilo-color-neutrals-black);
335
+ background-color: var(--ilo-color-blue-dark);
317
336
  }
337
+
338
+ &:after {
339
+ background-color: var(--ilo-color-blue-lighter);
340
+ border-color: var(--ilo-color-blue-dark);
341
+ }
342
+ }
343
+
344
+ &:focus:before {
345
+ background-color: var(--ilo-color-yellow);
318
346
  }
319
347
  }
320
348
 
321
349
  .vjs-menu-item[tabindex="-1"]:first-child .vjs-menu-item-text {
322
350
  font-size: 0;
351
+ line-height: 0; // collapse the zeroed-text strut so it can't inflate the row
323
352
 
324
353
  &:after {
325
- @include typography("body-xsmall");
354
+ @include typography("body-small");
326
355
  content: var(--ilo-video-none, "None");
327
- font-size: px-to-rem(12px);
328
356
  line-height: px-to-rem(20px);
329
357
  }
330
358
  }