@ilo-org/styles 0.14.0 → 0.14.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.
Files changed (57) hide show
  1. package/build/css/components/index.css +152 -1115
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/global.css +2 -2
  4. package/build/css/index.css +153 -1116
  5. package/build/css/index.css.map +1 -1
  6. package/build/css/monorepo.css +153 -1116
  7. package/build/css/monorepo.css.map +1 -1
  8. package/build/minified/index.css +1 -1
  9. package/build/minified/index.css.map +1 -1
  10. package/build/minified/monorepo.css +1 -1
  11. package/build/minified/monorepo.css.map +1 -1
  12. package/css/components/accordion.css +1 -1
  13. package/css/components/breadcrumb.css +1 -1
  14. package/css/components/button.css +1 -1
  15. package/css/components/callout.css +1 -1
  16. package/css/components/card.css +1 -1
  17. package/css/components/contextmenu.css +1 -1
  18. package/css/components/datacard.css +1 -1
  19. package/css/components/dropdown.css +1 -1
  20. package/css/components/featurecard.css +1 -1
  21. package/css/components/fieldset.css +1 -1
  22. package/css/components/file-upload.css +1 -1
  23. package/css/components/footer.css +1 -1
  24. package/css/components/formcontrol.css +1 -1
  25. package/css/components/heading.css +1 -1
  26. package/css/components/herocard.css +1 -1
  27. package/css/components/input.css +1 -1
  28. package/css/components/linklist.css +1 -1
  29. package/css/components/list.css +1 -1
  30. package/css/components/loading.css +1 -1
  31. package/css/components/logo.css +1 -1
  32. package/css/components/navigation.css +1 -1
  33. package/css/components/pagination.css +1 -1
  34. package/css/components/profile.css +1 -1
  35. package/css/components/readmore.css +1 -1
  36. package/css/components/richtext.css +1 -1
  37. package/css/components/socialmedia.css +1 -1
  38. package/css/components/statcard.css +1 -1
  39. package/css/components/table.css +1 -1
  40. package/css/components/tableofcontents.css +1 -1
  41. package/css/components/tabs.css +1 -1
  42. package/css/components/tag.css +1 -1
  43. package/css/components/textarea.css +1 -1
  44. package/css/components/textinput.css +1 -1
  45. package/css/components/tooltip.css +1 -1
  46. package/css/global.css +1 -1
  47. package/css/global.css.map +1 -1
  48. package/css/index.css +2 -2
  49. package/css/index.css.map +1 -1
  50. package/css/monorepo.css +2 -2
  51. package/css/monorepo.css.map +1 -1
  52. package/package.json +2 -2
  53. package/scss/components/_tableofcontents.scss +2 -0
  54. package/scss/components/_tabs.scss +1 -0
  55. package/scss/components/index.scss +0 -1
  56. package/css/components/video-legacy.css +0 -1
  57. package/scss/components/_video-legacy.scss +0 -795
@@ -1,795 +0,0 @@
1
- @use "../tokens" as *;
2
- @use "../functions" as *;
3
- @import "../mixins";
4
-
5
- .ilo--legacyvideo {
6
- position: relative;
7
- width: 100%;
8
-
9
- &--wrapper {
10
- line-height: 0;
11
- position: relative;
12
- width: 100%;
13
- }
14
-
15
- &--img {
16
- line-height: 0;
17
- }
18
-
19
- &--caption {
20
- border-left: px-to-rem(3px) solid $color-ux-caption-border-left;
21
- color: $color-font-caption;
22
- font-weight: 400;
23
- margin-top: spacing(4);
24
- padding-left: spacing(2);
25
- @include font-styles("image-caption");
26
- }
27
-
28
- &:focus,
29
- .vjs-tech:focus {
30
- outline: none;
31
- }
32
-
33
- &--element,
34
- .vjs-tech {
35
- height: auto;
36
- object-fit: cover;
37
- width: 100%;
38
-
39
- &:focus {
40
- outline: none;
41
- }
42
- }
43
-
44
- &--player {
45
- position: relative;
46
-
47
- &:focus {
48
- outline: none;
49
- }
50
-
51
- &.youtube {
52
- height: auto;
53
- max-width: 100%;
54
- overflow: hidden;
55
- padding-bottom: 56.25%;
56
- position: relative;
57
- }
58
-
59
- iframe {
60
- height: 100%;
61
- left: 0;
62
- position: absolute;
63
- top: 0;
64
- width: 100%;
65
- }
66
- }
67
-
68
- &--poster,
69
- .vjs-poster {
70
- display: none;
71
- object-fit: cover;
72
- height: 100%;
73
- left: 0;
74
- max-height: 100%;
75
- max-width: 100%;
76
- overflow: hidden;
77
- position: absolute;
78
- top: 0;
79
- width: 100%;
80
-
81
- &.show {
82
- display: block;
83
- }
84
-
85
- & img,
86
- & source {
87
- height: auto;
88
- left: 50%;
89
- position: absolute;
90
- top: 50%;
91
- transform: translate(-50%, -50%);
92
- width: 100%;
93
- }
94
- }
95
-
96
- &--controls,
97
- .vjs-control-bar {
98
- bottom: 0;
99
- color: $color-ux-labels-darkbg;
100
- display: flex;
101
- justify-content: flex-start;
102
- left: 0;
103
- height: px-to-rem(40px);
104
- opacity: 0;
105
- position: absolute;
106
- transition: opacity 150ms ease-out;
107
- width: 100%;
108
-
109
- &.notplayed {
110
- bottom: auto;
111
- opacity: 1;
112
- top: 0;
113
-
114
- @include breakpoint("large") {
115
- flex-direction: column;
116
- height: 122px;
117
- width: px-to-rem(4px);
118
- }
119
- }
120
-
121
- [dir="rtl"] & {
122
- justify-content: flex-end;
123
- }
124
-
125
- button span {
126
- @include isVisuallyHidden();
127
- }
128
-
129
- &--play,
130
- &--pause,
131
- .vjs-play-control,
132
- .vjs-big-play-button {
133
- background-color: $color-ux-video-controls-default-background;
134
- border: none;
135
- cursor: pointer;
136
- height: 100%;
137
- order: 1;
138
- width: px-to-rem(40px);
139
- -webkit-appearance: none;
140
- -moz-appearance: none;
141
- }
142
-
143
- &.notplayed {
144
- @include breakpoint("large") {
145
- .vjs-play-control,
146
- .vjs-big-play-button {
147
- order: 1;
148
- height: px-to-rem(48px);
149
- width: px-to-rem(48px);
150
- }
151
-
152
- .ilo--legacyvideo--controls--play,
153
- .ilo--legacyvideo--controls--pause {
154
- order: 1;
155
- height: px-to-rem(80px);
156
- width: px-to-rem(80px);
157
- }
158
- }
159
- }
160
-
161
- &--play,
162
- .vjs-play-control:not(.vjs-playing),
163
- .vjs-big-play-button {
164
- @include iconbutton(
165
- "play",
166
- px-to-rem(48px),
167
- px-to-rem(48px),
168
- $color-ux-video-controls-default-icon
169
- );
170
-
171
- &.ilo--legacyvideo--controls--play--hovered,
172
- &:hover,
173
- &:focus {
174
- background-color: $color-ux-video-controls-hover-background;
175
- @include iconbutton(
176
- "play",
177
- px-to-rem(48px),
178
- px-to-rem(48px),
179
- $color-ux-video-controls-hover-icon
180
- );
181
-
182
- & ~ .vjs-duration,
183
- & ~ .ilo--legacyvideo--controls--duration {
184
- background-color: $color-ux-video-controls-hover-background;
185
- color: $color-ux-video-controls-hover-icon;
186
- }
187
- }
188
-
189
- &.vjs-paused,
190
- &.vjs-ended {
191
- @include iconbutton(
192
- "play",
193
- px-to-rem(24px),
194
- px-to-rem(24px),
195
- $color-ux-video-controls-default-icon
196
- );
197
-
198
- &:hover,
199
- &:focus {
200
- background-color: $color-ux-video-controls-hover-background;
201
- @include iconbutton(
202
- "play",
203
- px-to-rem(24px),
204
- px-to-rem(24px),
205
- $color-ux-video-controls-hover-icon
206
- );
207
- }
208
- }
209
- }
210
-
211
- &:not(.notplayed) {
212
- .ilo--legacyvideo--controls--play {
213
- background-size: 24px 24px;
214
- }
215
- }
216
-
217
- &--pause,
218
- .vjs-playing {
219
- @include iconbutton(
220
- "pause",
221
- px-to-rem(24px),
222
- px-to-rem(24px),
223
- $color-ux-video-controls-default-icon
224
- );
225
-
226
- &:hover,
227
- &:focus {
228
- background-color: $color-ux-video-controls-hover-background;
229
- @include iconbutton(
230
- "pause",
231
- px-to-rem(24px),
232
- px-to-rem(24px),
233
- $color-ux-video-controls-hover-icon
234
- );
235
- }
236
- }
237
-
238
- &--duration,
239
- .vjs-duration {
240
- background-color: $color-ux-video-controls-default-background;
241
- color: $color-ux-video-controls-default-icon;
242
- display: none;
243
- height: 100%;
244
- font-weight: 700;
245
- margin-left: px-to-rem(2px);
246
- order: 2;
247
- padding-top: px-to-rem(9px);
248
- text-align: center;
249
- width: px-to-rem(80px);
250
-
251
- &.ilo--legacyvideo--controls--duration--hovered,
252
- &:hover,
253
- &:focus {
254
- background-color: $color-ux-video-controls-hover-background;
255
- color: $color-ux-video-controls-hover-icon;
256
-
257
- // react-player play button, https://github.com/international-labour-organization/designsystem/issues/521
258
- & ~ .ilo--legacyvideo--controls--play {
259
- background-color: $color-ux-video-controls-hover-background;
260
- @include iconbutton(
261
- "play",
262
- px-to-rem(48px),
263
- px-to-rem(48px),
264
- $color-ux-video-controls-hover-icon
265
- );
266
- }
267
- }
268
-
269
- @include font-styles("label-small");
270
-
271
- &.show {
272
- display: block;
273
- }
274
- }
275
-
276
- &.notplayed {
277
- @include breakpoint("large") {
278
- .vjs-duration {
279
- height: px-to-rem(40px);
280
- margin-left: 0;
281
- margin-top: 2px;
282
- width: px-to-rem(48px);
283
- }
284
-
285
- .ilo--legacyvideo--controls--duration {
286
- height: px-to-rem(40px);
287
- margin-left: 0;
288
- margin-top: 2px;
289
- width: px-to-rem(80px);
290
- }
291
- }
292
- }
293
-
294
- .vjs-progress-holder {
295
- position: relative;
296
- width: 96%;
297
- }
298
-
299
- &--progress,
300
- .vjs-progress-control {
301
- background-color: $color-ux-video-controls-default-background;
302
- display: none;
303
- flex-grow: 1;
304
- height: 100%;
305
- margin-left: 2px;
306
- order: 3;
307
- position: relative;
308
-
309
- &.show,
310
- .vjs-has-started & {
311
- display: block;
312
- }
313
-
314
- &-playhead {
315
- height: 100%;
316
- left: 2%;
317
- opacity: 0;
318
- padding: 0;
319
- position: absolute;
320
- top: 0;
321
- width: 96%;
322
- z-index: 20;
323
- }
324
-
325
- &-current,
326
- .vjs-play-progress {
327
- height: 8px;
328
- left: 2%;
329
- position: absolute;
330
- top: px-to-rem(16px);
331
- width: 96%;
332
- z-index: 15;
333
- -webkit-appearance: none;
334
-
335
- &::-moz-progress-bar {
336
- background: $color-ux-video-controls-hover-background;
337
- border-radius: 0;
338
- }
339
-
340
- &::-webkit-progress-bar {
341
- background: transparent;
342
- }
343
-
344
- &::-webkit-progress-value {
345
- background: $color-ux-video-controls-hover-background;
346
- border-radius: 0;
347
- }
348
- }
349
-
350
- .vjs-play-progress {
351
- background: $color-ux-video-controls-hover-background;
352
-
353
- .vjs-time-tooltip {
354
- display: none;
355
- }
356
- }
357
-
358
- div[data-start] {
359
- background: $color-base-neutrals-light;
360
- height: 8px;
361
- left: 2%;
362
- position: absolute;
363
- top: 0;
364
- width: 96%;
365
- z-index: 15;
366
- }
367
-
368
- &-played,
369
- .vjs-mouse-display {
370
- display: none;
371
- position: absolute;
372
- top: -40px;
373
- z-index: 20;
374
- }
375
-
376
- &-loaded,
377
- .vjs-load-progress {
378
- height: 8px;
379
- left: 2%;
380
- position: absolute;
381
- top: px-to-rem(16px);
382
- width: 96%;
383
- z-index: 10;
384
- -webkit-appearance: none;
385
-
386
- &::-moz-progress-bar {
387
- background: $color-base-neutrals-light;
388
- border-radius: 0;
389
- }
390
-
391
- &::-webkit-progress-bar {
392
- background: transparent;
393
- }
394
-
395
- &::-webkit-progress-value {
396
- background: $color-base-neutrals-light;
397
- border-radius: 0;
398
- }
399
- }
400
-
401
- &:hover,
402
- &:focus {
403
- .vjs-play-progress {
404
- position: relative;
405
-
406
- .vjs-time-tooltip {
407
- align-items: center;
408
- background-color: $color-ux-credit-background;
409
- display: flex;
410
- height: px-to-rem(32px);
411
- justify-content: center;
412
- right: 0;
413
- position: absolute;
414
- bottom: calc(300% + 12px);
415
- width: 70px;
416
- @include font-styles("image-credit");
417
-
418
- &:after {
419
- background-position: top left;
420
- background-repeat: no-repeat;
421
- background-size: contain;
422
- @include dataurlicon(
423
- "equilateraltriangle",
424
- $color-base-neutrals-dark
425
- );
426
- content: "";
427
- height: px-to-rem(12px);
428
- position: absolute;
429
- left: calc(50% - 6px);
430
- bottom: -#{px-to-rem(12px)};
431
- width: px-to-rem(12px);
432
- }
433
- }
434
- }
435
-
436
- .ilo--legacyvideo--controls--progress-played-container {
437
- position: absolute;
438
- left: 2%;
439
- top: 0;
440
- width: 96%;
441
- }
442
-
443
- .ilo--legacyvideo--controls--progress-played {
444
- --playhead: 0%;
445
- align-items: center;
446
- background-color: $color-ux-credit-background;
447
- display: flex;
448
- height: px-to-rem(32px);
449
- justify-content: center;
450
- left: calc(var(--playhead) - 34px);
451
- position: absolute;
452
- bottom: calc(300% + 12px);
453
- width: 70px;
454
- @include font-styles("image-credit");
455
-
456
- &:after {
457
- background-position: top left;
458
- background-repeat: no-repeat;
459
- background-size: contain;
460
- @include dataurlicon(
461
- "equilateraltriangle",
462
- $color-base-neutrals-dark
463
- );
464
- content: "";
465
- height: px-to-rem(12px);
466
- position: absolute;
467
- left: calc(50% - 6px);
468
- bottom: -#{px-to-rem(12px)};
469
- width: px-to-rem(12px);
470
- }
471
- }
472
- }
473
- }
474
-
475
- &--volume,
476
- .vjs-volume-panel {
477
- border-bottom: 1px solid;
478
- bottom: 0;
479
- display: none;
480
- flex-direction: column;
481
- height: 140px;
482
- margin-left: 2px;
483
- order: 4;
484
- position: relative;
485
- width: 40px;
486
-
487
- &.show,
488
- .vjs-has-started & {
489
- display: block;
490
- }
491
-
492
- &:hover,
493
- &:focus {
494
- .vjs-volume-control {
495
- display: block;
496
- }
497
- }
498
- }
499
-
500
- &--showvolume,
501
- .vjs-mute-control {
502
- background-color: $color-ux-video-controls-default-background;
503
- border: none;
504
- cursor: pointer;
505
- height: px-to-rem(40px);
506
- margin-top: 0;
507
- position: relative;
508
- width: px-to-rem(40px);
509
- z-index: 10;
510
- -webkit-appearance: none;
511
- -moz-appearance: none;
512
- @include iconbutton(
513
- "volume",
514
- px-to-rem(24px),
515
- px-to-rem(24px),
516
- $color-ux-video-controls-default-icon
517
- );
518
-
519
- &:hover,
520
- &:focus {
521
- background-color: $color-ux-video-controls-hover-background;
522
- @include iconbutton(
523
- "volume",
524
- px-to-rem(24px),
525
- px-to-rem(24px),
526
- $color-ux-video-controls-hover-icon
527
- );
528
- }
529
-
530
- &.muted,
531
- &[title="Unmute"] {
532
- @include iconbutton(
533
- "muted",
534
- px-to-rem(24px),
535
- px-to-rem(24px),
536
- $color-ux-video-controls-default-icon
537
- );
538
-
539
- &:hover,
540
- &:focus {
541
- background-color: #ebf5fd;
542
- @include iconbutton(
543
- "muted",
544
- px-to-rem(24px),
545
- px-to-rem(24px),
546
- $color-ux-video-controls-hover-icon
547
- );
548
- }
549
- }
550
- }
551
-
552
- &--setvolume,
553
- .vjs-volume-control {
554
- background: $color-ux-video-controls-hover-background;
555
- border-left: 3px solid rgb(184, 196, 204);
556
- display: none;
557
- height: px-to-rem(40px);
558
- order: 1;
559
- padding: 0;
560
- position: absolute;
561
- transform: rotate(270deg);
562
- transform-origin: -4px -4px;
563
- top: 9px;
564
- width: px-to-rem(138px);
565
- }
566
-
567
- &--setvolume {
568
- border-left: 8px solid $color-ux-video-controls-hover-background;
569
- border-right: 8px solid $color-ux-video-controls-hover-background;
570
- width: px-to-rem(122px);
571
- -webkit-appearance: none;
572
-
573
- &.show {
574
- display: block;
575
- }
576
-
577
- &-container {
578
- left: -2px;
579
- position: absolute;
580
- top: -2px;
581
- }
582
-
583
- &::-webkit-slider-runnable-track {
584
- background-color: $color-ux-video-controls-hover-icon;
585
- border: none;
586
- box-shadow: none;
587
- height: 4px;
588
- cursor: pointer;
589
- }
590
-
591
- &::-webkit-slider-thumb {
592
- background-color: $color-ux-video-controls-hover-icon;
593
- border: none;
594
- border-radius: 50%;
595
- box-shadow: none;
596
- cursor: pointer;
597
- height: 16px;
598
- margin-top: -5px;
599
- width: 16px;
600
- -webkit-appearance: none;
601
- }
602
- }
603
-
604
- .vjs-volume-panel.vjs-hover .vjs-volume-control {
605
- align-items: center;
606
- cursor: pointer;
607
- display: flex;
608
- justify-content: center;
609
- }
610
-
611
- .vjs-volume-bar {
612
- height: 4px;
613
- position: relative;
614
- width: calc(100% - 26px);
615
- }
616
-
617
- .vjs-mouse-display,
618
- .vjs-volume-level {
619
- height: 4px;
620
- left: 0;
621
- position: absolute;
622
- top: 0;
623
- }
624
-
625
- .vjs-mouse-display {
626
- background-color: $color-base-neutrals-light;
627
- width: 100%;
628
- }
629
-
630
- .vjs-volume-level {
631
- background-color: $color-ux-video-controls-hover-icon;
632
-
633
- &:before {
634
- background: $color-ux-video-controls-hover-icon;
635
- border-radius: 50%;
636
- content: "";
637
- height: 16px;
638
- margin: 0;
639
- padding: 0;
640
- position: absolute;
641
- right: -16px;
642
- top: 50%;
643
- width: 16px;
644
- -webkit-transform: translate(-50%, -50%);
645
- -ms-transform: translate(-50%, -50%);
646
- transform: translate(-50%, -50%);
647
- }
648
- }
649
-
650
- .vjs-volume-tooltip {
651
- display: none;
652
- }
653
-
654
- &--fullscreen,
655
- .vjs-fullscreen-control {
656
- background-color: $color-ux-video-controls-default-background;
657
- border: none;
658
- cursor: pointer;
659
- display: none;
660
- height: 100%;
661
- margin-left: 2px;
662
- order: 5;
663
- width: px-to-rem(40px);
664
- -webkit-appearance: none;
665
- -moz-appearance: none;
666
- @include iconbutton(
667
- "fullscreen",
668
- px-to-rem(24px),
669
- px-to-rem(24px),
670
- $color-ux-video-controls-default-icon
671
- );
672
-
673
- &:hover,
674
- &:focus {
675
- background-color: #ebf5fd;
676
- @include iconbutton(
677
- "fullscreen",
678
- px-to-rem(24px),
679
- px-to-rem(24px),
680
- $color-ux-video-controls-hover-icon
681
- );
682
- }
683
-
684
- &.show {
685
- display: block;
686
- }
687
- }
688
- }
689
-
690
- .vjs-control-bar {
691
- bottom: 0;
692
- left: -5px;
693
- width: calc(100% + 5px);
694
- }
695
-
696
- &--element:not(.vjs-has-started) {
697
- .vjs-control-bar {
698
- bottom: auto;
699
- left: -5px;
700
- opacity: 1;
701
- top: 0;
702
-
703
- @include breakpoint("large") {
704
- flex-direction: column;
705
- height: 158px;
706
- justify-content: flex-start;
707
- left: 0;
708
- width: 80px;
709
-
710
- [dir="rtl"] & {
711
- left: auto;
712
- right: 0;
713
- }
714
- }
715
- }
716
-
717
- .vjs-duration {
718
- display: block;
719
- }
720
-
721
- @include breakpoint("large") {
722
- .vjs-duration {
723
- height: px-to-rem(40px);
724
- margin-left: 0;
725
- margin-top: 2px;
726
- width: px-to-rem(80px);
727
- }
728
-
729
- .vjs-play-control {
730
- order: 1;
731
- height: px-to-rem(80px);
732
- width: px-to-rem(80px);
733
- }
734
- }
735
- }
736
-
737
- .vjs-youtube {
738
- padding-bottom: 56%;
739
-
740
- &:not(.vjs-has-started) .vjs-poster {
741
- display: block;
742
- }
743
- }
744
-
745
- .vjs-control:focus,
746
- .vjs-control *:focus {
747
- outline: none;
748
- }
749
-
750
- .vjs-has-started {
751
- .vjs-control:not(.vjs-duration):not(.vjs-volume-control) {
752
- display: block;
753
- }
754
- }
755
-
756
- &:hover,
757
- &:focus,
758
- &:focus-within {
759
- .ilo--legacyvideo--controls,
760
- .vjs-control-bar {
761
- opacity: 1;
762
- transition: opacity 150ms ease-out;
763
- }
764
- }
765
-
766
- // TODO: style using loading component
767
- .vjs-loading-spinner {
768
- display: none;
769
- }
770
-
771
- .vjs-time-divider,
772
- .vjs-remaining-time,
773
- .vjs-current-time,
774
- .vjs-control-text {
775
- display: none !important;
776
- }
777
- }
778
-
779
- .ilo--legacyvideo--container {
780
- position: relative;
781
- }
782
-
783
- [dir="rtl"] {
784
- .ilo--legacyvideo--caption {
785
- border-left: none;
786
- border-right: 3px solid #b8c4cc;
787
- padding-left: 0;
788
- padding-right: spacing(2);
789
- }
790
-
791
- .ilo--credit {
792
- left: auto;
793
- right: 0;
794
- }
795
- }