@entur/form 5.4.0 → 5.4.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.
package/dist/styles.css CHANGED
@@ -2,190 +2,299 @@
2
2
  --eds-form: 1;
3
3
  }/* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
- .eds-fieldset {
6
- margin: 0;
7
- padding: 0;
8
- border: 0;
9
- }
10
- .eds-fieldset .eds-legend {
11
- margin: 0 0 0.5rem;
12
- }/* DO NOT CHANGE!*/
13
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
- .eds-checkbox__container {
15
- display: flex;
5
+ .eds-form-control-wrapper {
6
+ --border-color: #181c56;
7
+ --border-color-hover: #aeb7e2;
16
8
  align-items: center;
9
+ background-color: #ffffff;
10
+ border-radius: 0.25rem;
11
+ border: 0.125rem solid #d1d3d3;
12
+ box-shadow: 0 0 0 transparent;
13
+ color: #181c56;
14
+ display: flex;
17
15
  position: relative;
18
- -webkit-appearance: none;
19
- -moz-appearance: none;
20
- appearance: none;
21
- cursor: pointer;
22
- height: 2rem;
23
- -webkit-user-select: none;
24
- -moz-user-select: none;
25
- -ms-user-select: none;
26
- user-select: none;
27
- width: -webkit-fit-content;
28
- width: -moz-fit-content;
29
- width: fit-content;
30
- }
31
- .eds-checkbox__container--reduced-click-area {
32
- height: -webkit-fit-content;
33
- height: -moz-fit-content;
34
- height: fit-content;
35
- }
36
- .eds-checkbox__container input {
37
- position: absolute;
38
- opacity: 0;
39
- height: 0;
40
- width: 0;
16
+ width: 100%;
17
+ min-height: 3rem;
18
+ transition: border-color 0.1s ease-in-out;
19
+ --textarea-label-background: $colors-brand-white;
20
+ /*
21
+ Some input controls require a darker design while inside a contrast block.
22
+ These elements require the `--dark` modifier, even on the wrapper.
23
+ */
41
24
  }
42
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
43
- background-color: #181c56;
25
+ .eds-contrast .eds-form-control-wrapper {
26
+ --border-color: #aeb7e2;
27
+ background-color: #ffffff;
28
+ border-color: #54568c;
44
29
  }
45
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
46
- visibility: visible;
30
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
31
+ border-color: #181c56;
47
32
  }
48
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
49
- stroke: #ffffff;
50
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
51
- animation: stroke ease-in-out 0.2s 0.1s forwards;
33
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
34
+ border-color: #181c56;
52
35
  }
53
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
54
- opacity: 0.5;
36
+ .eds-contrast .eds-form-control-wrapper:hover {
37
+ border-color: #aeb7e2;
38
+ background: #ebebf1;
55
39
  }
56
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
57
- opacity: 0.5;
40
+ .eds-form-control-wrapper[focus-within] {
41
+ box-shadow: inset 0 0 0 1px var(--border-color);
58
42
  }
59
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
60
- background: #54568c;
43
+ .eds-form-control-wrapper:focus-within {
44
+ box-shadow: inset 0 0 0 1px var(--border-color);
61
45
  }
62
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
63
- border-color: #54568c;
64
- background: #f3f3f3;
46
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
47
+ border-color: #181c56;
48
+ --border-color: #aeb7e2;
49
+ box-shadow: 0 0 0 0.125rem var(--border-color);
65
50
  }
66
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
67
- border-color: #656782;
68
- background: #292b6a;
51
+ .eds-contrast .eds-form-control-wrapper:focus-within {
52
+ border-color: #181c56;
53
+ --border-color: #aeb7e2;
54
+ box-shadow: 0 0 0 0.125rem var(--border-color);
69
55
  }
70
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
71
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
72
- border-color: #54568c;
73
- background-color: #54568c;
56
+ .eds-form-control-wrapper ::-moz-placeholder {
57
+ color: #656782;
74
58
  }
75
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
76
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
77
- background: #8285a8;
78
- border-color: #8285a8;
59
+ .eds-form-control-wrapper :-ms-input-placeholder {
60
+ color: #656782;
79
61
  }
80
- .eds-checkbox__container:focus + .eds-checkbox__icon,
81
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
82
- outline: none;
83
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
84
- outline-offset: 0.125rem;
62
+ .eds-form-control-wrapper ::placeholder {
63
+ color: #656782;
85
64
  }
86
- .eds-checkbox__container:focus + .eds-checkbox__icon,
87
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
88
- outline: none;
89
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
90
- outline-offset: 0.125rem;
65
+ .eds-form-control-wrapper--disabled {
66
+ background-color: #e9e9e9;
67
+ color: #656782;
68
+ border-color: transparent;
69
+ pointer-events: none;
91
70
  }
92
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
93
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
94
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
71
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
72
+ display: none;
95
73
  }
96
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
97
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
98
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
74
+ .eds-contrast .eds-form-control-wrapper--disabled {
75
+ background: #292b6a;
76
+ border-color: transparent;
77
+ color: #8285a8;
99
78
  }
100
- .eds-checkbox--disabled {
79
+ .eds-form-control-wrapper--readonly {
101
80
  pointer-events: none;
81
+ cursor: default;
82
+ border-color: transparent;
83
+ background: #f8f8f8;
84
+ --textarea-label-background: $colors-greys-grey90;
102
85
  }
103
- .eds-checkbox--disabled .eds-checkbox__label {
104
- opacity: 0.5;
105
- }
106
- .eds-checkbox--disabled .eds-checkbox__icon {
107
- opacity: 0.5;
108
- }
109
- .eds-checkbox__icon {
110
- display: inline-flex;
111
- justify-content: center;
112
- align-items: center;
113
- position: relative;
114
- margin-right: 1rem;
115
- height: 1.25rem;
116
- width: 1.25rem;
117
- border: 0.125rem solid #181c56;
118
- border-radius: 0.0625rem;
119
- background-color: transparent;
86
+ .eds-contrast .eds-form-control-wrapper--readonly {
87
+ background: #292b6a;
88
+ --textarea-label-background: $colors-blues-blue10;
120
89
  color: #ffffff;
90
+ border-color: transparent;
121
91
  }
122
- .eds-checkbox__icon--reduced-click-area {
123
- margin-right: 0;
124
- }
125
- .eds-contrast .eds-checkbox__icon {
126
- border-color: #54568c;
92
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
93
+ display: none;
127
94
  }
128
- .eds-checkbox__icon .eds-checkbox-icon {
129
- height: 1rem;
130
- width: 1rem;
131
- visibility: hidden;
95
+ .eds-form-control-wrapper--size-medium .eds-form-control,
96
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
97
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
98
+ font-size: 1rem;
99
+ line-height: 1rem;
132
100
  }
133
- .eds-checkbox__icon .eds-checkbox-icon__path {
134
- transform-origin: 50% 50%;
135
- stroke-dasharray: 48;
136
- stroke-dashoffset: 48;
137
- stroke-width: 0.375rem;
101
+ .eds-form-control-wrapper--size-large {
102
+ min-height: 4rem;
103
+ padding: 0 0.5rem;
138
104
  }
139
-
140
- @-webkit-keyframes stroke {
141
- 100% {
142
- stroke-dashoffset: 0;
143
- }
105
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
106
+ border-width: 0.25rem;
144
107
  }
145
-
146
- @keyframes stroke {
147
- 100% {
148
- stroke-dashoffset: 0;
149
- }
150
- }/* DO NOT CHANGE!*/
151
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
152
- .eds-feedback-text {
153
- display: flex;
154
- align-items: center;
155
- margin-top: 0.25rem;
108
+ .eds-form-control-wrapper--size-large .eds-form-control,
109
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
110
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
111
+ font-size: 1.5rem;
112
+ line-height: 2.25rem;
156
113
  }
157
- .eds-feedback-text--info {
158
- padding-left: calc(1rem + 0.125rem);
114
+ .eds-form-control-wrapper--success {
115
+ border-color: #1a8e60;
116
+ --border-color: #1a8e60;
159
117
  }
160
- .eds-feedback-text__text {
161
- color: #181c56;
118
+ .eds-form-control-wrapper--success:hover {
119
+ border-color: #5ac39a;
162
120
  }
163
- .eds-contrast .eds-feedback-text__text {
164
- color: #ffffff;
121
+ .eds-form-control-wrapper--success[focus-within] {
122
+ border-color: #1a8e60;
165
123
  }
166
-
167
- .eds-feedback-text__icon {
168
- font-size: 1.5rem;
169
- min-height: 1.5rem;
170
- min-width: 1.5rem;
171
- padding-right: 0.5rem;
172
- position: relative;
173
- top: -0.1rem;
124
+ .eds-form-control-wrapper--success:focus-within {
125
+ border-color: #1a8e60;
174
126
  }
175
- .eds-feedback-text__icon--success {
176
- color: #1a8e60;
127
+ .eds-contrast .eds-form-control-wrapper--success {
128
+ border-color: #5ac39a;
129
+ --border-color: #5ac39a;
177
130
  }
178
- .eds-contrast .eds-feedback-text__icon--success {
179
- color: #5ac39a;
131
+ .eds-contrast .eds-form-control-wrapper--success:hover {
132
+ border-color: #1a8e60;
180
133
  }
181
- .eds-feedback-text__icon--error {
182
- color: #d31b1b;
134
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
135
+ --border-color: #5ac39a;
136
+ border-color: #181c56;
183
137
  }
184
- .eds-contrast .eds-feedback-text__icon--error {
185
- color: #ff9494;
138
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
139
+ --border-color: #5ac39a;
140
+ border-color: #181c56;
186
141
  }
187
- .eds-feedback-text__icon--info {
188
- color: #0082b9;
142
+ .eds-form-control-wrapper--error {
143
+ border-color: #d31b1b;
144
+ --border-color: #d31b1b;
145
+ }
146
+ .eds-form-control-wrapper--error:hover {
147
+ border-color: #ff9494;
148
+ }
149
+ .eds-form-control-wrapper--error[focus-within] {
150
+ border-color: #d31b1b;
151
+ }
152
+ .eds-form-control-wrapper--error:focus-within {
153
+ border-color: #d31b1b;
154
+ }
155
+ .eds-contrast .eds-form-control-wrapper--error {
156
+ border-color: #ff9494;
157
+ --border-color: #ff9494;
158
+ }
159
+ .eds-contrast .eds-form-control-wrapper--error:hover {
160
+ border-color: #d31b1b;
161
+ }
162
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
163
+ border-color: #181c56;
164
+ --border-color: #ff9494;
165
+ }
166
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
167
+ border-color: #181c56;
168
+ --border-color: #ff9494;
169
+ }
170
+ .eds-contrast .eds-form-control-wrapper--dark {
171
+ background-color: #181c56;
172
+ color: #ffffff;
173
+ }
174
+ .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
175
+ color: #aeb7e2;
176
+ }
177
+ .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
178
+ color: #aeb7e2;
179
+ }
180
+ .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
181
+ color: #aeb7e2;
182
+ }
183
+ .eds-contrast .eds-form-control-wrapper--dark:hover {
184
+ border-color: #aeb7e2;
185
+ }
186
+ .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
187
+ background-color: #292b6a;
188
+ border-color: #aeb7e2;
189
+ }
190
+ .eds-contrast .eds-form-control-wrapper--dark:focus-within {
191
+ background-color: #292b6a;
192
+ border-color: #aeb7e2;
193
+ }
194
+ .eds-contrast .eds-form-control-wrapper--dark * {
195
+ background-color: transparent;
196
+ color: inherit;
197
+ }
198
+ .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
199
+ background-color: #292b6a;
200
+ color: #8285a8;
201
+ }
202
+
203
+ .eds-form-control {
204
+ -webkit-appearance: none;
205
+ -moz-appearance: none;
206
+ appearance: none;
207
+ background-color: transparent;
208
+ border: 0;
209
+ color: inherit;
210
+ display: block;
211
+ font-family: inherit;
212
+ line-height: 1rem;
213
+ font-size: 1rem;
214
+ padding: 20px 1rem 0.25rem;
215
+ width: 100%;
216
+ }
217
+ .eds-form-control::-moz-placeholder {
218
+ opacity: 0;
219
+ -moz-transition: opacity 0.2s ease-in-out;
220
+ transition: opacity 0.2s ease-in-out;
221
+ }
222
+ .eds-form-control:-ms-input-placeholder {
223
+ opacity: 0;
224
+ -ms-transition: opacity 0.2s ease-in-out;
225
+ transition: opacity 0.2s ease-in-out;
226
+ }
227
+ .eds-form-control::placeholder {
228
+ opacity: 0;
229
+ transition: opacity 0.2s ease-in-out;
230
+ }
231
+ .eds-form-control:focus {
232
+ outline: none;
233
+ }
234
+ .eds-form-control:focus::-moz-placeholder {
235
+ opacity: 1;
236
+ }
237
+ .eds-form-control:focus:-ms-input-placeholder {
238
+ opacity: 1;
239
+ }
240
+ .eds-form-control:focus::placeholder {
241
+ opacity: 1;
242
+ }
243
+ .eds-form-control__prepend, .eds-form-control__append {
244
+ position: relative;
245
+ margin: 0 1rem;
246
+ line-height: inherit;
247
+ }
248
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
249
+ position: static;
250
+ }
251
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
252
+ top: 0.125rem;
253
+ }
254
+ .eds-form-control__prepend {
255
+ margin-right: 0;
256
+ }
257
+ .eds-form-control__append {
258
+ margin-left: 0;
259
+ }/* DO NOT CHANGE!*/
260
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
261
+ .eds-feedback-text {
262
+ display: flex;
263
+ align-items: center;
264
+ margin-top: 0.25rem;
265
+ }
266
+ .eds-feedback-text--info {
267
+ padding-left: calc(1rem + 0.125rem);
268
+ }
269
+ .eds-feedback-text__text {
270
+ color: #181c56;
271
+ }
272
+ .eds-contrast .eds-feedback-text__text {
273
+ color: #ffffff;
274
+ }
275
+
276
+ .eds-feedback-text__icon {
277
+ font-size: 1.5rem;
278
+ min-height: 1.5rem;
279
+ min-width: 1.5rem;
280
+ padding-right: 0.5rem;
281
+ position: relative;
282
+ top: -0.1rem;
283
+ }
284
+ .eds-feedback-text__icon--success {
285
+ color: #1a8e60;
286
+ }
287
+ .eds-contrast .eds-feedback-text__icon--success {
288
+ color: #5ac39a;
289
+ }
290
+ .eds-feedback-text__icon--error {
291
+ color: #d31b1b;
292
+ }
293
+ .eds-contrast .eds-feedback-text__icon--error {
294
+ color: #ff9494;
295
+ }
296
+ .eds-feedback-text__icon--info {
297
+ color: #0082b9;
189
298
  }
190
299
  .eds-contrast .eds-feedback-text__icon--info {
191
300
  color: #64b3e7;
@@ -289,116 +398,142 @@
289
398
  background-color: #aeb7e2;
290
399
  }/* DO NOT CHANGE!*/
291
400
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
292
- .eds-switch {
401
+ .eds-checkbox__container {
402
+ display: flex;
403
+ align-items: center;
404
+ position: relative;
405
+ -webkit-appearance: none;
406
+ -moz-appearance: none;
407
+ appearance: none;
293
408
  cursor: pointer;
409
+ height: 2rem;
294
410
  -webkit-user-select: none;
295
411
  -moz-user-select: none;
296
412
  -ms-user-select: none;
297
413
  user-select: none;
298
- padding: 0.5rem 0;
299
414
  width: -webkit-fit-content;
300
415
  width: -moz-fit-content;
301
416
  width: fit-content;
302
417
  }
303
- .eds-switch input {
304
- opacity: 0;
305
- pointer-events: none;
306
- position: absolute;
418
+ .eds-checkbox__container--reduced-click-area {
419
+ height: -webkit-fit-content;
420
+ height: -moz-fit-content;
421
+ height: fit-content;
307
422
  }
308
- .eds-switch--right {
309
- display: flex;
310
- flex-direction: row;
311
- align-items: center;
423
+ .eds-checkbox__container input {
424
+ position: absolute;
425
+ opacity: 0;
426
+ height: 0;
427
+ width: 0;
312
428
  }
313
- .eds-switch--bottom {
314
- display: flex;
315
- flex-direction: column;
316
- align-items: center;
429
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
430
+ background-color: #181c56;
317
431
  }
318
- .eds-switch__circle {
319
- border-radius: 50%;
320
- height: 1.25rem;
321
- width: 1.25rem;
322
- content: "";
323
- display: flex;
324
- align-items: center;
325
- justify-content: center;
326
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
327
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
328
- background-color: #ffffff;
329
- top: 0.125rem;
330
- left: 0.125rem;
331
- position: relative;
432
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
433
+ visibility: visible;
332
434
  }
333
- .eds-switch__switch--large .eds-switch__circle {
334
- height: 1.75rem;
335
- width: 1.75rem;
435
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
436
+ stroke: #ffffff;
437
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
438
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
336
439
  }
337
- .eds-switch .eds-switch__switch svg g,
338
- .eds-switch .eds-switch__switch path {
339
- fill: #949494;
340
- transition: fill ease-in-out 0.1s;
440
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
441
+ opacity: 0.5;
341
442
  }
342
- .eds-switch__switch {
343
- position: relative;
344
- background-color: #d1d3d3;
345
- content: "";
346
- display: block;
347
- transition: background-color 0.1s ease-in-out;
348
- height: 1.5rem;
349
- width: 3rem;
350
- border-radius: 1.5rem;
443
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
444
+ opacity: 0.5;
351
445
  }
352
- .eds-switch--right .eds-switch__switch {
353
- margin-right: 0.75rem;
446
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
447
+ background: #54568c;
354
448
  }
355
- :checked + .eds-switch__switch {
356
- background-color: var(--eds-switch-color);
449
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
450
+ border-color: #54568c;
451
+ background: #f3f3f3;
357
452
  }
358
- :checked + .eds-switch__switch .eds-switch__circle {
359
- left: 1.625rem;
453
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
454
+ border-color: #656782;
455
+ background: #292b6a;
360
456
  }
361
- :checked + .eds-switch__switch .eds-switch__circle svg g,
362
- :checked + .eds-switch__switch .eds-switch__circle path {
363
- fill: var(--eds-switch-color);
457
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
458
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
459
+ border-color: #54568c;
460
+ background-color: #54568c;
364
461
  }
365
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
366
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
367
- fill: var(--eds-switch-color);
462
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
463
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
464
+ background: #8285a8;
465
+ border-color: #8285a8;
368
466
  }
369
- .eds-contrast :checked + .eds-switch__switch {
370
- background-color: var(--eds-switch-contrast-color);
467
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
468
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
469
+ outline: none;
470
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
471
+ outline-offset: 0.125rem;
371
472
  }
372
- :focus + .eds-switch__switch {
473
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
474
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
373
475
  outline: none;
374
476
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
375
477
  outline-offset: 0.125rem;
376
478
  }
377
- .eds-contrast :focus + .eds-switch__switch {
479
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
480
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
378
481
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
379
482
  }
380
- .eds-contrast .eds-switch__switch {
381
- background-color: #54568c;
483
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
484
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
485
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
382
486
  }
383
- .eds-switch__switch--large {
384
- width: 3.75rem;
385
- height: 2rem;
386
- border-radius: 3.75rem;
487
+ .eds-checkbox--disabled {
488
+ pointer-events: none;
387
489
  }
388
- :checked + .eds-switch__switch--large .eds-switch__circle {
389
- left: 1.875rem;
490
+ .eds-checkbox--disabled .eds-checkbox__label {
491
+ opacity: 0.5;
390
492
  }
391
- .eds-switch__label--large--right {
392
- font-size: 1rem;
493
+ .eds-checkbox--disabled .eds-checkbox__icon {
494
+ opacity: 0.5;
393
495
  }
394
- .eds-switch__label--large--bottom {
395
- font-size: 0.875rem;
496
+ .eds-checkbox__icon {
497
+ display: inline-flex;
498
+ justify-content: center;
499
+ align-items: center;
500
+ position: relative;
501
+ margin-right: 1rem;
502
+ height: 1.25rem;
503
+ width: 1.25rem;
504
+ border: 0.125rem solid #181c56;
505
+ border-radius: 0.0625rem;
506
+ background-color: transparent;
507
+ color: #ffffff;
396
508
  }
397
- .eds-switch__label--medium--right {
398
- font-size: 0.875rem;
509
+ .eds-checkbox__icon--reduced-click-area {
510
+ margin-right: 0;
399
511
  }
400
- .eds-switch__label--medium--bottom {
401
- font-size: 0.75rem;
512
+ .eds-contrast .eds-checkbox__icon {
513
+ border-color: #54568c;
514
+ }
515
+ .eds-checkbox__icon .eds-checkbox-icon {
516
+ height: 1rem;
517
+ width: 1rem;
518
+ visibility: hidden;
519
+ }
520
+ .eds-checkbox__icon .eds-checkbox-icon__path {
521
+ transform-origin: 50% 50%;
522
+ stroke-dasharray: 48;
523
+ stroke-dashoffset: 48;
524
+ stroke-width: 0.375rem;
525
+ }
526
+
527
+ @-webkit-keyframes stroke {
528
+ 100% {
529
+ stroke-dashoffset: 0;
530
+ }
531
+ }
532
+
533
+ @keyframes stroke {
534
+ 100% {
535
+ stroke-dashoffset: 0;
536
+ }
402
537
  }/* DO NOT CHANGE!*/
403
538
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
404
539
  .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
@@ -570,359 +705,103 @@
570
705
  top: calc(0.5rem - 0.125rem);
571
706
  font-size: 0.75rem;
572
707
  line-height: 0.75rem;
573
- height: 10px;
574
- padding: 0;
575
- margin-left: 1rem;
576
- }
577
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
578
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
579
- background: var(--textarea-label-background);
580
- width: calc( 100% - 1rem - 1rem - 4px );
581
- }
582
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
583
- top: 0.5rem;
584
- font-size: 0.875rem;
585
- line-height: 1rem;
586
- padding: 0;
587
- margin-left: 1rem;
588
- }
589
- .eds-contrast .eds-input-group__label {
590
- color: #8285a8;
591
- }
592
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
593
- color: #aeb7e2;
594
- }
595
- .eds-form-control-wrapper--size-large .eds-input-group__label {
596
- font-size: 1.5rem;
597
- line-height: 2.25rem;
598
- height: 4rem;
599
- }
600
- .eds-input-group__label--filled {
601
- top: calc(0.5rem - 0.125rem);
602
- font-size: 0.75rem;
603
- line-height: 0.75rem;
604
- height: 10px;
605
- padding: 0;
606
- margin-left: 1rem;
607
- }
608
- .eds-textarea__label .eds-input-group__label--filled {
609
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
610
- background: var(--textarea-label-background);
611
- width: calc( 100% - 1rem - 1rem - 4px );
612
- }
613
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
614
- top: 0.5rem;
615
- font-size: 0.875rem;
616
- line-height: 1rem;
617
- padding: 0;
618
- margin-left: 1rem;
619
- }
620
- .eds-input-group__label-tooltip-icon {
621
- color: #0082b9;
622
- padding-left: 0.25rem;
623
- padding-right: 0.25rem;
624
- display: flex;
625
- align-items: center;
626
- cursor: help;
627
- font-size: 1rem;
628
- }
629
-
630
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
631
- top: calc(0.5rem - 0.125rem);
632
- font-size: 0.75rem;
633
- line-height: 0.75rem;
634
- height: 10px;
635
- padding: 0;
636
- margin-left: 1rem;
637
- }
638
-
639
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
640
- top: calc(0.5rem - 0.125rem);
641
- font-size: 0.75rem;
642
- line-height: 0.75rem;
643
- height: 10px;
644
- padding: 0;
645
- margin-left: 1rem;
646
- }
647
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
648
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
649
- background: var(--textarea-label-background);
650
- width: calc( 100% - 1rem - 1rem - 4px );
651
- }
652
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
653
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
654
- background: var(--textarea-label-background);
655
- width: calc( 100% - 1rem - 1rem - 4px );
656
- }
657
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
658
- top: 0.5rem;
659
- font-size: 0.875rem;
660
- line-height: 1rem;
661
- padding: 0;
662
- margin-left: 1rem;
663
- }
664
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
665
- top: 0.5rem;
666
- font-size: 0.875rem;
667
- line-height: 1rem;
668
- padding: 0;
669
- margin-left: 1rem;
670
- }/* DO NOT CHANGE!*/
671
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
672
- .eds-form-control-wrapper {
673
- --border-color: #181c56;
674
- --border-color-hover: #aeb7e2;
675
- align-items: center;
676
- background-color: #ffffff;
677
- border-radius: 0.25rem;
678
- border: 0.125rem solid #d1d3d3;
679
- box-shadow: 0 0 0 transparent;
680
- color: #181c56;
681
- display: flex;
682
- position: relative;
683
- width: 100%;
684
- min-height: 3rem;
685
- transition: border-color 0.1s ease-in-out;
686
- --textarea-label-background: $colors-brand-white;
687
- /*
688
- Some input controls require a darker design while inside a contrast block.
689
- These elements require the `--dark` modifier, even on the wrapper.
690
- */
691
- }
692
- .eds-contrast .eds-form-control-wrapper {
693
- --border-color: #aeb7e2;
694
- background-color: #ffffff;
695
- border-color: #54568c;
696
- }
697
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
698
- border-color: #181c56;
699
- }
700
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
701
- border-color: #181c56;
702
- }
703
- .eds-contrast .eds-form-control-wrapper:hover {
704
- border-color: #aeb7e2;
705
- background: #ebebf1;
706
- }
707
- .eds-form-control-wrapper[focus-within] {
708
- box-shadow: inset 0 0 0 1px var(--border-color);
709
- }
710
- .eds-form-control-wrapper:focus-within {
711
- box-shadow: inset 0 0 0 1px var(--border-color);
712
- }
713
- .eds-contrast .eds-form-control-wrapper[focus-within] {
714
- border-color: #181c56;
715
- --border-color: #aeb7e2;
716
- box-shadow: 0 0 0 0.125rem var(--border-color);
717
- }
718
- .eds-contrast .eds-form-control-wrapper:focus-within {
719
- border-color: #181c56;
720
- --border-color: #aeb7e2;
721
- box-shadow: 0 0 0 0.125rem var(--border-color);
722
- }
723
- .eds-form-control-wrapper ::-moz-placeholder {
724
- color: #656782;
725
- }
726
- .eds-form-control-wrapper :-ms-input-placeholder {
727
- color: #656782;
728
- }
729
- .eds-form-control-wrapper ::placeholder {
730
- color: #656782;
731
- }
732
- .eds-form-control-wrapper--disabled {
733
- background-color: #e9e9e9;
734
- color: #656782;
735
- border-color: transparent;
736
- pointer-events: none;
737
- }
738
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
739
- display: none;
740
- }
741
- .eds-contrast .eds-form-control-wrapper--disabled {
742
- background: #292b6a;
743
- border-color: transparent;
744
- color: #8285a8;
745
- }
746
- .eds-form-control-wrapper--readonly {
747
- pointer-events: none;
748
- cursor: default;
749
- border-color: transparent;
750
- background: #f8f8f8;
751
- --textarea-label-background: $colors-greys-grey90;
752
- }
753
- .eds-contrast .eds-form-control-wrapper--readonly {
754
- background: #292b6a;
755
- --textarea-label-background: $colors-blues-blue10;
756
- color: #ffffff;
757
- border-color: transparent;
758
- }
759
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
760
- display: none;
761
- }
762
- .eds-form-control-wrapper--size-medium .eds-form-control,
763
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
764
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
765
- font-size: 1rem;
766
- line-height: 1rem;
767
- }
768
- .eds-form-control-wrapper--size-large {
769
- min-height: 4rem;
770
- padding: 0 0.5rem;
771
- }
772
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
773
- border-width: 0.25rem;
774
- }
775
- .eds-form-control-wrapper--size-large .eds-form-control,
776
- .eds-form-control-wrapper--size-large .eds-form-control__append,
777
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
778
- font-size: 1.5rem;
779
- line-height: 2.25rem;
780
- }
781
- .eds-form-control-wrapper--success {
782
- border-color: #1a8e60;
783
- --border-color: #1a8e60;
784
- }
785
- .eds-form-control-wrapper--success:hover {
786
- border-color: #5ac39a;
787
- }
788
- .eds-form-control-wrapper--success[focus-within] {
789
- border-color: #1a8e60;
790
- }
791
- .eds-form-control-wrapper--success:focus-within {
792
- border-color: #1a8e60;
793
- }
794
- .eds-contrast .eds-form-control-wrapper--success {
795
- border-color: #5ac39a;
796
- --border-color: #5ac39a;
797
- }
798
- .eds-contrast .eds-form-control-wrapper--success:hover {
799
- border-color: #1a8e60;
800
- }
801
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
802
- --border-color: #5ac39a;
803
- border-color: #181c56;
804
- }
805
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
806
- --border-color: #5ac39a;
807
- border-color: #181c56;
808
- }
809
- .eds-form-control-wrapper--error {
810
- border-color: #d31b1b;
811
- --border-color: #d31b1b;
812
- }
813
- .eds-form-control-wrapper--error:hover {
814
- border-color: #ff9494;
815
- }
816
- .eds-form-control-wrapper--error[focus-within] {
817
- border-color: #d31b1b;
818
- }
819
- .eds-form-control-wrapper--error:focus-within {
820
- border-color: #d31b1b;
821
- }
822
- .eds-contrast .eds-form-control-wrapper--error {
823
- border-color: #ff9494;
824
- --border-color: #ff9494;
825
- }
826
- .eds-contrast .eds-form-control-wrapper--error:hover {
827
- border-color: #d31b1b;
828
- }
829
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
830
- border-color: #181c56;
831
- --border-color: #ff9494;
832
- }
833
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
834
- border-color: #181c56;
835
- --border-color: #ff9494;
836
- }
837
- .eds-contrast .eds-form-control-wrapper--dark {
838
- background-color: #181c56;
839
- color: #ffffff;
840
- }
841
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
842
- color: #aeb7e2;
843
- }
844
- .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
845
- color: #aeb7e2;
846
- }
847
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
848
- color: #aeb7e2;
849
- }
850
- .eds-contrast .eds-form-control-wrapper--dark:hover {
851
- border-color: #aeb7e2;
852
- }
853
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
854
- background-color: #292b6a;
855
- border-color: #aeb7e2;
708
+ height: 10px;
709
+ padding: 0;
710
+ margin-left: 1rem;
856
711
  }
857
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
858
- background-color: #292b6a;
859
- border-color: #aeb7e2;
712
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
713
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
714
+ background: var(--textarea-label-background);
715
+ width: calc( 100% - 1rem - 1rem - 4px );
860
716
  }
861
- .eds-contrast .eds-form-control-wrapper--dark * {
862
- background-color: transparent;
863
- color: inherit;
717
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
718
+ top: 0.5rem;
719
+ font-size: 0.875rem;
720
+ line-height: 1rem;
721
+ padding: 0;
722
+ margin-left: 1rem;
864
723
  }
865
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
866
- background-color: #292b6a;
724
+ .eds-contrast .eds-input-group__label {
867
725
  color: #8285a8;
868
726
  }
869
-
870
- .eds-form-control {
871
- -webkit-appearance: none;
872
- -moz-appearance: none;
873
- appearance: none;
874
- background-color: transparent;
875
- border: 0;
876
- color: inherit;
877
- display: block;
878
- font-family: inherit;
879
- line-height: 1rem;
880
- font-size: 1rem;
881
- padding: 20px 1rem 0.25rem;
882
- width: 100%;
883
- }
884
- .eds-form-control::-moz-placeholder {
885
- opacity: 0;
886
- -moz-transition: opacity 0.2s ease-in-out;
887
- transition: opacity 0.2s ease-in-out;
727
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
728
+ color: #aeb7e2;
888
729
  }
889
- .eds-form-control:-ms-input-placeholder {
890
- opacity: 0;
891
- -ms-transition: opacity 0.2s ease-in-out;
892
- transition: opacity 0.2s ease-in-out;
730
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
731
+ font-size: 1.5rem;
732
+ line-height: 2.25rem;
733
+ height: 4rem;
893
734
  }
894
- .eds-form-control::placeholder {
895
- opacity: 0;
896
- transition: opacity 0.2s ease-in-out;
735
+ .eds-input-group__label--filled {
736
+ top: calc(0.5rem - 0.125rem);
737
+ font-size: 0.75rem;
738
+ line-height: 0.75rem;
739
+ height: 10px;
740
+ padding: 0;
741
+ margin-left: 1rem;
897
742
  }
898
- .eds-form-control:focus {
899
- outline: none;
743
+ .eds-textarea__label .eds-input-group__label--filled {
744
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
745
+ background: var(--textarea-label-background);
746
+ width: calc( 100% - 1rem - 1rem - 4px );
900
747
  }
901
- .eds-form-control:focus::-moz-placeholder {
902
- opacity: 1;
748
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
749
+ top: 0.5rem;
750
+ font-size: 0.875rem;
751
+ line-height: 1rem;
752
+ padding: 0;
753
+ margin-left: 1rem;
903
754
  }
904
- .eds-form-control:focus:-ms-input-placeholder {
905
- opacity: 1;
755
+ .eds-input-group__label-tooltip-icon {
756
+ color: #0082b9;
757
+ padding-left: 0.25rem;
758
+ padding-right: 0.25rem;
759
+ display: flex;
760
+ align-items: center;
761
+ cursor: help;
762
+ font-size: 1rem;
906
763
  }
907
- .eds-form-control:focus::placeholder {
908
- opacity: 1;
764
+
765
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
766
+ top: calc(0.5rem - 0.125rem);
767
+ font-size: 0.75rem;
768
+ line-height: 0.75rem;
769
+ height: 10px;
770
+ padding: 0;
771
+ margin-left: 1rem;
909
772
  }
910
- .eds-form-control__prepend, .eds-form-control__append {
911
- position: relative;
912
- margin: 0 1rem;
913
- line-height: inherit;
773
+
774
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
775
+ top: calc(0.5rem - 0.125rem);
776
+ font-size: 0.75rem;
777
+ line-height: 0.75rem;
778
+ height: 10px;
779
+ padding: 0;
780
+ margin-left: 1rem;
914
781
  }
915
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
916
- position: static;
782
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
783
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
784
+ background: var(--textarea-label-background);
785
+ width: calc( 100% - 1rem - 1rem - 4px );
917
786
  }
918
- .eds-form-control__prepend svg, .eds-form-control__append svg {
919
- top: 0.125rem;
787
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
788
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
789
+ background: var(--textarea-label-background);
790
+ width: calc( 100% - 1rem - 1rem - 4px );
920
791
  }
921
- .eds-form-control__prepend {
922
- margin-right: 0;
792
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
793
+ top: 0.5rem;
794
+ font-size: 0.875rem;
795
+ line-height: 1rem;
796
+ padding: 0;
797
+ margin-left: 1rem;
923
798
  }
924
- .eds-form-control__append {
925
- margin-left: 0;
799
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
800
+ top: 0.5rem;
801
+ font-size: 0.875rem;
802
+ line-height: 1rem;
803
+ padding: 0;
804
+ margin-left: 1rem;
926
805
  }/* DO NOT CHANGE!*/
927
806
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
928
807
  textarea.eds-form-control.eds-textarea {
@@ -931,6 +810,15 @@ textarea.eds-form-control.eds-textarea {
931
810
  line-height: 1.5rem;
932
811
  }/* DO NOT CHANGE!*/
933
812
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
813
+ .eds-fieldset {
814
+ margin: 0;
815
+ padding: 0;
816
+ border: 0;
817
+ }
818
+ .eds-fieldset .eds-legend {
819
+ margin: 0 0 0.5rem;
820
+ }/* DO NOT CHANGE!*/
821
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
934
822
  .eds-textfield__clear-button {
935
823
  background: none;
936
824
  border: none;
@@ -967,6 +855,118 @@ textarea.eds-form-control.eds-textarea {
967
855
  background-color: #8285a8;
968
856
  }/* DO NOT CHANGE!*/
969
857
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
858
+ .eds-switch {
859
+ cursor: pointer;
860
+ -webkit-user-select: none;
861
+ -moz-user-select: none;
862
+ -ms-user-select: none;
863
+ user-select: none;
864
+ padding: 0.5rem 0;
865
+ width: -webkit-fit-content;
866
+ width: -moz-fit-content;
867
+ width: fit-content;
868
+ }
869
+ .eds-switch input {
870
+ opacity: 0;
871
+ pointer-events: none;
872
+ position: absolute;
873
+ }
874
+ .eds-switch--right {
875
+ display: flex;
876
+ flex-direction: row;
877
+ align-items: center;
878
+ }
879
+ .eds-switch--bottom {
880
+ display: flex;
881
+ flex-direction: column;
882
+ align-items: center;
883
+ }
884
+ .eds-switch__circle {
885
+ border-radius: 50%;
886
+ height: 1.25rem;
887
+ width: 1.25rem;
888
+ content: "";
889
+ display: flex;
890
+ align-items: center;
891
+ justify-content: center;
892
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
893
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
894
+ background-color: #ffffff;
895
+ top: 0.125rem;
896
+ left: 0.125rem;
897
+ position: relative;
898
+ }
899
+ .eds-switch__switch--large .eds-switch__circle {
900
+ height: 1.75rem;
901
+ width: 1.75rem;
902
+ }
903
+ .eds-switch .eds-switch__switch svg g,
904
+ .eds-switch .eds-switch__switch path {
905
+ fill: #949494;
906
+ transition: fill ease-in-out 0.1s;
907
+ }
908
+ .eds-switch__switch {
909
+ position: relative;
910
+ background-color: #d1d3d3;
911
+ content: "";
912
+ display: block;
913
+ transition: background-color 0.1s ease-in-out;
914
+ height: 1.5rem;
915
+ width: 3rem;
916
+ border-radius: 1.5rem;
917
+ }
918
+ .eds-switch--right .eds-switch__switch {
919
+ margin-right: 0.75rem;
920
+ }
921
+ :checked + .eds-switch__switch {
922
+ background-color: var(--eds-switch-color);
923
+ }
924
+ :checked + .eds-switch__switch .eds-switch__circle {
925
+ left: 1.625rem;
926
+ }
927
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
928
+ :checked + .eds-switch__switch .eds-switch__circle path {
929
+ fill: var(--eds-switch-color);
930
+ }
931
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
932
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
933
+ fill: var(--eds-switch-color);
934
+ }
935
+ .eds-contrast :checked + .eds-switch__switch {
936
+ background-color: var(--eds-switch-contrast-color);
937
+ }
938
+ :focus + .eds-switch__switch {
939
+ outline: none;
940
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
941
+ outline-offset: 0.125rem;
942
+ }
943
+ .eds-contrast :focus + .eds-switch__switch {
944
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
945
+ }
946
+ .eds-contrast .eds-switch__switch {
947
+ background-color: #54568c;
948
+ }
949
+ .eds-switch__switch--large {
950
+ width: 3.75rem;
951
+ height: 2rem;
952
+ border-radius: 3.75rem;
953
+ }
954
+ :checked + .eds-switch__switch--large .eds-switch__circle {
955
+ left: 1.875rem;
956
+ }
957
+ .eds-switch__label--large--right {
958
+ font-size: 1rem;
959
+ }
960
+ .eds-switch__label--large--bottom {
961
+ font-size: 0.875rem;
962
+ }
963
+ .eds-switch__label--medium--right {
964
+ font-size: 0.875rem;
965
+ }
966
+ .eds-switch__label--medium--bottom {
967
+ font-size: 0.75rem;
968
+ }/* DO NOT CHANGE!*/
969
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
970
970
  .eds-segmented-choice {
971
971
  display: block;
972
972
  flex: 1 1 0px;