@ilo-org/styles 1.8.0 → 1.8.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.
- package/css/components/breadcrumb.css +1 -1
- package/css/components/card.css +1 -1
- package/css/components/datacard.css +1 -1
- package/css/components/detailcard.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/fieldset.css +1 -1
- package/css/components/form.css +1 -1
- package/css/components/formcontrol.css +1 -1
- package/css/components/link.css +1 -1
- package/css/components/multilinkcard.css +1 -1
- package/css/components/pagination.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/table.css +1 -1
- package/css/global.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +2 -2
- package/css/index.css.map +1 -1
- package/css/monorepo.css +2 -2
- package/css/monorepo.css.map +1 -1
- package/package.json +3 -3
- package/scss/_mixins.scss +39 -88
- package/scss/components/_breadcrumb.scss +32 -29
- package/scss/components/_card.scss +5 -0
- package/scss/components/_datacard.scss +15 -17
- package/scss/components/_detailcard.scss +0 -1
- package/scss/components/_featurecard.scss +3 -1
- package/scss/components/_fieldset.scss +22 -5
- package/scss/components/_form.scss +16 -25
- package/scss/components/_formcontrol.scss +20 -3
- package/scss/components/_link.scss +7 -1
- package/scss/components/_multilinkcard.scss +3 -1
- package/scss/components/_pagination.scss +14 -1
- package/scss/components/_richtext.scss +34 -12
- package/scss/theme/_foundation.scss +27 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/styles",
|
|
3
3
|
"description": "Styles for products using ILO's Design System",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/international-labour-organization/designsystem.git",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"author": "@justintemps, @johnpauldavis, @avrilpearl, @ghlost",
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@ilo-org/fonts": "1.0.0",
|
|
41
42
|
"@ilo-org/icons": "2.1.0",
|
|
42
|
-
"@ilo-org/themes": "0.9.1"
|
|
43
|
-
"@ilo-org/fonts": "1.0.0"
|
|
43
|
+
"@ilo-org/themes": "0.9.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"cssnano": "^7.0.6",
|
package/scss/_mixins.scss
CHANGED
|
@@ -189,106 +189,57 @@
|
|
|
189
189
|
// Link styles
|
|
190
190
|
// ======================================
|
|
191
191
|
|
|
192
|
-
@mixin linkstyles() {
|
|
193
|
-
|
|
194
|
-
color:
|
|
192
|
+
@mixin linkstyles($theme: "light") {
|
|
193
|
+
$color-default: var(--ilo-link-color-default-light);
|
|
194
|
+
$color-visited: var(--ilo-link-color-visited-light);
|
|
195
|
+
$color-hover: var(--ilo-link-color-hover-light);
|
|
196
|
+
$color-active: var(--ilo-link-color-active-light);
|
|
197
|
+
$color-focus: var(--ilo-link-color-focus-light);
|
|
198
|
+
$background-default: var(--ilo-link-background-default-light);
|
|
199
|
+
$background-hover: var(--ilo-link-background-hover-light);
|
|
200
|
+
$background-focus: var(--ilo-link-background-focus-light);
|
|
201
|
+
|
|
202
|
+
@if ($theme == "dark") {
|
|
203
|
+
$color-default: var(--ilo-link-color-default-dark);
|
|
204
|
+
$color-visited: var(--ilo-link-color-visited-dark);
|
|
205
|
+
$color-hover: var(--ilo-link-color-hover-dark);
|
|
206
|
+
$background-default: var(--ilo-link-background-default-dark);
|
|
207
|
+
$background-hover: var(--ilo-link-background-hover-dark);
|
|
208
|
+
$background-focus: var(--ilo-link-background-focus-dark);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Default styles
|
|
195
212
|
font-size: inherit;
|
|
196
213
|
font-weight: inherit;
|
|
197
214
|
line-height: inherit;
|
|
198
215
|
text-decoration: underline;
|
|
199
|
-
|
|
200
|
-
text-decoration-thickness: px-to-rem(
|
|
201
|
-
text-
|
|
202
|
-
padding-bottom: spacing(1);
|
|
216
|
+
background: transparent;
|
|
217
|
+
text-decoration-thickness: #{px-to-rem(1px)};
|
|
218
|
+
text-underline-offset: #{px-to-rem(6px)};
|
|
219
|
+
padding-bottom: #{spacing(1)};
|
|
220
|
+
|
|
221
|
+
color: $color-default;
|
|
222
|
+
text-decoration-color: $color-default;
|
|
203
223
|
|
|
204
224
|
&:visited {
|
|
205
|
-
|
|
206
|
-
color:
|
|
207
|
-
text-decoration-color: var(--ilo-color-purple);
|
|
225
|
+
color: $color-visited;
|
|
226
|
+
text-decoration-color: $color-visited;
|
|
208
227
|
}
|
|
209
228
|
|
|
210
229
|
&:hover {
|
|
211
|
-
|
|
212
|
-
color:
|
|
213
|
-
text-decoration-
|
|
214
|
-
text-decoration-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:active {
|
|
218
|
-
background: map-get($color, "link", "background", "active");
|
|
219
|
-
color: map-get($color, "link", "text", "active");
|
|
220
|
-
text-decoration-thickness: 3px;
|
|
221
|
-
text-decoration-color: var(--ilo-color-blue-dark);
|
|
230
|
+
color: $color-hover;
|
|
231
|
+
background-color: $background-hover;
|
|
232
|
+
text-decoration-color: $color-hover;
|
|
233
|
+
text-decoration-thickness: #{px-to-rem(3px)};
|
|
222
234
|
}
|
|
223
235
|
|
|
236
|
+
&:active,
|
|
224
237
|
&:focus {
|
|
225
|
-
|
|
226
|
-
color:
|
|
227
|
-
text-decoration-thickness: 3px;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
&--dark {
|
|
232
|
-
background: map-get($color, "link", "background-dark", "default");
|
|
233
|
-
color: map-get($color, "link", "text-dark", "default");
|
|
234
|
-
text-decoration-color: var(--ilo-color-gray-light);
|
|
235
|
-
|
|
236
|
-
&:visited {
|
|
237
|
-
background: map-get($color, "link", "background-dark", "visited");
|
|
238
|
-
color: map-get($color, "link", "text-dark", "visited");
|
|
239
|
-
text-decoration-color: var(--ilo-color-gray-base);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&:hover {
|
|
243
|
-
background: map-get($color, "link", "background-dark", "hover");
|
|
244
|
-
color: map-get($color, "link", "text-dark", "hover");
|
|
245
|
-
text-decoration-thickness: 3px;
|
|
246
|
-
text-decoration-color: var(--ilo-color-blue);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
&:active {
|
|
250
|
-
background: map-get($color, "link", "background-dark", "active");
|
|
251
|
-
color: map-get($color, "link", "text-dark", "active");
|
|
252
|
-
text-decoration-thickness: 3px;
|
|
253
|
-
text-decoration-color: var(--ilo-color-blue-dark);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
&:focus {
|
|
257
|
-
background: map-get($color, "link", "background-dark", "focus");
|
|
258
|
-
color: map-get($color, "link", "text-dark", "focus");
|
|
259
|
-
text-decoration-thickness: 3px;
|
|
260
|
-
text-decoration-color: var(--ilo-color-blue-dark);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
&--footer {
|
|
265
|
-
@include font-styles("body-xxs");
|
|
266
|
-
|
|
267
|
-
background: map-get($color, "link", "background-footer", "default");
|
|
268
|
-
color: map-get($color, "link", "text-footer", "default");
|
|
269
|
-
|
|
270
|
-
&:visited {
|
|
271
|
-
background: map-get($color, "link", "background-footer", "visited");
|
|
272
|
-
color: map-get($color, "link", "text-footer", "visited");
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
&:hover {
|
|
276
|
-
background: map-get($color, "link", "background-footer", "hover");
|
|
277
|
-
color: map-get($color, "link", "text-footer", "hover");
|
|
278
|
-
text-decoration-thickness: 3px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&:active {
|
|
282
|
-
background: map-get($color, "link", "background-footer", "active");
|
|
283
|
-
color: map-get($color, "link", "text-footer", "active");
|
|
284
|
-
text-decoration-thickness: 3px;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
&:focus {
|
|
288
|
-
background: map-get($color, "link", "background-footer", "focus");
|
|
289
|
-
color: map-get($color, "link", "text-footer", "focus");
|
|
290
|
-
text-decoration-thickness: 3px;
|
|
291
|
-
}
|
|
238
|
+
color: $color-focus;
|
|
239
|
+
text-decoration-color: $color-focus;
|
|
240
|
+
text-decoration-thickness: #{px-to-rem(3px)};
|
|
241
|
+
background-color: $background-focus;
|
|
242
|
+
outline: none;
|
|
292
243
|
}
|
|
293
244
|
}
|
|
294
245
|
|
|
@@ -7,16 +7,28 @@
|
|
|
7
7
|
.#{$prefix}--breadcrumb {
|
|
8
8
|
$breadcrumb: &;
|
|
9
9
|
|
|
10
|
+
--ilo-breadcrumb-background-color: var(--ilo-color-white);
|
|
11
|
+
--ilo-breadcrumb-link-color: var(--ilo-color-blue-dark);
|
|
12
|
+
--ilo-breadcrumb-link-hover-color: var(--ilo-color-blue);
|
|
13
|
+
|
|
10
14
|
position: relative;
|
|
11
15
|
z-index: 10;
|
|
12
16
|
|
|
17
|
+
&__theme {
|
|
18
|
+
&__dark {
|
|
19
|
+
--ilo-breadcrumb-background-color: var(--ilo-color-blue-dark);
|
|
20
|
+
--ilo-breadcrumb-link-color: var(--ilo-color-white);
|
|
21
|
+
--ilo-breadcrumb-link-hover-color: var(--ilo-color-white);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
&--inner {
|
|
14
26
|
display: inline-flex;
|
|
15
27
|
// Local variable set in the Hero for alignment
|
|
16
28
|
padding-inline-start: var(--breadcrumb-padding);
|
|
17
29
|
padding-inline-end: spacing(12);
|
|
18
30
|
padding-block: spacing(4);
|
|
19
|
-
background-color: var(--ilo-color
|
|
31
|
+
background-color: var(--ilo-breadcrumb-background-color);
|
|
20
32
|
@include cornercut(spacing(12), 100%, "right", "bottom");
|
|
21
33
|
|
|
22
34
|
[dir="rtl"] & {
|
|
@@ -42,7 +54,7 @@
|
|
|
42
54
|
left: 0;
|
|
43
55
|
position: absolute;
|
|
44
56
|
background-repeat: no-repeat;
|
|
45
|
-
@include
|
|
57
|
+
@include icon("chevron_right", var(--ilo-breadcrumb-link-color));
|
|
46
58
|
background-size: px-to-rem(24px);
|
|
47
59
|
height: px-to-rem(24px);
|
|
48
60
|
width: px-to-rem(24px);
|
|
@@ -50,7 +62,7 @@
|
|
|
50
62
|
[dir="rtl"] & {
|
|
51
63
|
left: auto;
|
|
52
64
|
right: 0;
|
|
53
|
-
@include
|
|
65
|
+
@include icon("chevron_left", var(--ilo-breadcrumb-link-color));
|
|
54
66
|
}
|
|
55
67
|
}
|
|
56
68
|
}
|
|
@@ -70,11 +82,11 @@
|
|
|
70
82
|
width: px-to-rem(24px);
|
|
71
83
|
height: px-to-rem(24px);
|
|
72
84
|
background-size: px-to-rem(24px);
|
|
73
|
-
@include
|
|
85
|
+
@include icon("dot_menu", var(--ilo-breadcrumb-link-color));
|
|
74
86
|
|
|
75
87
|
&:hover {
|
|
76
88
|
cursor: pointer;
|
|
77
|
-
@include
|
|
89
|
+
@include icon("dot_menu", var(--ilo-breadcrumb-link-hover-color));
|
|
78
90
|
}
|
|
79
91
|
}
|
|
80
92
|
|
|
@@ -115,39 +127,30 @@
|
|
|
115
127
|
width: px-to-rem(24px);
|
|
116
128
|
height: px-to-rem(24px);
|
|
117
129
|
|
|
118
|
-
// No chevron
|
|
130
|
+
// No chevron before the home icon
|
|
119
131
|
&:before {
|
|
120
132
|
content: none;
|
|
121
133
|
}
|
|
122
134
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
#{$breadcrumb}--link {
|
|
136
|
+
height: 24px;
|
|
137
|
+
width: 24px;
|
|
138
|
+
position: relative;
|
|
139
|
+
|
|
140
|
+
&:hover,
|
|
141
|
+
&:focus {
|
|
126
142
|
&:after {
|
|
127
|
-
@include
|
|
128
|
-
width: px-to-rem(24px);
|
|
129
|
-
height: px-to-rem(24px);
|
|
143
|
+
@include icon("home", var(--ilo-breadcrumb-link-hover-color));
|
|
130
144
|
}
|
|
131
145
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
#{$breadcrumb}--link {
|
|
135
|
-
background: none;
|
|
136
|
-
width: px-to-rem(16px);
|
|
137
|
-
height: px-to-rem(16px);
|
|
138
|
-
position: relative;
|
|
139
146
|
|
|
140
147
|
&:after {
|
|
141
|
-
background-position: center center;
|
|
142
|
-
background-repeat: no-repeat;
|
|
143
148
|
content: "";
|
|
144
149
|
display: block;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
background-size: px-to-rem(24px);
|
|
150
|
-
@include dataurlicon("home", $color-link-text-default);
|
|
150
|
+
height: 24px;
|
|
151
|
+
width: 24px;
|
|
152
|
+
position: relative;
|
|
153
|
+
@include icon("home", var(--ilo-breadcrumb-link-color));
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
}
|
|
@@ -156,7 +159,7 @@
|
|
|
156
159
|
&--link {
|
|
157
160
|
display: inline-flex;
|
|
158
161
|
align-items: center;
|
|
159
|
-
color:
|
|
162
|
+
color: var(--ilo-breadcrumb-link-color);
|
|
160
163
|
height: px-to-rem(16px);
|
|
161
164
|
padding-block: 0;
|
|
162
165
|
text-decoration: none;
|
|
@@ -172,7 +175,7 @@
|
|
|
172
175
|
|
|
173
176
|
&:hover,
|
|
174
177
|
&:focus {
|
|
175
|
-
color:
|
|
178
|
+
color: var(--ilo-breadcrumb-link-hover-color);
|
|
176
179
|
text-decoration: underline;
|
|
177
180
|
text-underline-offset: px-to-rem(4px);
|
|
178
181
|
text-decoration-thickness: px-to-rem(2px);
|
|
@@ -141,6 +141,10 @@ $link-hover-selectors: ".ilo--card--link:hover, .ilo--card--link:focus, .ilo--ca
|
|
|
141
141
|
|
|
142
142
|
&__light,
|
|
143
143
|
&__soft {
|
|
144
|
+
#{$self}--date-extra {
|
|
145
|
+
color: var(--ilo-color-gray-charcoal);
|
|
146
|
+
}
|
|
147
|
+
|
|
144
148
|
@include card-link-hover {
|
|
145
149
|
border-bottom: px-to-rem(3px) solid var(--ilo-color-blue);
|
|
146
150
|
|
|
@@ -175,6 +179,7 @@ $link-hover-selectors: ".ilo--card--link:hover, .ilo--card--link:focus, .ilo--ca
|
|
|
175
179
|
#{$self}--eyebrow,
|
|
176
180
|
#{$self}--intro,
|
|
177
181
|
#{$self}--date,
|
|
182
|
+
#{$self}--date-extra,
|
|
178
183
|
#{$self}--content--item {
|
|
179
184
|
color: var(--ilo-color-gray-light);
|
|
180
185
|
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
--max-width: #{px-to-rem(600px)};
|
|
14
14
|
|
|
15
|
-
background:
|
|
16
|
-
border-bottom: px-to-rem(3px) solid
|
|
15
|
+
background: var(--ilo-color-blue-lighter);
|
|
16
|
+
border-bottom: px-to-rem(3px) solid var(--ilo-color-blue-light);
|
|
17
17
|
padding: spacing(12) spacing(10) spacing(14);
|
|
18
18
|
position: relative;
|
|
19
19
|
width: 100%;
|
|
@@ -137,16 +137,9 @@
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&--content-label {
|
|
140
|
-
@include
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
13px,
|
|
144
|
-
"body-xs",
|
|
145
|
-
"copy",
|
|
146
|
-
"headline-5",
|
|
147
|
-
"display"
|
|
148
|
-
);
|
|
149
|
-
color: $brand-ilo-grey-accessible;
|
|
140
|
+
@include typography("body-small");
|
|
141
|
+
margin-block-end: spacing(2);
|
|
142
|
+
color: var(--ilo-color-gray-accessible);
|
|
150
143
|
}
|
|
151
144
|
|
|
152
145
|
#{$self}--eyebrow {
|
|
@@ -154,14 +147,19 @@
|
|
|
154
147
|
}
|
|
155
148
|
|
|
156
149
|
&--content-copy {
|
|
157
|
-
@include
|
|
158
|
-
color:
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
@include typography("body-large");
|
|
151
|
+
color: var(--ilo-color-gray-charcoal);
|
|
152
|
+
|
|
153
|
+
@include breakpoint("md") {
|
|
154
|
+
#{$self}__size__wide &,
|
|
155
|
+
#{$self}__size__fluid & {
|
|
156
|
+
@include typography("body-xlarge");
|
|
157
|
+
}
|
|
158
|
+
}
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
[class*="ilo--link"] {
|
|
164
|
-
@include
|
|
162
|
+
@include typography("body-large");
|
|
165
163
|
line-height: 1.8;
|
|
166
164
|
margin-inline-end: px-to-rem(12px);
|
|
167
165
|
margin-bottom: px-to-rem(12px);
|
|
@@ -4,6 +4,25 @@
|
|
|
4
4
|
@import "../mixins";
|
|
5
5
|
|
|
6
6
|
.ilo--fieldset {
|
|
7
|
+
--ilo-fieldset-legend-color: var(--ilo-color-gray-charcoal);
|
|
8
|
+
--ilo-fieldset-helper-color: var(--ilo-color-gray-accessible);
|
|
9
|
+
--ilo-fieldset-error-color: var(--ilo-color-red-dark);
|
|
10
|
+
|
|
11
|
+
&__theme {
|
|
12
|
+
&__light {
|
|
13
|
+
--ilo-fieldset-legend-color: var(--ilo-color-gray-charcoal);
|
|
14
|
+
--ilo-fieldset-helper-color: var(--ilo-color-gray-accessible);
|
|
15
|
+
--ilo-fieldset-error-color: var(--ilo-color-red-dark);
|
|
16
|
+
}
|
|
17
|
+
&__dark {
|
|
18
|
+
--ilo-fieldset-legend-color: var(--ilo-color-yellow);
|
|
19
|
+
--ilo-fieldset-helper-color: var(--ilo-color-white);
|
|
20
|
+
--ilo-fieldset-error-color: var(--ilo-color-red-dark);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
appearance: none;
|
|
25
|
+
$c: &;
|
|
7
26
|
$gap: 24px;
|
|
8
27
|
box-sizing: border-box;
|
|
9
28
|
|
|
@@ -15,9 +34,6 @@
|
|
|
15
34
|
@include textmargin("gap", $gap, "label-medium", "display", 0, 0);
|
|
16
35
|
}
|
|
17
36
|
|
|
18
|
-
appearance: none;
|
|
19
|
-
$c: &;
|
|
20
|
-
|
|
21
37
|
&--legend-wrapper {
|
|
22
38
|
@include textmargin("margin-bottom", $gap, "label-medium", "display", 0, 0);
|
|
23
39
|
|
|
@@ -33,6 +49,7 @@
|
|
|
33
49
|
flex-flow: row nowrap;
|
|
34
50
|
align-items: center;
|
|
35
51
|
@include font-styles("label-medium");
|
|
52
|
+
color: var(--ilo-fieldset-legend-color);
|
|
36
53
|
line-height: px-to-rem(20px);
|
|
37
54
|
}
|
|
38
55
|
|
|
@@ -99,11 +116,11 @@
|
|
|
99
116
|
}
|
|
100
117
|
|
|
101
118
|
&--helper {
|
|
102
|
-
color:
|
|
119
|
+
color: var(--ilo-fieldset-helper-color);
|
|
103
120
|
}
|
|
104
121
|
|
|
105
122
|
&__error {
|
|
106
|
-
color:
|
|
123
|
+
color: var(--ilo-fieldset-error-color);
|
|
107
124
|
}
|
|
108
125
|
|
|
109
126
|
&__disabled {
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
.ilo--form {
|
|
6
6
|
$gap: spacing(8);
|
|
7
7
|
$c: &;
|
|
8
|
+
--ilo-form-legend-color: var(--ilo-color-blue-dark);
|
|
9
|
+
|
|
10
|
+
&__theme {
|
|
11
|
+
&__light {
|
|
12
|
+
--ilo-form-legend-color: var(--ilo-color-blue-dark);
|
|
13
|
+
}
|
|
14
|
+
&__dark {
|
|
15
|
+
--ilo-form-legend-color: var(--ilo-color-white);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
8
18
|
|
|
9
19
|
box-sizing: border-box;
|
|
10
20
|
display: flex;
|
|
@@ -13,34 +23,15 @@
|
|
|
13
23
|
flex-direction: column;
|
|
14
24
|
appearance: none;
|
|
15
25
|
gap: $gap;
|
|
16
|
-
color:
|
|
17
|
-
|
|
18
|
-
&__theme {
|
|
19
|
-
&__light {
|
|
20
|
-
color: $color-base-neutrals-black;
|
|
21
|
-
|
|
22
|
-
label,
|
|
23
|
-
p {
|
|
24
|
-
color: $color-base-neutrals-black;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&__dark {
|
|
29
|
-
color: $color-base-neutrals-lighter;
|
|
30
|
-
|
|
31
|
-
label,
|
|
32
|
-
p {
|
|
33
|
-
color: $color-base-neutrals-lighter;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
legend {
|
|
37
|
-
color: $color-base-yellow;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
26
|
+
color: var(--ilo-color-gray-charcoal);
|
|
41
27
|
|
|
42
28
|
&__disabled {
|
|
43
29
|
opacity: 0.5;
|
|
44
30
|
pointer-events: none;
|
|
45
31
|
}
|
|
32
|
+
|
|
33
|
+
// Twig uses h2 for the form headline but React doesn't have one
|
|
34
|
+
h2 {
|
|
35
|
+
color: var(--ilo-form-legend-color);
|
|
36
|
+
}
|
|
46
37
|
}
|
|
@@ -6,12 +6,29 @@
|
|
|
6
6
|
.ilo--form-control {
|
|
7
7
|
$c: &;
|
|
8
8
|
|
|
9
|
+
--ilo-form-control-label-color: var(--ilo-color-gray-charcoal);
|
|
10
|
+
--ilo-form-control-helper-color: var(--ilo-color-gray-accessible);
|
|
11
|
+
--ilo-form-control-error-color: var(--ilo-color-red-dark);
|
|
12
|
+
|
|
9
13
|
grid-area: input;
|
|
10
14
|
display: inline-grid;
|
|
11
15
|
grid-template-rows: auto;
|
|
12
16
|
grid-template-columns: auto;
|
|
13
17
|
gap: spacing(2);
|
|
14
18
|
|
|
19
|
+
&__theme {
|
|
20
|
+
&__light {
|
|
21
|
+
--ilo-form-control-label-color: var(--ilo-color-gray-charcoal);
|
|
22
|
+
--ilo-form-control-helper-color: var(--ilo-color-gray-accessible);
|
|
23
|
+
--ilo-form-control-error-color: var(--ilo-color-red-dark);
|
|
24
|
+
}
|
|
25
|
+
&__dark {
|
|
26
|
+
--ilo-form-control-label-color: var(--ilo-color-white);
|
|
27
|
+
--ilo-form-control-helper-color: var(--ilo-color-white);
|
|
28
|
+
--ilo-form-control-error-color: var(--ilo-color-red-dark);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
15
32
|
&__label-placement {
|
|
16
33
|
// Label is to the flex start of form element
|
|
17
34
|
&__start {
|
|
@@ -116,12 +133,12 @@
|
|
|
116
133
|
|
|
117
134
|
&__error {
|
|
118
135
|
#{$c}--helper {
|
|
119
|
-
color:
|
|
136
|
+
color: var(--ilo-form-control-error-color);
|
|
120
137
|
}
|
|
121
138
|
}
|
|
122
139
|
|
|
123
140
|
&--label {
|
|
124
|
-
color:
|
|
141
|
+
color: var(--ilo-form-control-label-color);
|
|
125
142
|
grid-area: label;
|
|
126
143
|
display: flex;
|
|
127
144
|
flex-flow: row nowrap;
|
|
@@ -179,7 +196,7 @@
|
|
|
179
196
|
|
|
180
197
|
&--helper {
|
|
181
198
|
grid-area: helper;
|
|
182
|
-
color:
|
|
199
|
+
color: var(--ilo-form-control-helper-color);
|
|
183
200
|
font-family: var(--ilo-fonts-copy);
|
|
184
201
|
@include font-styles("body-xxs");
|
|
185
202
|
}
|
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
@import "../mixins";
|
|
4
4
|
|
|
5
5
|
.ilo--pagination {
|
|
6
|
+
--ilo-pagination-page-color: var(--ilo-color-blue-dark);
|
|
7
|
+
|
|
8
|
+
&__theme {
|
|
9
|
+
&__dark {
|
|
10
|
+
--ilo-pagination-page-color: var(--ilo-color-white);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__light {
|
|
14
|
+
--ilo-pagination-page-color: var(--ilo-color-blue-dark);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
6
18
|
display: flex;
|
|
7
19
|
justify-content: space-between;
|
|
8
20
|
margin-bottom: spacing(10);
|
|
@@ -160,9 +172,10 @@
|
|
|
160
172
|
&--page {
|
|
161
173
|
display: flex;
|
|
162
174
|
gap: spacing(1);
|
|
163
|
-
@include
|
|
175
|
+
@include typography("highlight-small");
|
|
164
176
|
margin-inline-end: spacing(2);
|
|
165
177
|
font-family: var(--ilo-fonts-copy);
|
|
178
|
+
color: var(--ilo-pagination-page-color);
|
|
166
179
|
font-weight: 400;
|
|
167
180
|
line-height: 45px;
|
|
168
181
|
|