@slotted/styles 0.1.0-beta.17 → 0.1.0-beta.18
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/package.json
CHANGED
|
@@ -735,29 +735,39 @@
|
|
|
735
735
|
* under `scroll="content"`, and a scroll container clips what stands outside
|
|
736
736
|
* it. The strip is the rows' own inset wide, so it covers padding and no
|
|
737
737
|
* content. `::before` is the reach, transparent and the WCAG 2.2 floor wide.
|
|
738
|
-
*
|
|
739
|
-
*
|
|
738
|
+
*
|
|
739
|
+
* It draws the `splitter` family's mark from that family's tokens: two
|
|
740
|
+
* hairlines fading away from a grip, visible at rest. Under the hand, the
|
|
741
|
+
* drag and the keyboard the lines run the strip in the active step, and the
|
|
742
|
+
* keyboard alone adds the ring. The measures are `splitter.css`'s.
|
|
740
743
|
*/
|
|
741
744
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] {
|
|
742
745
|
--_resizer-thickness: var(--slotted-space-6, 1rem);
|
|
743
746
|
--_resizer-reach: var(--slotted-target-min, 24px);
|
|
747
|
+
--_resizer-gap: min(var(--slotted-space-9, 2rem), 12%);
|
|
748
|
+
--_resizer-dot: var(--slotted-space-2, 0.25rem);
|
|
749
|
+
--_resizer-rest: var(--slotted-splitter-line-color, var(--slotted-border-strong, ButtonBorder));
|
|
750
|
+
--_resizer-active: var(
|
|
751
|
+
--slotted-splitter-line-active-color,
|
|
752
|
+
var(--slotted-text-muted, ButtonText)
|
|
753
|
+
);
|
|
754
|
+
align-items: center;
|
|
744
755
|
background: transparent;
|
|
745
|
-
border: 0 solid transparent;
|
|
746
|
-
border-inline-start-width: var(--slotted-border-width-thick, 2px);
|
|
747
756
|
box-sizing: border-box;
|
|
748
757
|
cursor: col-resize;
|
|
749
758
|
display: none;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
gap: var(--_resizer-gap);
|
|
750
761
|
inline-size: var(--_resizer-thickness);
|
|
751
762
|
inset-block: 0;
|
|
752
763
|
inset-inline-start: 0;
|
|
764
|
+
justify-content: center;
|
|
753
765
|
position: absolute;
|
|
754
766
|
touch-action: none;
|
|
755
|
-
transition:
|
|
767
|
+
transition: gap var(--_duration) var(--_easing);
|
|
756
768
|
z-index: 1;
|
|
757
769
|
}
|
|
758
770
|
[data-ui-app-shell][data-nav-side='end'] > [data-part-aside] > [data-part-aside-resizer] {
|
|
759
|
-
border-inline-end-width: var(--slotted-border-width-thick, 2px);
|
|
760
|
-
border-inline-start-width: 0;
|
|
761
771
|
inset-inline-end: 0;
|
|
762
772
|
inset-inline-start: auto;
|
|
763
773
|
}
|
|
@@ -767,13 +777,57 @@
|
|
|
767
777
|
inset-inline: calc((var(--_resizer-reach) - var(--_resizer-thickness)) / -2);
|
|
768
778
|
position: absolute;
|
|
769
779
|
}
|
|
780
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
781
|
+
border-radius: var(--slotted-radius-sm, 2px);
|
|
782
|
+
flex: 0 1 min(var(--slotted-space-12, 4rem), 20%);
|
|
783
|
+
inline-size: var(--slotted-border-width-thin, 1px);
|
|
784
|
+
min-block-size: 0;
|
|
785
|
+
transition:
|
|
786
|
+
flex-basis var(--_duration) var(--_easing),
|
|
787
|
+
background-color var(--_duration) var(--_easing);
|
|
788
|
+
}
|
|
789
|
+
[data-ui-app-shell]
|
|
790
|
+
> [data-part-aside]
|
|
791
|
+
> [data-part-aside-resizer]
|
|
792
|
+
> [data-part-line]:first-child {
|
|
793
|
+
background: linear-gradient(to bottom, transparent, var(--_resizer-rest));
|
|
794
|
+
}
|
|
795
|
+
[data-ui-app-shell]
|
|
796
|
+
> [data-part-aside]
|
|
797
|
+
> [data-part-aside-resizer]
|
|
798
|
+
> [data-part-line]:last-child {
|
|
799
|
+
background: linear-gradient(to top, transparent, var(--_resizer-rest));
|
|
800
|
+
}
|
|
801
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
802
|
+
background-image: radial-gradient(circle at center, currentColor 40%, transparent 42%);
|
|
803
|
+
background-repeat: repeat;
|
|
804
|
+
background-size: var(--_resizer-dot) var(--_resizer-dot);
|
|
805
|
+
block-size: calc(3 * var(--_resizer-dot));
|
|
806
|
+
color: var(--_resizer-rest);
|
|
807
|
+
flex: none;
|
|
808
|
+
inline-size: calc(2 * var(--_resizer-dot));
|
|
809
|
+
transition: color var(--_duration) var(--_easing);
|
|
810
|
+
}
|
|
770
811
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:not([data-disabled]):hover,
|
|
771
812
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible,
|
|
772
813
|
[data-ui-app-shell][data-dragging] > [data-part-aside] > [data-part-aside-resizer] {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
814
|
+
--_resizer-gap: var(--slotted-space-4, 0.5rem);
|
|
815
|
+
--_resizer-rest: var(--_resizer-active);
|
|
816
|
+
}
|
|
817
|
+
[data-ui-app-shell]
|
|
818
|
+
> [data-part-aside]
|
|
819
|
+
> [data-part-aside-resizer]:not([data-disabled]):hover
|
|
820
|
+
> [data-part-line],
|
|
821
|
+
[data-ui-app-shell]
|
|
822
|
+
> [data-part-aside]
|
|
823
|
+
> [data-part-aside-resizer]:focus-visible
|
|
824
|
+
> [data-part-line],
|
|
825
|
+
[data-ui-app-shell][data-dragging]
|
|
826
|
+
> [data-part-aside]
|
|
827
|
+
> [data-part-aside-resizer]
|
|
828
|
+
> [data-part-line] {
|
|
829
|
+
background: var(--_resizer-active);
|
|
830
|
+
flex-basis: 100%;
|
|
777
831
|
}
|
|
778
832
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible {
|
|
779
833
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
@@ -1437,6 +1491,16 @@
|
|
|
1437
1491
|
--_seam: var(--_rule-width) solid CanvasText;
|
|
1438
1492
|
--_seam-width: var(--_rule-width);
|
|
1439
1493
|
}
|
|
1494
|
+
/* A gradient resolves to nothing here, so the edge's mark takes flat system colours. */
|
|
1495
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
1496
|
+
background: ButtonBorder;
|
|
1497
|
+
forced-color-adjust: none;
|
|
1498
|
+
}
|
|
1499
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
1500
|
+
background-color: ButtonBorder;
|
|
1501
|
+
background-image: none;
|
|
1502
|
+
forced-color-adjust: none;
|
|
1503
|
+
}
|
|
1440
1504
|
}
|
|
1441
1505
|
|
|
1442
1506
|
/* ── The disclosure controls ─────────────────────────────────────────── */
|
|
@@ -1834,7 +1898,7 @@
|
|
|
1834
1898
|
[data-ui-app-shell]:not([data-aside-mode='overlay'])
|
|
1835
1899
|
> [data-part-aside]
|
|
1836
1900
|
> [data-part-aside-resizer]:not([hidden]) {
|
|
1837
|
-
display:
|
|
1901
|
+
display: flex;
|
|
1838
1902
|
}
|
|
1839
1903
|
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end'] > [data-part-aside] {
|
|
1840
1904
|
grid-area: 2 / 1 / 3 / 2;
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"--slotted-app-shell-nav-surface",
|
|
30
30
|
"--slotted-app-shell-radius",
|
|
31
31
|
"--slotted-app-shell-rail-size",
|
|
32
|
-
"--slotted-app-shell-resizer-color",
|
|
33
32
|
"--slotted-app-shell-row-inset-size",
|
|
34
33
|
"--slotted-app-shell-row-mark-size",
|
|
35
34
|
"--slotted-app-shell-row-text-line-height",
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
"--slotted-app-shell-tone-surface",
|
|
41
40
|
"--slotted-border-strong",
|
|
42
41
|
"--slotted-border-subtle",
|
|
43
|
-
"--slotted-border-width-thick",
|
|
44
42
|
"--slotted-border-width-thin",
|
|
45
43
|
"--slotted-control-font-size-md",
|
|
46
44
|
"--slotted-control-font-size-sm",
|
|
@@ -66,16 +64,21 @@
|
|
|
66
64
|
"--slotted-font-weight-semibold",
|
|
67
65
|
"--slotted-line-height-sm",
|
|
68
66
|
"--slotted-radius-lg",
|
|
67
|
+
"--slotted-radius-sm",
|
|
69
68
|
"--slotted-scrim",
|
|
70
69
|
"--slotted-shadow-lg",
|
|
71
70
|
"--slotted-shadow-md",
|
|
72
71
|
"--slotted-shadow-xs",
|
|
73
72
|
"--slotted-space-1",
|
|
73
|
+
"--slotted-space-12",
|
|
74
74
|
"--slotted-space-2",
|
|
75
75
|
"--slotted-space-3",
|
|
76
76
|
"--slotted-space-4",
|
|
77
77
|
"--slotted-space-5",
|
|
78
78
|
"--slotted-space-6",
|
|
79
|
+
"--slotted-space-9",
|
|
80
|
+
"--slotted-splitter-line-active-color",
|
|
81
|
+
"--slotted-splitter-line-color",
|
|
79
82
|
"--slotted-surface",
|
|
80
83
|
"--slotted-surface-sunken",
|
|
81
84
|
"--slotted-target-min",
|
|
@@ -587,7 +587,9 @@
|
|
|
587
587
|
* before it gives up on the row.
|
|
588
588
|
*
|
|
589
589
|
* The breakpoints are literals because a container condition cannot read a
|
|
590
|
-
* custom property, which rule 4 of `docs/token-foundation.md` states.
|
|
590
|
+
* custom property, which rule 4 of `docs/token-foundation.md` states. That is
|
|
591
|
+
* why `data-min-column-width` is a step and not a length: `md` folds at
|
|
592
|
+
* sixteen and seventeen rem a column, `sm` at twelve and a half.
|
|
591
593
|
*/
|
|
592
594
|
/**
|
|
593
595
|
* A span is stated in tracks, so it collapses with the count that produced
|
|
@@ -598,15 +600,31 @@
|
|
|
598
600
|
* of a four-track grid.
|
|
599
601
|
*/
|
|
600
602
|
@container slotted-description-list (max-width: 48rem) {
|
|
601
|
-
[data-ui-description-list][data-columns='3'] [data-part-list] {
|
|
603
|
+
[data-ui-description-list][data-min-column-width='md'][data-columns='3'] [data-part-list] {
|
|
602
604
|
--_cols: repeat(2, var(--_pair));
|
|
603
605
|
--_span-3: var(--_span-2);
|
|
604
606
|
}
|
|
605
607
|
}
|
|
606
608
|
|
|
609
|
+
@container slotted-description-list (max-width: 37.5rem) {
|
|
610
|
+
[data-ui-description-list][data-min-column-width='sm'][data-columns='3'] [data-part-list] {
|
|
611
|
+
--_cols: repeat(2, var(--_pair));
|
|
612
|
+
--_span-3: var(--_span-2);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
@container slotted-description-list (max-width: 25rem) {
|
|
617
|
+
[data-ui-description-list][data-min-column-width='sm'][data-columns='2'] [data-part-list],
|
|
618
|
+
[data-ui-description-list][data-min-column-width='sm'][data-columns='3'] [data-part-list] {
|
|
619
|
+
--_cols: var(--_pair);
|
|
620
|
+
--_span-2: var(--_span-1);
|
|
621
|
+
--_span-3: var(--_span-1);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
607
625
|
@container slotted-description-list (max-width: 34rem) {
|
|
608
|
-
[data-ui-description-list][data-columns='2'] [data-part-list],
|
|
609
|
-
[data-ui-description-list][data-columns='3'] [data-part-list] {
|
|
626
|
+
[data-ui-description-list][data-min-column-width='md'][data-columns='2'] [data-part-list],
|
|
627
|
+
[data-ui-description-list][data-min-column-width='md'][data-columns='3'] [data-part-list] {
|
|
610
628
|
--_cols: var(--_pair);
|
|
611
629
|
--_span-2: var(--_span-1);
|
|
612
630
|
--_span-3: var(--_span-1);
|