@solid-design-system/styles 1.3.3 → 1.5.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/CHANGELOG.md +21 -2
- package/cdn/modules/interactive.css +1 -1
- package/cdn/modules/pagination.css +1 -1
- package/cdn/modules/prose.css +1 -1
- package/cdn/solid-styles.css +1 -1
- package/cdn-versioned/modules/chip.css +1 -1
- package/cdn-versioned/modules/container.css +1 -1
- package/cdn-versioned/modules/copyright.css +1 -1
- package/cdn-versioned/modules/display.css +1 -1
- package/cdn-versioned/modules/flag.css +1 -1
- package/cdn-versioned/modules/footnotes.css +1 -1
- package/cdn-versioned/modules/headline.css +1 -1
- package/cdn-versioned/modules/hidden-links.css +1 -1
- package/cdn-versioned/modules/interactive.css +1 -1
- package/cdn-versioned/modules/leadtext.css +1 -1
- package/cdn-versioned/modules/list.css +1 -1
- package/cdn-versioned/modules/mark.css +1 -1
- package/cdn-versioned/modules/media.css +1 -1
- package/cdn-versioned/modules/meta.css +1 -1
- package/cdn-versioned/modules/pagination.css +1 -1
- package/cdn-versioned/modules/paragraph.css +1 -1
- package/cdn-versioned/modules/prose.css +1 -1
- package/cdn-versioned/modules/status-badge.css +1 -1
- package/cdn-versioned/modules/table-cell.css +1 -1
- package/cdn-versioned/modules/table.css +1 -1
- package/cdn-versioned/solid-styles.css +1 -1
- package/dist/modules/interactive.css +5 -1
- package/dist/modules/pagination.css +113 -45
- package/dist/modules/prose.css +5 -1
- package/dist/solid-styles.css +118 -46
- package/dist-versioned/modules/chip.css +6 -6
- package/dist-versioned/modules/container.css +45 -45
- package/dist-versioned/modules/copyright.css +11 -11
- package/dist-versioned/modules/display.css +9 -9
- package/dist-versioned/modules/flag.css +6 -6
- package/dist-versioned/modules/footnotes.css +26 -26
- package/dist-versioned/modules/headline.css +67 -67
- package/dist-versioned/modules/hidden-links.css +7 -7
- package/dist-versioned/modules/interactive.css +43 -39
- package/dist-versioned/modules/leadtext.css +8 -8
- package/dist-versioned/modules/list.css +47 -47
- package/dist-versioned/modules/mark.css +2 -2
- package/dist-versioned/modules/media.css +7 -7
- package/dist-versioned/modules/meta.css +12 -12
- package/dist-versioned/modules/pagination.css +140 -72
- package/dist-versioned/modules/paragraph.css +8 -8
- package/dist-versioned/modules/prose.css +236 -232
- package/dist-versioned/modules/status-badge.css +8 -8
- package/dist-versioned/modules/table-cell.css +23 -23
- package/dist-versioned/modules/table.css +4 -4
- package/dist-versioned/solid-styles.css +499 -427
- package/package.json +2 -2
package/dist/solid-styles.css
CHANGED
@@ -630,7 +630,8 @@ Used for inverted pressed interaction text link */;
|
|
630
630
|
gap: var(--sd-spacing-2, 0.5rem) /* 8px */;
|
631
631
|
}
|
632
632
|
|
633
|
-
.sd-pagination ul li a
|
633
|
+
.sd-pagination ul li a,
|
634
|
+
.sd-pagination ul li button {
|
634
635
|
display: flex;
|
635
636
|
align-items: center;
|
636
637
|
justify-content: center;
|
@@ -642,17 +643,19 @@ Used for inverted pressed interaction text link */;
|
|
642
643
|
transition-duration: 150ms;
|
643
644
|
}
|
644
645
|
|
645
|
-
.sd-pagination ul li a:hover:not([disabled])
|
646
|
+
.sd-pagination ul li a:hover:not([disabled]),
|
647
|
+
.sd-pagination ul li button:hover:not([disabled]) {
|
646
648
|
|
647
649
|
color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */;
|
648
650
|
}
|
649
651
|
|
650
|
-
.sd-pagination ul li a:active:not([disabled])
|
652
|
+
.sd-pagination ul li a:active:not([disabled]),
|
653
|
+
.sd-pagination ul li button:active:not([disabled]) {
|
651
654
|
|
652
655
|
color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */;
|
653
656
|
}
|
654
657
|
|
655
|
-
.sd-pagination ul li a:focus-visible {
|
658
|
+
.sd-pagination ul li a:focus-visible, .sd-pagination ul li button:focus-visible {
|
656
659
|
outline-style: solid;
|
657
660
|
outline-width: 2px;
|
658
661
|
outline-offset: 2px;
|
@@ -668,7 +671,10 @@ Used for inverted pressed interaction text link */;
|
|
668
671
|
font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */;
|
669
672
|
}
|
670
673
|
|
671
|
-
.sd-pagination ul li:first-child a,
|
674
|
+
.sd-pagination ul li:first-child a,
|
675
|
+
.sd-pagination ul li:first-child button,
|
676
|
+
.sd-pagination ul li:last-child a,
|
677
|
+
.sd-pagination ul li:last-child button {
|
672
678
|
height: 100%;
|
673
679
|
width: 100%;
|
674
680
|
}
|
@@ -684,25 +690,28 @@ Used for inverted pressed interaction text link */;
|
|
684
690
|
text-align: center;
|
685
691
|
}
|
686
692
|
|
687
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a
|
693
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) a,
|
694
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) button {
|
688
695
|
height: 100%;
|
689
696
|
width: 100%;
|
690
697
|
border-bottom-width: 2px;
|
691
698
|
border-bottom-color: transparent;
|
692
699
|
}
|
693
700
|
|
694
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
|
701
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current], .sd-pagination ul li:not(:first-child):not(:last-child) button[aria-current] {
|
695
702
|
--tw-border-opacity: 1;
|
696
703
|
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
697
704
|
*/;
|
698
705
|
}
|
699
706
|
|
700
|
-
.sd-pagination ul li a[aria-current]
|
707
|
+
.sd-pagination ul li a[aria-current],
|
708
|
+
.sd-pagination ul li button[aria-current] {
|
701
709
|
|
702
710
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
703
711
|
}
|
704
712
|
|
705
|
-
.sd-pagination ul li a[aria-current]:hover:not([disabled])
|
713
|
+
.sd-pagination ul li a[aria-current]:hover:not([disabled]),
|
714
|
+
.sd-pagination ul li button[aria-current]:hover:not([disabled]) {
|
706
715
|
|
707
716
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
708
717
|
}
|
@@ -710,14 +719,18 @@ Used for inverted pressed interaction text link */;
|
|
710
719
|
/* Previous and next arrow when it has no href */
|
711
720
|
|
712
721
|
.sd-pagination ul li:first-child:has(a:not([href])) a,
|
713
|
-
.sd-pagination ul li:last-child:has(a:not([href])) a
|
722
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a,
|
723
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button,
|
724
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button {
|
714
725
|
cursor: not-allowed;
|
715
726
|
|
716
727
|
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
717
728
|
}
|
718
729
|
|
719
730
|
.sd-pagination ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
720
|
-
.sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled])
|
731
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
732
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
733
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
721
734
|
|
722
735
|
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
723
736
|
}
|
@@ -726,46 +739,68 @@ Used for inverted pressed interaction text link */;
|
|
726
739
|
|
727
740
|
/* Number which is not current */
|
728
741
|
|
729
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
|
742
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) {
|
730
743
|
pointer-events: none;
|
731
744
|
position: absolute;
|
732
745
|
}
|
733
746
|
|
734
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a
|
747
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
|
748
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) button {
|
735
749
|
display: none;
|
736
750
|
}
|
737
751
|
|
738
752
|
/* Apply ellipsis to (n + 2 && n - 1) */
|
739
753
|
|
740
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current]),
|
741
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child) {
|
754
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current]), .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current], button[aria-current]) + li + li:not(:last-child) {
|
742
755
|
pointer-events: auto !important;
|
743
756
|
position: relative !important;
|
744
757
|
}
|
745
758
|
|
746
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current])::after,
|
747
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current]) + li + li:not(:last-child)::after {
|
759
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(+ li + li a[aria-current], + li + li button[aria-current])::after, .sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(a[aria-current], button[aria-current]) + li + li:not(:last-child)::after {
|
748
760
|
--tw-content: '...';
|
749
761
|
content: var(--tw-content);
|
750
762
|
}
|
751
763
|
|
752
764
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
|
753
765
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2),
|
754
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
755
|
-
|
766
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
767
|
+
+ li a[aria-current],
|
768
|
+
+ li button[aria-current]),
|
769
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
770
|
+
a[aria-current],
|
771
|
+
button[aria-current]) + li {
|
756
772
|
pointer-events: auto !important;
|
757
773
|
position: relative !important;
|
758
774
|
}
|
759
775
|
|
760
776
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
|
761
777
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2)::after,
|
762
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
763
|
-
|
778
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
779
|
+
+ li a[aria-current],
|
780
|
+
+ li button[aria-current])::after,
|
781
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
782
|
+
a[aria-current],
|
783
|
+
button[aria-current]) + li::after {
|
764
784
|
content: var(--tw-content) !important;
|
765
785
|
display: none !important;
|
766
786
|
}
|
767
787
|
|
768
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
788
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
789
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
|
790
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
|
791
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
|
792
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
793
|
+
+ li a[aria-current],
|
794
|
+
+ li button[aria-current]) a,
|
795
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
796
|
+
+ li a[aria-current],
|
797
|
+
+ li button[aria-current]) button,
|
798
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
799
|
+
a[aria-current],
|
800
|
+
button[aria-current]) + li a,
|
801
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
802
|
+
a[aria-current],
|
803
|
+
button[aria-current]) + li button {
|
769
804
|
display: flex !important;
|
770
805
|
}
|
771
806
|
|
@@ -773,88 +808,110 @@ Used for inverted pressed interaction text link */;
|
|
773
808
|
|
774
809
|
/* Show until the 5th page (forward) */
|
775
810
|
|
776
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) {
|
811
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) {
|
777
812
|
pointer-events: auto;
|
778
813
|
position: relative;
|
779
814
|
}
|
780
815
|
|
781
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6)::after {
|
816
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6)::after {
|
782
817
|
content: var(--tw-content);
|
783
818
|
display: none;
|
784
819
|
}
|
785
820
|
|
786
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) a
|
821
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) a,
|
822
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(-n + 6) button {
|
787
823
|
display: flex;
|
788
824
|
}
|
789
825
|
|
790
826
|
/* Show ellipsis on the 6th */
|
791
827
|
|
792
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li {
|
828
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(6):not(:last-child) + li {
|
793
829
|
pointer-events: none;
|
794
830
|
position: relative;
|
795
831
|
}
|
796
832
|
|
797
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
|
833
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(a[aria-current], button[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
|
798
834
|
--tw-content: '...';
|
799
835
|
content: var(--tw-content);
|
800
836
|
}
|
801
837
|
|
802
838
|
/* When one of the first 4 pages is selected, show until the 5th page (backward) */
|
803
839
|
|
804
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) {
|
840
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) {
|
805
841
|
pointer-events: auto;
|
806
842
|
position: relative;
|
807
843
|
}
|
808
844
|
|
809
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current])::after {
|
845
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current])::after {
|
810
846
|
content: var(--tw-content);
|
811
847
|
display: none;
|
812
848
|
}
|
813
849
|
|
814
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) a
|
850
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) a,
|
851
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current], ~ :nth-child(-n + 5) button[aria-current]) button {
|
815
852
|
display: flex;
|
816
853
|
}
|
817
854
|
|
818
855
|
/* When one of the last 4 pages is selected, show the last 4 pages (forward) */
|
819
856
|
|
820
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) {
|
857
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) {
|
821
858
|
pointer-events: auto;
|
822
859
|
position: relative;
|
823
860
|
}
|
824
861
|
|
825
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child)::after {
|
862
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child)::after {
|
826
863
|
content: var(--tw-content);
|
827
864
|
display: none;
|
828
865
|
}
|
829
866
|
|
830
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) a
|
867
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) a,
|
868
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 5):has(a[aria-current], button[aria-current]) ~ :nth-last-child(-n + 5):not(:first-child):not(:last-child) button {
|
831
869
|
display: flex;
|
832
870
|
}
|
833
871
|
|
834
872
|
/* When one of the last 4 pages is selected, show the last 4 pages (backward) */
|
835
873
|
|
836
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
874
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
875
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
876
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
877
|
+
) {
|
837
878
|
pointer-events: auto;
|
838
879
|
position: relative;
|
839
880
|
}
|
840
881
|
|
841
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
882
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
883
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
884
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
885
|
+
)::after {
|
842
886
|
content: var(--tw-content);
|
843
887
|
display: none;
|
844
888
|
}
|
845
889
|
|
846
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
890
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
891
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
892
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
893
|
+
) a,
|
894
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
895
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
896
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
897
|
+
) button {
|
847
898
|
display: flex;
|
848
899
|
}
|
849
900
|
|
850
901
|
/* Show ellipsis on the 6th to last */
|
851
902
|
|
852
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
903
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
904
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
905
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
906
|
+
) {
|
853
907
|
pointer-events: none;
|
854
908
|
position: relative;
|
855
909
|
}
|
856
910
|
|
857
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
911
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
912
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
913
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
914
|
+
)::after {
|
858
915
|
--tw-content: '...';
|
859
916
|
content: var(--tw-content);
|
860
917
|
}
|
@@ -871,7 +928,8 @@ Used for inverted pressed interaction text link */;
|
|
871
928
|
display: none;
|
872
929
|
}
|
873
930
|
|
874
|
-
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a
|
931
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
|
932
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
|
875
933
|
display: flex;
|
876
934
|
}
|
877
935
|
|
@@ -906,37 +964,47 @@ Used for inverted pressed interaction text link */;
|
|
906
964
|
}
|
907
965
|
|
908
966
|
.sd-pagination--inverted ul li:first-child:has(a:not([href])) a,
|
909
|
-
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a
|
967
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a,
|
968
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button,
|
969
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button {
|
910
970
|
|
911
971
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
912
972
|
}
|
913
973
|
|
914
974
|
.sd-pagination--inverted ul li:first-child:has(a:not([href])) a:hover:not([disabled]),
|
915
|
-
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled])
|
975
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
976
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
977
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
916
978
|
|
917
979
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
918
980
|
}
|
919
981
|
|
920
982
|
.sd-pagination--inverted ul li a,
|
921
|
-
.sd-pagination--inverted ul li a[aria-current]
|
983
|
+
.sd-pagination--inverted ul li a[aria-current],
|
984
|
+
.sd-pagination--inverted ul li button,
|
985
|
+
.sd-pagination--inverted ul li button[aria-current] {
|
922
986
|
|
923
987
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
924
988
|
}
|
925
989
|
|
926
990
|
.sd-pagination--inverted ul li a:hover:not([disabled]),
|
927
|
-
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled])
|
991
|
+
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
|
992
|
+
.sd-pagination--inverted ul li button:hover:not([disabled]),
|
993
|
+
.sd-pagination--inverted ul li button[aria-current]:hover:not([disabled]) {
|
928
994
|
|
929
995
|
color: rgb(var(--sd-color-primary-200, 224 233 243) / var(--tw-text-opacity, 1)) /* Used for inverted hover interaction text link and inverted pressed interaction button label */;
|
930
996
|
}
|
931
997
|
|
932
998
|
.sd-pagination--inverted ul li a:active:not([disabled]),
|
933
|
-
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled])
|
999
|
+
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled]),
|
1000
|
+
.sd-pagination--inverted ul li button:active:not([disabled]),
|
1001
|
+
.sd-pagination--inverted ul li button[aria-current]:active:not([disabled]) {
|
934
1002
|
|
935
1003
|
color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
|
936
1004
|
Used for inverted pressed interaction text link */;
|
937
1005
|
}
|
938
1006
|
|
939
|
-
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
|
1007
|
+
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible, .sd-pagination--inverted ul li button:focus-visible, .sd-pagination--inverted ul li button[aria-current]:focus-visible {
|
940
1008
|
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */;
|
941
1009
|
}
|
942
1010
|
|
@@ -1274,8 +1342,12 @@ Used for inverted pressed interaction text link */;
|
|
1274
1342
|
color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
|
1275
1343
|
text-decoration-line: underline;
|
1276
1344
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
1277
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
1278
1345
|
transition-duration: 150ms;
|
1346
|
+
transition-duration: var(--sd-duration-fast, 150ms) /* Component State
|
1347
|
+
Animation of states like hover or pressed
|
1348
|
+
Microinteractions
|
1349
|
+
Smooth transitions eg. for buttons or dropdowns */;
|
1350
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
1279
1351
|
}
|
1280
1352
|
|
1281
1353
|
.sd-prose a:hover:not([disabled]),
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* Generates basic styles for chip elements.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-5-0-chip
|
4
4
|
* @status stable
|
5
5
|
* @since 1.30.0
|
6
|
-
* @variant { primary-300 | primary-500 | white } sd-1-
|
6
|
+
* @variant { primary-300 | primary-500 | white } sd-1-5-0-chip--...
|
7
7
|
*/
|
8
8
|
|
9
|
-
.sd-1-
|
9
|
+
.sd-1-5-0-chip {
|
10
10
|
|
11
11
|
display: inline-flex;
|
12
12
|
|
@@ -35,7 +35,7 @@
|
|
35
35
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */
|
36
36
|
}
|
37
37
|
|
38
|
-
.sd-1-
|
38
|
+
.sd-1-5-0-chip--primary-500 {
|
39
39
|
|
40
40
|
|
41
41
|
|
@@ -46,14 +46,14 @@
|
|
46
46
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */
|
47
47
|
}
|
48
48
|
|
49
|
-
.sd-1-
|
49
|
+
.sd-1-5-0-chip--primary-300 {
|
50
50
|
|
51
51
|
|
52
52
|
|
53
53
|
background-color: rgb(var(--sd-color-primary-300, 200 213 231) / var(--tw-bg-opacity, 1)) /* Used for chip background */
|
54
54
|
}
|
55
55
|
|
56
|
-
.sd-1-
|
56
|
+
.sd-1-5-0-chip--white {
|
57
57
|
|
58
58
|
|
59
59
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* Container lets users delimit and highlight a piece of content. The user has no interaction with it, it is merely a visual element that influences the flow of the page.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-5-0-container
|
4
4
|
* @status stable
|
5
5
|
* @since 1.30.0
|
6
|
-
* @variant { primary-100 | primary | border-neutral-400 | white } sd-1-
|
7
|
-
* @variant { sm } sd-1-
|
8
|
-
* @variant { top | right | bottom | left } sd-1-
|
6
|
+
* @variant { primary-100 | primary | border-neutral-400 | white } sd-1-5-0-container--variant-... Defines the background color and border of sd-1-5-0-container.
|
7
|
+
* @variant { sm } sd-1-5-0-container--padding-... Defines the padding of sd-1-5-0-container. This makes it adaptable to both small and large screens.
|
8
|
+
* @variant { top | right | bottom | left } sd-1-5-0-container--triangle-... Defines an optional triangle cut-out for sd-1-5-0-container. This allows for an indentation resembling an arrow on any side of the container. CSS Property `triangle-background` defines the background color of the cut-out.
|
9
9
|
*/
|
10
10
|
|
11
|
-
.sd-1-
|
11
|
+
.sd-1-5-0-container {
|
12
12
|
position: relative;
|
13
13
|
|
14
14
|
background-color: rgb(var(--sd-color-neutral-100, 246 246 246) / var(--tw-bg-opacity, 1)) /* Additional background color (light mode) */;
|
@@ -18,18 +18,18 @@
|
|
18
18
|
padding-bottom: var(--sd-spacing-8, 2rem) /* 32px */;
|
19
19
|
}
|
20
20
|
|
21
|
-
.sd-1-
|
21
|
+
.sd-1-5-0-container--variant-primary-100 {
|
22
22
|
|
23
23
|
background-color: rgb(var(--sd-color-primary-100, 236 240 249) / var(--tw-bg-opacity, 1)) /* Additional background color (light mode) */;
|
24
24
|
}
|
25
25
|
|
26
|
-
.sd-1-
|
26
|
+
.sd-1-5-0-container--variant-primary {
|
27
27
|
|
28
28
|
background-color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-bg-opacity, 1)) /* Inverted background color (light mode)
|
29
29
|
Used for button */;
|
30
30
|
}
|
31
31
|
|
32
|
-
.sd-1-
|
32
|
+
.sd-1-5-0-container--variant-border-neutral-400 {
|
33
33
|
border-style: solid;
|
34
34
|
--tw-border-opacity: 1;
|
35
35
|
border-color: rgb(var(--sd-color-neutral-400, 195 195 195) / var(--tw-border-opacity, 1)) /* Default border color.
|
@@ -39,27 +39,27 @@ Used for divider, teaser, container, ... */;
|
|
39
39
|
border-width: 1px;
|
40
40
|
}
|
41
41
|
|
42
|
-
.sd-1-
|
42
|
+
.sd-1-5-0-container--variant-white {
|
43
43
|
|
44
44
|
background-color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-bg-opacity, 1)) /* Default background color (light mode)
Used for inverted button */;
|
45
45
|
}
|
46
46
|
|
47
|
-
.sd-1-
|
47
|
+
.sd-1-5-0-container--padding-sm {
|
48
48
|
padding-left: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
49
49
|
padding-right: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
50
50
|
padding-top: var(--sd-spacing-4, 1rem) /* 16px */;
|
51
51
|
padding-bottom: var(--sd-spacing-4, 1rem) /* 16px */;
|
52
52
|
}
|
53
53
|
|
54
|
-
.sd-1-
|
54
|
+
.sd-1-5-0-container {
|
55
55
|
|
56
56
|
--triangle-background: white;
|
57
57
|
}
|
58
58
|
|
59
|
-
.sd-1-
|
60
|
-
.sd-1-
|
61
|
-
.sd-1-
|
62
|
-
.sd-1-
|
59
|
+
.sd-1-5-0-container--triangle-top::before,
|
60
|
+
.sd-1-5-0-container--triangle-right::before,
|
61
|
+
.sd-1-5-0-container--triangle-bottom::before,
|
62
|
+
.sd-1-5-0-container--triangle-left::before {
|
63
63
|
position: absolute;
|
64
64
|
display: block;
|
65
65
|
border-style: solid;
|
@@ -68,38 +68,38 @@ Used for divider, teaser, container, ... */;
|
|
68
68
|
content: '';
|
69
69
|
}
|
70
70
|
|
71
|
-
.sd-1-
|
71
|
+
.sd-1-5-0-container--triangle-top::before {
|
72
72
|
top: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
73
73
|
left: calc(50% - 14px);
|
74
74
|
border-top-color: var(--triangle-background);
|
75
75
|
}
|
76
76
|
|
77
|
-
.sd-1-
|
77
|
+
.sd-1-5-0-container--triangle-right::before {
|
78
78
|
right: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
79
79
|
top: calc(50% - 14px);
|
80
80
|
border-right-color: var(--triangle-background);
|
81
81
|
}
|
82
82
|
|
83
|
-
.sd-1-
|
83
|
+
.sd-1-5-0-container--triangle-bottom::before {
|
84
84
|
bottom: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
85
85
|
left: calc(50% - 14px);
|
86
86
|
border-bottom-color: var(--triangle-background);
|
87
87
|
}
|
88
88
|
|
89
|
-
.sd-1-
|
89
|
+
.sd-1-5-0-container--triangle-left::before {
|
90
90
|
left: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
91
91
|
top: calc(50% - 14px);
|
92
92
|
border-left-color: var(--triangle-background);
|
93
93
|
}
|
94
94
|
|
95
|
-
.sd-1-
|
96
|
-
.sd-1-
|
97
|
-
.sd-1-
|
98
|
-
.sd-1-
|
99
|
-
.sd-1-
|
100
|
-
.sd-1-
|
101
|
-
.sd-1-
|
102
|
-
.sd-1-
|
95
|
+
.sd-1-5-0-container--triangle-top-border::after,
|
96
|
+
.sd-1-5-0-container--triangle-top-border::before,
|
97
|
+
.sd-1-5-0-container--triangle-right-border::after,
|
98
|
+
.sd-1-5-0-container--triangle-right-border::before,
|
99
|
+
.sd-1-5-0-container--triangle-bottom-border::after,
|
100
|
+
.sd-1-5-0-container--triangle-bottom-border::before,
|
101
|
+
.sd-1-5-0-container--triangle-left-border::after,
|
102
|
+
.sd-1-5-0-container--triangle-left-border::before {
|
103
103
|
position: absolute;
|
104
104
|
display: block;
|
105
105
|
border-style: solid;
|
@@ -107,78 +107,78 @@ Used for divider, teaser, container, ... */;
|
|
107
107
|
content: '';
|
108
108
|
}
|
109
109
|
|
110
|
-
.sd-1-
|
110
|
+
.sd-1-5-0-container--triangle-top-border::after, .sd-1-5-0-container--triangle-right-border::after, .sd-1-5-0-container--triangle-bottom-border::after, .sd-1-5-0-container--triangle-left-border::after {
|
111
111
|
border-width: 14px;
|
112
112
|
}
|
113
113
|
|
114
|
-
.sd-1-
|
114
|
+
.sd-1-5-0-container--triangle-top-border::before, .sd-1-5-0-container--triangle-right-border::before, .sd-1-5-0-container--triangle-bottom-border::before, .sd-1-5-0-container--triangle-left-border::before {
|
115
115
|
border-width: 15px;
|
116
116
|
}
|
117
117
|
|
118
|
-
.sd-1-
|
119
|
-
.sd-1-
|
118
|
+
.sd-1-5-0-container--triangle-top-border::after,
|
119
|
+
.sd-1-5-0-container--triangle-top-border::before {
|
120
120
|
top: -1px;
|
121
121
|
}
|
122
122
|
|
123
|
-
.sd-1-
|
123
|
+
.sd-1-5-0-container--triangle-top-border::before {
|
124
124
|
--tw-border-opacity: 1;
|
125
125
|
border-top-color: rgb(var(--sd-color-neutral-400, 195 195 195) / var(--tw-border-opacity, 1)) /* Default border color.
|
126
126
|
Used for divider, teaser, container, ... */;
|
127
127
|
left: calc(50% - 15px);
|
128
128
|
}
|
129
129
|
|
130
|
-
.sd-1-
|
130
|
+
.sd-1-5-0-container--triangle-top-border::after {
|
131
131
|
left: calc(50% - 14px);
|
132
132
|
border-top-color: var(--triangle-background);
|
133
133
|
}
|
134
134
|
|
135
|
-
.sd-1-
|
136
|
-
.sd-1-
|
135
|
+
.sd-1-5-0-container--triangle-right-border::after,
|
136
|
+
.sd-1-5-0-container--triangle-right-border::before {
|
137
137
|
right: -1px;
|
138
138
|
}
|
139
139
|
|
140
|
-
.sd-1-
|
140
|
+
.sd-1-5-0-container--triangle-right-border::before {
|
141
141
|
--tw-border-opacity: 1;
|
142
142
|
border-right-color: rgb(var(--sd-color-neutral-400, 195 195 195) / var(--tw-border-opacity, 1)) /* Default border color.
|
143
143
|
Used for divider, teaser, container, ... */;
|
144
144
|
top: calc(50% - 15px);
|
145
145
|
}
|
146
146
|
|
147
|
-
.sd-1-
|
147
|
+
.sd-1-5-0-container--triangle-right-border::after {
|
148
148
|
top: calc(50% - 14px);
|
149
149
|
border-right-color: var(--triangle-background);
|
150
150
|
}
|
151
151
|
|
152
|
-
.sd-1-
|
153
|
-
.sd-1-
|
152
|
+
.sd-1-5-0-container--triangle-bottom-border::after,
|
153
|
+
.sd-1-5-0-container--triangle-bottom-border::before {
|
154
154
|
bottom: -1px;
|
155
155
|
}
|
156
156
|
|
157
|
-
.sd-1-
|
157
|
+
.sd-1-5-0-container--triangle-bottom-border::before {
|
158
158
|
--tw-border-opacity: 1;
|
159
159
|
border-bottom-color: rgb(var(--sd-color-neutral-400, 195 195 195) / var(--tw-border-opacity, 1)) /* Default border color.
|
160
160
|
Used for divider, teaser, container, ... */;
|
161
161
|
left: calc(50% - 15px);
|
162
162
|
}
|
163
163
|
|
164
|
-
.sd-1-
|
164
|
+
.sd-1-5-0-container--triangle-bottom-border::after {
|
165
165
|
left: calc(50% - 14px);
|
166
166
|
border-bottom-color: var(--triangle-background);
|
167
167
|
}
|
168
168
|
|
169
|
-
.sd-1-
|
170
|
-
.sd-1-
|
169
|
+
.sd-1-5-0-container--triangle-left-border::after,
|
170
|
+
.sd-1-5-0-container--triangle-left-border::before {
|
171
171
|
left: -1px;
|
172
172
|
}
|
173
173
|
|
174
|
-
.sd-1-
|
174
|
+
.sd-1-5-0-container--triangle-left-border::before {
|
175
175
|
--tw-border-opacity: 1;
|
176
176
|
border-left-color: rgb(var(--sd-color-neutral-400, 195 195 195) / var(--tw-border-opacity, 1)) /* Default border color.
|
177
177
|
Used for divider, teaser, container, ... */;
|
178
178
|
top: calc(50% - 15px);
|
179
179
|
}
|
180
180
|
|
181
|
-
.sd-1-
|
181
|
+
.sd-1-5-0-container--triangle-left-border::after {
|
182
182
|
top: calc(50% - 14px);
|
183
183
|
border-left-color: var(--triangle-background);
|
184
184
|
}
|