@ilo-org/styles 0.1.1 → 0.1.3

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.
@@ -79,4 +79,41 @@
79
79
  }
80
80
  }
81
81
  }
82
+
83
+ .right-to-left & {
84
+ &:after {
85
+ background-position: top left;
86
+ left: auto;
87
+ right: 100%;
88
+ transform: scaleX(-1);
89
+ }
90
+
91
+ @include breakpoint("large", true) {
92
+ &--label {
93
+ left: auto;
94
+ right: 0;
95
+
96
+ &:after {
97
+ background-position: top right;
98
+ @include dataurlicon(
99
+ "equilateraltriangle",
100
+ $color-base-neutrals-dark
101
+ );
102
+ left: auto;
103
+ right: calc(#{px-to-rem(map-get($spacing, "padding-1-5"))} / 2);
104
+ }
105
+ }
106
+
107
+ &:before {
108
+ background-position: 4px center;
109
+ left: auto;
110
+ right: 0;
111
+ }
112
+
113
+ &:after {
114
+ left: auto;
115
+ right: px-to-rem(29px);
116
+ }
117
+ }
118
+ }
82
119
  }
@@ -16,12 +16,10 @@
16
16
  @include bordervalues("input", "formelements");
17
17
  border-radius: 0;
18
18
  box-sizing: content-box;
19
- font-family: $fonts-display;
19
+ font-family: $fonts-copy;
20
20
  font-weight: map-get($type, "weights", "section");
21
21
  @include font-styles("label-medium");
22
- height: px-to-rem(
23
- map-get($spacing, "formelements", "input", "default", "height")
24
- );
22
+ height: px-to-rem(45px);
25
23
  @include spacingvalues("margin", "input", "formelements");
26
24
  outline: none;
27
25
  overflow: hidden;
@@ -33,9 +31,9 @@
33
31
  white-space: nowrap;
34
32
  width: calc(100% - 78px);
35
33
 
36
- background-position: calc(100% - 14px) center;
34
+ background-position: calc(100% - 14px) center, 100% center;
37
35
  background-repeat: no-repeat;
38
- background-size: 24px 24px, 72px 100%;
36
+ background-size: 24px 24px, 102px 100%;
39
37
  background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-actionable)}"),
40
38
  linear-gradient(
41
39
  to right,
@@ -43,8 +41,8 @@
43
41
  transparent calc(50% - 0.81px),
44
42
  $color-formelements-input-default-border-left calc(50% - 0.8px),
45
43
  $color-formelements-input-default-border-left calc(50% + 0.8px),
46
- transparent calc(50% + 0.81px),
47
- transparent 100%
44
+ rgba(237, 240, 242, 1) calc(50% + 0.81px),
45
+ rgba(237, 240, 242, 1) 100%
48
46
  );
49
47
 
50
48
  option {
@@ -95,6 +93,23 @@
95
93
  );
96
94
  }
97
95
 
96
+ &:active {
97
+ background-position: calc(100% - 14px) center, 100% center;
98
+ background-repeat: no-repeat;
99
+ background-size: 24px 24px, 102px 100%;
100
+ background-image: url("#{colortodataurlicon("arrow", $color-ux-labels-actionable)}"),
101
+ linear-gradient(
102
+ to right,
103
+ transparent 0%,
104
+ transparent calc(50% - 0.81px),
105
+ $color-formelements-input-default-border-left calc(50% - 0.8px),
106
+ $color-formelements-input-default-border-left calc(50% + 0.8px),
107
+ rgba(237, 240, 242, 1) calc(50% + 0.81px),
108
+ rgba(237, 240, 242, 1) 100%
109
+ );
110
+ @include bordervalues("input", "formelements");
111
+ }
112
+
98
113
  &:disabled {
99
114
  opacity: 45%;
100
115
  pointer-events: none;
@@ -18,6 +18,7 @@
18
18
  }
19
19
 
20
20
  &--helper {
21
+ color: $color-base-neutrals-medium;
21
22
  font-family: $fonts-copy;
22
23
  @include font-styles("body-xxs");
23
24
  @include textmargin(
@@ -34,7 +34,9 @@
34
34
  }
35
35
 
36
36
  &--logo {
37
+ min-width: 200px;
37
38
  max-width: 100%;
39
+ width: 35%;
38
40
  }
39
41
 
40
42
  &--secondary {
@@ -294,7 +296,7 @@
294
296
  }
295
297
 
296
298
  &--logo {
297
- width: 100%;
299
+ width: 25%;
298
300
  }
299
301
 
300
302
  &--secondary {
@@ -39,4 +39,18 @@
39
39
  bottom: -#{px-to-rem(map-get($spacing, "padding-0-5"))};
40
40
  }
41
41
  }
42
+
43
+ .right-to-left & {
44
+ .ilo--image--caption {
45
+ border-left: none;
46
+ border-right: 3px solid #b8c4cc;
47
+ padding-left: 0;
48
+ padding-right: px-to-rem(map-get($spacing, "padding-1"));
49
+ }
50
+
51
+ .ilo--credit {
52
+ left: auto;
53
+ right: 0;
54
+ }
55
+ }
42
56
  }
@@ -15,7 +15,7 @@
15
15
  );
16
16
  @include bordervalues("input", "formelements");
17
17
  box-sizing: border-box;
18
- font-family: $fonts-display;
18
+ font-family: $fonts-copy;
19
19
  font-weight: map-get($type, "weights", "section");
20
20
  @include font-styles("label-medium");
21
21
  height: px-to-rem(
@@ -26,18 +26,6 @@
26
26
  @include spacingvalues("padding", "input", "formelements");
27
27
  width: map-get($spacing, "formelements", "input", "default", "width");
28
28
 
29
- &:hover {
30
- background-color: map-get(
31
- $color,
32
- "formelements",
33
- "input",
34
- "hover",
35
- "background"
36
- );
37
- @include bordervalues("input", "formelements", "hover");
38
- padding-left: calc($spacing-formelements-input-default-padding-left - 1px);
39
- }
40
-
41
29
  &:focus {
42
30
  background-color: map-get(
43
31
  $color,
@@ -78,6 +78,7 @@
78
78
  @include font-styles("body-small");
79
79
  @include textmargin("padding-bottom", 25px, "body-small", "display", 0, 0);
80
80
  @include textmargin("padding-top", 25px, "body-small", "display", 0, 0);
81
+ padding-right: px-to-rem($spacing-padding-4);
81
82
  text-decoration: none;
82
83
  @include dataurlicon("arrowright", $color-link-text-default);
83
84
 
@@ -27,7 +27,8 @@
27
27
  .ilo--modal--wrapper {
28
28
  & > * {
29
29
  opacity: 1;
30
- transition: opacity 1.5s ease-out 125ms;
30
+ transition-delay: 125ms;
31
+ @include globaltransition("opacity");
31
32
  }
32
33
  }
33
34
  }
@@ -57,10 +58,17 @@
57
58
  }
58
59
 
59
60
  .modal--close {
61
+ height: px-to-rem(40px);
60
62
  right: 0;
61
63
  position: absolute;
62
64
  top: 0;
65
+ width: px-to-rem(40px);
63
66
  z-index: 10004;
67
+
68
+ .ilo--icon {
69
+ left: px-to-rem(3px);
70
+ top: px-to-rem(3px);
71
+ }
64
72
  }
65
73
 
66
74
  @include breakpoint("medium") {
@@ -4,7 +4,7 @@
4
4
 
5
5
  .ilo--header {
6
6
  $self: &;
7
- overflow-x: hidden;
7
+ overflow: hidden;
8
8
  position: relative;
9
9
  z-index: 4;
10
10
 
@@ -117,6 +117,10 @@
117
117
  &--local {
118
118
  justify-content: space-between;
119
119
  }
120
+
121
+ .right-to-left & {
122
+ flex-direction: row-reverse;
123
+ }
120
124
  }
121
125
  }
122
126
 
@@ -126,6 +130,10 @@
126
130
  padding: 0 16px;
127
131
  width: 100%;
128
132
 
133
+ .right-to-left & {
134
+ direction: rtl;
135
+ }
136
+
129
137
  @include breakpoint("large") {
130
138
  display: flex;
131
139
  justify-content: space-between;
@@ -162,12 +170,17 @@
162
170
  padding: 20px 0;
163
171
  text-align: right;
164
172
 
173
+ .right-to-left & {
174
+ text-align: left;
175
+ }
176
+
165
177
  @include breakpoint("large") {
166
178
  display: block;
167
179
  }
168
180
 
169
181
  &--small {
170
182
  @include font-styles("tagline");
183
+ color: $brand-ilo-ramp-blue;
171
184
  display: block;
172
185
  font-weight: 500;
173
186
  }
@@ -236,7 +249,7 @@
236
249
 
237
250
  &:hover,
238
251
  &:focus {
239
- background: $brand-ilo-white;
252
+ background: $brand-ilo-light-blue;
240
253
  color: $brand-ilo-blue;
241
254
  text-decoration: none;
242
255
  }
@@ -249,7 +262,7 @@
249
262
 
250
263
  appearance: none;
251
264
  background-color: $brand-ilo-white;
252
- background-position: 90% 55%;
265
+ background-position: calc(100% - 16px) 55%;
253
266
  background-repeat: no-repeat;
254
267
  background-size: 16px;
255
268
  border: none;
@@ -270,6 +283,22 @@
270
283
  color: $brand-ilo-blue;
271
284
  }
272
285
 
286
+ .right-to-left & {
287
+ @include dataurlicon("arrowleft", $brand-ilo-dark-blue);
288
+ background-color: $brand-ilo-white;
289
+ background-position: 16px 55%;
290
+ background-repeat: no-repeat;
291
+ background-size: 16px;
292
+ text-align: right;
293
+
294
+ &:focus,
295
+ &:hover {
296
+ @include dataurlicon("arrowleft", $brand-ilo-blue);
297
+ background-color: $brand-ilo-light-blue;
298
+ color: $brand-ilo-blue;
299
+ }
300
+ }
301
+
273
302
  @include breakpoint("large") {
274
303
  @include dataurlicon("add", $brand-ilo-white);
275
304
  @include font-styles("nav-bold-b-sm");
@@ -297,6 +326,22 @@
297
326
  border-color: $brand-ilo-white;
298
327
  color: $brand-ilo-blue;
299
328
  }
329
+
330
+ .right-to-left & {
331
+ @include dataurlicon("add", $brand-ilo-white);
332
+ background-color: $brand-ilo-dark-blue;
333
+ background-position: 90% 55%;
334
+ background-repeat: no-repeat;
335
+ background-size: 20px;
336
+ text-align: left;
337
+
338
+ &:focus,
339
+ &:hover {
340
+ @include dataurlicon("add", $brand-ilo-blue);
341
+ background-color: $brand-ilo-white;
342
+ color: $brand-ilo-blue;
343
+ }
344
+ }
300
345
  }
301
346
  }
302
347
 
@@ -339,12 +384,65 @@
339
384
  }
340
385
 
341
386
  .ilo--mobile--nav {
387
+ border-bottom: 3px solid $brand-ilo-grey-light;
388
+ margin-bottom: 16px;
389
+ padding-bottom: 16px;
390
+
342
391
  &--logo {
343
392
  align-items: center;
344
393
  display: flex;
345
394
  justify-content: space-between;
346
395
  }
347
396
 
397
+ &--language--select {
398
+ background: $brand-ilo-white;
399
+ left: 0;
400
+ height: 100%;
401
+ padding: 0 0 px-to-rem(32px);
402
+ position: absolute;
403
+ top: 0;
404
+ transform: translateX(100%);
405
+ transition: transform 225ms ease-out;
406
+ width: 100%;
407
+
408
+ .ilo--select--open & {
409
+ transform: translateX(0);
410
+ }
411
+ }
412
+
413
+ &--language--switcher--button {
414
+ @include dataurlicon("global", $brand-ilo-dark-blue);
415
+ @include font-styles("nav-md");
416
+
417
+ appearance: none;
418
+ background-color: $brand-ilo-white;
419
+ background-position: calc(100% - 16px) 55%;
420
+ background-repeat: no-repeat;
421
+ background-size: 16px;
422
+ border: none;
423
+ color: $brand-ilo-dark-blue;
424
+ cursor: pointer;
425
+ display: block;
426
+ font-family: $fonts-display;
427
+ font-weight: 500;
428
+ padding: 16px 36px 16px 8px;
429
+ text-align: left;
430
+ transition: all 150ms ease-out;
431
+ width: 100%;
432
+
433
+ &:focus,
434
+ &:hover {
435
+ @include dataurlicon("global", $brand-ilo-blue);
436
+ background-color: $brand-ilo-light-blue;
437
+ color: $brand-ilo-blue;
438
+ }
439
+
440
+ .right-to-left & {
441
+ background-position: 16px 55%;
442
+ text-align: right;
443
+ }
444
+ }
445
+
348
446
  @include breakpoint("large") {
349
447
  display: none;
350
448
  }
@@ -356,6 +454,10 @@
356
454
  padding: 0 max((100% - 1300px) / 2, 20px) 0 0;
357
455
  position: relative;
358
456
 
457
+ .right-to-left & {
458
+ padding: 0 0 0 max((100% - 1300px) / 2, 20px);
459
+ }
460
+
359
461
  &::before {
360
462
  background: $brand-ilo-dark-blue;
361
463
  clip-path: polygon(0 0, 100% 0, 100% 100%);
@@ -366,6 +468,12 @@
366
468
  position: absolute;
367
469
  top: 0;
368
470
  width: 32px;
471
+
472
+ .right-to-left & {
473
+ clip-path: polygon(0 0, 0 100%, 100% 100%);
474
+ left: auto;
475
+ right: -32px;
476
+ }
369
477
  }
370
478
 
371
479
  &--wrap {
@@ -385,6 +493,7 @@
385
493
  color: $brand-ilo-white;
386
494
  cursor: pointer;
387
495
  display: block;
496
+ font-family: $fonts-display;
388
497
  font-weight: 500;
389
498
  padding: 8px 30px 8px 40px;
390
499
  transition: all 150ms ease-out;
@@ -414,6 +523,8 @@
414
523
 
415
524
  .ilo--subnav {
416
525
  background: $brand-ilo-white;
526
+ height: 100%;
527
+ left: 0;
417
528
  padding: 0 0 32px;
418
529
  position: absolute;
419
530
  top: 0;
@@ -425,7 +536,15 @@
425
536
  transform: translateX(0);
426
537
  }
427
538
 
539
+ .right-to-left & {
540
+ direction: rtl;
541
+ }
542
+
428
543
  @include breakpoint("large") {
544
+ filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
545
+ drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
546
+ drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
547
+ height: auto;
429
548
  left: 0;
430
549
  padding: 32px 0;
431
550
  top: auto;
@@ -500,12 +619,14 @@
500
619
  border: none;
501
620
  color: $brand-ilo-dark-blue;
502
621
  cursor: pointer;
622
+ font-family: $fonts-display;
623
+ font-weight: 500;
503
624
  padding: 16px 16px 16px 32px;
504
625
  position: relative;
505
626
  transition: all 150ms ease-out;
506
627
 
507
628
  &::before {
508
- @include dataurlicon("arrowright", $brand-ilo-dark-blue);
629
+ @include dataurlicon("arrowleft", $brand-ilo-dark-blue);
509
630
  background-position: 10% center;
510
631
  background-repeat: no-repeat;
511
632
  background-size: 24px;
@@ -515,21 +636,43 @@
515
636
  left: 0;
516
637
  position: absolute;
517
638
  top: 50%;
518
- transform: translateY(-50%) rotate(180deg);
639
+ transform: translateY(-50%);
519
640
  width: 24px;
520
641
  }
521
642
 
643
+ .right-to-left & {
644
+ padding: 16px 32px 16px 16px;
645
+
646
+ &::before {
647
+ @include dataurlicon("arrowright", $brand-ilo-dark-blue);
648
+ background-position: 10% center;
649
+ background-repeat: no-repeat;
650
+ background-size: 24px;
651
+ left: auto;
652
+ right: 0;
653
+ }
654
+ }
655
+
522
656
  &:hover,
523
657
  &:focus {
524
658
  background-color: $brand-ilo-light-blue;
525
659
  color: $brand-ilo-blue;
526
660
 
527
661
  &::before {
528
- @include dataurlicon("arrowright", $brand-ilo-blue);
662
+ @include dataurlicon("arrowleft", $brand-ilo-blue);
529
663
  background-position: 10% center;
530
664
  background-repeat: no-repeat;
531
665
  background-size: 24px;
532
666
  }
667
+
668
+ .right-to-left & {
669
+ &::before {
670
+ @include dataurlicon("arrowright", $brand-ilo-blue);
671
+ background-position: 10% center;
672
+ background-repeat: no-repeat;
673
+ background-size: 24px;
674
+ }
675
+ }
533
676
  }
534
677
 
535
678
  @include breakpoint("large") {
@@ -551,6 +694,7 @@
551
694
 
552
695
  .ilo--search-box {
553
696
  background: $brand-ilo-white;
697
+ left: 0;
554
698
  position: absolute;
555
699
  top: 0;
556
700
  transform: translateX(100%);
@@ -562,6 +706,9 @@
562
706
  }
563
707
 
564
708
  @include breakpoint("large") {
709
+ filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
710
+ drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
711
+ drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
565
712
  left: 0;
566
713
  padding: 32px 0;
567
714
  top: auto;
@@ -610,7 +757,7 @@
610
757
  }
611
758
 
612
759
  .ilo--search--open & {
613
- @include dataurlicon("add", $brand-ilo-dark-blue);
760
+ @include dataurlicon("close", $brand-ilo-dark-blue);
614
761
  background-color: $brand-ilo-white;
615
762
  background-position: center;
616
763
  background-repeat: no-repeat;
@@ -618,7 +765,7 @@
618
765
 
619
766
  &:hover,
620
767
  &:focus {
621
- @include dataurlicon("add", $brand-ilo-blue);
768
+ @include dataurlicon("close", $brand-ilo-blue);
622
769
  background-color: $brand-ilo-light-blue;
623
770
  }
624
771
  }
@@ -1,4 +1,5 @@
1
1
  @use "../tokens" as *;
2
+ @use "../functions" as *;
2
3
  @import "../mixins";
3
4
 
4
5
  .ilo--profile {
@@ -41,36 +42,41 @@
41
42
  font-family: $fonts-display;
42
43
  font-weight: map-get($type, "weights", "label");
43
44
  margin-left: 11px;
44
- @include font-styles("body-xs");
45
+ @include font-styles("body-small");
45
46
  }
46
47
 
47
48
  &--role {
48
49
  display: block;
49
50
  font-family: $fonts-copy;
50
51
  margin-left: 11px;
51
- @include font-styles("body-xss");
52
+ @include font-styles("body-xs");
52
53
  }
53
54
 
54
55
  &--description {
55
56
  clear: both;
56
57
  font-family: $fonts-copy;
57
58
  padding-top: 22px;
58
- @include font-styles("body-xss");
59
+ @include font-styles("body-xs");
59
60
  }
60
61
 
61
62
  &--link {
63
+ align-items: center;
62
64
  clear: both;
63
65
  color: map-get($color, "link", "text", "default");
64
- display: block;
66
+ display: inline-flex;
65
67
  font-family: $fonts-display;
66
68
  font-weight: map-get($type, "weights", "section");
69
+ height: px-to-rem(56px);
67
70
  text-decoration: none;
68
- @include font-styles("body-xs");
71
+ @include font-styles("body-small");
69
72
 
70
73
  span {
74
+ align-items: center;
71
75
  background-position: calc(100% - 10px) center;
72
76
  background-repeat: no-repeat;
73
77
  background-size: 24px 24px;
78
+ display: inline-flex;
79
+ height: 24px;
74
80
  padding-right: 32px;
75
81
  @include dataurlicon("arrowright", $color-link-text-default);
76
82
  }
@@ -95,6 +101,7 @@
95
101
 
96
102
  &:hover,
97
103
  &:focus {
104
+ background-color: $color-base-blue-light;
98
105
  color: map-get($color, "link", "text", "hover");
99
106
  outline: none;
100
107
 
@@ -105,34 +112,14 @@
105
112
  }
106
113
 
107
114
  .ilo--profile--description + .ilo--profile--link {
108
- margin-top: 28px;
115
+ margin-top: px-to-rem(8px);
109
116
  }
110
117
 
111
118
  .ilo--profile--role + .ilo--profile--link {
112
- margin-top: 22px;
119
+ margin-top: px-to-rem(2px);
113
120
  }
114
121
 
115
122
  .ilo--profile--name + .ilo--profile--link {
116
- margin-top: 38px;
117
- }
118
-
119
- @include breakpoint("medium") {
120
- &--name {
121
- @include font-styles("body-small");
122
- }
123
-
124
- &--role {
125
- font-family: $fonts-copy;
126
- @include font-styles("body-xs");
127
- }
128
-
129
- &--description {
130
- font-family: $fonts-copy;
131
- @include font-styles("body-xs");
132
- }
133
-
134
- &--link {
135
- @include font-styles("body-small");
136
- }
123
+ margin-top: px-to-rem(18px);
137
124
  }
138
125
  }
@@ -50,20 +50,6 @@
50
50
  }
51
51
  }
52
52
 
53
- &:hover {
54
- cursor: pointer;
55
-
56
- &:after {
57
- background-color: $color-base-yellow;
58
- }
59
-
60
- &:checked {
61
- &:before {
62
- border-color: $color-base-blue-dark;
63
- }
64
- }
65
- }
66
-
67
53
  &:focus {
68
54
  &:after {
69
55
  background-color: $color-base-yellow;