@solid-design-system/styles 1.1.0 → 1.3.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 +14 -0
- package/cdn/modules/footnotes.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/footnotes.css +114 -7
- package/dist/modules/pagination.css +469 -0
- package/dist/solid-styles.css +456 -7
- 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 +120 -13
- 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 +790 -341
- package/package.json +5 -8
package/dist/solid-styles.css
CHANGED
@@ -346,19 +346,65 @@ Used for divider, teaser, container, ... */;
|
|
346
346
|
color: rgb(var(--sd-color-neutral-700, 104 104 104) / var(--tw-text-opacity, 1)) /* Additional text color */;
|
347
347
|
}
|
348
348
|
|
349
|
+
.sd-footnotes :target {
|
350
|
+
|
351
|
+
background-color: rgb(var(--sd-color-neutral-200, 233 233 233) / var(--tw-bg-opacity, 1)) /* Used for hover interaction */;
|
352
|
+
}
|
353
|
+
|
354
|
+
.sd-footnotes:is(ol) {
|
355
|
+
padding-inline-start: var(--sd-spacing-8, 2rem) /* 32px */;
|
356
|
+
}
|
357
|
+
|
349
358
|
.sd-footnotes:is(ol) li {
|
350
359
|
counter-increment: list-item;
|
351
|
-
|
352
|
-
|
360
|
+
position: relative;
|
361
|
+
list-style-type: none;
|
353
362
|
}
|
354
363
|
|
355
|
-
.sd-footnotes:is(ol) li::before {
|
356
|
-
|
364
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker::before, .sd-footnotes:is(ol) li:has(.sd-footnotes--marker:nth-of-type(2))::before, .sd-footnotes:is(ol) li:not(:has(.sd-footnotes--marker))::before {
|
365
|
+
position: absolute;
|
366
|
+
left: calc(var(--sd-spacing-8, 2rem) /* 32px */ * -1);
|
357
367
|
flex-shrink: 0;
|
368
|
+
font-weight: 700;
|
358
369
|
line-height: var(--sd-line-height-normal, 150%) /* Used for body copy and smaller titles */;
|
359
|
-
|
360
|
-
|
361
|
-
|
370
|
+
content: '[ ' counter(list-item) ' ]';
|
371
|
+
padding-top: 1px;
|
372
|
+
font-size: 10px;
|
373
|
+
}
|
374
|
+
|
375
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker::after, .sd-footnotes:is(ol) li:has(.sd-footnotes--marker:nth-of-type(2))::after, .sd-footnotes:is(ol) li:not(:has(.sd-footnotes--marker))::after {
|
376
|
+
content: none;
|
377
|
+
}
|
378
|
+
|
379
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker .sd-footnotes--marker, .sd-footnotes:is(ol) li:has(.sd-footnotes--marker:nth-of-type(2)) .sd-footnotes--marker, .sd-footnotes:is(ol) li:not(:has(.sd-footnotes--marker)) .sd-footnotes--marker {
|
380
|
+
display: inline-block;
|
381
|
+
counter-increment: footnotes-multiple;
|
382
|
+
}
|
383
|
+
|
384
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker .sd-footnotes--marker::before, .sd-footnotes:is(ol) li:has(.sd-footnotes--marker:nth-of-type(2)) .sd-footnotes--marker::before, .sd-footnotes:is(ol) li:not(:has(.sd-footnotes--marker)) .sd-footnotes--marker::before {
|
385
|
+
position: relative;
|
386
|
+
left: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
387
|
+
vertical-align: super;
|
388
|
+
font-weight: 700;
|
389
|
+
line-height: var(--sd-line-height-normal, 150%) /* Used for body copy and smaller titles */;
|
390
|
+
content: counter(footnotes-multiple, lower-alpha);
|
391
|
+
}
|
392
|
+
|
393
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker {
|
394
|
+
bottom: var(--sd-spacing-0, 0px) /* No spacing (manually added) */;
|
395
|
+
display: block;
|
396
|
+
}
|
397
|
+
|
398
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker:focus-visible {
|
399
|
+
outline-width: 0px;
|
400
|
+
}
|
401
|
+
|
402
|
+
.sd-footnotes:is(ol) li .sd-footnotes--marker:focus-visible::before {
|
403
|
+
border-radius: var(--sd-border-radius-default, 0.25rem) /* 4px Default radius for buttons */;
|
404
|
+
outline-style: solid;
|
405
|
+
outline-width: 2px;
|
406
|
+
outline-offset: 2px;
|
407
|
+
outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */;
|
362
408
|
}
|
363
409
|
|
364
410
|
.sd-footnotes:is(ul) {
|
@@ -371,6 +417,67 @@ Used for divider, teaser, container, ... */;
|
|
371
417
|
Used for inverted pressed interaction text link */;
|
372
418
|
}
|
373
419
|
|
420
|
+
.sd-footnotes--inverted :target {
|
421
|
+
|
422
|
+
background-color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-bg-opacity, 1)) /* Used for pressed interaction */;
|
423
|
+
}
|
424
|
+
|
425
|
+
.sd-footnotes--inverted .sd-footnotes--marker::before {
|
426
|
+
|
427
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
428
|
+
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */ !important;
|
429
|
+
}
|
430
|
+
|
431
|
+
.sd-footnotes--inverted:is(.sd-footnotes--marker) {
|
432
|
+
--tw-text-opacity: 1 !important;
|
433
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */ !important;
|
434
|
+
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */ !important;
|
435
|
+
}
|
436
|
+
|
437
|
+
.sd-footnotes--inverted:is(.sd-footnotes--marker):target {
|
438
|
+
|
439
|
+
background-color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-bg-opacity, 1)) /* Used for pressed interaction */;
|
440
|
+
}
|
441
|
+
|
442
|
+
.sd-footnotes--marker {
|
443
|
+
position: relative;
|
444
|
+
bottom: var(--sd-spacing-2, 0.5rem) /* 8px */;
|
445
|
+
display: inline-block;
|
446
|
+
white-space: nowrap;
|
447
|
+
font-weight: 700;
|
448
|
+
text-decoration-line: none !important;
|
449
|
+
font-size: x-small;
|
450
|
+
}
|
451
|
+
|
452
|
+
.sd-footnotes--marker:target {
|
453
|
+
|
454
|
+
background-color: rgb(var(--sd-color-neutral-200, 233 233 233) / var(--tw-bg-opacity, 1)) /* Used for hover interaction */;
|
455
|
+
}
|
456
|
+
|
457
|
+
.sd-footnotes--marker::before {
|
458
|
+
content: '[ ';
|
459
|
+
display: inline-block;
|
460
|
+
}
|
461
|
+
|
462
|
+
.sd-footnotes--marker::after {
|
463
|
+
content: ' ]';
|
464
|
+
display: inline-block;
|
465
|
+
}
|
466
|
+
|
467
|
+
.sd-footnotes--marker:link,
|
468
|
+
.sd-footnotes--marker:visited {
|
469
|
+
|
470
|
+
color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
|
471
|
+
}
|
472
|
+
|
473
|
+
.sd-footnotes--marker:focus-visible {
|
474
|
+
border-radius: var(--sd-border-radius-default, 0.25rem) /* 4px Default radius for buttons */;
|
475
|
+
outline-style: solid;
|
476
|
+
outline-width: 2px;
|
477
|
+
outline-offset: 2px;
|
478
|
+
outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */;
|
479
|
+
}
|
480
|
+
|
374
481
|
/**
|
375
482
|
* Hidden links can be used to show links only for keyboard users.
|
376
483
|
* @name sd-hidden-links
|
@@ -492,6 +599,348 @@ Used for inverted pressed interaction text link */;
|
|
492
599
|
margin-right: var(--sd-spacing-0-5, 0.125rem) /* 2px */;
|
493
600
|
}
|
494
601
|
|
602
|
+
/**
|
603
|
+
* Used to split large content into several pages, allowing users to navigate between them instead of displaying all information on a single page.
|
604
|
+
* @name sd-pagination
|
605
|
+
* @status stable
|
606
|
+
* @since 1.3
|
607
|
+
* @variant { simple } sd-pagination--... The pagination format.
|
608
|
+
* @boolean sd-pagination--inverted Inverts the pagination style.
|
609
|
+
*/
|
610
|
+
|
611
|
+
.sd-pagination > :not(ul) {
|
612
|
+
position: absolute;
|
613
|
+
height: var(--sd-spacing-0-25, 1px) /* 1px */;
|
614
|
+
width: var(--sd-spacing-0-25, 1px) /* 1px */;
|
615
|
+
overflow: hidden;
|
616
|
+
}
|
617
|
+
|
618
|
+
.sd-pagination ul {
|
619
|
+
display: flex;
|
620
|
+
align-items: center;
|
621
|
+
gap: var(--sd-spacing-2, 0.5rem) /* 8px */;
|
622
|
+
}
|
623
|
+
|
624
|
+
.sd-pagination ul li a {
|
625
|
+
display: flex;
|
626
|
+
align-items: center;
|
627
|
+
justify-content: center;
|
628
|
+
|
629
|
+
color: rgb(var(--sd-color-primary, 0 53 142) / var(--tw-text-opacity, 1)) /* Primary brand color for text */;
|
630
|
+
transition-property: color;
|
631
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
632
|
+
transition-duration: 150ms;
|
633
|
+
}
|
634
|
+
|
635
|
+
.sd-pagination ul li a:hover:not([disabled]) {
|
636
|
+
|
637
|
+
color: rgb(var(--sd-color-primary-500, 70 109 175) / var(--tw-text-opacity, 1)) /* Used for hover interaction */;
|
638
|
+
}
|
639
|
+
|
640
|
+
.sd-pagination ul li a:active:not([disabled]) {
|
641
|
+
|
642
|
+
color: rgb(var(--sd-color-primary-800, 5 21 48) / var(--tw-text-opacity, 1)) /* Used for pressed interaction */;
|
643
|
+
}
|
644
|
+
|
645
|
+
.sd-pagination ul li a:focus-visible {
|
646
|
+
outline-style: solid;
|
647
|
+
outline-width: 2px;
|
648
|
+
outline-offset: 2px;
|
649
|
+
outline-color: rgb(var(--sd-color-primary, 0 53 142) / 1) /* Used for buttons, select field, focus state */;
|
650
|
+
}
|
651
|
+
|
652
|
+
/* Previous and Next */
|
653
|
+
|
654
|
+
.sd-pagination ul li:first-child,
|
655
|
+
.sd-pagination ul li:last-child {
|
656
|
+
height: var(--sd-spacing-12, 3rem) /* 48px */;
|
657
|
+
width: var(--sd-spacing-12, 3rem) /* 48px */;
|
658
|
+
}
|
659
|
+
|
660
|
+
.sd-pagination ul li:first-child a, .sd-pagination ul li:last-child a {
|
661
|
+
height: 100%;
|
662
|
+
width: 100%;
|
663
|
+
}
|
664
|
+
|
665
|
+
.sd-pagination ul li:first-child sd-icon, .sd-pagination ul li:last-child sd-icon {
|
666
|
+
height: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
667
|
+
width: var(--sd-spacing-6, 1.5rem) /* 24px */;
|
668
|
+
}
|
669
|
+
|
670
|
+
/* Numbers */
|
671
|
+
|
672
|
+
.sd-pagination ul li {
|
673
|
+
display: flex;
|
674
|
+
height: var(--sd-spacing-8, 2rem) /* 32px */;
|
675
|
+
width: var(--sd-spacing-8, 2rem) /* 32px */;
|
676
|
+
align-items: center;
|
677
|
+
justify-content: center;
|
678
|
+
text-align: center;
|
679
|
+
}
|
680
|
+
|
681
|
+
.sd-pagination ul li:not(:has(a sd-icon)) a {
|
682
|
+
height: 100%;
|
683
|
+
width: 100%;
|
684
|
+
border-bottom-width: 2px;
|
685
|
+
border-bottom-color: transparent;
|
686
|
+
}
|
687
|
+
|
688
|
+
.sd-pagination ul li:not(:has(a sd-icon)) a[aria-current] {
|
689
|
+
--tw-border-opacity: 1;
|
690
|
+
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
691
|
+
*/;
|
692
|
+
}
|
693
|
+
|
694
|
+
.sd-pagination ul li a[aria-current] {
|
695
|
+
|
696
|
+
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
697
|
+
}
|
698
|
+
|
699
|
+
.sd-pagination ul li a[aria-current]:hover:not([disabled]) {
|
700
|
+
|
701
|
+
color: rgb(var(--sd-color-black, 24 24 24) / var(--tw-text-opacity, 1)) /* Default text color */;
|
702
|
+
}
|
703
|
+
|
704
|
+
/* Previous and next arrow when it has no href */
|
705
|
+
|
706
|
+
.sd-pagination ul li:has(a:not([href]) sd-icon) a {
|
707
|
+
cursor: not-allowed;
|
708
|
+
|
709
|
+
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
710
|
+
}
|
711
|
+
|
712
|
+
.sd-pagination ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
|
713
|
+
|
714
|
+
color: rgb(var(--sd-color-neutral-500, 174 174 174) / var(--tw-text-opacity, 1)) /* Used for disabled state */;
|
715
|
+
}
|
716
|
+
|
717
|
+
/* Numbers */
|
718
|
+
|
719
|
+
/* Number which is not current */
|
720
|
+
|
721
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) {
|
722
|
+
pointer-events: none;
|
723
|
+
position: absolute;
|
724
|
+
}
|
725
|
+
|
726
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):not(:has(a[aria-current])) a {
|
727
|
+
display: none;
|
728
|
+
}
|
729
|
+
|
730
|
+
/* Apply ellipsis to (n + 2 && n - 1) */
|
731
|
+
|
732
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current]),
|
733
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child) {
|
734
|
+
pointer-events: auto !important;
|
735
|
+
position: relative !important;
|
736
|
+
}
|
737
|
+
|
738
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li + li a[aria-current])::after,
|
739
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li + li:not(:last-child)::after {
|
740
|
+
--tw-content: '...';
|
741
|
+
content: var(--tw-content);
|
742
|
+
}
|
743
|
+
|
744
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2),
|
745
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2),
|
746
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current]),
|
747
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li {
|
748
|
+
pointer-events: auto !important;
|
749
|
+
position: relative !important;
|
750
|
+
}
|
751
|
+
|
752
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-child(2)::after,
|
753
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):nth-last-child(2)::after,
|
754
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(+ li a[aria-current])::after,
|
755
|
+
.sd-pagination:not(.sd-pagination--simple) ul li:not(:has(a sd-icon)):has(a[aria-current]) + li::after {
|
756
|
+
content: var(--tw-content) !important;
|
757
|
+
display: none !important;
|
758
|
+
}
|
759
|
+
|
760
|
+
.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 {
|
761
|
+
display: flex !important;
|
762
|
+
}
|
763
|
+
|
764
|
+
/* When one of the first 4 pages is selected */
|
765
|
+
|
766
|
+
/* Show until the 5th page (forward) */
|
767
|
+
|
768
|
+
.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) {
|
769
|
+
pointer-events: auto;
|
770
|
+
position: relative;
|
771
|
+
}
|
772
|
+
|
773
|
+
.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 {
|
774
|
+
content: var(--tw-content);
|
775
|
+
display: none;
|
776
|
+
}
|
777
|
+
|
778
|
+
.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 {
|
779
|
+
display: flex;
|
780
|
+
}
|
781
|
+
|
782
|
+
/* Show ellipsis on the 6th */
|
783
|
+
|
784
|
+
.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 {
|
785
|
+
pointer-events: none;
|
786
|
+
position: relative;
|
787
|
+
}
|
788
|
+
|
789
|
+
.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 {
|
790
|
+
--tw-content: '...';
|
791
|
+
content: var(--tw-content);
|
792
|
+
}
|
793
|
+
|
794
|
+
/* When one of the first 4 pages is selected, show until the 5th page (backward) */
|
795
|
+
|
796
|
+
.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]) {
|
797
|
+
pointer-events: auto;
|
798
|
+
position: relative;
|
799
|
+
}
|
800
|
+
|
801
|
+
.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 {
|
802
|
+
content: var(--tw-content);
|
803
|
+
display: none;
|
804
|
+
}
|
805
|
+
|
806
|
+
.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 {
|
807
|
+
display: flex;
|
808
|
+
}
|
809
|
+
|
810
|
+
/* When one of the last 4 pages is selected, show the last 4 pages (forward) */
|
811
|
+
|
812
|
+
.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)) {
|
813
|
+
pointer-events: auto;
|
814
|
+
position: relative;
|
815
|
+
}
|
816
|
+
|
817
|
+
.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 {
|
818
|
+
content: var(--tw-content);
|
819
|
+
display: none;
|
820
|
+
}
|
821
|
+
|
822
|
+
.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 {
|
823
|
+
display: flex;
|
824
|
+
}
|
825
|
+
|
826
|
+
/* When one of the last 4 pages is selected, show the last 4 pages (backward) */
|
827
|
+
|
828
|
+
.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]) {
|
829
|
+
pointer-events: auto;
|
830
|
+
position: relative;
|
831
|
+
}
|
832
|
+
|
833
|
+
.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 {
|
834
|
+
content: var(--tw-content);
|
835
|
+
display: none;
|
836
|
+
}
|
837
|
+
|
838
|
+
.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 {
|
839
|
+
display: flex;
|
840
|
+
}
|
841
|
+
|
842
|
+
/* Show ellipsis on the 6th to last */
|
843
|
+
|
844
|
+
.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]) {
|
845
|
+
pointer-events: none;
|
846
|
+
position: relative;
|
847
|
+
}
|
848
|
+
|
849
|
+
.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 {
|
850
|
+
--tw-content: '...';
|
851
|
+
content: var(--tw-content);
|
852
|
+
}
|
853
|
+
|
854
|
+
/* When it only has 5 numbers + 2 prev & next buttons */
|
855
|
+
|
856
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li {
|
857
|
+
pointer-events: auto;
|
858
|
+
position: relative;
|
859
|
+
}
|
860
|
+
|
861
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li::after {
|
862
|
+
content: var(--tw-content);
|
863
|
+
display: none;
|
864
|
+
}
|
865
|
+
|
866
|
+
.sd-pagination:not(.sd-pagination--simple) ul:has(> li:last-child:nth-child(-n + 9)) li a {
|
867
|
+
display: flex;
|
868
|
+
}
|
869
|
+
|
870
|
+
.sd-pagination--simple ul li:nth-child(2) {
|
871
|
+
position: relative;
|
872
|
+
margin-inline-end: var(--sd-spacing-5, 1.25rem) /* 20px */;
|
873
|
+
width: var(--sd-spacing-8, 2rem) /* 32px */;
|
874
|
+
border-bottom-width: 2px;
|
875
|
+
--tw-border-opacity: 1;
|
876
|
+
border-bottom-color: rgb(var(--sd-color-accent, 45 157 0) / var(--tw-border-opacity, 1)) /* Used to highlight active/selected elements
|
877
|
+
*/;
|
878
|
+
}
|
879
|
+
|
880
|
+
.sd-pagination--simple ul li:nth-child(2)::after {
|
881
|
+
position: absolute;
|
882
|
+
right: -18px;
|
883
|
+
--tw-scale-y: 1.5;
|
884
|
+
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));
|
885
|
+
--tw-content: '/';
|
886
|
+
content: var(--tw-content);
|
887
|
+
}
|
888
|
+
|
889
|
+
.sd-pagination--simple ul li:nth-last-child(2) {
|
890
|
+
border-bottom-width: 2px;
|
891
|
+
border-bottom-color: transparent;
|
892
|
+
}
|
893
|
+
|
894
|
+
.sd-pagination--inverted ul li::after {
|
895
|
+
content: var(--tw-content);
|
896
|
+
|
897
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
898
|
+
}
|
899
|
+
|
900
|
+
.sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a {
|
901
|
+
|
902
|
+
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
903
|
+
}
|
904
|
+
|
905
|
+
.sd-pagination--inverted ul li:has(a:not([href]) sd-icon) a:hover:not([disabled]) {
|
906
|
+
|
907
|
+
color: rgb(var(--sd-color-neutral-600, 136 136 136) / var(--tw-text-opacity, 1)) /* Used for inverted disabled state */;
|
908
|
+
}
|
909
|
+
|
910
|
+
.sd-pagination--inverted ul li a,
|
911
|
+
.sd-pagination--inverted ul li a[aria-current] {
|
912
|
+
|
913
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
914
|
+
}
|
915
|
+
|
916
|
+
.sd-pagination--inverted ul li a:hover:not([disabled]),
|
917
|
+
.sd-pagination--inverted ul li a[aria-current]:hover:not([disabled]) {
|
918
|
+
|
919
|
+
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 */;
|
920
|
+
}
|
921
|
+
|
922
|
+
.sd-pagination--inverted ul li a:active:not([disabled]),
|
923
|
+
.sd-pagination--inverted ul li a[aria-current]:active:not([disabled]) {
|
924
|
+
|
925
|
+
color: rgb(var(--sd-color-primary-400, 153 171 208) / var(--tw-text-opacity, 1)) /* Additional text inverted color
|
926
|
+
Used for inverted pressed interaction text link */;
|
927
|
+
}
|
928
|
+
|
929
|
+
.sd-pagination--inverted ul li a:focus-visible, .sd-pagination--inverted ul li a[aria-current]:focus-visible {
|
930
|
+
outline-color: rgb(var(--sd-color-white, 255 255 255) / 1) /* Used for buttons, inverted focus state */;
|
931
|
+
}
|
932
|
+
|
933
|
+
.sd-pagination--inverted.sd-pagination--simple ul li {
|
934
|
+
|
935
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
936
|
+
}
|
937
|
+
|
938
|
+
.sd-pagination--inverted.sd-pagination--simple ul li::after {
|
939
|
+
content: var(--tw-content);
|
940
|
+
|
941
|
+
color: rgb(var(--sd-color-white, 255 255 255) / var(--tw-text-opacity, 1)) /* Inverted text color */;
|
942
|
+
}
|
943
|
+
|
495
944
|
/**
|
496
945
|
* Description of the style.
|
497
946
|
* @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-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-3-0-chip--...
|
7
7
|
*/
|
8
8
|
|
9
|
-
.sd-1-
|
9
|
+
.sd-1-3-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-3-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-3-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-3-0-chip--white {
|
57
57
|
|
58
58
|
|
59
59
|
|