@ilo-org/styles 0.1.9 → 0.1.11

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.
@@ -51,6 +51,7 @@
51
51
  font-family: $fonts-display;
52
52
  font-weight: map-get($type, "weights", "label");
53
53
  @include font-styles("body-small");
54
+ line-height: px-to-rem(21.6px);
54
55
  @include textmargin(
55
56
  "margin-bottom",
56
57
  10px,
@@ -66,7 +67,9 @@
66
67
  color: #bedcfa;
67
68
  font-family: $fonts-display;
68
69
  font-weight: map-get($type, "weights", "section");
70
+ margin-top: px-to-rem(10px);
69
71
  @include font-styles("body-xxs");
72
+ line-height: px-to-rem(18.56px);
70
73
  @include textmargin("margin-bottom", 28px, "body-xxs", "display", 0, 0);
71
74
  }
72
75
 
@@ -167,6 +167,7 @@
167
167
  max-width: 560px;
168
168
  position: absolute;
169
169
  top: 0;
170
+ width: 100%;
170
171
 
171
172
  .right-to-left & {
172
173
  left: auto;
@@ -181,3 +181,7 @@
181
181
  }
182
182
  }
183
183
  }
184
+
185
+ .wingsuit-body .ilo--link-list--dark {
186
+ background-color: $color-base-blue-dark;
187
+ }
@@ -9,7 +9,24 @@
9
9
 
10
10
  &--unordered {
11
11
  list-style: initial;
12
- list-style-type: disclosure-closed;
12
+ list-style-type: none;
13
+
14
+ li {
15
+ &::before {
16
+ content: "";
17
+ display: inline-block;
18
+ height: px-to-rem(14px);
19
+ left: px-to-rem(-12px);
20
+ position: absolute;
21
+ top: 6px;
22
+ width: px-to-rem(12px);
23
+ @include dataurlicon("listarrow", $color-base-neutrals-light);
24
+ }
25
+ margin-bottom: px-to-rem(map-get($spacing, "padding-4"));
26
+ margin-left: px-to-rem(12px);
27
+ padding-left: px-to-rem(12px);
28
+ position: relative;
29
+ }
13
30
  }
14
31
 
15
32
  &--unstyled {
@@ -56,13 +73,13 @@
56
73
  }
57
74
 
58
75
  &__item {
59
- @include font-styles("base");
76
+ @include font-styles("body-small");
60
77
 
61
78
  font-family: $fonts-copy;
62
79
  @include textmargin(
63
80
  "margin-bottom",
64
81
  map-get($spacing, "ui-padding-lg"),
65
- "base",
82
+ "body-small",
66
83
  "copy",
67
84
  0,
68
85
  0
@@ -75,5 +92,17 @@
75
92
  font-weight: 700;
76
93
  letter-spacing: $type-label-small-letter-spacing;
77
94
  }
95
+
96
+ @include breakpoint("medium") {
97
+ @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
+ );
106
+ }
78
107
  }
79
108
  }
@@ -115,6 +115,25 @@
115
115
  &--utility-bar {
116
116
  display: none;
117
117
 
118
+ &--local {
119
+ background: $brand-ilo-blue;
120
+ display: flex;
121
+ justify-content: space-between;
122
+ padding: 0 20px;
123
+
124
+ .ilo--language-switcher {
125
+ display: none;
126
+
127
+ @include breakpoint("large") {
128
+ display: flex;
129
+ }
130
+ }
131
+
132
+ @include breakpoint("large") {
133
+ padding: 0;
134
+ }
135
+ }
136
+
118
137
  @include breakpoint("large") {
119
138
  background: $brand-ilo-blue;
120
139
  display: flex;
@@ -161,6 +180,12 @@
161
180
  transform: translateX(0);
162
181
  }
163
182
 
183
+ .ilo--header--local & {
184
+ @include breakpoint("large") {
185
+ display: none;
186
+ }
187
+ }
188
+
164
189
  @include breakpoint("large") {
165
190
  background: $brand-ilo-dark-blue;
166
191
  position: static;
@@ -356,15 +381,32 @@
356
381
  &--local {
357
382
  display: flex;
358
383
  justify-content: space-between;
359
- padding: 0 0 0 max((100% - 1260px) / 2, 20px);
384
+
385
+ @include breakpoint("large") {
386
+ padding: 0 0 0 max((100% - 1260px) / 2, 20px);
387
+ }
388
+
389
+ &--logo-wrapper {
390
+ display: flex;
391
+ padding: 16px 0;
392
+
393
+ @include breakpoint("large") {
394
+ padding: 0;
395
+ }
396
+ }
360
397
 
361
398
  &--logo-link {
362
399
  display: flex;
400
+ align-items: center;
363
401
  }
364
402
 
365
403
  &--set {
366
- display: flex;
367
- justify-content: space-between;
404
+ display: none;
405
+
406
+ @include breakpoint("large") {
407
+ display: flex;
408
+ justify-content: space-between;
409
+ }
368
410
  }
369
411
 
370
412
  &--item {
@@ -39,7 +39,7 @@
39
39
  width: 100%;
40
40
 
41
41
  .ilo--notification--content {
42
- align-items: center;
42
+ align-items: start;
43
43
  display: flex;
44
44
  justify-items: space-between;
45
45
  padding: px-to-rem(14px) px-to-rem($spacing-padding-3);
@@ -93,8 +93,10 @@
93
93
  margin-bottom: px-to-rem(22px);
94
94
 
95
95
  .ilo--fieldset--label {
96
+ color: $color-base-neutrals-black;
96
97
  font-family: $fonts-copy;
97
98
  font-weight: 400;
99
+ font-size: 14.9px;
98
100
  margin-bottom: 0;
99
101
  margin-left: px-to-rem($spacing-padding-1);
100
102
  margin-top: 2px;
@@ -9,32 +9,6 @@
9
9
 
10
10
  a {
11
11
  @include linkstyles();
12
- border: none;
13
- text-decoration: underline;
14
-
15
- &:visited {
16
- border: none;
17
- text-decoration: underline;
18
- text-decoration-color: map-get($color, "link", "underline", "visited");
19
- }
20
-
21
- &:hover {
22
- border: none;
23
- text-decoration: underline;
24
- text-decoration-color: map-get($color, "link", "underline", "hover");
25
- }
26
-
27
- &:active {
28
- border: none;
29
- text-decoration: underline;
30
- text-decoration-color: map-get($color, "link", "underline", "active");
31
- }
32
-
33
- &:focus {
34
- border: none;
35
- text-decoration: underline;
36
- text-decoration-color: map-get($color, "link", "underline", "focus");
37
- }
38
12
  }
39
13
 
40
14
  img {
@@ -191,7 +165,7 @@
191
165
  position: absolute;
192
166
  top: 6px;
193
167
  width: px-to-rem(12px);
194
- @include dataurlicon("listarrow");
168
+ @include dataurlicon("listarrow", $color-base-neutrals-light);
195
169
  }
196
170
  margin-bottom: px-to-rem(map-get($spacing, "padding-4"));
197
171
  margin-left: px-to-rem(12px);
@@ -207,6 +181,7 @@
207
181
  background-repeat: no-repeat;
208
182
  background-size: px-to-rem(72px) px-to-rem(40px);
209
183
  display: block;
184
+ font-family: $fonts-display;
210
185
  margin: px-to-rem(map-get($spacing, "padding-3")) 0
211
186
  px-to-rem(map-get($spacing, "padding-5")) 0;
212
187
  padding: px-to-rem(54px) 0 px-to-rem(34px)
@@ -10,6 +10,7 @@
10
10
 
11
11
  &--header {
12
12
  background-color: $color-ux-table-content-background;
13
+ border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
13
14
  padding: $spacing-ux-table-content-padding-top
14
15
  $spacing-ux-table-content-padding-right
15
16
  $spacing-ux-table-content-padding-bottom
@@ -24,6 +25,7 @@
24
25
  }
25
26
 
26
27
  &--content {
28
+ border-collapse: initial;
27
29
  width: 100%;
28
30
  }
29
31
 
@@ -43,7 +45,6 @@
43
45
  &--cell {
44
46
  background-color: $color-ux-table-content-background;
45
47
  border-left: px-to-rem(1px) solid $color-base-neutrals-lighter;
46
- border-top: px-to-rem(2px) solid $color-base-neutrals-lighter;
47
48
  border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
48
49
  font-family: $fonts-display;
49
50
  font-weight: 700;
@@ -144,7 +145,7 @@
144
145
  }
145
146
 
146
147
  &:hover {
147
- background-color: $color-ux-table-selected-background;
148
+ background-color: $color-ux-table-hover-background;
148
149
  border-bottom: 2px solid $color-ux-labels-hover;
149
150
  color: $color-ux-labels-hover;
150
151
  }
@@ -24,11 +24,9 @@
24
24
  color: map-get($color, "tag", "text", "default");
25
25
  display: inline-block;
26
26
  font-family: map-get($fonts, "display");
27
- font-size: inherit;
28
27
  font-weight: 500;
29
- line-height: inherit;
30
- padding: px-to-rem(10px) px-to-rem(map-get($spacing, "ui-padding-sm"))
31
- px-to-rem(8px) px-to-rem(map-get($spacing, "ui-padding-sm"));
28
+ padding: px-to-rem(7px) px-to-rem(map-get($spacing, "ui-padding-sm"))
29
+ px-to-rem(5px) px-to-rem(map-get($spacing, "ui-padding-sm"));
32
30
  text-decoration: none;
33
31
  $self: &;
34
32
  @include globaltransition("color, background-color, border-color");
@@ -92,13 +90,16 @@
92
90
  &.icon__position--right {
93
91
  .ilo--icon {
94
92
  @include dataurlicon("close", map-get($color, "tag", "text", "active"));
95
-
93
+ background-position: center;
94
+ background-repeat: no-repeat;
95
+ background-size: contain;
96
96
  height: 100%;
97
- max-height: 28px;
98
- max-width: 28px;
97
+ max-height: 24px;
98
+ max-width: 24px;
99
99
  position: absolute;
100
- right: 5px;
101
- top: 5px;
100
+ right: 10px;
101
+ top: 50%;
102
+ transform: translateY(-50%);
102
103
  width: 100%;
103
104
  }
104
105
  }
@@ -8,28 +8,23 @@
8
8
  border: none;
9
9
  border-radius: px-to-rem(2px);
10
10
  display: inline-block;
11
- filter: drop-shadow(
12
- 0 px-to-rem(0.8px) px-to-rem(1.6px)
13
- rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.038)
14
- )
15
- drop-shadow(
16
- 0 px-to-rem(2.7) px-to-rem(5.4px)
17
- rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.054)
18
- )
19
- drop-shadow(
20
- 0 px-to-rem(12px) px-to-rem(24px)
21
- rgba(map-get($color, "tooltip", "default", "dropshadow"), 0.12)
22
- );
11
+ filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
12
+ drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
13
+ drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08))
14
+ drop-shadow(0px -4px 16px rgba(30, 45, 190, 0.054));
23
15
  color: map-get($color, "tooltip", "default", "text");
24
16
  opacity: 0;
25
17
  padding: px-to-rem($spacing-padding-1) px-to-rem($spacing-padding-1-5);
26
18
  position: absolute;
27
- transition: opacity 0.15s ease-in-out;
19
+ transition: opacity 150ms ease-out;
28
20
  visibility: hidden;
29
21
  width: auto;
30
22
 
31
- &--visible {
23
+ &--fade {
32
24
  opacity: 1;
25
+ }
26
+
27
+ &--visible {
33
28
  visibility: visible;
34
29
  z-index: 2;
35
30
  }
@@ -33,6 +33,7 @@
33
33
  &--element,
34
34
  .vjs-tech {
35
35
  height: auto;
36
+ object-fit: cover;
36
37
  width: 100%;
37
38
 
38
39
  &:focus {
@@ -133,13 +134,23 @@
133
134
  width: $spacing-ux-video-controls-height;
134
135
  -webkit-appearance: none;
135
136
  -moz-appearance: none;
137
+ }
136
138
 
137
- .notplayed & {
138
- @include breakpoint("large") {
139
+ &.notplayed {
140
+ @include breakpoint("large") {
141
+ .vjs-play-control,
142
+ .vjs-big-play-button {
139
143
  order: 1;
140
144
  height: px-to-rem($spacing-ux-video-bigplaybutton-height);
141
145
  width: px-to-rem($spacing-ux-video-bigplaybutton-width);
142
146
  }
147
+
148
+ .ilo--video--controls--play,
149
+ .ilo--video--controls--pause {
150
+ order: 1;
151
+ height: px-to-rem(80px);
152
+ width: px-to-rem(80px);
153
+ }
143
154
  }
144
155
  }
145
156
 
@@ -153,7 +164,8 @@
153
164
  $color-ux-video-controls-default-icon
154
165
  );
155
166
 
156
- &:hover {
167
+ &:hover,
168
+ &:focus {
157
169
  background-color: $color-ux-video-controls-hover-background;
158
170
  @include iconbutton(
159
171
  "play",
@@ -177,7 +189,8 @@
177
189
  $color-ux-video-controls-default-icon
178
190
  );
179
191
 
180
- &:hover {
192
+ &:hover,
193
+ &:focus {
181
194
  background-color: $color-ux-video-controls-hover-background;
182
195
  @include iconbutton(
183
196
  "play",
@@ -189,6 +202,12 @@
189
202
  }
190
203
  }
191
204
 
205
+ &:not(.notplayed) {
206
+ .ilo--video--controls--play {
207
+ background-size: 24px 24px;
208
+ }
209
+ }
210
+
192
211
  &--pause,
193
212
  .vjs-playing {
194
213
  @include iconbutton(
@@ -198,7 +217,8 @@
198
217
  $color-ux-video-controls-default-icon
199
218
  );
200
219
 
201
- &:hover {
220
+ &:hover,
221
+ &:focus {
202
222
  background-color: $color-ux-video-controls-hover-background;
203
223
  @include iconbutton(
204
224
  "pause",
@@ -222,7 +242,8 @@
222
242
  text-align: center;
223
243
  width: px-to-rem(80px);
224
244
 
225
- &:hover {
245
+ &:hover,
246
+ &:focus {
226
247
  background-color: $color-ux-video-controls-hover-background;
227
248
  color: $color-ux-video-controls-hover-icon;
228
249
  }
@@ -232,14 +253,23 @@
232
253
  &.show {
233
254
  display: block;
234
255
  }
256
+ }
235
257
 
236
- .notplayed & {
237
- @include breakpoint("large") {
258
+ &.notplayed {
259
+ @include breakpoint("large") {
260
+ .vjs-duration {
238
261
  height: px-to-rem($spacing-ux-video-controls-height);
239
262
  margin-left: 0;
240
263
  margin-top: 2px;
241
264
  width: px-to-rem($spacing-ux-video-bigplaybutton-width);
242
265
  }
266
+
267
+ .ilo--video--controls--duration {
268
+ height: px-to-rem($spacing-ux-video-controls-height);
269
+ margin-left: 0;
270
+ margin-top: 2px;
271
+ width: px-to-rem(80px);
272
+ }
243
273
  }
244
274
  }
245
275
 
@@ -350,7 +380,8 @@
350
380
  }
351
381
  }
352
382
 
353
- &:hover {
383
+ &:hover,
384
+ &:focus {
354
385
  .vjs-play-progress {
355
386
  position: relative;
356
387
 
@@ -440,7 +471,8 @@
440
471
  display: block;
441
472
  }
442
473
 
443
- &:hover {
474
+ &:hover,
475
+ &:focus {
444
476
  .vjs-volume-control {
445
477
  display: block;
446
478
  }
@@ -453,7 +485,7 @@
453
485
  border: none;
454
486
  cursor: pointer;
455
487
  height: px-to-rem($spacing-ux-video-controls-height);
456
- margin-top: 1px;
488
+ margin-top: 0;
457
489
  position: relative;
458
490
  width: px-to-rem($spacing-ux-video-controls-height);
459
491
  z-index: 10;
@@ -466,7 +498,8 @@
466
498
  $color-ux-video-controls-default-icon
467
499
  );
468
500
 
469
- &:hover {
501
+ &:hover,
502
+ &:focus {
470
503
  background-color: $color-ux-video-controls-hover-background;
471
504
  @include iconbutton(
472
505
  "volume",
@@ -485,7 +518,8 @@
485
518
  $color-ux-video-controls-default-icon
486
519
  );
487
520
 
488
- &:hover {
521
+ &:hover,
522
+ &:focus {
489
523
  background-color: #ebf5fd;
490
524
  @include iconbutton(
491
525
  "muted",
@@ -523,9 +557,9 @@
523
557
  }
524
558
 
525
559
  &-container {
526
- left: 0;
560
+ left: -2px;
527
561
  position: absolute;
528
- top: 0;
562
+ top: -2px;
529
563
  }
530
564
 
531
565
  &::-webkit-slider-runnable-track {
@@ -618,7 +652,8 @@
618
652
  $color-ux-video-controls-default-icon
619
653
  );
620
654
 
621
- &:hover {
655
+ &:hover,
656
+ &:focus {
622
657
  background-color: #ebf5fd;
623
658
  @include iconbutton(
624
659
  "fullscreen",
@@ -687,7 +722,8 @@
687
722
  }
688
723
  }
689
724
 
690
- &:hover {
725
+ &:hover,
726
+ &:focus {
691
727
  .ilo--video--controls,
692
728
  .vjs-control-bar {
693
729
  opacity: 1;
@@ -711,3 +747,18 @@
711
747
  .ilo--video--container {
712
748
  position: relative;
713
749
  }
750
+
751
+ .right-to-left {
752
+ .ilo--video--caption {
753
+ border-left: none;
754
+ border-right: 3px solid #b8c4cc;
755
+ direction: rtl;
756
+ padding-left: 0;
757
+ padding-right: px-to-rem(map-get($spacing, "padding-1"));
758
+ }
759
+
760
+ .ilo--credit {
761
+ left: auto;
762
+ right: 0;
763
+ }
764
+ }