@solid-design-system/styles 1.4.1 → 1.5.1
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 +13 -2
- package/cdn/modules/pagination.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/pagination.css +259 -303
- package/dist/solid-styles.css +129 -45
- 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 +38 -38
- 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 +291 -335
- package/dist-versioned/modules/paragraph.css +8 -8
- package/dist-versioned/modules/prose.css +231 -231
- 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 +510 -426
- package/package.json +2 -2
package/dist/solid-styles.css
CHANGED
@@ -630,7 +630,19 @@ 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
|
633
|
+
.sd-pagination ul li button {
|
634
|
+
all: unset;
|
635
|
+
border-width: 2px;
|
636
|
+
border-style: solid;
|
637
|
+
border-color: transparent;
|
638
|
+
}
|
639
|
+
|
640
|
+
.sd-pagination ul li button:hover:not([disabled]) {
|
641
|
+
cursor: pointer;
|
642
|
+
}
|
643
|
+
|
644
|
+
.sd-pagination ul li a,
|
645
|
+
.sd-pagination ul li button {
|
634
646
|
display: flex;
|
635
647
|
align-items: center;
|
636
648
|
justify-content: center;
|
@@ -642,17 +654,19 @@ Used for inverted pressed interaction text link */;
|
|
642
654
|
transition-duration: 150ms;
|
643
655
|
}
|
644
656
|
|
645
|
-
.sd-pagination ul li a:hover:not([disabled])
|
657
|
+
.sd-pagination ul li a:hover:not([disabled]),
|
658
|
+
.sd-pagination ul li button:hover:not([disabled]) {
|
646
659
|
|
647
660
|
color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */;
|
648
661
|
}
|
649
662
|
|
650
|
-
.sd-pagination ul li a:active:not([disabled])
|
663
|
+
.sd-pagination ul li a:active:not([disabled]),
|
664
|
+
.sd-pagination ul li button:active:not([disabled]) {
|
651
665
|
|
652
666
|
color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */;
|
653
667
|
}
|
654
668
|
|
655
|
-
.sd-pagination ul li a:focus-visible {
|
669
|
+
.sd-pagination ul li a:focus-visible, .sd-pagination ul li button:focus-visible {
|
656
670
|
outline-style: solid;
|
657
671
|
outline-width: 2px;
|
658
672
|
outline-offset: 2px;
|
@@ -668,7 +682,10 @@ Used for inverted pressed interaction text link */;
|
|
668
682
|
font-size: var(--sd-font-size-xl, 1.5rem) /* 24px */;
|
669
683
|
}
|
670
684
|
|
671
|
-
.sd-pagination ul li:first-child a,
|
685
|
+
.sd-pagination ul li:first-child a,
|
686
|
+
.sd-pagination ul li:first-child button,
|
687
|
+
.sd-pagination ul li:last-child a,
|
688
|
+
.sd-pagination ul li:last-child button {
|
672
689
|
height: 100%;
|
673
690
|
width: 100%;
|
674
691
|
}
|
@@ -684,25 +701,28 @@ Used for inverted pressed interaction text link */;
|
|
684
701
|
text-align: center;
|
685
702
|
}
|
686
703
|
|
687
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a
|
704
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) a,
|
705
|
+
.sd-pagination ul li:not(:first-child):not(:last-child) button {
|
688
706
|
height: 100%;
|
689
707
|
width: 100%;
|
690
708
|
border-bottom-width: 2px;
|
691
709
|
border-bottom-color: transparent;
|
692
710
|
}
|
693
711
|
|
694
|
-
.sd-pagination ul li:not(:first-child):not(:last-child) a[aria-current] {
|
712
|
+
.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
713
|
--tw-border-opacity: 1;
|
696
714
|
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
697
715
|
*/;
|
698
716
|
}
|
699
717
|
|
700
|
-
.sd-pagination ul li a[aria-current]
|
718
|
+
.sd-pagination ul li a[aria-current],
|
719
|
+
.sd-pagination ul li button[aria-current] {
|
701
720
|
|
702
721
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
703
722
|
}
|
704
723
|
|
705
|
-
.sd-pagination ul li a[aria-current]:hover:not([disabled])
|
724
|
+
.sd-pagination ul li a[aria-current]:hover:not([disabled]),
|
725
|
+
.sd-pagination ul li button[aria-current]:hover:not([disabled]) {
|
706
726
|
|
707
727
|
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
708
728
|
}
|
@@ -710,14 +730,18 @@ Used for inverted pressed interaction text link */;
|
|
710
730
|
/* Previous and next arrow when it has no href */
|
711
731
|
|
712
732
|
.sd-pagination ul li:first-child:has(a:not([href])) a,
|
713
|
-
.sd-pagination ul li:last-child:has(a:not([href])) a
|
733
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a,
|
734
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button,
|
735
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button {
|
714
736
|
cursor: not-allowed;
|
715
737
|
|
716
738
|
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
717
739
|
}
|
718
740
|
|
719
741
|
.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])
|
742
|
+
.sd-pagination ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
743
|
+
.sd-pagination ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
744
|
+
.sd-pagination ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
721
745
|
|
722
746
|
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
723
747
|
}
|
@@ -726,46 +750,68 @@ Used for inverted pressed interaction text link */;
|
|
726
750
|
|
727
751
|
/* Number which is not current */
|
728
752
|
|
729
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) {
|
753
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) {
|
730
754
|
pointer-events: none;
|
731
755
|
position: absolute;
|
732
756
|
}
|
733
757
|
|
734
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current])) a
|
758
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) a,
|
759
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):not(:has(a[aria-current], button[aria-current])) button {
|
735
760
|
display: none;
|
736
761
|
}
|
737
762
|
|
738
763
|
/* Apply ellipsis to (n + 2 && n - 1) */
|
739
764
|
|
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) {
|
765
|
+
.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
766
|
pointer-events: auto !important;
|
743
767
|
position: relative !important;
|
744
768
|
}
|
745
769
|
|
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 {
|
770
|
+
.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
771
|
--tw-content: '...';
|
749
772
|
content: var(--tw-content);
|
750
773
|
}
|
751
774
|
|
752
775
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2),
|
753
776
|
.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
|
-
|
777
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
778
|
+
+ li a[aria-current],
|
779
|
+
+ li button[aria-current]),
|
780
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
781
|
+
a[aria-current],
|
782
|
+
button[aria-current]) + li {
|
756
783
|
pointer-events: auto !important;
|
757
784
|
position: relative !important;
|
758
785
|
}
|
759
786
|
|
760
787
|
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2)::after,
|
761
788
|
.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
|
-
|
789
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
790
|
+
+ li a[aria-current],
|
791
|
+
+ li button[aria-current])::after,
|
792
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
793
|
+
a[aria-current],
|
794
|
+
button[aria-current]) + li::after {
|
764
795
|
content: var(--tw-content) !important;
|
765
796
|
display: none !important;
|
766
797
|
}
|
767
798
|
|
768
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
799
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) a,
|
800
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-child(2) button,
|
801
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) a,
|
802
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(2) button,
|
803
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
804
|
+
+ li a[aria-current],
|
805
|
+
+ li button[aria-current]) a,
|
806
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
807
|
+
+ li a[aria-current],
|
808
|
+
+ li button[aria-current]) button,
|
809
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
810
|
+
a[aria-current],
|
811
|
+
button[aria-current]) + li a,
|
812
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):has(
|
813
|
+
a[aria-current],
|
814
|
+
button[aria-current]) + li button {
|
769
815
|
display: flex !important;
|
770
816
|
}
|
771
817
|
|
@@ -773,88 +819,110 @@ Used for inverted pressed interaction text link */;
|
|
773
819
|
|
774
820
|
/* Show until the 5th page (forward) */
|
775
821
|
|
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) {
|
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) {
|
777
823
|
pointer-events: auto;
|
778
824
|
position: relative;
|
779
825
|
}
|
780
826
|
|
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 {
|
827
|
+
.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
828
|
content: var(--tw-content);
|
783
829
|
display: none;
|
784
830
|
}
|
785
831
|
|
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
|
832
|
+
.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,
|
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(-n + 6) button {
|
787
834
|
display: flex;
|
788
835
|
}
|
789
836
|
|
790
837
|
/* Show ellipsis on the 6th */
|
791
838
|
|
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 {
|
839
|
+
.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
840
|
pointer-events: none;
|
794
841
|
position: relative;
|
795
842
|
}
|
796
843
|
|
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 {
|
844
|
+
.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
845
|
--tw-content: '...';
|
799
846
|
content: var(--tw-content);
|
800
847
|
}
|
801
848
|
|
802
849
|
/* When one of the first 4 pages is selected, show until the 5th page (backward) */
|
803
850
|
|
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]) {
|
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]) {
|
805
852
|
pointer-events: auto;
|
806
853
|
position: relative;
|
807
854
|
}
|
808
855
|
|
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 {
|
856
|
+
.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
857
|
content: var(--tw-content);
|
811
858
|
display: none;
|
812
859
|
}
|
813
860
|
|
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
|
861
|
+
.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,
|
862
|
+
.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
863
|
display: flex;
|
816
864
|
}
|
817
865
|
|
818
866
|
/* When one of the last 4 pages is selected, show the last 4 pages (forward) */
|
819
867
|
|
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) {
|
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) {
|
821
869
|
pointer-events: auto;
|
822
870
|
position: relative;
|
823
871
|
}
|
824
872
|
|
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 {
|
873
|
+
.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
874
|
content: var(--tw-content);
|
827
875
|
display: none;
|
828
876
|
}
|
829
877
|
|
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
|
878
|
+
.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,
|
879
|
+
.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
880
|
display: flex;
|
832
881
|
}
|
833
882
|
|
834
883
|
/* When one of the last 4 pages is selected, show the last 4 pages (backward) */
|
835
884
|
|
836
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
885
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
886
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
887
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
888
|
+
) {
|
837
889
|
pointer-events: auto;
|
838
890
|
position: relative;
|
839
891
|
}
|
840
892
|
|
841
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
893
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
894
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
895
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
896
|
+
)::after {
|
842
897
|
content: var(--tw-content);
|
843
898
|
display: none;
|
844
899
|
}
|
845
900
|
|
846
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
901
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
902
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
903
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
904
|
+
) a,
|
905
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(-n + 6):has(
|
906
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
907
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
908
|
+
) button {
|
847
909
|
display: flex;
|
848
910
|
}
|
849
911
|
|
850
912
|
/* Show ellipsis on the 6th to last */
|
851
913
|
|
852
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
914
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
915
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
916
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
917
|
+
) {
|
853
918
|
pointer-events: none;
|
854
919
|
position: relative;
|
855
920
|
}
|
856
921
|
|
857
|
-
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
922
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:first-child):not(:last-child):nth-last-child(7):has(
|
923
|
+
~ :nth-last-child(-n + 5) a[aria-current],
|
924
|
+
~ :nth-last-child(-n + 5) button[aria-current]
|
925
|
+
)::after {
|
858
926
|
--tw-content: '...';
|
859
927
|
content: var(--tw-content);
|
860
928
|
}
|
@@ -871,7 +939,8 @@ Used for inverted pressed interaction text link */;
|
|
871
939
|
display: none;
|
872
940
|
}
|
873
941
|
|
874
|
-
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a
|
942
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a,
|
943
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li button {
|
875
944
|
display: flex;
|
876
945
|
}
|
877
946
|
|
@@ -894,6 +963,11 @@ Used for inverted pressed interaction text link */;
|
|
894
963
|
content: var(--tw-content);
|
895
964
|
}
|
896
965
|
|
966
|
+
.sd-pagination--simple ul li:nth-child(2) {
|
967
|
+
|
968
|
+
border-bottom-style: solid;
|
969
|
+
}
|
970
|
+
|
897
971
|
.sd-pagination--simple ul li:nth-last-child(2) {
|
898
972
|
border-bottom-width: 2px;
|
899
973
|
border-bottom-color: transparent;
|
@@ -906,37 +980,47 @@ Used for inverted pressed interaction text link */;
|
|
906
980
|
}
|
907
981
|
|
908
982
|
.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
|
983
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a,
|
984
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button,
|
985
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button {
|
910
986
|
|
911
987
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
912
988
|
}
|
913
989
|
|
914
990
|
.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])
|
991
|
+
.sd-pagination--inverted ul li:last-child:has(a:not([href])) a:hover:not([disabled]),
|
992
|
+
.sd-pagination--inverted ul li:first-child:has(button[disabled]) button:hover:not([disabled]),
|
993
|
+
.sd-pagination--inverted ul li:last-child:has(button[disabled]) button:hover:not([disabled]) {
|
916
994
|
|
917
995
|
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
918
996
|
}
|
919
997
|
|
920
998
|
.sd-pagination--inverted ul li a,
|
921
|
-
.sd-pagination--inverted ul li a[aria-current]
|
999
|
+
.sd-pagination--inverted ul li a[aria-current],
|
1000
|
+
.sd-pagination--inverted ul li button,
|
1001
|
+
.sd-pagination--inverted ul li button[aria-current] {
|
922
1002
|
|
923
1003
|
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
924
1004
|
}
|
925
1005
|
|
926
1006
|
.sd-pagination--inverted ul li a:hover:not([disabled]),
|
927
|
-
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled])
|
1007
|
+
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]),
|
1008
|
+
.sd-pagination--inverted ul li button:hover:not([disabled]),
|
1009
|
+
.sd-pagination--inverted ul li button[aria-current]:hover:not([disabled]) {
|
928
1010
|
|
929
1011
|
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
1012
|
}
|
931
1013
|
|
932
1014
|
.sd-pagination--inverted ul li a:active:not([disabled]),
|
933
|
-
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled])
|
1015
|
+
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled]),
|
1016
|
+
.sd-pagination--inverted ul li button:active:not([disabled]),
|
1017
|
+
.sd-pagination--inverted ul li button[aria-current]:active:not([disabled]) {
|
934
1018
|
|
935
1019
|
color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
|
936
1020
|
Used for inverted pressed interaction text link */;
|
937
1021
|
}
|
938
1022
|
|
939
|
-
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
|
1023
|
+
.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
1024
|
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */;
|
941
1025
|
}
|
942
1026
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* Generates basic styles for chip elements.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-5-1-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-1-chip--...
|
7
7
|
*/
|
8
8
|
|
9
|
-
.sd-1-
|
9
|
+
.sd-1-5-1-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-1-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-1-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-1-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-1-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-1-container--variant-... Defines the background color and border of sd-1-5-1-container.
|
7
|
+
* @variant { sm } sd-1-5-1-container--padding-... Defines the padding of sd-1-5-1-container. This makes it adaptable to both small and large screens.
|
8
|
+
* @variant { top | right | bottom | left } sd-1-5-1-container--triangle-... Defines an optional triangle cut-out for sd-1-5-1-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-1-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-1-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-1-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-1-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-1-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-1-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-1-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-1-container--triangle-top::before,
|
60
|
+
.sd-1-5-1-container--triangle-right::before,
|
61
|
+
.sd-1-5-1-container--triangle-bottom::before,
|
62
|
+
.sd-1-5-1-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-1-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-1-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-1-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-1-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-1-container--triangle-top-border::after,
|
96
|
+
.sd-1-5-1-container--triangle-top-border::before,
|
97
|
+
.sd-1-5-1-container--triangle-right-border::after,
|
98
|
+
.sd-1-5-1-container--triangle-right-border::before,
|
99
|
+
.sd-1-5-1-container--triangle-bottom-border::after,
|
100
|
+
.sd-1-5-1-container--triangle-bottom-border::before,
|
101
|
+
.sd-1-5-1-container--triangle-left-border::after,
|
102
|
+
.sd-1-5-1-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-1-container--triangle-top-border::after, .sd-1-5-1-container--triangle-right-border::after, .sd-1-5-1-container--triangle-bottom-border::after, .sd-1-5-1-container--triangle-left-border::after {
|
111
111
|
border-width: 14px;
|
112
112
|
}
|
113
113
|
|
114
|
-
.sd-1-
|
114
|
+
.sd-1-5-1-container--triangle-top-border::before, .sd-1-5-1-container--triangle-right-border::before, .sd-1-5-1-container--triangle-bottom-border::before, .sd-1-5-1-container--triangle-left-border::before {
|
115
115
|
border-width: 15px;
|
116
116
|
}
|
117
117
|
|
118
|
-
.sd-1-
|
119
|
-
.sd-1-
|
118
|
+
.sd-1-5-1-container--triangle-top-border::after,
|
119
|
+
.sd-1-5-1-container--triangle-top-border::before {
|
120
120
|
top: -1px;
|
121
121
|
}
|
122
122
|
|
123
|
-
.sd-1-
|
123
|
+
.sd-1-5-1-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-1-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-1-container--triangle-right-border::after,
|
136
|
+
.sd-1-5-1-container--triangle-right-border::before {
|
137
137
|
right: -1px;
|
138
138
|
}
|
139
139
|
|
140
|
-
.sd-1-
|
140
|
+
.sd-1-5-1-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-1-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-1-container--triangle-bottom-border::after,
|
153
|
+
.sd-1-5-1-container--triangle-bottom-border::before {
|
154
154
|
bottom: -1px;
|
155
155
|
}
|
156
156
|
|
157
|
-
.sd-1-
|
157
|
+
.sd-1-5-1-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-1-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-1-container--triangle-left-border::after,
|
170
|
+
.sd-1-5-1-container--triangle-left-border::before {
|
171
171
|
left: -1px;
|
172
172
|
}
|
173
173
|
|
174
|
-
.sd-1-
|
174
|
+
.sd-1-5-1-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-1-container--triangle-left-border::after {
|
182
182
|
top: calc(50% - 14px);
|
183
183
|
border-left-color: var(--triangle-background);
|
184
184
|
}
|