@entur/form 5.4.2 → 5.4.4

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