@slotted/styles 0.1.0-beta.17 → 0.1.0-beta.19
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,41 @@
|
|
|
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
|
+
* Where the pane is a column the strip moves onto the seam or the gutter
|
|
739
|
+
* (the wide query below).
|
|
740
|
+
*
|
|
741
|
+
* It draws the `splitter` family's mark from that family's tokens: two
|
|
742
|
+
* hairlines fading away from a grip, visible at rest. Under the hand, the
|
|
743
|
+
* drag and the keyboard the lines run the strip in the active step, and the
|
|
744
|
+
* keyboard alone adds the ring. The measures are `splitter.css`'s.
|
|
740
745
|
*/
|
|
741
746
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] {
|
|
742
747
|
--_resizer-thickness: var(--slotted-space-6, 1rem);
|
|
743
748
|
--_resizer-reach: var(--slotted-target-min, 24px);
|
|
749
|
+
--_resizer-gap: min(var(--slotted-space-9, 2rem), 12%);
|
|
750
|
+
--_resizer-dot: var(--slotted-space-2, 0.25rem);
|
|
751
|
+
--_resizer-rest: var(--slotted-splitter-line-color, var(--slotted-border-strong, ButtonBorder));
|
|
752
|
+
--_resizer-active: var(
|
|
753
|
+
--slotted-splitter-line-active-color,
|
|
754
|
+
var(--slotted-text-muted, ButtonText)
|
|
755
|
+
);
|
|
756
|
+
align-items: center;
|
|
744
757
|
background: transparent;
|
|
745
|
-
border: 0 solid transparent;
|
|
746
|
-
border-inline-start-width: var(--slotted-border-width-thick, 2px);
|
|
747
758
|
box-sizing: border-box;
|
|
748
759
|
cursor: col-resize;
|
|
749
760
|
display: none;
|
|
761
|
+
flex-direction: column;
|
|
762
|
+
gap: var(--_resizer-gap);
|
|
750
763
|
inline-size: var(--_resizer-thickness);
|
|
751
764
|
inset-block: 0;
|
|
752
765
|
inset-inline-start: 0;
|
|
766
|
+
justify-content: center;
|
|
753
767
|
position: absolute;
|
|
754
768
|
touch-action: none;
|
|
755
|
-
transition:
|
|
769
|
+
transition: gap var(--_duration) var(--_easing);
|
|
756
770
|
z-index: 1;
|
|
757
771
|
}
|
|
758
772
|
[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
773
|
inset-inline-end: 0;
|
|
762
774
|
inset-inline-start: auto;
|
|
763
775
|
}
|
|
@@ -767,13 +779,57 @@
|
|
|
767
779
|
inset-inline: calc((var(--_resizer-reach) - var(--_resizer-thickness)) / -2);
|
|
768
780
|
position: absolute;
|
|
769
781
|
}
|
|
782
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
783
|
+
border-radius: var(--slotted-radius-sm, 2px);
|
|
784
|
+
flex: 0 1 min(var(--slotted-space-12, 4rem), 20%);
|
|
785
|
+
inline-size: var(--slotted-border-width-thin, 1px);
|
|
786
|
+
min-block-size: 0;
|
|
787
|
+
transition:
|
|
788
|
+
flex-basis var(--_duration) var(--_easing),
|
|
789
|
+
background-color var(--_duration) var(--_easing);
|
|
790
|
+
}
|
|
791
|
+
[data-ui-app-shell]
|
|
792
|
+
> [data-part-aside]
|
|
793
|
+
> [data-part-aside-resizer]
|
|
794
|
+
> [data-part-line]:first-child {
|
|
795
|
+
background: linear-gradient(to bottom, transparent, var(--_resizer-rest));
|
|
796
|
+
}
|
|
797
|
+
[data-ui-app-shell]
|
|
798
|
+
> [data-part-aside]
|
|
799
|
+
> [data-part-aside-resizer]
|
|
800
|
+
> [data-part-line]:last-child {
|
|
801
|
+
background: linear-gradient(to top, transparent, var(--_resizer-rest));
|
|
802
|
+
}
|
|
803
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
804
|
+
background-image: radial-gradient(circle at center, currentColor 40%, transparent 42%);
|
|
805
|
+
background-repeat: repeat;
|
|
806
|
+
background-size: var(--_resizer-dot) var(--_resizer-dot);
|
|
807
|
+
block-size: calc(3 * var(--_resizer-dot));
|
|
808
|
+
color: var(--_resizer-rest);
|
|
809
|
+
flex: none;
|
|
810
|
+
inline-size: calc(2 * var(--_resizer-dot));
|
|
811
|
+
transition: color var(--_duration) var(--_easing);
|
|
812
|
+
}
|
|
770
813
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:not([data-disabled]):hover,
|
|
771
814
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible,
|
|
772
815
|
[data-ui-app-shell][data-dragging] > [data-part-aside] > [data-part-aside-resizer] {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
816
|
+
--_resizer-gap: var(--slotted-space-4, 0.5rem);
|
|
817
|
+
--_resizer-rest: var(--_resizer-active);
|
|
818
|
+
}
|
|
819
|
+
[data-ui-app-shell]
|
|
820
|
+
> [data-part-aside]
|
|
821
|
+
> [data-part-aside-resizer]:not([data-disabled]):hover
|
|
822
|
+
> [data-part-line],
|
|
823
|
+
[data-ui-app-shell]
|
|
824
|
+
> [data-part-aside]
|
|
825
|
+
> [data-part-aside-resizer]:focus-visible
|
|
826
|
+
> [data-part-line],
|
|
827
|
+
[data-ui-app-shell][data-dragging]
|
|
828
|
+
> [data-part-aside]
|
|
829
|
+
> [data-part-aside-resizer]
|
|
830
|
+
> [data-part-line] {
|
|
831
|
+
background: var(--_resizer-active);
|
|
832
|
+
flex-basis: 100%;
|
|
777
833
|
}
|
|
778
834
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible {
|
|
779
835
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
@@ -1437,6 +1493,16 @@
|
|
|
1437
1493
|
--_seam: var(--_rule-width) solid CanvasText;
|
|
1438
1494
|
--_seam-width: var(--_rule-width);
|
|
1439
1495
|
}
|
|
1496
|
+
/* A gradient resolves to nothing here, so the edge's mark takes flat system colours. */
|
|
1497
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
1498
|
+
background: ButtonBorder;
|
|
1499
|
+
forced-color-adjust: none;
|
|
1500
|
+
}
|
|
1501
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
1502
|
+
background-color: ButtonBorder;
|
|
1503
|
+
background-image: none;
|
|
1504
|
+
forced-color-adjust: none;
|
|
1505
|
+
}
|
|
1440
1506
|
}
|
|
1441
1507
|
|
|
1442
1508
|
/* ── The disclosure controls ─────────────────────────────────────────── */
|
|
@@ -1834,7 +1900,7 @@
|
|
|
1834
1900
|
[data-ui-app-shell]:not([data-aside-mode='overlay'])
|
|
1835
1901
|
> [data-part-aside]
|
|
1836
1902
|
> [data-part-aside-resizer]:not([hidden]) {
|
|
1837
|
-
display:
|
|
1903
|
+
display: flex;
|
|
1838
1904
|
}
|
|
1839
1905
|
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end'] > [data-part-aside] {
|
|
1840
1906
|
grid-area: 2 / 1 / 3 / 2;
|
|
@@ -1853,6 +1919,37 @@
|
|
|
1853
1919
|
> [data-part-aside] {
|
|
1854
1920
|
margin-inline: var(--_gutter) 0;
|
|
1855
1921
|
}
|
|
1922
|
+
/* The strip lies on the line between the pane and the content: the seam
|
|
1923
|
+
where they meet, the gutter's centre where the gutter separates them.
|
|
1924
|
+
The pane then does not scroll itself — its body does — so it does not
|
|
1925
|
+
clip the half of the strip that stands outside it. */
|
|
1926
|
+
[data-ui-app-shell][data-scroll='content']:not([data-aside-mode='overlay'])
|
|
1927
|
+
> [data-part-aside] {
|
|
1928
|
+
overflow: visible;
|
|
1929
|
+
}
|
|
1930
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])
|
|
1931
|
+
> [data-part-aside]
|
|
1932
|
+
> [data-part-aside-resizer] {
|
|
1933
|
+
--_resizer-offset: calc(var(--_seam-width) / -2 - var(--_resizer-thickness) / 2);
|
|
1934
|
+
|
|
1935
|
+
inset-inline-start: var(--_resizer-offset);
|
|
1936
|
+
}
|
|
1937
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1938
|
+
[data-canvas='floating'],
|
|
1939
|
+
[data-canvas='inset']
|
|
1940
|
+
)
|
|
1941
|
+
> [data-part-aside]
|
|
1942
|
+
> [data-part-aside-resizer] {
|
|
1943
|
+
--_resizer-offset: calc(
|
|
1944
|
+
-1 * (var(--_rule-width) + var(--_gutter) / 2) - var(--_resizer-thickness) / 2
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end']
|
|
1948
|
+
> [data-part-aside]
|
|
1949
|
+
> [data-part-aside-resizer] {
|
|
1950
|
+
inset-inline-end: var(--_resizer-offset);
|
|
1951
|
+
inset-inline-start: auto;
|
|
1952
|
+
}
|
|
1856
1953
|
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-canvas='flush'] > [data-part-aside] {
|
|
1857
1954
|
border-block-start: none;
|
|
1858
1955
|
}
|
|
@@ -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",
|
|
@@ -121,6 +121,9 @@
|
|
|
121
121
|
* is the word for the case where it may not.
|
|
122
122
|
*/
|
|
123
123
|
[data-ui-collapsible] > [data-part-header] > [data-part-trigger] {
|
|
124
|
+
/* A height above the content's would otherwise be split over both rows,
|
|
125
|
+
the empty description row included, and lift the title off centre. */
|
|
126
|
+
align-content: center;
|
|
124
127
|
align-items: center;
|
|
125
128
|
appearance: none;
|
|
126
129
|
background-color: var(--slotted-collapsible-background, transparent);
|
|
@@ -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);
|
|
@@ -340,8 +340,10 @@
|
|
|
340
340
|
* The way back. A link or a button the consumer renders; the arrow is the
|
|
341
341
|
* family's, the `arrow-left` Glyph element the binding puts before the
|
|
342
342
|
* label, and it points along the reading direction, so its `directional`
|
|
343
|
-
* box mirrors it in a right-to-left document.
|
|
343
|
+
* box mirrors it in a right-to-left document. It is styled in the nav part
|
|
344
|
+
* and directly in the title area, where a page without breadcrumbs puts it.
|
|
344
345
|
*/
|
|
346
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
|
|
345
347
|
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
|
|
346
348
|
--slotted-icon-size: var(--_icon-size);
|
|
347
349
|
|
|
@@ -362,10 +364,18 @@
|
|
|
362
364
|
text-decoration: none;
|
|
363
365
|
transition: color var(--slotted-duration-short) var(--_easing);
|
|
364
366
|
}
|
|
367
|
+
/* Outside the nav part nothing sets the row's type or keeps the column from
|
|
368
|
+
stretching the link across the title area. */
|
|
369
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back] {
|
|
370
|
+
align-self: flex-start;
|
|
371
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
372
|
+
line-height: var(--slotted-line-height-sm, 1.45);
|
|
373
|
+
}
|
|
365
374
|
/* On a finger the way back is a full target among 44-pixel controls: it
|
|
366
375
|
reaches the comfortable size by padding and gives it back as a negative
|
|
367
376
|
margin, so the nav row keeps its height and nothing under it moves. */
|
|
368
377
|
@media (pointer: coarse) {
|
|
378
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
|
|
369
379
|
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
|
|
370
380
|
--_reach: max(
|
|
371
381
|
0px,
|
|
@@ -380,6 +390,10 @@
|
|
|
380
390
|
> *
|
|
381
391
|
> [data-part-title-area]
|
|
382
392
|
> [data-part-nav]
|
|
393
|
+
> [data-part-back]:not([data-disabled]):not(:disabled):hover,
|
|
394
|
+
[data-ui-page-header]
|
|
395
|
+
> *
|
|
396
|
+
> [data-part-title-area]
|
|
383
397
|
> [data-part-back]:not([data-disabled]):not(:disabled):hover {
|
|
384
398
|
color: var(--_text);
|
|
385
399
|
}
|
|
@@ -387,7 +401,8 @@
|
|
|
387
401
|
> *
|
|
388
402
|
> [data-part-title-area]
|
|
389
403
|
> [data-part-nav]
|
|
390
|
-
> [data-part-back]:focus-visible
|
|
404
|
+
> [data-part-back]:focus-visible,
|
|
405
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back]:focus-visible {
|
|
391
406
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
392
407
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
393
408
|
}
|