@solid-design-system/styles 1.2.0 → 1.3.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 +16 -0
- package/cdn/modules/copyright.css +1 -1
- package/cdn/modules/pagination.css +1 -0
- 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 -0
- 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/copyright.css +38 -29
- package/dist/modules/pagination.css +469 -0
- package/dist/solid-styles.css +351 -0
- package/dist-versioned/modules/chip.css +6 -6
- package/dist-versioned/modules/container.css +45 -45
- package/dist-versioned/modules/copyright.css +49 -40
- 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 +469 -0
- 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 +707 -356
- package/package.json +7 -10
package/dist/solid-styles.css
CHANGED
@@ -237,6 +237,15 @@ Used for divider, teaser, container, ... */;
|
|
237
237
|
|
238
238
|
.sd-copyright {
|
239
239
|
position: relative;
|
240
|
+
/* Bug fix for drop-shadow-sm */
|
241
|
+
--tw-blur: ;
|
242
|
+
--tw-brightness: ;
|
243
|
+
--tw-contrast: ;
|
244
|
+
--tw-grayscale: ;
|
245
|
+
--tw-hue-rotate: ;
|
246
|
+
--tw-invert: ;
|
247
|
+
--tw-saturate: ;
|
248
|
+
--tw-sepia: ;
|
240
249
|
}
|
241
250
|
|
242
251
|
.sd-copyright::after {
|
@@ -599,6 +608,348 @@ Used for inverted pressed interaction text link */;
|
|
599
608
|
margin-right: var(--sd-spacing-0-5, 0.125rem) /* 2px */;
|
600
609
|
}
|
601
610
|
|
611
|
+
/**
|
612
|
+
* Used to split large content into several pages, allowing users to navigate between them instead of displaying all information on a single page.
|
613
|
+
* @name sd-pagination
|
614
|
+
* @status stable
|
615
|
+
* @since 1.3
|
616
|
+
* @variant { simple } sd-pagination--... The pagination format.
|
617
|
+
* @boolean sd-pagination--inverted Inverts the pagination style.
|
618
|
+
*/
|
619
|
+
|
620
|
+
.sd-pagination > :not(ul) {
|
621
|
+
position: absolute;
|
622
|
+
height: var(--sd-spacing-0-25, 1px) /* 1px */;
|
623
|
+
width: var(--sd-spacing-0-25, 1px) /* 1px */;
|
624
|
+
overflow: hidden;
|
625
|
+
}
|
626
|
+
|
627
|
+
.sd-pagination ul {
|
628
|
+
display: flex;
|
629
|
+
align-items: center;
|
630
|
+
gap: var(--sd-spacing-2, 0.5rem) /* 8px */;
|
631
|
+
}
|
632
|
+
|
633
|
+
.sd-pagination ul li a {
|
634
|
+
display: flex;
|
635
|
+
align-items: center;
|
636
|
+
justify-content: center;
|
637
|
+
|
638
|
+
color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
|
639
|
+
transition-property: color;
|
640
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
641
|
+
transition-duration: 150ms;
|
642
|
+
}
|
643
|
+
|
644
|
+
.sd-pagination ul li a:hover:not([disabled]) {
|
645
|
+
|
646
|
+
color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */;
|
647
|
+
}
|
648
|
+
|
649
|
+
.sd-pagination ul li a:active:not([disabled]) {
|
650
|
+
|
651
|
+
color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */;
|
652
|
+
}
|
653
|
+
|
654
|
+
.sd-pagination ul li a:focus-visible {
|
655
|
+
outline-style: solid;
|
656
|
+
outline-width: 2px;
|
657
|
+
outline-offset: 2px;
|
658
|
+
outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */;
|
659
|
+
}
|
660
|
+
|
661
|
+
/* Previous and Next */
|
662
|
+
|
663
|
+
.sd-pagination ul li:first-child,
|
664
|
+
.sd-pagination ul li:last-child {
|
665
|
+
height: var(--sd-spacing-12, 3rem) /* 48px */;
|
666
|
+
width: var(--sd-spacing-12, 3rem) /* 48px */;
|
667
|
+
}
|
668
|
+
|
669
|
+
.sd-pagination ul li:first-child a, .sd-pagination ul li:last-child a {
|
670
|
+
height: 100%;
|
671
|
+
width: 100%;
|
672
|
+
}
|
673
|
+
|
674
|
+
.sd-pagination ul li:first-child sd-icon, .sd-pagination ul li:last-child sd-icon {
|
675
|
+
height: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
676
|
+
width: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
677
|
+
}
|
678
|
+
|
679
|
+
/* Numbers */
|
680
|
+
|
681
|
+
.sd-pagination ul li {
|
682
|
+
display: flex;
|
683
|
+
height: var(--sd-spacing-8, 2rem) /* 32px */;
|
684
|
+
width: var(--sd-spacing-8, 2rem) /* 32px */;
|
685
|
+
align-items: center;
|
686
|
+
justify-content: center;
|
687
|
+
text-align: center;
|
688
|
+
}
|
689
|
+
|
690
|
+
.sd-pagination ul li:not(:has(a sd-icon)) a {
|
691
|
+
height: 100%;
|
692
|
+
width: 100%;
|
693
|
+
border-bottom-width: 2px;
|
694
|
+
border-bottom-color: transparent;
|
695
|
+
}
|
696
|
+
|
697
|
+
.sd-pagination ul li:not(:has(a sd-icon)) a[aria-current] {
|
698
|
+
--tw-border-opacity: 1;
|
699
|
+
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
700
|
+
*/;
|
701
|
+
}
|
702
|
+
|
703
|
+
.sd-pagination ul li a[aria-current] {
|
704
|
+
|
705
|
+
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
706
|
+
}
|
707
|
+
|
708
|
+
.sd-pagination ul li a[aria-current]:hover:not([disabled]) {
|
709
|
+
|
710
|
+
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
711
|
+
}
|
712
|
+
|
713
|
+
/* Previous and next arrow when it has no href */
|
714
|
+
|
715
|
+
.sd-pagination ul li:has(a:not([href]) sd-icon) a {
|
716
|
+
cursor: not-allowed;
|
717
|
+
|
718
|
+
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
719
|
+
}
|
720
|
+
|
721
|
+
.sd-pagination ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
|
722
|
+
|
723
|
+
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
724
|
+
}
|
725
|
+
|
726
|
+
/* Numbers */
|
727
|
+
|
728
|
+
/* Number which is not current */
|
729
|
+
|
730
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) {
|
731
|
+
pointer-events: none;
|
732
|
+
position: absolute;
|
733
|
+
}
|
734
|
+
|
735
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) a {
|
736
|
+
display: none;
|
737
|
+
}
|
738
|
+
|
739
|
+
/* Apply ellipsis to (n + 2 && n - 1) */
|
740
|
+
|
741
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current]),
|
742
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child) {
|
743
|
+
pointer-events: auto !important;
|
744
|
+
position: relative !important;
|
745
|
+
}
|
746
|
+
|
747
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current])::after,
|
748
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child)::after {
|
749
|
+
--tw-content: '...';
|
750
|
+
content: var(--tw-content);
|
751
|
+
}
|
752
|
+
|
753
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2),
|
754
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2),
|
755
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]),
|
756
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li {
|
757
|
+
pointer-events: auto !important;
|
758
|
+
position: relative !important;
|
759
|
+
}
|
760
|
+
|
761
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2)::after,
|
762
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2)::after,
|
763
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current])::after,
|
764
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li::after {
|
765
|
+
content: var(--tw-content) !important;
|
766
|
+
display: none !important;
|
767
|
+
}
|
768
|
+
|
769
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]) a, .sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li a {
|
770
|
+
display: flex !important;
|
771
|
+
}
|
772
|
+
|
773
|
+
/* When one of the first 4 pages is selected */
|
774
|
+
|
775
|
+
/* Show until the 5th page (forward) */
|
776
|
+
|
777
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) {
|
778
|
+
pointer-events: auto;
|
779
|
+
position: relative;
|
780
|
+
}
|
781
|
+
|
782
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6)::after {
|
783
|
+
content: var(--tw-content);
|
784
|
+
display: none;
|
785
|
+
}
|
786
|
+
|
787
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(-n + 6) a {
|
788
|
+
display: flex;
|
789
|
+
}
|
790
|
+
|
791
|
+
/* Show ellipsis on the 6th */
|
792
|
+
|
793
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li {
|
794
|
+
pointer-events: none;
|
795
|
+
position: relative;
|
796
|
+
}
|
797
|
+
|
798
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(a[aria-current]) ~ :nth-child(6):not(:last-child) + li::after {
|
799
|
+
--tw-content: '...';
|
800
|
+
content: var(--tw-content);
|
801
|
+
}
|
802
|
+
|
803
|
+
/* When one of the first 4 pages is selected, show until the 5th page (backward) */
|
804
|
+
|
805
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) {
|
806
|
+
pointer-events: auto;
|
807
|
+
position: relative;
|
808
|
+
}
|
809
|
+
|
810
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current])::after {
|
811
|
+
content: var(--tw-content);
|
812
|
+
display: none;
|
813
|
+
}
|
814
|
+
|
815
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(-n + 6):has(~ :nth-child(-n + 5) a[aria-current]) a {
|
816
|
+
display: flex;
|
817
|
+
}
|
818
|
+
|
819
|
+
/* When one of the last 4 pages is selected, show the last 4 pages (forward) */
|
820
|
+
|
821
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) {
|
822
|
+
pointer-events: auto;
|
823
|
+
position: relative;
|
824
|
+
}
|
825
|
+
|
826
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon))::after {
|
827
|
+
content: var(--tw-content);
|
828
|
+
display: none;
|
829
|
+
}
|
830
|
+
|
831
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 5):has(a[aria-current]) ~ :nth-last-child(-n + 5):not(:has(a sd-icon)) a {
|
832
|
+
display: flex;
|
833
|
+
}
|
834
|
+
|
835
|
+
/* When one of the last 4 pages is selected, show the last 4 pages (backward) */
|
836
|
+
|
837
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) {
|
838
|
+
pointer-events: auto;
|
839
|
+
position: relative;
|
840
|
+
}
|
841
|
+
|
842
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
|
843
|
+
content: var(--tw-content);
|
844
|
+
display: none;
|
845
|
+
}
|
846
|
+
|
847
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(-n + 6):has(~ :nth-last-child(-n + 5) a[aria-current]) a {
|
848
|
+
display: flex;
|
849
|
+
}
|
850
|
+
|
851
|
+
/* Show ellipsis on the 6th to last */
|
852
|
+
|
853
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current]) {
|
854
|
+
pointer-events: none;
|
855
|
+
position: relative;
|
856
|
+
}
|
857
|
+
|
858
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(7):has(~ :nth-last-child(-n + 5) a[aria-current])::after {
|
859
|
+
--tw-content: '...';
|
860
|
+
content: var(--tw-content);
|
861
|
+
}
|
862
|
+
|
863
|
+
/* When it only has 5 numbers + 2 prev & next buttons */
|
864
|
+
|
865
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li {
|
866
|
+
pointer-events: auto;
|
867
|
+
position: relative;
|
868
|
+
}
|
869
|
+
|
870
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li::after {
|
871
|
+
content: var(--tw-content);
|
872
|
+
display: none;
|
873
|
+
}
|
874
|
+
|
875
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a {
|
876
|
+
display: flex;
|
877
|
+
}
|
878
|
+
|
879
|
+
.sd-pagination--simple ul li:nth-child(2) {
|
880
|
+
position: relative;
|
881
|
+
margin-inline-end: var(--sd-spacing-5, 1.25rem) /* 20px */;
|
882
|
+
width: var(--sd-spacing-8, 2rem) /* 32px */;
|
883
|
+
border-bottom-width: 2px;
|
884
|
+
--tw-border-opacity: 1;
|
885
|
+
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
886
|
+
*/;
|
887
|
+
}
|
888
|
+
|
889
|
+
.sd-pagination--simple ul li:nth-child(2)::after {
|
890
|
+
position: absolute;
|
891
|
+
right: -18px;
|
892
|
+
--tw-scale-y: 1.5;
|
893
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
894
|
+
--tw-content: '/';
|
895
|
+
content: var(--tw-content);
|
896
|
+
}
|
897
|
+
|
898
|
+
.sd-pagination--simple ul li:nth-last-child(2) {
|
899
|
+
border-bottom-width: 2px;
|
900
|
+
border-bottom-color: transparent;
|
901
|
+
}
|
902
|
+
|
903
|
+
.sd-pagination--inverted ul li::after {
|
904
|
+
content: var(--tw-content);
|
905
|
+
|
906
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
907
|
+
}
|
908
|
+
|
909
|
+
.sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a {
|
910
|
+
|
911
|
+
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
912
|
+
}
|
913
|
+
|
914
|
+
.sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
|
915
|
+
|
916
|
+
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
917
|
+
}
|
918
|
+
|
919
|
+
.sd-pagination--inverted ul li a,
|
920
|
+
.sd-pagination--inverted ul li a[aria-current] {
|
921
|
+
|
922
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
923
|
+
}
|
924
|
+
|
925
|
+
.sd-pagination--inverted ul li a:hover:not([disabled]),
|
926
|
+
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]) {
|
927
|
+
|
928
|
+
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 */;
|
929
|
+
}
|
930
|
+
|
931
|
+
.sd-pagination--inverted ul li a:active:not([disabled]),
|
932
|
+
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled]) {
|
933
|
+
|
934
|
+
color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
|
935
|
+
Used for inverted pressed interaction text link */;
|
936
|
+
}
|
937
|
+
|
938
|
+
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
|
939
|
+
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */;
|
940
|
+
}
|
941
|
+
|
942
|
+
.sd-pagination--inverted.sd-pagination--simple ul li {
|
943
|
+
|
944
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
945
|
+
}
|
946
|
+
|
947
|
+
.sd-pagination--inverted.sd-pagination--simple ul li::after {
|
948
|
+
content: var(--tw-content);
|
949
|
+
|
950
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
951
|
+
}
|
952
|
+
|
602
953
|
/**
|
603
954
|
* Description of the style.
|
604
955
|
* @name sd-status-badge
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* Generates basic styles for chip elements.
|
3
|
-
* @name sd-1-
|
3
|
+
* @name sd-1-3-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-3-1-chip--...
|
7
7
|
*/
|
8
8
|
|
9
|
-
.sd-1-
|
9
|
+
.sd-1-3-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-3-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-3-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-3-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-3-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-3-1-container--variant-... Defines the background color and border of sd-1-3-1-container.
|
7
|
+
* @variant { sm } sd-1-3-1-container--padding-... Defines the padding of sd-1-3-1-container. This makes it adaptable to both small and large screens.
|
8
|
+
* @variant { top | right | bottom | left } sd-1-3-1-container--triangle-... Defines an optional triangle cut-out for sd-1-3-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-3-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-3-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-3-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-3-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-3-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-3-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-3-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-3-1-container--triangle-top::before,
|
60
|
+
.sd-1-3-1-container--triangle-right::before,
|
61
|
+
.sd-1-3-1-container--triangle-bottom::before,
|
62
|
+
.sd-1-3-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-3-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-3-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-3-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-3-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-3-1-container--triangle-top-border::after,
|
96
|
+
.sd-1-3-1-container--triangle-top-border::before,
|
97
|
+
.sd-1-3-1-container--triangle-right-border::after,
|
98
|
+
.sd-1-3-1-container--triangle-right-border::before,
|
99
|
+
.sd-1-3-1-container--triangle-bottom-border::after,
|
100
|
+
.sd-1-3-1-container--triangle-bottom-border::before,
|
101
|
+
.sd-1-3-1-container--triangle-left-border::after,
|
102
|
+
.sd-1-3-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-3-1-container--triangle-top-border::after, .sd-1-3-1-container--triangle-right-border::after, .sd-1-3-1-container--triangle-bottom-border::after, .sd-1-3-1-container--triangle-left-border::after {
|
111
111
|
border-width: 14px;
|
112
112
|
}
|
113
113
|
|
114
|
-
.sd-1-
|
114
|
+
.sd-1-3-1-container--triangle-top-border::before, .sd-1-3-1-container--triangle-right-border::before, .sd-1-3-1-container--triangle-bottom-border::before, .sd-1-3-1-container--triangle-left-border::before {
|
115
115
|
border-width: 15px;
|
116
116
|
}
|
117
117
|
|
118
|
-
.sd-1-
|
119
|
-
.sd-1-
|
118
|
+
.sd-1-3-1-container--triangle-top-border::after,
|
119
|
+
.sd-1-3-1-container--triangle-top-border::before {
|
120
120
|
top: -1px;
|
121
121
|
}
|
122
122
|
|
123
|
-
.sd-1-
|
123
|
+
.sd-1-3-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-3-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-3-1-container--triangle-right-border::after,
|
136
|
+
.sd-1-3-1-container--triangle-right-border::before {
|
137
137
|
right: -1px;
|
138
138
|
}
|
139
139
|
|
140
|
-
.sd-1-
|
140
|
+
.sd-1-3-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-3-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-3-1-container--triangle-bottom-border::after,
|
153
|
+
.sd-1-3-1-container--triangle-bottom-border::before {
|
154
154
|
bottom: -1px;
|
155
155
|
}
|
156
156
|
|
157
|
-
.sd-1-
|
157
|
+
.sd-1-3-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-3-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-3-1-container--triangle-left-border::after,
|
170
|
+
.sd-1-3-1-container--triangle-left-border::before {
|
171
171
|
left: -1px;
|
172
172
|
}
|
173
173
|
|
174
|
-
.sd-1-
|
174
|
+
.sd-1-3-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-3-1-container--triangle-left-border::after {
|
182
182
|
top: calc(50% - 14px);
|
183
183
|
border-left-color: var(--triangle-background);
|
184
184
|
}
|