@entur/typography 3.0.3 → 3.0.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/beta/styles/index.css +11 -95
- package/dist/styles.css +13 -123
- package/package.json +4 -4
|
@@ -286,17 +286,14 @@
|
|
|
286
286
|
*,
|
|
287
287
|
::before,
|
|
288
288
|
::after{
|
|
289
|
-
|
|
290
|
-
-moz-box-sizing:border-box;
|
|
291
|
-
box-sizing:border-box;
|
|
289
|
+
box-sizing:border-box;
|
|
292
290
|
}
|
|
293
291
|
html{
|
|
294
292
|
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
|
|
295
|
-
font-family:system-ui,
|
|
293
|
+
font-family:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
296
294
|
line-height:1.15; /* 1. Correct the line height in all browsers. */
|
|
297
295
|
-webkit-text-size-adjust:100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
|
|
298
296
|
-moz-tab-size:4;
|
|
299
|
-
-o-tab-size:4;
|
|
300
297
|
tab-size:4; /* 3. Use a more readable tab size (opinionated). */
|
|
301
298
|
}
|
|
302
299
|
/*
|
|
@@ -621,63 +618,39 @@
|
|
|
621
618
|
line-height:var(--font-line-height-body-xl);
|
|
622
619
|
}
|
|
623
620
|
.eds-text--paragraph:where(:has(+ .eds-heading)){
|
|
624
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-m) + 1rem);
|
|
625
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-m) + 1rem);
|
|
626
621
|
margin-bottom:calc(var(--font-line-height-body-m) + 1rem);
|
|
627
622
|
}
|
|
628
623
|
.eds-text--subparagraph:where(:has(+ .eds-heading)){
|
|
629
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-s) + 1rem);
|
|
630
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-s) + 1rem);
|
|
631
624
|
margin-bottom:calc(var(--font-line-height-body-s) + 1rem);
|
|
632
625
|
}
|
|
633
626
|
.eds-text--leading:where(:has(+ .eds-heading)){
|
|
634
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-xl) + 1rem);
|
|
635
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-xl) + 1rem);
|
|
636
627
|
margin-bottom:calc(var(--font-line-height-body-xl) + 1rem);
|
|
637
628
|
}
|
|
638
629
|
.eds-text--quote:where(:has(+ .eds-heading)){
|
|
639
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
640
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
641
630
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
642
631
|
}
|
|
643
632
|
.eds-text--caption:where(:has(+ .eds-heading)){
|
|
644
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-xs) + 1rem);
|
|
645
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-xs) + 1rem);
|
|
646
633
|
margin-bottom:calc(var(--font-line-height-body-xs) + 1rem);
|
|
647
634
|
}
|
|
648
635
|
.eds-text--label:where(:has(+ .eds-heading)){
|
|
649
|
-
margin-bottom:-webkit-calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
650
|
-
margin-bottom:-moz-calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
651
636
|
margin-bottom:calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
652
637
|
}
|
|
653
638
|
.eds-text--sublabel:where(:has(+ .eds-heading)){
|
|
654
|
-
margin-bottom:-webkit-calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
655
|
-
margin-bottom:-moz-calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
656
639
|
margin-bottom:calc(var(--font-paragraph-spacing-body-xs) + 1rem);
|
|
657
640
|
}
|
|
658
641
|
.eds-text--unordered-list:where(:has(+ .eds-heading)){
|
|
659
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
660
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
661
642
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
662
643
|
}
|
|
663
644
|
.eds-text--numbered-list:where(:has(+ .eds-heading)){
|
|
664
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
665
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
666
645
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
667
646
|
}
|
|
668
647
|
.eds-text--blockquote:where(:has(+ .eds-heading)){
|
|
669
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
670
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
671
648
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
672
649
|
}
|
|
673
650
|
.eds-text--preformatted-text:where(:has(+ .eds-heading)){
|
|
674
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
675
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
676
651
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
677
652
|
}
|
|
678
653
|
.eds-text--code-text:where(:has(+ .eds-heading)){
|
|
679
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
680
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
681
654
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
682
655
|
}
|
|
683
656
|
.eds-text--leading{
|
|
@@ -732,9 +705,7 @@
|
|
|
732
705
|
.eds-text--code-text, .eds-text--preformatted-text{
|
|
733
706
|
background-color:var(--components-typography-codetext-standard-fill);
|
|
734
707
|
border:0.0625rem solid var(--components-typography-codetext-standard-border);
|
|
735
|
-
|
|
736
|
-
-moz-border-radius:0.25rem;
|
|
737
|
-
border-radius:0.25rem;
|
|
708
|
+
border-radius:0.25rem;
|
|
738
709
|
color:var(--components-typography-codetext-standard-text);
|
|
739
710
|
font-family:Monaco, monospace;
|
|
740
711
|
font-size:0.875rem;
|
|
@@ -748,14 +719,12 @@
|
|
|
748
719
|
padding:1rem;
|
|
749
720
|
white-space:pre-wrap;
|
|
750
721
|
word-break:keep-all;
|
|
751
|
-
margin-bottom:-webkit-calc(var(--font-line-height-body-lg) + 1rem);
|
|
752
|
-
margin-bottom:-moz-calc(var(--font-line-height-body-lg) + 1rem);
|
|
753
722
|
margin-bottom:calc(var(--font-line-height-body-lg) + 1rem);
|
|
754
723
|
}
|
|
755
724
|
.eds-text--code-text{
|
|
756
725
|
display:inline-block;
|
|
757
726
|
word-wrap:break-word;
|
|
758
|
-
|
|
727
|
+
overflow-wrap:anywhere;
|
|
759
728
|
padding:0 0.25rem;
|
|
760
729
|
}
|
|
761
730
|
.eds-text--weight-400, .eds-text--weight-regular{
|
|
@@ -857,30 +826,19 @@
|
|
|
857
826
|
-webkit-text-decoration:none;
|
|
858
827
|
text-decoration:none;
|
|
859
828
|
position:relative;
|
|
860
|
-
background-image:-webkit-linear-gradient(330deg, var(--components-typography-basetext-standard-text-accent) 0%, var(--components-typography-basetext-standard-text-accent) 100%);
|
|
861
|
-
background-image:-moz-linear-gradient(330deg, var(--components-typography-basetext-standard-text-accent) 0%, var(--components-typography-basetext-standard-text-accent) 100%);
|
|
862
|
-
background-image:-o-linear-gradient(330deg, var(--components-typography-basetext-standard-text-accent) 0%, var(--components-typography-basetext-standard-text-accent) 100%);
|
|
863
829
|
background-image:linear-gradient(120deg, var(--components-typography-basetext-standard-text-accent) 0%, var(--components-typography-basetext-standard-text-accent) 100%);
|
|
864
830
|
background-repeat:no-repeat;
|
|
865
|
-
|
|
866
|
-
-o-background-size:100% 0.125rem;
|
|
867
|
-
background-size:100% 0.125rem;
|
|
831
|
+
background-size:100% 0.125rem;
|
|
868
832
|
background-position:0 100%;
|
|
869
833
|
}
|
|
870
834
|
:where(.eds-contrast) .eds-text--link, :where(.eds-contrast) .eds-text--link:where(:link), :where(.eds-contrast) .eds-text--link:where(:visited){
|
|
871
|
-
background-image:-webkit-linear-gradient(330deg, var(--components-typography-basetext-contrast-text-accent) 0%, var(--components-typography-basetext-contrast-text-accent) 100%);
|
|
872
|
-
background-image:-moz-linear-gradient(330deg, var(--components-typography-basetext-contrast-text-accent) 0%, var(--components-typography-basetext-contrast-text-accent) 100%);
|
|
873
|
-
background-image:-o-linear-gradient(330deg, var(--components-typography-basetext-contrast-text-accent) 0%, var(--components-typography-basetext-contrast-text-accent) 100%);
|
|
874
835
|
background-image:linear-gradient(120deg, var(--components-typography-basetext-contrast-text-accent) 0%, var(--components-typography-basetext-contrast-text-accent) 100%);
|
|
875
836
|
}
|
|
876
837
|
.eds-text--link:where(:hover){
|
|
877
|
-
|
|
878
|
-
-moz-animation:eds-link-underline 0.3s ease-in;
|
|
879
|
-
-o-animation:eds-link-underline 0.3s ease-in;
|
|
880
|
-
animation:eds-link-underline 0.3s ease-in;
|
|
838
|
+
animation:eds-link-underline 0.3s ease-in;
|
|
881
839
|
cursor:pointer;
|
|
882
840
|
}
|
|
883
|
-
|
|
841
|
+
@keyframes eds-link-underline{
|
|
884
842
|
from{
|
|
885
843
|
background-size:0% 0.125rem;
|
|
886
844
|
}
|
|
@@ -888,39 +846,8 @@
|
|
|
888
846
|
background-size:100% 0.125rem;
|
|
889
847
|
}
|
|
890
848
|
}
|
|
891
|
-
@-moz-keyframes eds-link-underline{
|
|
892
|
-
from{
|
|
893
|
-
-moz-background-size:0% 0.125rem;
|
|
894
|
-
background-size:0% 0.125rem;
|
|
895
|
-
}
|
|
896
|
-
to{
|
|
897
|
-
-moz-background-size:100% 0.125rem;
|
|
898
|
-
background-size:100% 0.125rem;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
@-o-keyframes eds-link-underline{
|
|
902
|
-
from{
|
|
903
|
-
-o-background-size:0% 0.125rem;
|
|
904
|
-
background-size:0% 0.125rem;
|
|
905
|
-
}
|
|
906
|
-
to{
|
|
907
|
-
-o-background-size:100% 0.125rem;
|
|
908
|
-
background-size:100% 0.125rem;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
@keyframes eds-link-underline{
|
|
912
|
-
from{
|
|
913
|
-
-moz-background-size:0% 0.125rem;
|
|
914
|
-
-o-background-size:0% 0.125rem;
|
|
915
|
-
background-size:0% 0.125rem;
|
|
916
|
-
}
|
|
917
|
-
to{
|
|
918
|
-
-moz-background-size:100% 0.125rem;
|
|
919
|
-
-o-background-size:100% 0.125rem;
|
|
920
|
-
background-size:100% 0.125rem;
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
849
|
.eds-text--link:where(:focus-visible){
|
|
850
|
+
border-radius:0.25rem;
|
|
924
851
|
outline:2px solid #181c56;
|
|
925
852
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
926
853
|
outline-offset:0.125rem;
|
|
@@ -1025,23 +952,12 @@
|
|
|
1025
952
|
font-weight:var(--font-weight-heading);
|
|
1026
953
|
left:-2.5rem;
|
|
1027
954
|
border:0.125rem solid var(--components-typography-list-standard-border);
|
|
1028
|
-
|
|
1029
|
-
-moz-border-radius:50%;
|
|
1030
|
-
border-radius:50%;
|
|
955
|
+
border-radius:50%;
|
|
1031
956
|
height:2rem;
|
|
1032
957
|
width:2rem;
|
|
1033
|
-
display:-webkit-box;
|
|
1034
|
-
display:-webkit-flex;
|
|
1035
|
-
display:-moz-box;
|
|
1036
958
|
display:flex;
|
|
1037
|
-
-
|
|
1038
|
-
-
|
|
1039
|
-
-moz-box-align:center;
|
|
1040
|
-
align-items:center;
|
|
1041
|
-
-webkit-box-pack:center;
|
|
1042
|
-
-webkit-justify-content:center;
|
|
1043
|
-
-moz-box-pack:center;
|
|
1044
|
-
justify-content:center;
|
|
959
|
+
align-items:center;
|
|
960
|
+
justify-content:center;
|
|
1045
961
|
top:-0.25rem;
|
|
1046
962
|
}
|
|
1047
963
|
:where(.eds-contrast) .eds-text--numbered-list > .eds-text--list-item::before{
|
package/dist/styles.css
CHANGED
|
@@ -265,17 +265,14 @@
|
|
|
265
265
|
*,
|
|
266
266
|
::before,
|
|
267
267
|
::after{
|
|
268
|
-
|
|
269
|
-
-moz-box-sizing:border-box;
|
|
270
|
-
box-sizing:border-box;
|
|
268
|
+
box-sizing:border-box;
|
|
271
269
|
}
|
|
272
270
|
html{
|
|
273
271
|
/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
|
|
274
|
-
font-family:system-ui,
|
|
272
|
+
font-family:system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
275
273
|
line-height:1.15; /* 1. Correct the line height in all browsers. */
|
|
276
274
|
-webkit-text-size-adjust:100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
|
|
277
275
|
-moz-tab-size:4;
|
|
278
|
-
-o-tab-size:4;
|
|
279
276
|
tab-size:4; /* 3. Use a more readable tab size (opinionated). */
|
|
280
277
|
}
|
|
281
278
|
/*
|
|
@@ -420,9 +417,7 @@
|
|
|
420
417
|
*,
|
|
421
418
|
*::before,
|
|
422
419
|
*::after{
|
|
423
|
-
|
|
424
|
-
-moz-box-sizing:inherit;
|
|
425
|
-
box-sizing:inherit;
|
|
420
|
+
box-sizing:inherit;
|
|
426
421
|
font-weight:inherit;
|
|
427
422
|
}
|
|
428
423
|
}
|
|
@@ -434,12 +429,8 @@
|
|
|
434
429
|
--primary-text-color:var(--components-typography-basetext-standard-text-accent);
|
|
435
430
|
--primary-label-color:var(--components-typography-label-standard-text-accent);
|
|
436
431
|
--eds-font-family:"Nationale", arial, "Gotham Rounded", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen-sans, ubuntu, cantarell, "Helvetica Neue", sans-serif;
|
|
437
|
-
|
|
438
|
-
-moz-box-sizing:border-box;
|
|
439
|
-
box-sizing:border-box;
|
|
440
|
-
color:#181c56;
|
|
432
|
+
box-sizing:border-box;
|
|
441
433
|
color:var(--primary-text-color);
|
|
442
|
-
background-color:#ffffff;
|
|
443
434
|
background-color:var(--primary-background-color);
|
|
444
435
|
font-family:Nationale, Arial, "Gotham Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
445
436
|
font-weight:500;
|
|
@@ -452,9 +443,7 @@
|
|
|
452
443
|
--primary-background-color:var(--basecolors-frame-contrast);
|
|
453
444
|
--primary-text-color:var(--components-typography-basetext-contrast-text-accent);
|
|
454
445
|
--primary-label-color:var(--components-typography-label-contrast-text-accent);
|
|
455
|
-
color:#ffffff;
|
|
456
446
|
color:var(--primary-text-color);
|
|
457
|
-
background-color:#181c56;
|
|
458
447
|
background-color:var(--primary-background-color);
|
|
459
448
|
}
|
|
460
449
|
@media screen and (min-width: 50rem){
|
|
@@ -472,7 +461,6 @@
|
|
|
472
461
|
.eds-h4,
|
|
473
462
|
.eds-h5,
|
|
474
463
|
.eds-h6{
|
|
475
|
-
color:#181c56;
|
|
476
464
|
color:var(--primary-text-color);
|
|
477
465
|
font-weight:600;
|
|
478
466
|
}
|
|
@@ -550,7 +538,6 @@
|
|
|
550
538
|
}
|
|
551
539
|
|
|
552
540
|
.eds-paragraph{
|
|
553
|
-
color:#181c56;
|
|
554
541
|
color:var(--primary-text-color);
|
|
555
542
|
font-size:1rem;
|
|
556
543
|
line-height:1.5rem;
|
|
@@ -564,7 +551,6 @@
|
|
|
564
551
|
}
|
|
565
552
|
|
|
566
553
|
.eds-lead-paragraph{
|
|
567
|
-
color:#181c56;
|
|
568
554
|
color:var(--primary-text-color);
|
|
569
555
|
font-size:1.25rem;
|
|
570
556
|
line-height:1.875rem;
|
|
@@ -578,7 +564,6 @@
|
|
|
578
564
|
}
|
|
579
565
|
|
|
580
566
|
.eds-sub-paragraph{
|
|
581
|
-
color:#181c56;
|
|
582
567
|
color:var(--primary-text-color);
|
|
583
568
|
font-size:0.875rem;
|
|
584
569
|
line-height:1.25rem;
|
|
@@ -590,7 +575,6 @@
|
|
|
590
575
|
}
|
|
591
576
|
|
|
592
577
|
.eds-small-text{
|
|
593
|
-
color:#181c56;
|
|
594
578
|
color:var(--primary-text-color);
|
|
595
579
|
font-size:0.625rem;
|
|
596
580
|
line-height:1rem;
|
|
@@ -603,7 +587,6 @@
|
|
|
603
587
|
}
|
|
604
588
|
|
|
605
589
|
.eds-link{
|
|
606
|
-
color:#181c56;
|
|
607
590
|
color:var(--primary-text-color);
|
|
608
591
|
}
|
|
609
592
|
.eds-link, .eds-link:link, .eds-link:visited{
|
|
@@ -611,28 +594,16 @@
|
|
|
611
594
|
-webkit-text-decoration:none;
|
|
612
595
|
text-decoration:none;
|
|
613
596
|
position:relative;
|
|
614
|
-
background-image:-webkit-linear-gradient(330deg, #181c56 0%, #181c56 100%);
|
|
615
|
-
background-image:-moz-linear-gradient(330deg, #181c56 0%, #181c56 100%);
|
|
616
|
-
background-image:-o-linear-gradient(330deg, #181c56 0%, #181c56 100%);
|
|
617
|
-
background-image:linear-gradient(120deg, #181c56 0%, #181c56 100%);
|
|
618
|
-
background-image:-webkit-linear-gradient(330deg, var(--primary-text-color) 0%, var(--primary-text-color) 100%);
|
|
619
|
-
background-image:-moz-linear-gradient(330deg, var(--primary-text-color) 0%, var(--primary-text-color) 100%);
|
|
620
|
-
background-image:-o-linear-gradient(330deg, var(--primary-text-color) 0%, var(--primary-text-color) 100%);
|
|
621
597
|
background-image:linear-gradient(120deg, var(--primary-text-color) 0%, var(--primary-text-color) 100%);
|
|
622
598
|
background-repeat:no-repeat;
|
|
623
|
-
|
|
624
|
-
-o-background-size:100% 0.125rem;
|
|
625
|
-
background-size:100% 0.125rem;
|
|
599
|
+
background-size:100% 0.125rem;
|
|
626
600
|
background-position:0 100%;
|
|
627
601
|
}
|
|
628
602
|
.eds-link:hover{
|
|
629
|
-
|
|
630
|
-
-moz-animation:eds-link-underline 0.3s ease-in;
|
|
631
|
-
-o-animation:eds-link-underline 0.3s ease-in;
|
|
632
|
-
animation:eds-link-underline 0.3s ease-in;
|
|
603
|
+
animation:eds-link-underline 0.3s ease-in;
|
|
633
604
|
cursor:pointer;
|
|
634
605
|
}
|
|
635
|
-
|
|
606
|
+
@keyframes eds-link-underline{
|
|
636
607
|
from{
|
|
637
608
|
background-size:0% 0.125rem;
|
|
638
609
|
}
|
|
@@ -640,46 +611,13 @@
|
|
|
640
611
|
background-size:100% 0.125rem;
|
|
641
612
|
}
|
|
642
613
|
}
|
|
643
|
-
@-moz-keyframes eds-link-underline{
|
|
644
|
-
from{
|
|
645
|
-
-moz-background-size:0% 0.125rem;
|
|
646
|
-
background-size:0% 0.125rem;
|
|
647
|
-
}
|
|
648
|
-
to{
|
|
649
|
-
-moz-background-size:100% 0.125rem;
|
|
650
|
-
background-size:100% 0.125rem;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
@-o-keyframes eds-link-underline{
|
|
654
|
-
from{
|
|
655
|
-
-o-background-size:0% 0.125rem;
|
|
656
|
-
background-size:0% 0.125rem;
|
|
657
|
-
}
|
|
658
|
-
to{
|
|
659
|
-
-o-background-size:100% 0.125rem;
|
|
660
|
-
background-size:100% 0.125rem;
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
@keyframes eds-link-underline{
|
|
664
|
-
from{
|
|
665
|
-
-moz-background-size:0% 0.125rem;
|
|
666
|
-
-o-background-size:0% 0.125rem;
|
|
667
|
-
background-size:0% 0.125rem;
|
|
668
|
-
}
|
|
669
|
-
to{
|
|
670
|
-
-moz-background-size:100% 0.125rem;
|
|
671
|
-
-o-background-size:100% 0.125rem;
|
|
672
|
-
background-size:100% 0.125rem;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
614
|
.eds-link:focus-visible{
|
|
615
|
+
border-radius:0.25rem;
|
|
676
616
|
outline:2px solid #181c56;
|
|
677
|
-
outline-color:#181c56;
|
|
678
617
|
outline-color:var(--basecolors-stroke-focus-standard);
|
|
679
618
|
outline-offset:0.125rem;
|
|
680
619
|
}
|
|
681
620
|
.eds-contrast .eds-link:focus-visible{
|
|
682
|
-
outline-color:#aeb7e2;
|
|
683
621
|
outline-color:var(--basecolors-stroke-focus-contrast);
|
|
684
622
|
}
|
|
685
623
|
@media screen and (min-width: 50rem){
|
|
@@ -697,7 +635,6 @@ p .eds-link--ext-icon{
|
|
|
697
635
|
|
|
698
636
|
.eds-label,
|
|
699
637
|
.eds-sub-label{
|
|
700
|
-
color:#626493;
|
|
701
638
|
color:var(--primary-label-color);
|
|
702
639
|
}
|
|
703
640
|
|
|
@@ -731,14 +668,9 @@ p .eds-link--ext-icon{
|
|
|
731
668
|
|
|
732
669
|
.eds-preformatted-text,
|
|
733
670
|
.eds-code-text{
|
|
734
|
-
background-color:#f6f6f9;
|
|
735
671
|
background-color:var(--components-typography-codetext-standard-fill);
|
|
736
|
-
border:0.0625rem solid rgba(84, 86, 140, 0.4);
|
|
737
672
|
border:0.0625rem solid var(--components-typography-codetext-standard-border);
|
|
738
|
-
|
|
739
|
-
-moz-border-radius:0.25rem;
|
|
740
|
-
border-radius:0.25rem;
|
|
741
|
-
color:#181c56;
|
|
673
|
+
border-radius:0.25rem;
|
|
742
674
|
color:var(--components-typography-codetext-standard-text);
|
|
743
675
|
font-family:Monaco, monospace;
|
|
744
676
|
font-size:0.875rem;
|
|
@@ -753,7 +685,7 @@ p .eds-link--ext-icon{
|
|
|
753
685
|
.eds-code-text{
|
|
754
686
|
display:inline-block;
|
|
755
687
|
word-wrap:break-word;
|
|
756
|
-
|
|
688
|
+
overflow-wrap:anywhere;
|
|
757
689
|
padding:0.125rem 0.25rem;
|
|
758
690
|
}
|
|
759
691
|
|
|
@@ -767,7 +699,6 @@ p .eds-link--ext-icon{
|
|
|
767
699
|
}
|
|
768
700
|
.eds-unordered-list .eds-list-item::before{
|
|
769
701
|
content:"";
|
|
770
|
-
background:#aeb7e2;
|
|
771
702
|
background:var(--components-typography-list-standard-border);
|
|
772
703
|
display:block;
|
|
773
704
|
height:0.125rem;
|
|
@@ -807,30 +738,17 @@ p .eds-link--ext-icon{
|
|
|
807
738
|
position:relative;
|
|
808
739
|
}
|
|
809
740
|
.eds-numbered-list > .eds-list-item::before{
|
|
810
|
-
color:#181c56;
|
|
811
741
|
color:var(--primary-text-color);
|
|
812
742
|
position:absolute;
|
|
813
743
|
font-weight:600;
|
|
814
744
|
left:-2.5rem;
|
|
815
|
-
border:0.125rem solid #aeb7e2;
|
|
816
745
|
border:0.125rem solid var(--components-typography-list-standard-border);
|
|
817
|
-
|
|
818
|
-
-moz-border-radius:50%;
|
|
819
|
-
border-radius:50%;
|
|
746
|
+
border-radius:50%;
|
|
820
747
|
height:2rem;
|
|
821
748
|
width:2rem;
|
|
822
|
-
display:-webkit-box;
|
|
823
|
-
display:-webkit-flex;
|
|
824
|
-
display:-moz-box;
|
|
825
749
|
display:flex;
|
|
826
|
-
-
|
|
827
|
-
-
|
|
828
|
-
-moz-box-align:center;
|
|
829
|
-
align-items:center;
|
|
830
|
-
-webkit-box-pack:center;
|
|
831
|
-
-webkit-justify-content:center;
|
|
832
|
-
-moz-box-pack:center;
|
|
833
|
-
justify-content:center;
|
|
750
|
+
align-items:center;
|
|
751
|
+
justify-content:center;
|
|
834
752
|
top:-0.25rem;
|
|
835
753
|
}
|
|
836
754
|
|
|
@@ -844,7 +762,6 @@ p .eds-link--ext-icon{
|
|
|
844
762
|
}
|
|
845
763
|
|
|
846
764
|
.eds-blockquote{
|
|
847
|
-
border-left:0.25rem solid #8284ab;
|
|
848
765
|
border-left:0.25rem solid var(--components-typography-blockquote-standard-stroke);
|
|
849
766
|
font-family:inherit;
|
|
850
767
|
font-size:1.25rem;
|
|
@@ -914,33 +831,6 @@ p .eds-link--ext-icon{
|
|
|
914
831
|
margin-bottom:0;
|
|
915
832
|
}
|
|
916
833
|
|
|
917
|
-
@-webkit-keyframes lineExpand{
|
|
918
|
-
0%{
|
|
919
|
-
width:0;
|
|
920
|
-
}
|
|
921
|
-
100%{
|
|
922
|
-
width:100%;
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
@-moz-keyframes lineExpand{
|
|
927
|
-
0%{
|
|
928
|
-
width:0;
|
|
929
|
-
}
|
|
930
|
-
100%{
|
|
931
|
-
width:100%;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
@-o-keyframes lineExpand{
|
|
936
|
-
0%{
|
|
937
|
-
width:0;
|
|
938
|
-
}
|
|
939
|
-
100%{
|
|
940
|
-
width:100%;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
|
|
944
834
|
@keyframes lineExpand{
|
|
945
835
|
0%{
|
|
946
836
|
width:0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/typography",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"main": "./dist/typography.cjs",
|
|
6
6
|
"module": "./dist/typography.mjs",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"react-dom": ">=18.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@entur/icons": "^10.0.
|
|
62
|
-
"@entur/tokens": "^4.0
|
|
61
|
+
"@entur/icons": "^10.0.3",
|
|
62
|
+
"@entur/tokens": "^4.1.0",
|
|
63
63
|
"@entur/utils": "^0.15.0",
|
|
64
64
|
"classnames": "^2.5.1",
|
|
65
65
|
"modern-normalize": "^3.0.1"
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"vite": "^7.3.2",
|
|
80
80
|
"vite-plugin-dts": "^4.5.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "fa179e7f6a360139e5ee0ffcb35718ef197eab06"
|
|
83
83
|
}
|