@entur/form 5.3.4 → 5.3.5

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,15 +2,6 @@
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
5
  .eds-feedback-text {
15
6
  display: flex;
16
7
  align-items: center;
@@ -204,299 +195,184 @@
204
195
  }
205
196
  }/* DO NOT CHANGE!*/
206
197
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
207
- .eds-form-control-wrapper {
208
- --border-color: #181c56;
209
- --border-color-hover: #aeb7e2;
210
- align-items: center;
211
- background-color: #ffffff;
212
- border-radius: 0.25rem;
213
- border: 0.125rem solid #d1d3d3;
214
- box-shadow: 0 0 0 transparent;
215
- color: #181c56;
216
- display: flex;
198
+ .eds-input-group {
199
+ color: inherit;
200
+ display: block;
217
201
  position: relative;
218
- width: 100%;
219
- min-height: 3rem;
220
- transition: border-color 0.1s ease-in-out;
221
- --textarea-label-background: $colors-brand-white;
222
- /*
223
- Some input controls require a darker design while inside a contrast block.
224
- These elements require the `--dark` modifier, even on the wrapper.
225
- */
226
- }
227
- .eds-contrast .eds-form-control-wrapper {
228
- --border-color: #aeb7e2;
229
- background-color: #ffffff;
230
- border-color: #54568c;
231
202
  }
232
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
233
- border-color: #181c56;
203
+ .eds-input-group__label {
204
+ color: #656782;
205
+ display: flex;
206
+ font-size: 1rem;
207
+ position: absolute;
208
+ line-height: 1rem;
209
+ height: 3rem;
210
+ padding: 1rem;
211
+ padding-left: 0;
212
+ margin-left: 1rem;
213
+ top: -0.125rem;
214
+ 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;
215
+ -webkit-user-select: none;
216
+ -moz-user-select: none;
217
+ -ms-user-select: none;
218
+ user-select: none;
219
+ pointer-events: none;
234
220
  }
235
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
236
- border-color: #181c56;
221
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
222
+ top: calc(0.5rem - 0.125rem);
223
+ font-size: 0.75rem;
224
+ line-height: 0.75rem;
225
+ height: 10px;
226
+ padding: 0;
227
+ margin-left: 1rem;
237
228
  }
238
- .eds-contrast .eds-form-control-wrapper:hover {
239
- border-color: #aeb7e2;
240
- background: #ebebf1;
229
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
230
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
231
+ background: var(--textarea-label-background);
232
+ width: calc( 100% - 1rem - 1rem - 4px );
241
233
  }
242
- .eds-form-control-wrapper[focus-within] {
243
- box-shadow: inset 0 0 0 1px var(--border-color);
234
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
235
+ top: 0.5rem;
236
+ font-size: 0.875rem;
237
+ line-height: 1rem;
238
+ padding: 0;
239
+ margin-left: 1rem;
244
240
  }
245
- .eds-form-control-wrapper:focus-within {
246
- box-shadow: inset 0 0 0 1px var(--border-color);
241
+ .eds-contrast .eds-input-group__label {
242
+ color: #8285a8;
247
243
  }
248
- .eds-contrast .eds-form-control-wrapper[focus-within] {
249
- border-color: #181c56;
250
- --border-color: #aeb7e2;
251
- box-shadow: 0 0 0 0.125rem var(--border-color);
244
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
245
+ color: #aeb7e2;
252
246
  }
253
- .eds-contrast .eds-form-control-wrapper:focus-within {
254
- border-color: #181c56;
255
- --border-color: #aeb7e2;
256
- box-shadow: 0 0 0 0.125rem var(--border-color);
247
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
248
+ font-size: 1.5rem;
249
+ line-height: 2.25rem;
250
+ height: 4rem;
257
251
  }
258
- .eds-form-control-wrapper ::-moz-placeholder {
259
- color: #656782;
252
+ .eds-input-group__label--filled {
253
+ top: calc(0.5rem - 0.125rem);
254
+ font-size: 0.75rem;
255
+ line-height: 0.75rem;
256
+ height: 10px;
257
+ padding: 0;
258
+ margin-left: 1rem;
260
259
  }
261
- .eds-form-control-wrapper :-ms-input-placeholder {
262
- color: #656782;
260
+ .eds-textarea__label .eds-input-group__label--filled {
261
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
262
+ background: var(--textarea-label-background);
263
+ width: calc( 100% - 1rem - 1rem - 4px );
263
264
  }
264
- .eds-form-control-wrapper ::placeholder {
265
- color: #656782;
265
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
266
+ top: 0.5rem;
267
+ font-size: 0.875rem;
268
+ line-height: 1rem;
269
+ padding: 0;
270
+ margin-left: 1rem;
266
271
  }
267
- .eds-form-control-wrapper--disabled {
268
- background-color: #e9e9e9;
269
- color: #656782;
270
- border-color: transparent;
271
- pointer-events: none;
272
+ .eds-input-group__label-tooltip-icon {
273
+ color: #0082b9;
274
+ padding-left: 0.25rem;
275
+ padding-right: 0.25rem;
276
+ display: flex;
277
+ align-items: center;
278
+ cursor: help;
279
+ font-size: 1rem;
272
280
  }
273
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
274
- display: none;
281
+
282
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
283
+ top: calc(0.5rem - 0.125rem);
284
+ font-size: 0.75rem;
285
+ line-height: 0.75rem;
286
+ height: 10px;
287
+ padding: 0;
288
+ margin-left: 1rem;
275
289
  }
276
- .eds-contrast .eds-form-control-wrapper--disabled {
277
- background: #292b6a;
278
- border-color: transparent;
279
- color: #8285a8;
290
+
291
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
292
+ top: calc(0.5rem - 0.125rem);
293
+ font-size: 0.75rem;
294
+ line-height: 0.75rem;
295
+ height: 10px;
296
+ padding: 0;
297
+ margin-left: 1rem;
280
298
  }
281
- .eds-form-control-wrapper--readonly {
282
- pointer-events: none;
283
- cursor: default;
284
- border-color: transparent;
285
- background: #f8f8f8;
286
- --textarea-label-background: $colors-greys-grey90;
299
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
300
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
301
+ background: var(--textarea-label-background);
302
+ width: calc( 100% - 1rem - 1rem - 4px );
287
303
  }
288
- .eds-contrast .eds-form-control-wrapper--readonly {
289
- background: #292b6a;
290
- --textarea-label-background: $colors-blues-blue10;
291
- color: #ffffff;
292
- border-color: transparent;
304
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
305
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
306
+ background: var(--textarea-label-background);
307
+ width: calc( 100% - 1rem - 1rem - 4px );
293
308
  }
294
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
295
- display: none;
309
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
310
+ top: 0.5rem;
311
+ font-size: 0.875rem;
312
+ line-height: 1rem;
313
+ padding: 0;
314
+ margin-left: 1rem;
296
315
  }
297
- .eds-form-control-wrapper--size-medium .eds-form-control,
298
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
299
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
300
- font-size: 1rem;
316
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
317
+ top: 0.5rem;
318
+ font-size: 0.875rem;
301
319
  line-height: 1rem;
320
+ padding: 0;
321
+ margin-left: 1rem;
322
+ }/* DO NOT CHANGE!*/
323
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
324
+ textarea.eds-form-control.eds-textarea {
325
+ min-height: 7.75rem;
326
+ resize: vertical;
327
+ line-height: 1.5rem;
328
+ }/* DO NOT CHANGE!*/
329
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
330
+ .eds-fieldset {
331
+ margin: 0;
332
+ padding: 0;
333
+ border: 0;
302
334
  }
303
- .eds-form-control-wrapper--size-large {
304
- min-height: 4rem;
305
- padding: 0 0.5rem;
335
+ .eds-fieldset .eds-legend {
336
+ margin: 0 0 0.5rem;
337
+ }/* DO NOT CHANGE!*/
338
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
339
+ .eds-form-component--radio__container {
340
+ display: flex;
341
+ justify-content: center;
342
+ align-items: center;
343
+ position: relative;
344
+ cursor: pointer;
345
+ height: 2rem;
346
+ width: -webkit-fit-content;
347
+ width: -moz-fit-content;
348
+ width: fit-content;
349
+ -webkit-user-select: none;
350
+ -moz-user-select: none;
351
+ -ms-user-select: none;
352
+ user-select: none;
306
353
  }
307
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
308
- border-width: 0.25rem;
354
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
355
+ border-color: #54568c;
309
356
  }
310
- .eds-form-control-wrapper--size-large .eds-form-control,
311
- .eds-form-control-wrapper--size-large .eds-form-control__append,
312
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
313
- font-size: 1.5rem;
314
- line-height: 2.25rem;
357
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
358
+ background-color: #54568c;
315
359
  }
316
- .eds-form-control-wrapper--success {
317
- border-color: #1a8e60;
318
- --border-color: #1a8e60;
360
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
361
+ border-color: #8285a8;
319
362
  }
320
- .eds-form-control-wrapper--success:hover {
321
- border-color: #5ac39a;
363
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
364
+ background-color: #8285a8;
322
365
  }
323
- .eds-form-control-wrapper--success[focus-within] {
324
- border-color: #1a8e60;
366
+ .eds-form-component--radio__container input {
367
+ position: absolute;
368
+ opacity: 0;
369
+ cursor: pointer;
370
+ height: 0;
371
+ width: 0;
325
372
  }
326
- .eds-form-control-wrapper--success:focus-within {
327
- border-color: #1a8e60;
328
- }
329
- .eds-contrast .eds-form-control-wrapper--success {
330
- border-color: #5ac39a;
331
- --border-color: #5ac39a;
332
- }
333
- .eds-contrast .eds-form-control-wrapper--success:hover {
334
- border-color: #1a8e60;
335
- }
336
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
337
- --border-color: #5ac39a;
338
- border-color: #181c56;
339
- }
340
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
341
- --border-color: #5ac39a;
342
- border-color: #181c56;
343
- }
344
- .eds-form-control-wrapper--error {
345
- border-color: #d31b1b;
346
- --border-color: #d31b1b;
347
- }
348
- .eds-form-control-wrapper--error:hover {
349
- border-color: #ff9494;
350
- }
351
- .eds-form-control-wrapper--error[focus-within] {
352
- border-color: #d31b1b;
353
- }
354
- .eds-form-control-wrapper--error:focus-within {
355
- border-color: #d31b1b;
356
- }
357
- .eds-contrast .eds-form-control-wrapper--error {
358
- border-color: #ff9494;
359
- --border-color: #ff9494;
360
- }
361
- .eds-contrast .eds-form-control-wrapper--error:hover {
362
- border-color: #d31b1b;
363
- }
364
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
365
- border-color: #181c56;
366
- --border-color: #ff9494;
367
- }
368
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
369
- border-color: #181c56;
370
- --border-color: #ff9494;
371
- }
372
- .eds-contrast .eds-form-control-wrapper--dark {
373
- background-color: #181c56;
374
- color: #ffffff;
375
- }
376
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
377
- color: #aeb7e2;
378
- }
379
- .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
380
- color: #aeb7e2;
381
- }
382
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
383
- color: #aeb7e2;
384
- }
385
- .eds-contrast .eds-form-control-wrapper--dark:hover {
386
- border-color: #aeb7e2;
387
- }
388
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
389
- background-color: #292b6a;
390
- border-color: #aeb7e2;
391
- }
392
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
393
- background-color: #292b6a;
394
- border-color: #aeb7e2;
395
- }
396
- .eds-contrast .eds-form-control-wrapper--dark * {
397
- background-color: transparent;
398
- color: inherit;
399
- }
400
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
401
- background-color: #292b6a;
402
- color: #8285a8;
403
- }
404
-
405
- .eds-form-control {
406
- -webkit-appearance: none;
407
- -moz-appearance: none;
408
- appearance: none;
409
- background-color: transparent;
410
- border: 0;
411
- color: inherit;
412
- display: block;
413
- font-family: inherit;
414
- line-height: 1rem;
415
- font-size: 1rem;
416
- padding: 20px 1rem 0.25rem;
417
- width: 100%;
418
- }
419
- .eds-form-control::-moz-placeholder {
420
- opacity: 0;
421
- -moz-transition: opacity 0.2s ease-in-out;
422
- transition: opacity 0.2s ease-in-out;
423
- }
424
- .eds-form-control:-ms-input-placeholder {
425
- opacity: 0;
426
- -ms-transition: opacity 0.2s ease-in-out;
427
- transition: opacity 0.2s ease-in-out;
428
- }
429
- .eds-form-control::placeholder {
430
- opacity: 0;
431
- transition: opacity 0.2s ease-in-out;
432
- }
433
- .eds-form-control:focus {
434
- outline: none;
435
- }
436
- .eds-form-control:focus::-moz-placeholder {
437
- opacity: 1;
438
- }
439
- .eds-form-control:focus:-ms-input-placeholder {
440
- opacity: 1;
441
- }
442
- .eds-form-control:focus::placeholder {
443
- opacity: 1;
444
- }
445
- .eds-form-control__prepend, .eds-form-control__append {
446
- position: relative;
447
- margin: 0 1rem;
448
- line-height: inherit;
449
- }
450
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
451
- position: static;
452
- }
453
- .eds-form-control__prepend svg, .eds-form-control__append svg {
454
- top: 0.125rem;
455
- }
456
- .eds-form-control__prepend {
457
- margin-right: 0;
458
- }
459
- .eds-form-control__append {
460
- margin-left: 0;
461
- }/* DO NOT CHANGE!*/
462
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
463
- .eds-form-component--radio__container {
464
- display: flex;
465
- justify-content: center;
466
- align-items: center;
467
- position: relative;
468
- cursor: pointer;
469
- height: 2rem;
470
- width: -webkit-fit-content;
471
- width: -moz-fit-content;
472
- width: fit-content;
473
- -webkit-user-select: none;
474
- -moz-user-select: none;
475
- -ms-user-select: none;
476
- user-select: none;
477
- }
478
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
479
- border-color: #54568c;
480
- }
481
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
482
- background-color: #54568c;
483
- }
484
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
485
- border-color: #8285a8;
486
- }
487
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
488
- background-color: #8285a8;
489
- }
490
- .eds-form-component--radio__container input {
491
- position: absolute;
492
- opacity: 0;
493
- cursor: pointer;
494
- height: 0;
495
- width: 0;
496
- }
497
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
498
- height: 0.625rem;
499
- width: 0.625rem;
373
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
374
+ height: 0.625rem;
375
+ width: 0.625rem;
500
376
  }
501
377
  .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
502
378
  outline: none;
@@ -549,244 +425,90 @@
549
425
  background-color: #aeb7e2;
550
426
  }/* DO NOT CHANGE!*/
551
427
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
- .eds-switch {
428
+ .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
429
+ border-color: #181c56;
430
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
431
+ }
432
+ .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
433
+ border-color: #181c56;
434
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
435
+ }
436
+ .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
437
+ border-color: #ffffff;
438
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
439
+ }
440
+ .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
441
+ border-color: #ffffff;
442
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
443
+ }
444
+ .eds-radio-panel__wrapper input {
445
+ position: absolute;
446
+ opacity: 0;
553
447
  cursor: pointer;
448
+ height: 0;
449
+ width: 0;
450
+ }
451
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
452
+ border-color: #181c56;
453
+ background: #f5f5f8;
454
+ }
455
+ .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
456
+ border-color: #aeb7e2;
457
+ background: #393d79;
458
+ }
459
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
460
+ background-color: #181c56;
461
+ border-color: #181c56;
462
+ }
463
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
464
+ visibility: visible;
465
+ }
466
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
467
+ stroke: #5ac39a;
468
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
469
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
470
+ }
471
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
472
+ opacity: 0.5;
473
+ }
474
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
475
+ opacity: 0.5;
476
+ }
477
+ .eds-radio-panel__container {
478
+ background: #ffffff;
479
+ border: 0.125rem solid #d1d3d3;
480
+ border-radius: 0.25rem;
481
+ display: flex;
482
+ flex-direction: column;
483
+ justify-content: flex-start;
484
+ min-width: 20rem;
485
+ position: relative;
486
+ padding: 1rem;
554
487
  -webkit-user-select: none;
555
488
  -moz-user-select: none;
556
489
  -ms-user-select: none;
557
490
  user-select: none;
558
- padding: 0.5rem 0;
559
491
  width: -webkit-fit-content;
560
492
  width: -moz-fit-content;
561
493
  width: fit-content;
562
494
  }
563
- .eds-switch input {
564
- opacity: 0;
565
- pointer-events: none;
566
- position: absolute;
495
+ .eds-contrast .eds-radio-panel__container {
496
+ background: #181c56;
497
+ border-color: #54568c;
567
498
  }
568
- .eds-switch--right {
499
+ .eds-radio-panel__title-wrapper {
569
500
  display: flex;
570
- flex-direction: row;
501
+ justify-content: space-between;
571
502
  align-items: center;
572
503
  }
573
- .eds-switch--bottom {
504
+ .eds-radio-panel__label {
574
505
  display: flex;
575
- flex-direction: column;
576
- align-items: center;
506
+ justify-content: center;
577
507
  }
578
- .eds-switch__circle {
579
- border-radius: 50%;
580
- height: 1.25rem;
581
- width: 1.25rem;
582
- content: "";
583
- display: flex;
584
- align-items: center;
585
- justify-content: center;
586
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
587
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
588
- background-color: #ffffff;
589
- top: 0.125rem;
590
- left: 0.125rem;
591
- position: relative;
592
- }
593
- .eds-switch__switch--large .eds-switch__circle {
594
- height: 1.75rem;
595
- width: 1.75rem;
596
- }
597
- .eds-switch .eds-switch__switch svg g,
598
- .eds-switch .eds-switch__switch path {
599
- fill: #949494;
600
- transition: fill ease-in-out 0.1s;
601
- }
602
- .eds-switch__switch {
603
- position: relative;
604
- background-color: #d1d3d3;
605
- content: "";
606
- display: block;
607
- transition: background-color 0.1s ease-in-out;
608
- height: 1.5rem;
609
- width: 3rem;
610
- border-radius: 1.5rem;
611
- }
612
- .eds-switch--right .eds-switch__switch {
613
- margin-right: 0.75rem;
614
- }
615
- :checked + .eds-switch__switch {
616
- background-color: var(--eds-switch-color);
617
- }
618
- :checked + .eds-switch__switch .eds-switch__circle {
619
- left: 1.625rem;
620
- }
621
- :checked + .eds-switch__switch .eds-switch__circle svg g,
622
- :checked + .eds-switch__switch .eds-switch__circle path {
623
- fill: var(--eds-switch-color);
624
- }
625
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
626
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
627
- fill: var(--eds-switch-color);
628
- }
629
- .eds-contrast :checked + .eds-switch__switch {
630
- background-color: var(--eds-switch-contrast-color);
631
- }
632
- :focus + .eds-switch__switch {
633
- outline: none;
634
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
635
- outline-offset: 0.125rem;
636
- }
637
- .eds-contrast :focus + .eds-switch__switch {
638
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
639
- }
640
- .eds-contrast .eds-switch__switch {
641
- background-color: #54568c;
642
- }
643
- .eds-switch__switch--large {
644
- width: 3.75rem;
645
- height: 2rem;
646
- border-radius: 3.75rem;
647
- }
648
- :checked + .eds-switch__switch--large .eds-switch__circle {
649
- left: 1.875rem;
650
- }
651
- .eds-switch__label--large--right {
652
- font-size: 1rem;
653
- }
654
- .eds-switch__label--large--bottom {
655
- font-size: 0.875rem;
656
- }
657
- .eds-switch__label--medium--right {
658
- font-size: 0.875rem;
659
- }
660
- .eds-switch__label--medium--bottom {
661
- font-size: 0.75rem;
662
- }/* DO NOT CHANGE!*/
663
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
664
- textarea.eds-form-control.eds-textarea {
665
- min-height: 7.75rem;
666
- resize: vertical;
667
- line-height: 1.5rem;
668
- }/* DO NOT CHANGE!*/
669
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
670
- .eds-textfield__clear-button {
671
- background: none;
672
- border: none;
673
- border-radius: 50%;
674
- color: inherit;
675
- cursor: pointer;
676
- display: flex;
677
- font: inherit;
678
- font-size: 1rem;
679
- line-height: 1rem;
680
- padding: 0.5rem;
681
- margin-right: -0.75rem;
682
- }
683
- .eds-textfield__clear-button-wrapper {
684
- display: flex;
685
- align-items: center;
686
- }
687
- .eds-textfield__clear-button:hover {
688
- background: #f3f3f3;
689
- }
690
- .eds-textfield__clear-button:focus {
691
- outline: none;
692
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
693
- }
694
-
695
- .eds-textfield__divider {
696
- content: "";
697
- display: block;
698
- background-color: #e9e9e9;
699
- height: 1.5rem;
700
- width: 1px;
701
- }
702
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
703
- background-color: #8285a8;
704
- }/* DO NOT CHANGE!*/
705
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
706
- .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
707
- border-color: #181c56;
708
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
709
- }
710
- .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
711
- border-color: #181c56;
712
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
713
- }
714
- .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
715
- border-color: #ffffff;
716
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
717
- }
718
- .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
719
- border-color: #ffffff;
720
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
721
- }
722
- .eds-radio-panel__wrapper input {
723
- position: absolute;
724
- opacity: 0;
725
- cursor: pointer;
726
- height: 0;
727
- width: 0;
728
- }
729
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
730
- border-color: #181c56;
731
- background: #f5f5f8;
732
- }
733
- .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
734
- border-color: #aeb7e2;
735
- background: #393d79;
736
- }
737
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
738
- background-color: #181c56;
739
- border-color: #181c56;
740
- }
741
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
742
- visibility: visible;
743
- }
744
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
745
- stroke: #5ac39a;
746
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
747
- animation: stroke ease-in-out 0.2s 0.1s forwards;
748
- }
749
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
750
- opacity: 0.5;
751
- }
752
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
753
- opacity: 0.5;
754
- }
755
- .eds-radio-panel__container {
756
- background: #ffffff;
757
- border: 0.125rem solid #d1d3d3;
758
- border-radius: 0.25rem;
759
- display: flex;
760
- flex-direction: column;
761
- justify-content: flex-start;
762
- min-width: 20rem;
763
- position: relative;
764
- padding: 1rem;
765
- -webkit-user-select: none;
766
- -moz-user-select: none;
767
- -ms-user-select: none;
768
- user-select: none;
769
- width: -webkit-fit-content;
770
- width: -moz-fit-content;
771
- width: fit-content;
772
- }
773
- .eds-contrast .eds-radio-panel__container {
774
- background: #181c56;
775
- border-color: #54568c;
776
- }
777
- .eds-radio-panel__title-wrapper {
778
- display: flex;
779
- justify-content: space-between;
780
- align-items: center;
781
- }
782
- .eds-radio-panel__label {
783
- display: flex;
784
- justify-content: center;
785
- }
786
- .eds-radio-panel__check {
787
- height: 2rem;
788
- width: 2rem;
789
- margin-left: 1rem;
508
+ .eds-radio-panel__check {
509
+ height: 2rem;
510
+ width: 2rem;
511
+ margin-left: 1rem;
790
512
  border-radius: 50%;
791
513
  border: 0.125rem solid #e9e9e9;
792
514
  display: flex;
@@ -845,130 +567,408 @@ textarea.eds-form-control.eds-textarea {
845
567
  stroke-width: 0.375rem;
846
568
  }/* DO NOT CHANGE!*/
847
569
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
848
- .eds-input-group {
849
- color: inherit;
850
- display: block;
570
+ .eds-form-control-wrapper {
571
+ --border-color: #181c56;
572
+ --border-color-hover: #aeb7e2;
573
+ align-items: center;
574
+ background-color: #ffffff;
575
+ border-radius: 0.25rem;
576
+ border: 0.125rem solid #d1d3d3;
577
+ box-shadow: 0 0 0 transparent;
578
+ color: #181c56;
579
+ display: flex;
851
580
  position: relative;
581
+ width: 100%;
582
+ min-height: 3rem;
583
+ transition: border-color 0.1s ease-in-out;
584
+ --textarea-label-background: $colors-brand-white;
585
+ /*
586
+ Some input controls require a darker design while inside a contrast block.
587
+ These elements require the `--dark` modifier, even on the wrapper.
588
+ */
852
589
  }
853
- .eds-input-group__label {
854
- color: #656782;
855
- display: flex;
856
- font-size: 1rem;
857
- position: absolute;
858
- line-height: 1rem;
859
- height: 3rem;
860
- padding: 1rem;
861
- padding-left: 0;
862
- margin-left: 1rem;
863
- top: -0.125rem;
864
- 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;
865
- -webkit-user-select: none;
866
- -moz-user-select: none;
867
- -ms-user-select: none;
868
- user-select: none;
869
- pointer-events: none;
590
+ .eds-contrast .eds-form-control-wrapper {
591
+ --border-color: #aeb7e2;
592
+ background-color: #ffffff;
593
+ border-color: #54568c;
870
594
  }
871
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
872
- top: calc(0.5rem - 0.125rem);
873
- font-size: 0.75rem;
874
- line-height: 0.75rem;
875
- height: 10px;
876
- padding: 0;
877
- margin-left: 1rem;
595
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
596
+ border-color: #181c56;
878
597
  }
879
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
880
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
881
- background: var(--textarea-label-background);
882
- width: calc( 100% - 1rem - 1rem - 4px );
598
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
599
+ border-color: #181c56;
883
600
  }
884
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
885
- top: 0.5rem;
886
- font-size: 0.875rem;
887
- line-height: 1rem;
888
- padding: 0;
889
- margin-left: 1rem;
601
+ .eds-contrast .eds-form-control-wrapper:hover {
602
+ border-color: #aeb7e2;
603
+ background: #ebebf1;
890
604
  }
891
- .eds-contrast .eds-input-group__label {
605
+ .eds-form-control-wrapper[focus-within] {
606
+ box-shadow: inset 0 0 0 1px var(--border-color);
607
+ }
608
+ .eds-form-control-wrapper:focus-within {
609
+ box-shadow: inset 0 0 0 1px var(--border-color);
610
+ }
611
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
612
+ border-color: #181c56;
613
+ --border-color: #aeb7e2;
614
+ box-shadow: 0 0 0 0.125rem var(--border-color);
615
+ }
616
+ .eds-contrast .eds-form-control-wrapper:focus-within {
617
+ border-color: #181c56;
618
+ --border-color: #aeb7e2;
619
+ box-shadow: 0 0 0 0.125rem var(--border-color);
620
+ }
621
+ .eds-form-control-wrapper ::-moz-placeholder {
622
+ color: #656782;
623
+ }
624
+ .eds-form-control-wrapper :-ms-input-placeholder {
625
+ color: #656782;
626
+ }
627
+ .eds-form-control-wrapper ::placeholder {
628
+ color: #656782;
629
+ }
630
+ .eds-form-control-wrapper--disabled {
631
+ background-color: #e9e9e9;
632
+ color: #656782;
633
+ border-color: transparent;
634
+ pointer-events: none;
635
+ }
636
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
637
+ display: none;
638
+ }
639
+ .eds-contrast .eds-form-control-wrapper--disabled {
640
+ background: #292b6a;
641
+ border-color: transparent;
892
642
  color: #8285a8;
893
643
  }
894
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
895
- color: #aeb7e2;
644
+ .eds-form-control-wrapper--readonly {
645
+ pointer-events: none;
646
+ cursor: default;
647
+ border-color: transparent;
648
+ background: #f8f8f8;
649
+ --textarea-label-background: $colors-greys-grey90;
896
650
  }
897
- .eds-form-control-wrapper--size-large .eds-input-group__label {
651
+ .eds-contrast .eds-form-control-wrapper--readonly {
652
+ background: #292b6a;
653
+ --textarea-label-background: $colors-blues-blue10;
654
+ color: #ffffff;
655
+ border-color: transparent;
656
+ }
657
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
658
+ display: none;
659
+ }
660
+ .eds-form-control-wrapper--size-medium .eds-form-control,
661
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
662
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
663
+ font-size: 1rem;
664
+ line-height: 1rem;
665
+ }
666
+ .eds-form-control-wrapper--size-large {
667
+ min-height: 4rem;
668
+ padding: 0 0.5rem;
669
+ }
670
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
671
+ border-width: 0.25rem;
672
+ }
673
+ .eds-form-control-wrapper--size-large .eds-form-control,
674
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
675
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
898
676
  font-size: 1.5rem;
899
677
  line-height: 2.25rem;
900
- height: 4rem;
901
678
  }
902
- .eds-input-group__label--filled {
903
- top: calc(0.5rem - 0.125rem);
904
- font-size: 0.75rem;
905
- line-height: 0.75rem;
906
- height: 10px;
907
- padding: 0;
908
- margin-left: 1rem;
679
+ .eds-form-control-wrapper--success {
680
+ border-color: #1a8e60;
681
+ --border-color: #1a8e60;
909
682
  }
910
- .eds-textarea__label .eds-input-group__label--filled {
911
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
912
- background: var(--textarea-label-background);
913
- width: calc( 100% - 1rem - 1rem - 4px );
683
+ .eds-form-control-wrapper--success:hover {
684
+ border-color: #5ac39a;
914
685
  }
915
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
916
- top: 0.5rem;
917
- font-size: 0.875rem;
686
+ .eds-form-control-wrapper--success[focus-within] {
687
+ border-color: #1a8e60;
688
+ }
689
+ .eds-form-control-wrapper--success:focus-within {
690
+ border-color: #1a8e60;
691
+ }
692
+ .eds-contrast .eds-form-control-wrapper--success {
693
+ border-color: #5ac39a;
694
+ --border-color: #5ac39a;
695
+ }
696
+ .eds-contrast .eds-form-control-wrapper--success:hover {
697
+ border-color: #1a8e60;
698
+ }
699
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
700
+ --border-color: #5ac39a;
701
+ border-color: #181c56;
702
+ }
703
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
704
+ --border-color: #5ac39a;
705
+ border-color: #181c56;
706
+ }
707
+ .eds-form-control-wrapper--error {
708
+ border-color: #d31b1b;
709
+ --border-color: #d31b1b;
710
+ }
711
+ .eds-form-control-wrapper--error:hover {
712
+ border-color: #ff9494;
713
+ }
714
+ .eds-form-control-wrapper--error[focus-within] {
715
+ border-color: #d31b1b;
716
+ }
717
+ .eds-form-control-wrapper--error:focus-within {
718
+ border-color: #d31b1b;
719
+ }
720
+ .eds-contrast .eds-form-control-wrapper--error {
721
+ border-color: #ff9494;
722
+ --border-color: #ff9494;
723
+ }
724
+ .eds-contrast .eds-form-control-wrapper--error:hover {
725
+ border-color: #d31b1b;
726
+ }
727
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
728
+ border-color: #181c56;
729
+ --border-color: #ff9494;
730
+ }
731
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
732
+ border-color: #181c56;
733
+ --border-color: #ff9494;
734
+ }
735
+ .eds-contrast .eds-form-control-wrapper--dark {
736
+ background-color: #181c56;
737
+ color: #ffffff;
738
+ }
739
+ .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
740
+ color: #aeb7e2;
741
+ }
742
+ .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
743
+ color: #aeb7e2;
744
+ }
745
+ .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
746
+ color: #aeb7e2;
747
+ }
748
+ .eds-contrast .eds-form-control-wrapper--dark:hover {
749
+ border-color: #aeb7e2;
750
+ }
751
+ .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
752
+ background-color: #292b6a;
753
+ border-color: #aeb7e2;
754
+ }
755
+ .eds-contrast .eds-form-control-wrapper--dark:focus-within {
756
+ background-color: #292b6a;
757
+ border-color: #aeb7e2;
758
+ }
759
+ .eds-contrast .eds-form-control-wrapper--dark * {
760
+ background-color: transparent;
761
+ color: inherit;
762
+ }
763
+ .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
764
+ background-color: #292b6a;
765
+ color: #8285a8;
766
+ }
767
+
768
+ .eds-form-control {
769
+ -webkit-appearance: none;
770
+ -moz-appearance: none;
771
+ appearance: none;
772
+ background-color: transparent;
773
+ border: 0;
774
+ color: inherit;
775
+ display: block;
776
+ font-family: inherit;
918
777
  line-height: 1rem;
919
- padding: 0;
920
- margin-left: 1rem;
778
+ font-size: 1rem;
779
+ padding: 20px 1rem 0.25rem;
780
+ width: 100%;
921
781
  }
922
- .eds-input-group__label-tooltip-icon {
923
- color: #0082b9;
924
- padding-left: 0.25rem;
925
- padding-right: 0.25rem;
782
+ .eds-form-control::-moz-placeholder {
783
+ opacity: 0;
784
+ -moz-transition: opacity 0.2s ease-in-out;
785
+ transition: opacity 0.2s ease-in-out;
786
+ }
787
+ .eds-form-control:-ms-input-placeholder {
788
+ opacity: 0;
789
+ -ms-transition: opacity 0.2s ease-in-out;
790
+ transition: opacity 0.2s ease-in-out;
791
+ }
792
+ .eds-form-control::placeholder {
793
+ opacity: 0;
794
+ transition: opacity 0.2s ease-in-out;
795
+ }
796
+ .eds-form-control:focus {
797
+ outline: none;
798
+ }
799
+ .eds-form-control:focus::-moz-placeholder {
800
+ opacity: 1;
801
+ }
802
+ .eds-form-control:focus:-ms-input-placeholder {
803
+ opacity: 1;
804
+ }
805
+ .eds-form-control:focus::placeholder {
806
+ opacity: 1;
807
+ }
808
+ .eds-form-control__prepend, .eds-form-control__append {
809
+ position: relative;
810
+ margin: 0 1rem;
811
+ line-height: inherit;
812
+ }
813
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
814
+ position: static;
815
+ }
816
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
817
+ top: 0.125rem;
818
+ }
819
+ .eds-form-control__prepend {
820
+ margin-right: 0;
821
+ }
822
+ .eds-form-control__append {
823
+ margin-left: 0;
824
+ }/* DO NOT CHANGE!*/
825
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
826
+ .eds-textfield__clear-button {
827
+ background: none;
828
+ border: none;
829
+ border-radius: 50%;
830
+ color: inherit;
831
+ cursor: pointer;
926
832
  display: flex;
927
- align-items: center;
928
- cursor: help;
833
+ font: inherit;
929
834
  font-size: 1rem;
835
+ line-height: 1rem;
836
+ padding: 0.5rem;
837
+ margin-right: -0.75rem;
930
838
  }
931
-
932
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
933
- top: calc(0.5rem - 0.125rem);
934
- font-size: 0.75rem;
935
- line-height: 0.75rem;
936
- height: 10px;
937
- padding: 0;
938
- margin-left: 1rem;
839
+ .eds-textfield__clear-button-wrapper {
840
+ display: flex;
841
+ align-items: center;
842
+ }
843
+ .eds-textfield__clear-button:hover {
844
+ background: #f3f3f3;
845
+ }
846
+ .eds-textfield__clear-button:focus {
847
+ outline: none;
848
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
939
849
  }
940
850
 
941
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
942
- top: calc(0.5rem - 0.125rem);
943
- font-size: 0.75rem;
944
- line-height: 0.75rem;
945
- height: 10px;
946
- padding: 0;
947
- margin-left: 1rem;
851
+ .eds-textfield__divider {
852
+ content: "";
853
+ display: block;
854
+ background-color: #e9e9e9;
855
+ height: 1.5rem;
856
+ width: 1px;
948
857
  }
949
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
950
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
951
- background: var(--textarea-label-background);
952
- width: calc( 100% - 1rem - 1rem - 4px );
858
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
859
+ background-color: #8285a8;
860
+ }/* DO NOT CHANGE!*/
861
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
862
+ .eds-switch {
863
+ cursor: pointer;
864
+ -webkit-user-select: none;
865
+ -moz-user-select: none;
866
+ -ms-user-select: none;
867
+ user-select: none;
868
+ padding: 0.5rem 0;
869
+ width: -webkit-fit-content;
870
+ width: -moz-fit-content;
871
+ width: fit-content;
953
872
  }
954
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
955
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
956
- background: var(--textarea-label-background);
957
- width: calc( 100% - 1rem - 1rem - 4px );
873
+ .eds-switch input {
874
+ opacity: 0;
875
+ pointer-events: none;
876
+ position: absolute;
958
877
  }
959
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
960
- top: 0.5rem;
878
+ .eds-switch--right {
879
+ display: flex;
880
+ flex-direction: row;
881
+ align-items: center;
882
+ }
883
+ .eds-switch--bottom {
884
+ display: flex;
885
+ flex-direction: column;
886
+ align-items: center;
887
+ }
888
+ .eds-switch__circle {
889
+ border-radius: 50%;
890
+ height: 1.25rem;
891
+ width: 1.25rem;
892
+ content: "";
893
+ display: flex;
894
+ align-items: center;
895
+ justify-content: center;
896
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
897
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
898
+ background-color: #ffffff;
899
+ top: 0.125rem;
900
+ left: 0.125rem;
901
+ position: relative;
902
+ }
903
+ .eds-switch__switch--large .eds-switch__circle {
904
+ height: 1.75rem;
905
+ width: 1.75rem;
906
+ }
907
+ .eds-switch .eds-switch__switch svg g,
908
+ .eds-switch .eds-switch__switch path {
909
+ fill: #949494;
910
+ transition: fill ease-in-out 0.1s;
911
+ }
912
+ .eds-switch__switch {
913
+ position: relative;
914
+ background-color: #d1d3d3;
915
+ content: "";
916
+ display: block;
917
+ transition: background-color 0.1s ease-in-out;
918
+ height: 1.5rem;
919
+ width: 3rem;
920
+ border-radius: 1.5rem;
921
+ }
922
+ .eds-switch--right .eds-switch__switch {
923
+ margin-right: 0.75rem;
924
+ }
925
+ :checked + .eds-switch__switch {
926
+ background-color: var(--eds-switch-color);
927
+ }
928
+ :checked + .eds-switch__switch .eds-switch__circle {
929
+ left: 1.625rem;
930
+ }
931
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
932
+ :checked + .eds-switch__switch .eds-switch__circle path {
933
+ fill: var(--eds-switch-color);
934
+ }
935
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
936
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
937
+ fill: var(--eds-switch-color);
938
+ }
939
+ .eds-contrast :checked + .eds-switch__switch {
940
+ background-color: var(--eds-switch-contrast-color);
941
+ }
942
+ :focus + .eds-switch__switch {
943
+ outline: none;
944
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
945
+ outline-offset: 0.125rem;
946
+ }
947
+ .eds-contrast :focus + .eds-switch__switch {
948
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
949
+ }
950
+ .eds-contrast .eds-switch__switch {
951
+ background-color: #54568c;
952
+ }
953
+ .eds-switch__switch--large {
954
+ width: 3.75rem;
955
+ height: 2rem;
956
+ border-radius: 3.75rem;
957
+ }
958
+ :checked + .eds-switch__switch--large .eds-switch__circle {
959
+ left: 1.875rem;
960
+ }
961
+ .eds-switch__label--large--right {
962
+ font-size: 1rem;
963
+ }
964
+ .eds-switch__label--large--bottom {
961
965
  font-size: 0.875rem;
962
- line-height: 1rem;
963
- padding: 0;
964
- margin-left: 1rem;
965
966
  }
966
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
967
- top: 0.5rem;
967
+ .eds-switch__label--medium--right {
968
968
  font-size: 0.875rem;
969
- line-height: 1rem;
970
- padding: 0;
971
- margin-left: 1rem;
969
+ }
970
+ .eds-switch__label--medium--bottom {
971
+ font-size: 0.75rem;
972
972
  }/* DO NOT CHANGE!*/
973
973
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
974
974
  .eds-segmented-control {