@entur/menu 7.3.0 → 7.4.0

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
@@ -368,162 +368,172 @@
368
368
  --basecolors-text-subdued:#b3b4bd;
369
369
  --basecolors-text-subduedalt:#b3b4bd;
370
370
  }
371
- /*
372
- * Typography Display Modes
373
- *
374
- * This system allows you to control typography scaling based on view size.
375
- * Use the vie-mode attribute to switch between different typography scales:
376
- *
377
- * - Compact: [data-view-mode='compact'] or no attribute (responsive)
378
- * - Display: [data-view-mode='display'] for big screens, kiosks, etc.
379
- *
380
- * Usage:
381
- * <html data-view-mode="display"> or <div data-view-mode="display">
382
- *
383
- * The system automatically handles responsive behavior within each mode.
384
- */
385
- :root,
386
- [data-view-mode=standard]{
387
- /* number */
388
- --font-line-height-body-xs:var(--size-8);
389
- --font-line-height-body-s:var(--size-9);
390
- --font-line-height-body-m:var(--size-10);
391
- --font-line-height-body-lg:var(--size-11);
392
- --font-line-height-body-xl:var(--size-12);
393
- --font-line-height-heading-xs:var(--size-8);
394
- --font-line-height-heading-s:var(--size-9);
395
- --font-line-height-heading-m:var(--size-10);
396
- --font-line-height-heading-lg:var(--size-11);
397
- --font-line-height-heading-xl:var(--size-13);
398
- --font-line-height-heading-2xl:var(--size-15);
399
- --font-line-height-label-s:var(--size-8);
400
- --font-line-height-label-m:var(--size-9);
401
- --font-line-height-label-lg:var(--size-10);
402
- --font-paragraph-spacing-body-xs:var(--size-5);
403
- --font-paragraph-spacing-body-s:var(--size-6);
404
- --font-paragraph-spacing-body-m:var(--size-8);
405
- --font-paragraph-spacing-body-lg:var(--size-10);
406
- --font-paragraph-spacing-body-xl:var(--size-10);
407
- --font-paragraph-spacing-heading-xs:var(--size-5);
408
- --font-paragraph-spacing-heading-m:var(--size-6);
409
- --font-paragraph-spacing-heading-s:var(--size-6);
410
- --font-paragraph-spacing-heading-lg:var(--size-8);
411
- --font-paragraph-spacing-heading-xl:var(--size-9);
412
- --font-paragraph-spacing-heading-2xl:var(--size-10);
413
- --font-size-body-xs:var(--size-6);
414
- --font-size-body-s:var(--size-7);
415
- --font-size-body-m:var(--size-8);
416
- --font-size-body-lg:var(--size-9);
417
- --font-size-body-xl:var(--size-10);
418
- --font-size-heading-xs:var(--size-7);
419
- --font-size-heading-s:var(--size-8);
420
- --font-size-heading-m:var(--size-9);
421
- --font-size-heading-lg:var(--size-10);
422
- --font-size-heading-xl:var(--size-12);
423
- --font-size-heading-2xl:var(--size-14);
424
- --font-size-label-s:var(--size-7);
425
- --font-size-label-m:var(--size-8);
426
- --font-size-label-lg:var(--size-9);
427
- /* string */
428
- --font-family-nationale:nationale;
371
+
372
+ [data-view-mode=standard],
373
+ :root{
374
+ --font-line-height-body-xs:1rem;
375
+ --font-line-height-body-s:1.25rem;
376
+ --font-line-height-body-m:1.5rem;
377
+ --font-line-height-body-lg:1.75rem;
378
+ --font-line-height-body-xl:2rem;
379
+ --font-line-height-heading-xs:1rem;
380
+ --font-line-height-heading-s:1.25rem;
381
+ --font-line-height-heading-m:1.5rem;
382
+ --font-line-height-heading-lg:1.75rem;
383
+ --font-line-height-heading-xl:2.25rem;
384
+ --font-line-height-heading-2xl:2.75rem;
385
+ --font-line-height-label-s:1rem;
386
+ --font-line-height-label-m:1.25rem;
387
+ --font-line-height-label-lg:1.5rem;
388
+ --font-paragraph-spacing-body-xs:0.5rem;
389
+ --font-paragraph-spacing-body-s:0.75rem;
390
+ --font-paragraph-spacing-body-m:1rem;
391
+ --font-paragraph-spacing-body-lg:1.5rem;
392
+ --font-paragraph-spacing-body-xl:1.5rem;
393
+ --font-paragraph-spacing-heading-xs:0.5rem;
394
+ --font-paragraph-spacing-heading-m:0.75rem;
395
+ --font-paragraph-spacing-heading-s:0.75rem;
396
+ --font-paragraph-spacing-heading-lg:1rem;
397
+ --font-paragraph-spacing-heading-xl:1.25rem;
398
+ --font-paragraph-spacing-heading-2xl:1.5rem;
399
+ --font-size-body-xs:0.75rem;
400
+ --font-size-body-s:0.875rem;
401
+ --font-size-body-m:1rem;
402
+ --font-size-body-lg:1.25rem;
403
+ --font-size-body-xl:1.5rem;
404
+ --font-size-heading-xs:0.875rem;
405
+ --font-size-heading-s:1rem;
406
+ --font-size-heading-m:1.25rem;
407
+ --font-size-heading-lg:1.5rem;
408
+ --font-size-heading-xl:2rem;
409
+ --font-size-heading-2xl:2.5rem;
410
+ --font-size-label-s:0.875rem;
411
+ --font-size-label-m:1rem;
412
+ --font-size-label-lg:1.25rem;
413
+ --font-family-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
414
+ --font-family-nationale:Nationale;
429
415
  --font-weight-body:500;
430
416
  --font-weight-heading:600;
431
417
  }
432
418
 
433
419
  [data-view-mode=compact]{
434
- /* number */
435
- --font-line-height-body-xs:var(--size-8);
436
- --font-line-height-body-s:var(--size-9);
437
- --font-line-height-body-lg:var(--size-10);
438
- --font-line-height-body-m:var(--size-10);
439
- --font-line-height-body-xl:var(--size-11);
440
- --font-line-height-heading-s:var(--size-8);
441
- --font-line-height-heading-xs:var(--size-8);
442
- --font-line-height-heading-m:var(--size-9);
443
- --font-line-height-heading-lg:var(--size-10);
444
- --font-line-height-heading-xl:var(--size-11);
445
- --font-line-height-heading-2xl:var(--size-12);
446
- --font-line-height-label-m:var(--size-8);
447
- --font-line-height-label-s:var(--size-8);
448
- --font-line-height-label-lg:var(--size-9);
449
- --font-paragraph-spacing-body-xs:var(--size-5);
450
- --font-paragraph-spacing-body-s:var(--size-6);
451
- --font-paragraph-spacing-body-m:var(--size-8);
452
- --font-paragraph-spacing-body-lg:var(--size-9);
453
- --font-paragraph-spacing-body-xl:var(--size-9);
454
- --font-paragraph-spacing-heading-s:var(--size-5);
455
- --font-paragraph-spacing-heading-xs:var(--size-5);
456
- --font-paragraph-spacing-heading-lg:var(--size-6);
457
- --font-paragraph-spacing-heading-m:var(--size-6);
458
- --font-paragraph-spacing-heading-2xl:var(--size-8);
459
- --font-paragraph-spacing-heading-xl:var(--size-8);
460
- --font-size-body-xs:var(--size-6);
461
- --font-size-body-s:var(--size-7);
462
- --font-size-body-lg:var(--size-8);
463
- --font-size-body-m:var(--size-8);
464
- --font-size-body-xl:var(--size-9);
465
- --font-size-heading-xs:var(--size-6);
466
- --font-size-heading-s:var(--size-7);
467
- --font-size-heading-m:var(--size-8);
468
- --font-size-heading-lg:var(--size-9);
469
- --font-size-heading-xl:var(--size-10);
470
- --font-size-heading-2xl:var(--size-11);
471
- --font-size-label-s:var(--size-7);
472
- --font-size-label-m:var(--size-8);
473
- --font-size-label-lg:var(--size-9);
474
- /* string */
475
- --font-family-nationale:nationale;
420
+ --font-line-height-body-xs:1rem;
421
+ --font-line-height-body-s:1.25rem;
422
+ --font-line-height-body-lg:1.5rem;
423
+ --font-line-height-body-m:1.5rem;
424
+ --font-line-height-body-xl:1.75rem;
425
+ --font-line-height-heading-s:1rem;
426
+ --font-line-height-heading-xs:1rem;
427
+ --font-line-height-heading-m:1.25rem;
428
+ --font-line-height-heading-lg:1.5rem;
429
+ --font-line-height-heading-xl:1.75rem;
430
+ --font-line-height-heading-2xl:2rem;
431
+ --font-line-height-label-m:1rem;
432
+ --font-line-height-label-s:1rem;
433
+ --font-line-height-label-lg:1.25rem;
434
+ --font-paragraph-spacing-body-xs:0.5rem;
435
+ --font-paragraph-spacing-body-s:0.75rem;
436
+ --font-paragraph-spacing-body-m:1rem;
437
+ --font-paragraph-spacing-body-lg:1.25rem;
438
+ --font-paragraph-spacing-body-xl:1.25rem;
439
+ --font-paragraph-spacing-heading-s:0.5rem;
440
+ --font-paragraph-spacing-heading-xs:0.5rem;
441
+ --font-paragraph-spacing-heading-lg:0.75rem;
442
+ --font-paragraph-spacing-heading-m:0.75rem;
443
+ --font-paragraph-spacing-heading-2xl:1rem;
444
+ --font-paragraph-spacing-heading-xl:1rem;
445
+ --font-size-body-xs:0.75rem;
446
+ --font-size-body-s:0.875rem;
447
+ --font-size-body-lg:1rem;
448
+ --font-size-body-m:1rem;
449
+ --font-size-body-xl:1.25rem;
450
+ --font-size-heading-xs:0.75rem;
451
+ --font-size-heading-s:0.875rem;
452
+ --font-size-heading-m:1rem;
453
+ --font-size-heading-lg:1.25rem;
454
+ --font-size-heading-xl:1.5rem;
455
+ --font-size-heading-2xl:1.75rem;
456
+ --font-size-label-s:0.875rem;
457
+ --font-size-label-m:1rem;
458
+ --font-size-label-lg:1.25rem;
459
+ --font-family-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
460
+ --font-family-nationale:Nationale;
476
461
  --font-weight-body:500;
477
462
  --font-weight-heading:600;
478
463
  }
479
464
 
480
465
  [data-view-mode=display]{
481
- /* number */
482
- --font-line-height-body-xs:var(--size-11);
483
- --font-line-height-body-s:var(--size-12);
484
- --font-line-height-body-m:var(--size-15);
485
- --font-line-height-body-lg:var(--size-18);
486
- --font-line-height-body-xl:var(--size-19);
487
- --font-line-height-heading-xs:var(--size-11);
488
- --font-line-height-heading-s:var(--size-13);
489
- --font-line-height-heading-m:var(--size-15);
490
- --font-line-height-heading-lg:var(--size-18);
491
- --font-line-height-heading-xl:var(--size-20);
492
- --font-line-height-heading-2xl:var(--size-21);
493
- --font-line-height-label-s:var(--size-11);
494
- --font-line-height-label-m:var(--size-13);
495
- --font-line-height-label-lg:var(--size-15);
496
- --font-paragraph-spacing-body-xs:var(--size-9);
497
- --font-paragraph-spacing-body-s:var(--size-10);
498
- --font-paragraph-spacing-body-m:var(--size-12);
499
- --font-paragraph-spacing-body-lg:var(--size-14);
500
- --font-paragraph-spacing-body-xl:var(--size-16);
501
- --font-paragraph-spacing-heading-xs:var(--size-6);
502
- --font-paragraph-spacing-heading-s:var(--size-8);
503
- --font-paragraph-spacing-heading-m:var(--size-9);
504
- --font-paragraph-spacing-heading-lg:var(--size-10);
505
- --font-paragraph-spacing-heading-xl:var(--size-12);
506
- --font-paragraph-spacing-heading-2xl:var(--size-13);
507
- --font-size-body-xs:var(--size-9);
508
- --font-size-body-s:var(--size-10);
509
- --font-size-body-m:var(--size-12);
510
- --font-size-body-lg:var(--size-14);
511
- --font-size-body-xl:var(--size-16);
512
- --font-size-heading-xs:var(--size-10);
513
- --font-size-heading-s:var(--size-12);
514
- --font-size-heading-m:var(--size-14);
515
- --font-size-heading-lg:var(--size-16);
516
- --font-size-heading-xl:var(--size-19);
517
- --font-size-heading-2xl:var(--size-20);
518
- --font-size-label-s:var(--size-10);
519
- --font-size-label-m:var(--size-12);
520
- --font-size-label-lg:var(--size-14);
521
- /* string */
522
- --font-family-nationale:nationale;
466
+ --font-line-height-body-xs:1.75rem;
467
+ --font-line-height-body-s:2rem;
468
+ --font-line-height-body-m:2.75rem;
469
+ --font-line-height-body-lg:3.5rem;
470
+ --font-line-height-body-xl:4rem;
471
+ --font-line-height-heading-xs:1.75rem;
472
+ --font-line-height-heading-s:2.25rem;
473
+ --font-line-height-heading-m:2.75rem;
474
+ --font-line-height-heading-lg:3.5rem;
475
+ --font-line-height-heading-xl:4.5rem;
476
+ --font-line-height-heading-2xl:5rem;
477
+ --font-line-height-label-s:1.75rem;
478
+ --font-line-height-label-m:2.25rem;
479
+ --font-line-height-label-lg:2.75rem;
480
+ --font-paragraph-spacing-body-xs:1.25rem;
481
+ --font-paragraph-spacing-body-s:1.5rem;
482
+ --font-paragraph-spacing-body-m:2rem;
483
+ --font-paragraph-spacing-body-lg:2.5rem;
484
+ --font-paragraph-spacing-body-xl:3rem;
485
+ --font-paragraph-spacing-heading-xs:0.75rem;
486
+ --font-paragraph-spacing-heading-s:1rem;
487
+ --font-paragraph-spacing-heading-m:1.25rem;
488
+ --font-paragraph-spacing-heading-lg:1.5rem;
489
+ --font-paragraph-spacing-heading-xl:2rem;
490
+ --font-paragraph-spacing-heading-2xl:2.25rem;
491
+ --font-size-body-xs:1.25rem;
492
+ --font-size-body-s:1.5rem;
493
+ --font-size-body-m:2rem;
494
+ --font-size-body-lg:2.5rem;
495
+ --font-size-body-xl:3rem;
496
+ --font-size-heading-xs:1.5rem;
497
+ --font-size-heading-s:2rem;
498
+ --font-size-heading-m:2.5rem;
499
+ --font-size-heading-lg:3rem;
500
+ --font-size-heading-xl:4rem;
501
+ --font-size-heading-2xl:4.5rem;
502
+ --font-size-label-s:1.5rem;
503
+ --font-size-label-m:2rem;
504
+ --font-size-label-lg:2.5rem;
505
+ --font-family-mono:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
506
+ --font-family-nationale:Nationale;
523
507
  --font-weight-body:500;
524
508
  --font-weight-heading:600;
525
509
  }
526
510
 
511
+ @media (max-width: 599.98px){
512
+ :root:where(:not([data-view-mode])),
513
+ [data-view-mode=standard]{
514
+ --font-line-height-body-xl:1.75rem;
515
+ --font-line-height-heading-s:1rem;
516
+ --font-line-height-heading-xs:1rem;
517
+ --font-line-height-heading-m:1.25rem;
518
+ --font-line-height-heading-lg:1.5rem;
519
+ --font-line-height-heading-xl:1.75rem;
520
+ --font-line-height-heading-2xl:2rem;
521
+ --font-paragraph-spacing-body-xl:1.25rem;
522
+ --font-paragraph-spacing-heading-s:0.5rem;
523
+ --font-paragraph-spacing-heading-xs:0.5rem;
524
+ --font-paragraph-spacing-heading-lg:0.75rem;
525
+ --font-paragraph-spacing-heading-m:0.75rem;
526
+ --font-paragraph-spacing-heading-2xl:1rem;
527
+ --font-paragraph-spacing-heading-xl:1rem;
528
+ --font-size-body-xl:1.25rem;
529
+ --font-size-heading-xs:0.75rem;
530
+ --font-size-heading-s:0.875rem;
531
+ --font-size-heading-m:1rem;
532
+ --font-size-heading-lg:1.25rem;
533
+ --font-size-heading-xl:1.5rem;
534
+ --font-size-heading-2xl:1.75rem;
535
+ }
536
+ }
527
537
  :root{
528
538
  --eds-menu:1;
529
539
  --reach-menu-button:1;