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