@ilo-org/styles 0.1.2 → 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") {
@@ -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;
@@ -387,4 +387,58 @@
387
387
  }
388
388
  }
389
389
  }
390
+
391
+ .right-to-left & {
392
+ direction: rtl;
393
+
394
+ figcaption {
395
+ border-left: none;
396
+ border-right: 3px solid #b8c4cc;
397
+ padding-left: 0;
398
+ padding-right: px-to-rem(map-get($spacing, "padding-1"));
399
+ }
400
+
401
+ ul,
402
+ ol {
403
+ li {
404
+ &::before {
405
+ left: auto;
406
+ right: px-to-rem(-12px);
407
+ @include dataurlicon("listarrowreverse");
408
+ }
409
+ margin-left: 0;
410
+ margin-right: px-to-rem(12px);
411
+ padding-left: 0;
412
+ padding-right: px-to-rem(12px);
413
+ }
414
+ }
415
+
416
+ blockquote {
417
+ background-position: -1px -1px;
418
+ padding: px-to-rem(54px) px-to-rem(map-get($spacing, "padding-4"))
419
+ px-to-rem(34px) 0;
420
+ @include dataurlicon("trianglereverse", $color-ux-background-default);
421
+
422
+ p {
423
+ padding: 0 0 0 px-to-rem(map-get($spacing, "padding-6"));
424
+
425
+ &:after {
426
+ left: 0;
427
+ right: auto;
428
+ transform: scaleX(1);
429
+ }
430
+ }
431
+
432
+ &:before {
433
+ left: auto;
434
+ right: 0;
435
+ transform: scaleX(-1);
436
+ }
437
+
438
+ @include breakpoint("medium") {
439
+ padding: px-to-rem(62px) px-to-rem(map-get($spacing, "padding-6"))
440
+ px-to-rem(map-get($spacing, "padding-6")) 0;
441
+ }
442
+ }
443
+ }
390
444
  }
@@ -18,14 +18,14 @@
18
18
  background-size: $spacing-padding-3 $spacing-padding-3;
19
19
  @include bordervalues("inputbutton", "formelements");
20
20
  height: $spacing-padding-6;
21
- width: $spacing-padding-6;
21
+ width: calc($spacing-padding-6 - 2px);
22
22
  text-indent: -9999px;
23
23
  @include dataurlicon(
24
24
  "search",
25
25
  $color-formelements-inputbutton-default-color
26
26
  );
27
27
 
28
- &:hover {
28
+ &:focus {
29
29
  background-color: map-get(
30
30
  $color,
31
31
  "formelements",
@@ -29,8 +29,6 @@
29
29
 
30
30
  &--head {
31
31
  background-color: $color-ux-table-content-background;
32
- border-top: px-to-rem(2px) solid $color-base-neutrals-lighter;
33
- border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
34
32
  box-shadow: 0px 0.8px 1.6px rgba(30, 45, 190, 0.038),
35
33
  0px 4px 8px rgba(30, 45, 190, 0.054),
36
34
  0px 10px 20px rgba(30, 45, 190, 0.08),
@@ -38,13 +36,15 @@
38
36
  left: 0;
39
37
  height: auto;
40
38
  position: sticky;
41
- top: 0;
39
+ top: -1px;
42
40
  width: 100%;
43
41
  z-index: 2;
44
42
 
45
43
  &--cell {
46
44
  background-color: $color-ux-table-content-background;
47
45
  border-left: px-to-rem(1px) solid $color-base-neutrals-lighter;
46
+ border-top: px-to-rem(2px) solid $color-base-neutrals-lighter;
47
+ border-bottom: px-to-rem(2px) solid $color-base-neutrals-lighter;
48
48
  font-family: $fonts-display;
49
49
  font-weight: 700;
50
50
  @include font-styles("body-xs");
@@ -88,8 +88,15 @@
88
88
  }
89
89
 
90
90
  &:hover {
91
- background-color: $color-ux-table-selected-background;
91
+ background-color: $color-base-blue-light;
92
+ border-bottom: px-to-rem(2px) solid $color-base-blue-medium;
93
+ color: $color-base-blue-medium;
92
94
  cursor: pointer;
95
+
96
+ &:after {
97
+ background-color: $color-base-blue-light;
98
+ background-image: url("#{colortodataurlicon("arrow", $color-base-blue-medium)}");
99
+ }
93
100
  }
94
101
 
95
102
  &[aria-sort="descending"] {
@@ -160,10 +167,16 @@
160
167
  }
161
168
 
162
169
  &--headline {
170
+ align-items: center;
171
+ display: flex;
163
172
  font-family: $fonts-display;
164
173
  font-weight: 700;
165
174
  margin-bottom: px-to-rem(7px);
166
175
  @include font-styles("headline-6");
176
+
177
+ .ilo--tooltip--wrapper {
178
+ margin-left: px-to-rem(6px);
179
+ }
167
180
  }
168
181
 
169
182
  &--description {
@@ -1,12 +1,121 @@
1
1
  @use "../tokens" as *;
2
+ @use "../animations" as *;
2
3
  @use "../functions" as *;
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--table-of-contents {
6
7
  background-color: $color-ux-tableofcontents-items-default-background;
8
+ display: none;
7
9
  min-width: 343px;
8
10
  padding: 0;
9
11
 
12
+ & > * {
13
+ opacity: 0;
14
+ }
15
+
16
+ &.show {
17
+ display: block;
18
+
19
+ &.fadein {
20
+ & > * {
21
+ opacity: 1;
22
+ transition-delay: 125ms;
23
+ @include globaltransition("opacity");
24
+ }
25
+ }
26
+ }
27
+
28
+ &--headline {
29
+ margin-bottom: px-to-rem($spacing-padding-3);
30
+ margin-top: px-to-rem(9px);
31
+ @include font-styles("base");
32
+ font-family: $fonts-display;
33
+ font-weight: 700;
34
+ }
35
+
36
+ &--wrapper {
37
+ &.show {
38
+ display: block;
39
+ height: 100vh;
40
+ left: 0;
41
+ padding: px-to-rem(26px);
42
+ position: fixed;
43
+ top: 0;
44
+ width: 100vw;
45
+ z-index: 10001;
46
+
47
+ @include breakpoint("large") {
48
+ padding: 0;
49
+ }
50
+ }
51
+ }
52
+
53
+ &--trigger {
54
+ align-items: center;
55
+ display: flex;
56
+ justify-content: center;
57
+ margin: px-to-rem($spacing-padding-3) auto;
58
+
59
+ &.hide {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ @include breakpoint("large") {
65
+ display: block;
66
+
67
+ & > * {
68
+ opacity: 1;
69
+ }
70
+
71
+ &--trigger {
72
+ display: none;
73
+ }
74
+ }
75
+
76
+ &--modal {
77
+ display: none;
78
+ position: relative;
79
+
80
+ & > * {
81
+ opacity: 0;
82
+ }
83
+
84
+ &.show {
85
+ display: block;
86
+
87
+ &.fadein {
88
+ & > * {
89
+ opacity: 1;
90
+ transition-delay: 125ms;
91
+ @include globaltransition("opacity");
92
+ }
93
+ }
94
+ }
95
+
96
+ @include breakpoint("large") {
97
+ display: none;
98
+
99
+ &.show {
100
+ display: none;
101
+ }
102
+ }
103
+
104
+ .toc--modal--close {
105
+ bottom: 0;
106
+ height: px-to-rem(40px);
107
+ right: 0;
108
+ position: absolute;
109
+ width: px-to-rem(40px);
110
+ z-index: 10004;
111
+
112
+ .ilo--icon {
113
+ left: px-to-rem(3px);
114
+ top: px-to-rem(3px);
115
+ }
116
+ }
117
+ }
118
+
10
119
  &--list,
11
120
  &--list--item {
12
121
  width: 100%;
@@ -29,6 +138,7 @@
29
138
  $spacing-ux-tableofcontents-items-padding-right
30
139
  $spacing-ux-tableofcontents-items-padding-bottom
31
140
  $spacing-ux-tableofcontents-items-padding-left;
141
+ position: relative;
32
142
  text-decoration: none;
33
143
  width: calc(
34
144
  100% - $spacing-ux-tableofcontents-padding-right -
@@ -36,6 +146,7 @@
36
146
  );
37
147
  @include dataurlicon("stemarrow", $color-ux-labels-actionable);
38
148
  @include font-styles("label-medium");
149
+ @include globaltransition("background-color, border, color");
39
150
 
40
151
  &:hover,
41
152
  &:focus {
@@ -58,14 +169,17 @@
58
169
  );
59
170
  width: 100%;
60
171
  @include dataurlicon("stemarrow", $color-ux-labels-hover);
172
+ @include globaltransition("background-color, border, color");
61
173
  }
62
174
 
63
175
  &:active {
64
176
  background-color: $color-ux-tableofcontents-items-active-background;
65
177
  border-bottom: $color-ux-tableofcontents-items-active-border
66
178
  $spacing-ux-tableofcontents-items-border-bottom solid;
179
+ border-top: $color-ux-tableofcontents-items-default-border
180
+ $spacing-ux-tableofcontents-items-border-bottom solid;
67
181
  color: $color-ux-tableofcontents-items-active-color;
68
- margin: 0;
182
+ margin: -2px 0 0 0;
69
183
  outline: none;
70
184
  padding: $spacing-ux-tableofcontents-items-padding-top
71
185
  calc(
@@ -82,6 +196,7 @@
82
196
  "stemarrow",
83
197
  $color-ux-tableofcontents-items-active-icon
84
198
  );
199
+ z-index: 5;
85
200
  }
86
201
  }
87
202
 
@@ -95,4 +210,28 @@
95
210
  }
96
211
  }
97
212
  }
213
+
214
+ .right-to-left & {
215
+ direction: rtl;
216
+
217
+ .ilo--table-of-contents--link {
218
+ background-position: 11px center;
219
+
220
+ &:hover,
221
+ &:focus {
222
+ background-position: 19px center;
223
+ }
224
+ }
225
+
226
+ &--wrapper {
227
+ direction: rtl;
228
+ }
229
+
230
+ &--modal {
231
+ .toc--modal--close {
232
+ left: 0;
233
+ right: auto;
234
+ }
235
+ }
236
+ }
98
237
  }