@ilo-org/styles 0.1.10 → 0.1.12

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.
@@ -163,16 +163,19 @@
163
163
  }
164
164
 
165
165
  .ilo--breadcrumb {
166
- left: 0;
167
- max-width: 560px;
168
- position: absolute;
169
- top: 0;
170
166
  width: 100%;
171
167
 
172
168
  .right-to-left & {
173
169
  left: auto;
174
170
  right: 0;
175
171
  }
172
+
173
+ @include breakpoint("medium") {
174
+ left: 0;
175
+ max-width: 560px;
176
+ position: absolute;
177
+ top: 0;
178
+ }
176
179
  }
177
180
  }
178
181
 
@@ -364,7 +367,7 @@
364
367
 
365
368
  @include breakpoint("large") {
366
369
  max-width: 625px;
367
- padding: 0 48px 48px 72px;
370
+ padding: 0 48px 42px 72px;
368
371
  width: 100%;
369
372
  }
370
373
  }
@@ -372,11 +375,21 @@
372
375
  &--publication {
373
376
  padding: 24px;
374
377
 
378
+ .ilo--hero-card--eyebrow {
379
+ margin-bottom: px-to-rem(6px);
380
+ }
381
+
375
382
  @include breakpoint("large") {
383
+ margin-left: 106px;
376
384
  margin-top: -64px;
377
385
  max-width: 720px;
378
- padding: 0 48px 48px 72px;
386
+ padding: 0 48px 48px 48px;
379
387
  width: 100%;
388
+
389
+ &:before {
390
+ height: px-to-rem(40px);
391
+ top: px-to-rem(-39.7px);
392
+ }
380
393
  }
381
394
  }
382
395
 
@@ -428,7 +441,7 @@
428
441
 
429
442
  &--list--item {
430
443
  display: inline-block;
431
- margin-right: 32px;
444
+ margin-right: 24px;
432
445
 
433
446
  &:last-of-type {
434
447
  margin-right: 0;
@@ -58,18 +58,29 @@
58
58
  }
59
59
 
60
60
  &__title {
61
- @include font-styles("headline-5");
62
-
63
- font-family: $fonts-display;
64
- font-weight: 700;
61
+ @include font-styles("headline-6");
65
62
  @include textmargin(
66
63
  "margin-bottom",
67
- map-get($spacing, "ui-padding-xxl"),
68
- "headline-5",
64
+ 24px,
65
+ "headline-6",
69
66
  "display",
70
- "base",
67
+ "body-small",
71
68
  "copy"
72
69
  );
70
+ font-family: $fonts-display;
71
+ font-weight: 700;
72
+
73
+ @include breakpoint("medium") {
74
+ @include font-styles("headline-5");
75
+ @include textmargin(
76
+ "margin-bottom",
77
+ map-get($spacing, "ui-padding-xxl"),
78
+ "headline-5",
79
+ "display",
80
+ "base",
81
+ "copy"
82
+ );
83
+ }
73
84
  }
74
85
 
75
86
  &__item {
@@ -95,14 +106,7 @@
95
106
 
96
107
  @include breakpoint("medium") {
97
108
  @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
- );
109
+ @include textmargin("margin-bottom", 20px, "base", "copy", 0, 0);
106
110
  }
107
111
  }
108
112
  }
@@ -9,7 +9,12 @@
9
9
  z-index: 4;
10
10
 
11
11
  &.ilo--mobile--open {
12
- height: 100vh;
12
+ height: 100%;
13
+ left: 0;
14
+ min-height: 100vh;
15
+ position: fixed;
16
+ top: 0;
17
+ width: 100%;
13
18
  }
14
19
 
15
20
  @include breakpoint("large") {
@@ -115,6 +120,69 @@
115
120
  &--utility-bar {
116
121
  display: none;
117
122
 
123
+ &--local {
124
+ background: $brand-ilo-blue;
125
+ display: flex;
126
+ justify-content: space-between;
127
+ padding: 0 20px;
128
+
129
+ .ilo--language-switcher {
130
+ display: none;
131
+
132
+ &--link {
133
+ @include dataurlicon("arrowleft", $brand-ilo-white);
134
+ @include font-styles("language-switcher");
135
+ appearance: none;
136
+ background-color: inherit;
137
+ background-position: 16px 50%;
138
+ background-repeat: no-repeat;
139
+ background-size: 24px;
140
+ border: none;
141
+ color: $brand-ilo-white;
142
+ cursor: pointer;
143
+ font-family: $fonts-display;
144
+ font-weight: 500;
145
+ padding: 16px 16px 16px 36px;
146
+ text-decoration: none;
147
+ transition: all 150ms ease-out;
148
+ width: 100%;
149
+
150
+ &:focus,
151
+ &:hover {
152
+ @include dataurlicon("arrowleft", $brand-ilo-blue);
153
+ background-color: $brand-ilo-light-blue;
154
+ color: $brand-ilo-blue;
155
+ }
156
+
157
+ .right-to-left & {
158
+ @include dataurlicon("arrowright", $brand-ilo-white);
159
+ background-position: calc(100% - 16px) 50%;
160
+ padding: 16px 36px 16px 16px;
161
+
162
+ &:focus,
163
+ &:hover {
164
+ @include dataurlicon("arrowright", $brand-ilo-blue);
165
+ background-color: $brand-ilo-light-blue;
166
+ color: $brand-ilo-blue;
167
+ }
168
+ }
169
+
170
+ &--wrap {
171
+ align-items: center;
172
+ display: flex;
173
+ }
174
+ }
175
+
176
+ @include breakpoint("large") {
177
+ display: flex;
178
+ }
179
+ }
180
+
181
+ @include breakpoint("large") {
182
+ padding: 0;
183
+ }
184
+ }
185
+
118
186
  @include breakpoint("large") {
119
187
  background: $brand-ilo-blue;
120
188
  display: flex;
@@ -150,9 +218,12 @@
150
218
 
151
219
  &--navigation {
152
220
  background: $brand-ilo-white;
221
+ height: 100%;
222
+ left: 0;
223
+ overflow-x: hidden;
224
+ overflow-y: scroll;
153
225
  position: absolute;
154
226
  top: 0;
155
- left: 0;
156
227
  transform: translateX(100%);
157
228
  transition: transform 225ms ease-out;
158
229
  width: 100%;
@@ -161,6 +232,12 @@
161
232
  transform: translateX(0);
162
233
  }
163
234
 
235
+ .ilo--header--local & {
236
+ @include breakpoint("large") {
237
+ display: none;
238
+ }
239
+ }
240
+
164
241
  @include breakpoint("large") {
165
242
  background: $brand-ilo-dark-blue;
166
243
  position: static;
@@ -272,7 +349,7 @@
272
349
  background-color: $brand-ilo-white;
273
350
  background-position: calc(100% - 16px) 55%;
274
351
  background-repeat: no-repeat;
275
- background-size: 16px;
352
+ background-size: 24px;
276
353
  border: none;
277
354
  color: $brand-ilo-dark-blue;
278
355
  cursor: pointer;
@@ -356,15 +433,40 @@
356
433
  &--local {
357
434
  display: flex;
358
435
  justify-content: space-between;
359
- padding: 0 0 0 max((100% - 1260px) / 2, 20px);
436
+
437
+ .right-to-left & {
438
+ direction: rtl;
439
+
440
+ @include breakpoint("large") {
441
+ padding: 0 max((100% - 1260px) / 2, 20px) 0 0;
442
+ }
443
+ }
444
+
445
+ @include breakpoint("large") {
446
+ padding: 0 0 0 max((100% - 1260px) / 2, 20px);
447
+ }
448
+
449
+ &--logo-wrapper {
450
+ display: flex;
451
+ padding: 16px 0;
452
+
453
+ @include breakpoint("large") {
454
+ padding: 0;
455
+ }
456
+ }
360
457
 
361
458
  &--logo-link {
362
459
  display: flex;
460
+ align-items: center;
363
461
  }
364
462
 
365
463
  &--set {
366
- display: flex;
367
- justify-content: space-between;
464
+ display: none;
465
+
466
+ @include breakpoint("large") {
467
+ display: flex;
468
+ justify-content: space-between;
469
+ }
368
470
  }
369
471
 
370
472
  &--item {
@@ -532,11 +634,18 @@
532
634
  transition: opacity 150ms ease-out;
533
635
  z-index: -1;
534
636
 
535
- .ilo--context--open & {
637
+ .ilo--context--open &,
638
+ .ilo--language-switcher:focus-within &,
639
+ &:focus-within {
536
640
  opacity: 1;
537
641
  z-index: 1;
538
642
  }
539
643
  }
644
+
645
+ .ilo--language-switcher--button:focus + .ilo--context-menu {
646
+ opacity: 1;
647
+ z-index: 1;
648
+ }
540
649
  }
541
650
 
542
651
  .ilo--subnav {
@@ -559,9 +668,6 @@
559
668
  }
560
669
 
561
670
  @include breakpoint("large") {
562
- filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
563
- drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
564
- drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
565
671
  height: auto;
566
672
  left: 0;
567
673
  padding: 32px 0;
@@ -571,6 +677,14 @@
571
677
  z-index: -1;
572
678
 
573
679
  .ilo--header.ilo--subnav--open & {
680
+ border-bottom: px-to-rem(3px) solid $color-base-neutrals-light;
681
+ filter: drop-shadow(0px 0.8px 1.6px rgba(30, 45, 190, 0.038))
682
+ drop-shadow(0px 4px 8px rgba(30, 45, 190, 0.054))
683
+ drop-shadow(0px 10px 20px rgba(30, 45, 190, 0.08));
684
+ transform: translateY(0);
685
+ }
686
+
687
+ &:has(.ilo--subnav--link:focus) {
574
688
  transform: translateY(0);
575
689
  }
576
690
  }
@@ -737,6 +851,11 @@
737
851
  .ilo--header.ilo--search--open & {
738
852
  transform: translateY(0);
739
853
  }
854
+
855
+ &:has(.ilo--input:focus),
856
+ &:has(.ilo--searchfield--button:focus) {
857
+ transform: translateY(0);
858
+ }
740
859
  }
741
860
 
742
861
  .ilo--header--inner {
@@ -768,7 +887,7 @@
768
887
  background-color: transparent;
769
888
  background-position: center;
770
889
  background-repeat: no-repeat;
771
- background-size: 21.5px 21.5px;
890
+ background-size: 32px 32px;
772
891
  border: none;
773
892
  border-radius: 0;
774
893
  cursor: pointer;
@@ -788,7 +907,7 @@
788
907
  background-color: $brand-ilo-white;
789
908
  background-position: center;
790
909
  background-repeat: no-repeat;
791
- background-size: 21.5px 21.5px;
910
+ background-size: 32px 32px;
792
911
 
793
912
  &:hover,
794
913
  &:focus {
@@ -798,3 +917,20 @@
798
917
  }
799
918
  }
800
919
  }
920
+
921
+
922
+ .ilo--menu--open {
923
+ height: 100%;
924
+ overflow: hidden;
925
+ width: 100%;
926
+ }
927
+
928
+ #anchor--components-navigation--navigation .docs-story {
929
+ & > div:first-child {
930
+ padding-top: 0;
931
+ }
932
+ }
933
+
934
+ .sb-show-main.sb-main-padded {
935
+ padding-top: 0;
936
+ }
@@ -235,4 +235,10 @@
235
235
  font-weight: 400;
236
236
  line-height: 45px;
237
237
  }
238
+
239
+ &--previous-set,
240
+ &--next-set {
241
+ display: flex;
242
+ justify-content: flex-start;
243
+ }
238
244
  }
@@ -1,5 +1,6 @@
1
1
  @use "../tokens" as *;
2
2
  @use "../functions" as *;
3
+ @use "../animations" as *;
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--tooltip {
@@ -16,12 +17,13 @@
16
17
  opacity: 0;
17
18
  padding: px-to-rem($spacing-padding-1) px-to-rem($spacing-padding-1-5);
18
19
  position: absolute;
19
- transition: opacity 150ms ease-out;
20
20
  visibility: hidden;
21
21
  width: auto;
22
+ @include globaltransition("opacity");
22
23
 
23
24
  &--fade {
24
25
  opacity: 1;
26
+ @include globaltransition("opacity");
25
27
  }
26
28
 
27
29
  &--visible {
@@ -191,3 +193,7 @@
191
193
  }
192
194
  }
193
195
  }
196
+
197
+ .docs-story div[height] {
198
+ min-height: 150px;
199
+ }
@@ -723,7 +723,8 @@
723
723
  }
724
724
 
725
725
  &:hover,
726
- &:focus {
726
+ &:focus,
727
+ &:focus-within {
727
728
  .ilo--video--controls,
728
729
  .vjs-control-bar {
729
730
  opacity: 1;