@slotted/styles 0.1.0-beta.36 → 0.1.0-beta.38
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 +1 -1
- package/src/app-shell/app-shell.css +16 -13
- package/src/button/button.css +30 -6
- package/src/calendar/calendar.css +129 -2
- package/src/calendar/calendar.tokens.json +3 -0
- package/src/chart/chart.css +3 -2
- package/src/collapsible/collapsible.css +24 -6
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +11 -4
- package/src/floating-panel/floating-panel.css +31 -7
- package/src/floating-panel/floating-panel.tokens.json +2 -0
- package/src/message/message.css +36 -10
- package/src/message/message.tokens.json +8 -0
- package/src/page/page.css +10 -0
- package/src/runtime-properties.mjs +6 -0
- package/src/section/section.css +31 -0
- package/src/table/table.css +217 -0
- package/src/table/table.tokens.json +4 -0
package/package.json
CHANGED
|
@@ -164,17 +164,6 @@
|
|
|
164
164
|
--_frame: var(--slotted-app-shell-frame, var(--slotted-surface-sunken, Canvas));
|
|
165
165
|
--_canvas: var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas));
|
|
166
166
|
--_ink: var(--slotted-app-shell-color, var(--slotted-text, CanvasText));
|
|
167
|
-
/**
|
|
168
|
-
* The bar of a scrolling body: the thumb at the strong border step, which
|
|
169
|
-
* is the step `scroll-area` gives it and the one the foundation holds to
|
|
170
|
-
* 3:1 against every surface; the track the column's own ground, because a
|
|
171
|
-
* groove down the side of a navigation column is a second column.
|
|
172
|
-
*/
|
|
173
|
-
--_scrollbar-thumb: var(
|
|
174
|
-
--slotted-app-shell-scrollbar-thumb-color,
|
|
175
|
-
var(--slotted-border-strong, ButtonBorder)
|
|
176
|
-
);
|
|
177
|
-
--_scrollbar-track: var(--slotted-app-shell-scrollbar-track-color, transparent);
|
|
178
167
|
|
|
179
168
|
/**
|
|
180
169
|
* ── The palette, region by region ──────────────────────────────────────
|
|
@@ -563,7 +552,6 @@
|
|
|
563
552
|
overflow-block: auto;
|
|
564
553
|
overscroll-behavior: contain;
|
|
565
554
|
padding-block: var(--slotted-space-4, 0.5rem);
|
|
566
|
-
scrollbar-color: var(--_scrollbar-thumb) var(--_scrollbar-track);
|
|
567
555
|
scrollbar-gutter: stable;
|
|
568
556
|
scrollbar-width: thin;
|
|
569
557
|
}
|
|
@@ -715,10 +703,25 @@
|
|
|
715
703
|
overscroll-behavior: contain;
|
|
716
704
|
padding-block: var(--slotted-space-5, 0.75rem);
|
|
717
705
|
padding-inline: calc(var(--_row-inset) + var(--_row-gap));
|
|
718
|
-
scrollbar-color: var(--_scrollbar-thumb) var(--_scrollbar-track);
|
|
719
706
|
scrollbar-gutter: stable;
|
|
720
707
|
scrollbar-width: thin;
|
|
721
708
|
}
|
|
709
|
+
/**
|
|
710
|
+
* The bar of the two scrolling bodies: the thumb at the strong border step,
|
|
711
|
+
* which is the step `scroll-area` gives it and the one the foundation holds
|
|
712
|
+
* to 3:1 against every surface; the track the column's own ground, because a
|
|
713
|
+
* groove down the side of a navigation column is a second column. Read on
|
|
714
|
+
* the body, so a region's own token and its own scheme reach its bar.
|
|
715
|
+
*/
|
|
716
|
+
[data-ui-app-shell]
|
|
717
|
+
> :is([data-part-nav], [data-part-aside])
|
|
718
|
+
> :is([data-part-nav-body], [data-part-aside-body]) {
|
|
719
|
+
scrollbar-color: var(
|
|
720
|
+
--slotted-app-shell-scrollbar-thumb-color,
|
|
721
|
+
var(--slotted-border-strong, ButtonBorder)
|
|
722
|
+
)
|
|
723
|
+
var(--slotted-app-shell-scrollbar-track-color, transparent);
|
|
724
|
+
}
|
|
722
725
|
/* Content that brings its own inset — a page, a detail panel, a list to the edges. */
|
|
723
726
|
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-body][data-inset='none'] {
|
|
724
727
|
padding: 0;
|
package/src/button/button.css
CHANGED
|
@@ -967,20 +967,44 @@
|
|
|
967
967
|
|
|
968
968
|
/**
|
|
969
969
|
* An icon-only control inside a line of text — a help trigger beside a term
|
|
970
|
-
* — is
|
|
971
|
-
*
|
|
972
|
-
*
|
|
970
|
+
* — is a mark on the capital beside it. The icon is the capital height
|
|
971
|
+
* rounded to a pixel and two pixels more at each end, and it hangs those two
|
|
972
|
+
* below the baseline: text and icon snap to the pixel grid each on its own,
|
|
973
|
+
* and an icon a whole even number of pixels taller than the capital snaps
|
|
974
|
+
* with it wherever the line stands.
|
|
975
|
+
*
|
|
976
|
+
* The icon's box is the capital alone and the two pixels hang outside it, so
|
|
977
|
+
* the control's baseline is the text's in a line and in a flex row that aligns
|
|
978
|
+
* baselines. The ground is one line tall; margins take back what of it passes
|
|
979
|
+
* the capital, so the line keeps its height. A pseudo-element outside layout
|
|
980
|
+
* keeps the target at the WCAG 2.2 minimum.
|
|
973
981
|
*/
|
|
974
982
|
[data-ui-button][data-shape][data-inline] {
|
|
983
|
+
--_capital: round(1cap, 1px);
|
|
975
984
|
block-size: 1lh;
|
|
976
|
-
font
|
|
985
|
+
font: inherit;
|
|
977
986
|
inline-size: 1lh;
|
|
978
|
-
|
|
987
|
+
margin-block: calc((var(--_capital) - 1lh) / 2);
|
|
979
988
|
margin-inline-start: 0.25em;
|
|
980
989
|
min-block-size: 0;
|
|
981
990
|
min-inline-size: 0;
|
|
982
991
|
position: relative;
|
|
983
|
-
vertical-align:
|
|
992
|
+
vertical-align: baseline;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
[data-ui-button][data-shape][data-inline] [data-part-icon] {
|
|
996
|
+
--_icon-size: calc(var(--_capital) + 4px);
|
|
997
|
+
block-size: var(--_capital);
|
|
998
|
+
font-size: inherit;
|
|
999
|
+
inline-size: var(--_capital);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
[data-ui-button][data-shape][data-inline] [data-part-icon] > *:not([data-part-indicator]) {
|
|
1003
|
+
block-size: calc(100% + 4px);
|
|
1004
|
+
inline-size: calc(100% + 4px);
|
|
1005
|
+
inset-block-start: -2px;
|
|
1006
|
+
inset-inline-start: -2px;
|
|
1007
|
+
position: absolute;
|
|
984
1008
|
}
|
|
985
1009
|
|
|
986
1010
|
[data-ui-button][data-shape][data-inline]::before {
|
|
@@ -487,6 +487,12 @@
|
|
|
487
487
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
+
/* The disc says it, and the rest of the day keeps its own ink. */
|
|
491
|
+
[data-ui-calendar]:where([data-layout='fill'][data-today-mark='disc'])
|
|
492
|
+
[data-part-day][data-today] {
|
|
493
|
+
color: inherit;
|
|
494
|
+
}
|
|
495
|
+
|
|
490
496
|
[data-ui-calendar] [data-part-day]::before {
|
|
491
497
|
/* Reserved in every cell and painted in one, so the row keeps its line. */
|
|
492
498
|
background-color: transparent;
|
|
@@ -746,6 +752,17 @@
|
|
|
746
752
|
background-color: transparent;
|
|
747
753
|
}
|
|
748
754
|
|
|
755
|
+
/* A day that holds nothing to choose answers nothing, in the ink of any day. */
|
|
756
|
+
[data-ui-calendar] [data-part-cell][data-inert] [data-part-day] {
|
|
757
|
+
cursor: default;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
[data-ui-calendar]
|
|
761
|
+
[data-part-cell][data-inert]:not([data-selected], [data-in-range])
|
|
762
|
+
[data-part-day]:is(:hover, :active):not([data-disabled]) {
|
|
763
|
+
background-color: transparent;
|
|
764
|
+
}
|
|
765
|
+
|
|
749
766
|
/**
|
|
750
767
|
* The chosen date. A fill rather than a ring, so it and today can be true at
|
|
751
768
|
* once and still read as two facts.
|
|
@@ -903,6 +920,107 @@
|
|
|
903
920
|
padding-block: var(--slotted-space-2, 0.25rem);
|
|
904
921
|
}
|
|
905
922
|
|
|
923
|
+
/**
|
|
924
|
+
* The content at the start of the day: the number on the first line, the
|
|
925
|
+
* figure on the end of its own, the marks on the last. Every number stands in
|
|
926
|
+
* the middle of one box, so the digits of a column line up whatever their
|
|
927
|
+
* count, and today's disc is that box filled.
|
|
928
|
+
*/
|
|
929
|
+
[data-ui-calendar][data-layout='fill'] [data-part-day-number] {
|
|
930
|
+
--_number: calc(1em + 2 * var(--slotted-space-2, 0.25rem));
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
[data-ui-calendar][data-layout='fill']:is([data-day-align='start'], [data-today-mark='disc'])
|
|
934
|
+
[data-part-day-number] {
|
|
935
|
+
block-size: var(--_number);
|
|
936
|
+
border-radius: var(--slotted-radius-full, 9999px);
|
|
937
|
+
display: grid;
|
|
938
|
+
flex: none;
|
|
939
|
+
min-inline-size: var(--_number);
|
|
940
|
+
place-items: center;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-week-header] {
|
|
944
|
+
padding-inline: calc(
|
|
945
|
+
var(--slotted-border-width-thin, 1px) + var(--slotted-space-2, 0.25rem) +
|
|
946
|
+
var(--slotted-space-1, 0.125rem)
|
|
947
|
+
);
|
|
948
|
+
text-align: start;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-day] {
|
|
952
|
+
align-items: start;
|
|
953
|
+
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* Under the middle of the number's box. */
|
|
957
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-day]::before,
|
|
958
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-mark] {
|
|
959
|
+
margin-inline-start: calc(0.5em + var(--slotted-space-2, 0.25rem) / 2);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-day-content] {
|
|
963
|
+
align-items: start;
|
|
964
|
+
flex: 1;
|
|
965
|
+
min-block-size: 0;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-day-marks] {
|
|
969
|
+
justify-content: start;
|
|
970
|
+
padding-inline: var(--slotted-space-1, 0.125rem);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
[data-ui-calendar][data-layout='fill'][data-day-align='start'] [data-part-day-marks]:last-child {
|
|
974
|
+
margin-block-start: auto;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/* Today in a disc: the dot leaves, its row with it. */
|
|
978
|
+
[data-ui-calendar][data-layout='fill'][data-today-mark='disc'] [data-part-day]::before {
|
|
979
|
+
display: none;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
[data-ui-calendar][data-layout='fill'][data-today-mark='disc']
|
|
983
|
+
[data-part-cell]:not([data-outside-month])
|
|
984
|
+
[data-part-day][data-today]
|
|
985
|
+
> [data-part-day-number] {
|
|
986
|
+
background-color: var(--slotted-calendar-today-background, var(--slotted-tone-accent-solid));
|
|
987
|
+
color: var(--slotted-calendar-today-color, var(--slotted-tone-accent-on-solid));
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* On the ground of a chosen day the disc is that ground and its ink, exchanged. */
|
|
991
|
+
[data-ui-calendar][data-layout='fill'][data-today-mark='disc']
|
|
992
|
+
[data-part-cell][data-selected]:not([data-outside-month])
|
|
993
|
+
[data-part-day][data-today]
|
|
994
|
+
> [data-part-day-number] {
|
|
995
|
+
background-color: var(--slotted-calendar-today-background, var(--slotted-tone-accent-on-solid));
|
|
996
|
+
color: var(--slotted-calendar-today-color, var(--slotted-tone-accent-solid));
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
[data-ui-calendar][data-part-root][data-layout='fill'][data-today-mark='disc'][data-disabled]
|
|
1000
|
+
[data-part-cell]:not([data-outside-month])
|
|
1001
|
+
[data-part-day][data-today]
|
|
1002
|
+
> [data-part-day-number] {
|
|
1003
|
+
background-color: var(--slotted-disabled-background);
|
|
1004
|
+
color: var(--slotted-disabled-foreground);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/* Between the days and not around them: the lines divide a plane, they frame nothing. */
|
|
1008
|
+
[data-ui-calendar][data-layout='fill'][data-lines]
|
|
1009
|
+
[data-part-week]
|
|
1010
|
+
> [data-part-cell]
|
|
1011
|
+
+ [data-part-cell] {
|
|
1012
|
+
border-inline-start: var(--slotted-border-width-thin, 1px) solid
|
|
1013
|
+
var(--slotted-calendar-line-color, var(--slotted-border-subtle, ButtonBorder));
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
[data-ui-calendar][data-layout='fill'][data-lines]
|
|
1017
|
+
[data-part-week]
|
|
1018
|
+
+ [data-part-week]
|
|
1019
|
+
> [data-part-cell] {
|
|
1020
|
+
border-block-start: var(--slotted-border-width-thin, 1px) solid
|
|
1021
|
+
var(--slotted-calendar-line-color, var(--slotted-border-subtle, ButtonBorder));
|
|
1022
|
+
}
|
|
1023
|
+
|
|
906
1024
|
[data-ui-calendar] [data-part-day-content] {
|
|
907
1025
|
align-items: center;
|
|
908
1026
|
display: flex;
|
|
@@ -924,11 +1042,11 @@
|
|
|
924
1042
|
--_mark: var(--slotted-tone-accent-solid, currentcolor);
|
|
925
1043
|
|
|
926
1044
|
background-color: var(--_mark);
|
|
927
|
-
block-size: var(--slotted-space-3, 0.375rem);
|
|
1045
|
+
block-size: var(--slotted-calendar-day-mark-size, var(--slotted-space-3, 0.375rem));
|
|
928
1046
|
border: var(--slotted-border-width-thin, 1px) solid var(--_mark);
|
|
929
1047
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
930
1048
|
box-sizing: border-box;
|
|
931
|
-
inline-size: var(--slotted-space-3, 0.375rem);
|
|
1049
|
+
inline-size: var(--slotted-calendar-day-mark-size, var(--slotted-space-3, 0.375rem));
|
|
932
1050
|
}
|
|
933
1051
|
|
|
934
1052
|
[data-ui-calendar] [data-part-day-mark][data-hollow] {
|
|
@@ -995,6 +1113,15 @@
|
|
|
995
1113
|
}
|
|
996
1114
|
|
|
997
1115
|
@media (forced-colors: active) {
|
|
1116
|
+
[data-ui-calendar][data-layout='fill'][data-today-mark='disc']
|
|
1117
|
+
[data-part-cell]:not([data-outside-month])
|
|
1118
|
+
[data-part-day][data-today]
|
|
1119
|
+
> [data-part-day-number] {
|
|
1120
|
+
background-color: Highlight;
|
|
1121
|
+
color: HighlightText;
|
|
1122
|
+
forced-color-adjust: none;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
998
1125
|
[data-ui-calendar] [data-part-day-mark] {
|
|
999
1126
|
background-color: CanvasText;
|
|
1000
1127
|
border-color: CanvasText;
|
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
"--slotted-calendar-cell-size",
|
|
7
7
|
"--slotted-calendar-color",
|
|
8
8
|
"--slotted-calendar-day-height",
|
|
9
|
+
"--slotted-calendar-day-mark-size",
|
|
9
10
|
"--slotted-calendar-day-radius",
|
|
10
11
|
"--slotted-calendar-disabled-color",
|
|
11
12
|
"--slotted-calendar-hover-background",
|
|
12
13
|
"--slotted-calendar-in-range-color",
|
|
13
14
|
"--slotted-calendar-invalid-edge-width",
|
|
14
15
|
"--slotted-calendar-invalid-focus-ring-color",
|
|
16
|
+
"--slotted-calendar-line-color",
|
|
15
17
|
"--slotted-calendar-outside-color",
|
|
16
18
|
"--slotted-calendar-preview-background",
|
|
17
19
|
"--slotted-calendar-preview-border-color",
|
|
@@ -22,6 +24,7 @@
|
|
|
22
24
|
"--slotted-calendar-range-hover-background",
|
|
23
25
|
"--slotted-calendar-selected-background",
|
|
24
26
|
"--slotted-calendar-selected-color",
|
|
27
|
+
"--slotted-calendar-today-background",
|
|
25
28
|
"--slotted-calendar-today-color",
|
|
26
29
|
"--slotted-calendar-trigger-color",
|
|
27
30
|
"--slotted-calendar-unavailable-color",
|
package/src/chart/chart.css
CHANGED
|
@@ -889,8 +889,9 @@
|
|
|
889
889
|
visibility var(--slotted-duration-instant) linear var(--slotted-duration-short);
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
-
/* Content a consumer adds beside the parts
|
|
893
|
-
|
|
892
|
+
/* Content a consumer adds beside the tooltip's parts, or in their place, takes
|
|
893
|
+
the full width; a family's root carries a `data-part` of its own. */
|
|
894
|
+
[data-ui-chart] [data-part-tooltip] > :not([data-part^='tooltip-']) {
|
|
894
895
|
grid-column: 1 / -1;
|
|
895
896
|
overflow-wrap: anywhere;
|
|
896
897
|
}
|
|
@@ -532,7 +532,20 @@
|
|
|
532
532
|
* duration. The content is drawn, clipped at the peek and faded at its end;
|
|
533
533
|
* the binding keeps it inert, so nothing in the clipped part takes focus.
|
|
534
534
|
* Forced colors drop the fade and keep the clip.
|
|
535
|
+
*
|
|
536
|
+
* A control drawn over the end (`more`) is keyed on an attribute of its own:
|
|
537
|
+
* a Button given through `render` names its own part. The content is gone
|
|
538
|
+
* under the part of it that stands over the panel, and the fade ends where
|
|
539
|
+
* that part starts, so no line is legible beneath it at any height.
|
|
535
540
|
*/
|
|
541
|
+
[data-ui-collapsible][data-peek] {
|
|
542
|
+
--_overlap: 0px;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
[data-ui-collapsible][data-peek]:has(> [data-collapsible-more]) {
|
|
546
|
+
--_overlap: var(--slotted-collapsible-more-overlap, 1.5rem);
|
|
547
|
+
}
|
|
548
|
+
|
|
536
549
|
[data-ui-collapsible][data-peek] > [data-part-panel] {
|
|
537
550
|
grid-template-rows: minmax(var(--_peek), 0fr);
|
|
538
551
|
}
|
|
@@ -545,8 +558,8 @@
|
|
|
545
558
|
content-visibility: visible;
|
|
546
559
|
mask-image: linear-gradient(
|
|
547
560
|
to bottom,
|
|
548
|
-
#000 calc(100% - var(--slotted-collapsible-peek-fade, 3rem)),
|
|
549
|
-
transparent
|
|
561
|
+
#000 calc(100% - var(--_overlap) - var(--slotted-collapsible-peek-fade, 3rem)),
|
|
562
|
+
transparent calc(100% - var(--_overlap))
|
|
550
563
|
);
|
|
551
564
|
opacity: 1;
|
|
552
565
|
padding-block-start: var(
|
|
@@ -555,12 +568,13 @@
|
|
|
555
568
|
);
|
|
556
569
|
}
|
|
557
570
|
|
|
558
|
-
/*
|
|
559
|
-
[data-ui-collapsible] > [data-
|
|
571
|
+
/* Past the fade, at the end of what is in view. */
|
|
572
|
+
[data-ui-collapsible] > [data-collapsible-more] {
|
|
573
|
+
align-self: start;
|
|
560
574
|
grid-column: 1 / -1;
|
|
561
575
|
grid-row: 3;
|
|
562
576
|
justify-self: center;
|
|
563
|
-
margin-block: calc(-1 * var(--
|
|
577
|
+
margin-block: calc(-1 * var(--_overlap)) var(--_padding-block);
|
|
564
578
|
position: relative;
|
|
565
579
|
z-index: 1;
|
|
566
580
|
}
|
|
@@ -569,6 +583,10 @@
|
|
|
569
583
|
[data-ui-collapsible][data-peek]:not([data-open]) > [data-part-panel] > [data-part-content] {
|
|
570
584
|
mask-image: none;
|
|
571
585
|
}
|
|
586
|
+
|
|
587
|
+
[data-ui-collapsible] > [data-collapsible-more] {
|
|
588
|
+
margin-block-start: var(--_padding-block);
|
|
589
|
+
}
|
|
572
590
|
}
|
|
573
591
|
|
|
574
592
|
/**
|
|
@@ -709,7 +727,7 @@
|
|
|
709
727
|
grid-row: 3;
|
|
710
728
|
}
|
|
711
729
|
|
|
712
|
-
[data-ui-collapsible] > [data-
|
|
730
|
+
[data-ui-collapsible] > [data-collapsible-more] {
|
|
713
731
|
grid-row: 4;
|
|
714
732
|
}
|
|
715
733
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"--slotted-collapsible-hover-background",
|
|
10
10
|
"--slotted-collapsible-hover-color",
|
|
11
11
|
"--slotted-collapsible-indicator-color",
|
|
12
|
+
"--slotted-collapsible-more-overlap",
|
|
12
13
|
"--slotted-collapsible-padding-inline",
|
|
13
14
|
"--slotted-collapsible-panel-color",
|
|
14
15
|
"--slotted-collapsible-panel-padding-block-start",
|
|
@@ -221,12 +221,19 @@
|
|
|
221
221
|
overflow-wrap: anywhere;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/* The title and its help control on one row
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
/* The title and its help control on one row, on the baseline of the title's
|
|
225
|
+
first line. The row takes the title's type, so the inline icon button is
|
|
226
|
+
drawn from the title's capital and adds nothing to the row's height. */
|
|
227
227
|
[data-ui-dashboard-grid] [data-part-widget] [data-part-title-row] {
|
|
228
|
-
align-items:
|
|
228
|
+
align-items: baseline;
|
|
229
229
|
display: flex;
|
|
230
|
+
font-family: var(
|
|
231
|
+
--slotted-dashboard-grid-title-font-family,
|
|
232
|
+
var(
|
|
233
|
+
--slotted-font-family-heading,
|
|
234
|
+
var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif)
|
|
235
|
+
)
|
|
236
|
+
);
|
|
230
237
|
font-size: var(
|
|
231
238
|
--slotted-dashboard-grid-title-font-size,
|
|
232
239
|
var(--slotted-font-size-md, 0.8125rem)
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
3
|
* A tool that floats over the page and holds nobody: no scrim, no focus
|
|
4
|
-
* trap, no inert page. It
|
|
5
|
-
* `--_y`, the top-left corner in viewport
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* outside it, with no script on
|
|
4
|
+
* trap, no inert page. It opens in a corner (`data-corner`), and once it has
|
|
5
|
+
* a place it stands there (`--_x`, `--_y`, the top-left corner in viewport
|
|
6
|
+
* pixels, written by the binding); the translation is clamped by the viewport
|
|
7
|
+
* and its own size, so the whole panel stays in view while it moves, when the
|
|
8
|
+
* window shrinks and when a stored place lies outside it, with no script on
|
|
9
|
+
* resize.
|
|
9
10
|
*
|
|
10
11
|
* [data-ui-floating-panel] ▸ handle ▸ grip · title · close
|
|
11
12
|
* ▸ body
|
|
12
13
|
*/
|
|
13
14
|
[data-ui-floating-panel][data-part-root] {
|
|
15
|
+
--_inset: var(--slotted-floating-panel-inset, var(--slotted-space-6, 16px));
|
|
14
16
|
background-color: var(--slotted-floating-panel-surface, var(--slotted-surface-raised, Canvas));
|
|
15
17
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
16
18
|
var(--slotted-floating-panel-border-color, var(--slotted-border-strong, CanvasText));
|
|
@@ -28,8 +30,9 @@
|
|
|
28
30
|
at the viewport's left edge in either direction before it moves. */
|
|
29
31
|
inset-block-start: 0;
|
|
30
32
|
inset-inline-start: 0;
|
|
31
|
-
|
|
32
|
-
max-
|
|
33
|
+
/* One limit in a corner and at a place: a move never resizes the panel. */
|
|
34
|
+
max-block-size: calc(100dvh - 2 * var(--_inset));
|
|
35
|
+
max-inline-size: calc(100vw - 2 * var(--_inset));
|
|
33
36
|
position: fixed;
|
|
34
37
|
translate: clamp(0px, var(--_x, 0px), calc(100vw - 100%))
|
|
35
38
|
clamp(0px, var(--_y, 0px), calc(100dvh - 100%));
|
|
@@ -42,6 +45,27 @@
|
|
|
42
45
|
inset-inline-start: auto;
|
|
43
46
|
}
|
|
44
47
|
|
|
48
|
+
[data-ui-floating-panel][data-part-root][data-corner] {
|
|
49
|
+
inset: auto;
|
|
50
|
+
translate: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-ui-floating-panel][data-part-root][data-corner^='top'] {
|
|
54
|
+
inset-block-start: var(--_inset);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-ui-floating-panel][data-part-root][data-corner^='bottom'] {
|
|
58
|
+
inset-block-end: var(--_inset);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-ui-floating-panel][data-part-root][data-corner$='start'] {
|
|
62
|
+
inset-inline-start: var(--_inset);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-ui-floating-panel][data-part-root][data-corner$='end'] {
|
|
66
|
+
inset-inline-end: var(--_inset);
|
|
67
|
+
}
|
|
68
|
+
|
|
45
69
|
[data-ui-floating-panel] > [data-part-handle] {
|
|
46
70
|
align-items: center;
|
|
47
71
|
border-block-end: var(--slotted-border-width-thin, 1px) solid
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"--slotted-control-inner-size-md",
|
|
6
6
|
"--slotted-floating-panel-backdrop-filter",
|
|
7
7
|
"--slotted-floating-panel-border-color",
|
|
8
|
+
"--slotted-floating-panel-inset",
|
|
8
9
|
"--slotted-floating-panel-radius",
|
|
9
10
|
"--slotted-floating-panel-rule-color",
|
|
10
11
|
"--slotted-floating-panel-shadow",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"--slotted-space-2",
|
|
23
24
|
"--slotted-space-3",
|
|
24
25
|
"--slotted-space-5",
|
|
26
|
+
"--slotted-space-6",
|
|
25
27
|
"--slotted-surface-raised",
|
|
26
28
|
"--slotted-text",
|
|
27
29
|
"--slotted-text-muted",
|
package/src/message/message.css
CHANGED
|
@@ -1261,9 +1261,11 @@
|
|
|
1261
1261
|
* stand in the plain ink.
|
|
1262
1262
|
*/
|
|
1263
1263
|
:scope {
|
|
1264
|
+
--_tile-surface: var(--slotted-surface);
|
|
1265
|
+
|
|
1264
1266
|
display: inline-flex;
|
|
1265
1267
|
flex-direction: column;
|
|
1266
|
-
gap: var(--slotted-space-3, 0.375rem);
|
|
1268
|
+
gap: var(--slotted-message-activity-gap, var(--slotted-space-3, 0.375rem));
|
|
1267
1269
|
box-sizing: border-box;
|
|
1268
1270
|
max-inline-size: 100%;
|
|
1269
1271
|
padding-block: var(--_pad-block);
|
|
@@ -1277,10 +1279,21 @@
|
|
|
1277
1279
|
line-height: round(up, calc(1em * var(--slotted-line-height-md, 1.5)), 1px);
|
|
1278
1280
|
}
|
|
1279
1281
|
|
|
1282
|
+
/* On a rail, with no bubbles, a frame is a block floating in the turn. */
|
|
1283
|
+
:scope[data-variant='plain'] {
|
|
1284
|
+
--_tile-surface: var(--slotted-surface-raised);
|
|
1285
|
+
|
|
1286
|
+
padding: 0;
|
|
1287
|
+
border: 0;
|
|
1288
|
+
border-radius: 0;
|
|
1289
|
+
background-color: transparent;
|
|
1290
|
+
box-shadow: none;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1280
1293
|
[data-part-activity-step] {
|
|
1281
1294
|
display: flex;
|
|
1282
1295
|
align-items: center;
|
|
1283
|
-
gap: var(--slotted-space-4, 0.5rem);
|
|
1296
|
+
gap: var(--slotted-message-activity-step-gap, var(--slotted-space-4, 0.5rem));
|
|
1284
1297
|
min-inline-size: 0;
|
|
1285
1298
|
transition:
|
|
1286
1299
|
opacity var(--slotted-duration-medium) var(--slotted-easing-enter, ease-out),
|
|
@@ -1289,7 +1302,7 @@
|
|
|
1289
1302
|
|
|
1290
1303
|
@starting-style {
|
|
1291
1304
|
opacity: 0;
|
|
1292
|
-
translate: 0 var(--slotted-space-2, 0.25rem);
|
|
1305
|
+
translate: 0 var(--slotted-message-activity-rise, var(--slotted-space-2, 0.25rem));
|
|
1293
1306
|
}
|
|
1294
1307
|
}
|
|
1295
1308
|
|
|
@@ -1306,27 +1319,40 @@
|
|
|
1306
1319
|
}
|
|
1307
1320
|
|
|
1308
1321
|
[data-part-activity-step][data-complete] > :first-child {
|
|
1309
|
-
color: var(--slotted-tone-success-text);
|
|
1322
|
+
color: var(--slotted-message-activity-color-complete, var(--slotted-tone-success-text));
|
|
1310
1323
|
}
|
|
1311
1324
|
|
|
1312
1325
|
/**
|
|
1313
1326
|
* The source of a step, in a tile: the icon of what the step consulted,
|
|
1314
1327
|
* and the tick in its place once the step is complete. The tile is edged
|
|
1315
1328
|
* in the accent while the step is current, which is the state the ring
|
|
1316
|
-
* says where no icon is given.
|
|
1329
|
+
* says where no icon is given. Its ground is a step away from what it
|
|
1330
|
+
* stands on: the surface inside the raised frame, the raised surface where
|
|
1331
|
+
* there is no frame.
|
|
1317
1332
|
*/
|
|
1318
1333
|
[data-part-activity-step] > [data-part-activity-step-icon] {
|
|
1334
|
+
--_tile-glyph: var(--slotted-message-activity-icon-glyph-size, 0.75rem);
|
|
1335
|
+
--slotted-icon-size: var(--_tile-glyph);
|
|
1336
|
+
|
|
1319
1337
|
inline-size: var(--slotted-message-activity-icon-size, 1.375rem);
|
|
1320
1338
|
block-size: var(--slotted-message-activity-icon-size, 1.375rem);
|
|
1321
1339
|
box-sizing: border-box;
|
|
1322
1340
|
border: var(--slotted-border-width-thin, 1px) solid var(--slotted-border-subtle);
|
|
1323
|
-
border-radius: var(--slotted-radius-
|
|
1324
|
-
background-color: var(--slotted-surface);
|
|
1341
|
+
border-radius: var(--slotted-message-activity-icon-radius, var(--slotted-radius-md, 6px));
|
|
1342
|
+
background-color: var(--slotted-message-activity-icon-surface, var(--_tile-surface));
|
|
1325
1343
|
transition: border-color var(--slotted-duration-medium) var(--slotted-easing-standard, ease);
|
|
1326
1344
|
}
|
|
1327
1345
|
|
|
1346
|
+
[data-part-activity-step-icon] > svg {
|
|
1347
|
+
inline-size: var(--_tile-glyph);
|
|
1348
|
+
block-size: var(--_tile-glyph);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1328
1351
|
[data-part-activity-step][data-current] > [data-part-activity-step-icon] {
|
|
1329
|
-
border-color: var(
|
|
1352
|
+
border-color: var(
|
|
1353
|
+
--slotted-message-activity-icon-border-color-current,
|
|
1354
|
+
var(--slotted-tone-accent-border)
|
|
1355
|
+
);
|
|
1330
1356
|
}
|
|
1331
1357
|
|
|
1332
1358
|
[data-part-activity-step][data-current] {
|
|
@@ -1337,7 +1363,7 @@
|
|
|
1337
1363
|
color: var(--slotted-tone-accent-text);
|
|
1338
1364
|
}
|
|
1339
1365
|
|
|
1340
|
-
[data-part-activity-step][data-current] > :last-child {
|
|
1366
|
+
:scope[data-shimmer] [data-part-activity-step][data-current] > :last-child {
|
|
1341
1367
|
--_base: color-mix(in oklab, var(--slotted-text) 72%, var(--slotted-text-muted));
|
|
1342
1368
|
|
|
1343
1369
|
background-image: linear-gradient(
|
|
@@ -1355,7 +1381,7 @@
|
|
|
1355
1381
|
}
|
|
1356
1382
|
|
|
1357
1383
|
@media (prefers-reduced-motion: reduce) {
|
|
1358
|
-
[data-part-activity-step][data-current] > :last-child {
|
|
1384
|
+
:scope[data-shimmer] [data-part-activity-step][data-current] > :last-child {
|
|
1359
1385
|
animation: none;
|
|
1360
1386
|
background-image: none;
|
|
1361
1387
|
color: inherit;
|
|
@@ -29,7 +29,15 @@
|
|
|
29
29
|
"--slotted-font-weight-semibold",
|
|
30
30
|
"--slotted-line-height-md",
|
|
31
31
|
"--slotted-line-height-xs",
|
|
32
|
+
"--slotted-message-activity-color-complete",
|
|
33
|
+
"--slotted-message-activity-gap",
|
|
34
|
+
"--slotted-message-activity-icon-border-color-current",
|
|
35
|
+
"--slotted-message-activity-icon-glyph-size",
|
|
36
|
+
"--slotted-message-activity-icon-radius",
|
|
32
37
|
"--slotted-message-activity-icon-size",
|
|
38
|
+
"--slotted-message-activity-icon-surface",
|
|
39
|
+
"--slotted-message-activity-rise",
|
|
40
|
+
"--slotted-message-activity-step-gap",
|
|
33
41
|
"--slotted-message-avatar-size",
|
|
34
42
|
"--slotted-message-bubble-padding-block",
|
|
35
43
|
"--slotted-message-bubble-padding-inline",
|
package/src/page/page.css
CHANGED
|
@@ -131,6 +131,16 @@
|
|
|
131
131
|
* body that is not a list of blocks (a workspace, a split) to its own
|
|
132
132
|
* layout.
|
|
133
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
* The two gaps as resolved here, the compact step taken: a stack of blocks
|
|
136
|
+
* deeper in the page (a tab panel, a column beside an aside) reads them. On
|
|
137
|
+
* the body, because a container query reaches the page's descendants only.
|
|
138
|
+
*/
|
|
139
|
+
[data-ui-page] > [data-part-scroll] > [data-part-body] {
|
|
140
|
+
--slotted-page-gap: var(--_block-gap);
|
|
141
|
+
--slotted-page-section-space: var(--_section-gap);
|
|
142
|
+
}
|
|
143
|
+
|
|
134
144
|
[data-ui-page]
|
|
135
145
|
> [data-part-scroll]
|
|
136
146
|
> [data-part-body]:not([data-flow='none'])
|
|
@@ -87,6 +87,12 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
87
87
|
* file every one of them as unreachable by a theme.
|
|
88
88
|
*/
|
|
89
89
|
'--slotted-tree-depth',
|
|
90
|
+
/**
|
|
91
|
+
* `table` — the rails of ancestors that cross one row of a hierarchy, as
|
|
92
|
+
* layers of a background: `@slotted/core/tree-branches` writes it from the
|
|
93
|
+
* order and the levels of the rows in the document.
|
|
94
|
+
*/
|
|
95
|
+
'--slotted-tree-rails',
|
|
90
96
|
/**
|
|
91
97
|
* `tree` — where one row sits on a windowed canvas, in pixels. It is written
|
|
92
98
|
* only on a row the window does not cover and the family renders anyway: the
|
package/src/section/section.css
CHANGED
|
@@ -366,4 +366,35 @@
|
|
|
366
366
|
border-end-start-radius: var(--_inner-radius);
|
|
367
367
|
margin-block-end: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
368
368
|
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* A child of the body that bleeds alone, for a body that holds more than its
|
|
372
|
+
* table: the same margins on the child, in the body or in the one stack the
|
|
373
|
+
* body holds, and the same corners when it is the last of the panel.
|
|
374
|
+
*/
|
|
375
|
+
[data-ui-section][data-ground='surface'] > [data-part-body] > [data-part-bleed],
|
|
376
|
+
[data-ui-section][data-ground='surface'] > [data-part-body] > * > [data-part-bleed] {
|
|
377
|
+
--_inner-radius: calc(
|
|
378
|
+
var(--slotted-section-radius, var(--slotted-radius-lg, 8px)) -
|
|
379
|
+
var(--slotted-border-width-thin, 1px)
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
justify-self: stretch;
|
|
383
|
+
margin-inline: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
384
|
+
max-inline-size: none;
|
|
385
|
+
min-inline-size: 0;
|
|
386
|
+
overflow: clip;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[data-ui-section][data-ground='surface']
|
|
390
|
+
> [data-part-body]:last-child
|
|
391
|
+
> [data-part-bleed]:last-child,
|
|
392
|
+
[data-ui-section][data-ground='surface']
|
|
393
|
+
> [data-part-body]:last-child
|
|
394
|
+
> :last-child
|
|
395
|
+
> [data-part-bleed]:last-child {
|
|
396
|
+
border-end-end-radius: var(--_inner-radius);
|
|
397
|
+
border-end-start-radius: var(--_inner-radius);
|
|
398
|
+
margin-block-end: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
399
|
+
}
|
|
369
400
|
}
|
package/src/table/table.css
CHANGED
|
@@ -1283,6 +1283,223 @@
|
|
|
1283
1283
|
background-image: none;
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
|
+
/* A record's leading mark, an avatar or an icon: one box per level. The steps
|
|
1287
|
+
of an avatar that fit a row all measure the box. */
|
|
1288
|
+
[data-ui-table] [data-part-mark] {
|
|
1289
|
+
--_mark: round(var(--slotted-table-mark-size, 1.5rem), 1px);
|
|
1290
|
+
--slotted-avatar-size-xs: var(--_mark);
|
|
1291
|
+
--slotted-avatar-size-sm: var(--_mark);
|
|
1292
|
+
--slotted-avatar-size-md: var(--_mark);
|
|
1293
|
+
align-items: center;
|
|
1294
|
+
block-size: var(--_mark);
|
|
1295
|
+
display: inline-flex;
|
|
1296
|
+
inline-size: var(--_mark);
|
|
1297
|
+
justify-content: center;
|
|
1298
|
+
margin-block: calc((var(--_line) - var(--_mark)) / 2);
|
|
1299
|
+
margin-inline-end: var(--_gap);
|
|
1300
|
+
vertical-align: top;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
[data-ui-table] [data-part-row]:not([data-level='0'])[data-level] [data-part-mark] {
|
|
1304
|
+
--_mark: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* ── The branch of each child ───────────────────────────────────────────
|
|
1309
|
+
*
|
|
1310
|
+
* `guides="branch"`: a rail leaves the foot of the parent's mark and runs
|
|
1311
|
+
* down its center, each child has a branch from the rail to its own mark, and
|
|
1312
|
+
* the rail turns into the branch of the last child. The mark is the row's
|
|
1313
|
+
* `mark` part, or its expander where the cell holds none. Whether a row is
|
|
1314
|
+
* the last, starts a rail or is crossed by the rail of an ancestor is written
|
|
1315
|
+
* by the binding (`data-branch`, `data-branch-open`, `--slotted-tree-rails`).
|
|
1316
|
+
*
|
|
1317
|
+
* Every mark of a level stands in one column: what leads it, an expander or
|
|
1318
|
+
* the room of one, is taken out of the indent rather than added to it.
|
|
1319
|
+
* Positions are taken from the cell's padding box, so a rail is one line
|
|
1320
|
+
* through rows of any height.
|
|
1321
|
+
*/
|
|
1322
|
+
[data-ui-table][data-guides='branch'] {
|
|
1323
|
+
--_lead: 0px;
|
|
1324
|
+
--_branch: var(--slotted-table-branch-size, 1.25rem);
|
|
1325
|
+
--_node: var(--slotted-target-min, 24px);
|
|
1326
|
+
--_node-child: var(--_node);
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
[data-ui-table][data-guides='branch']:has([data-part-row][data-level] [data-part-mark]) {
|
|
1330
|
+
--_node: round(var(--slotted-table-mark-size, 1.5rem), 1px);
|
|
1331
|
+
--_node-child: round(var(--slotted-table-mark-child-size, 1.25rem), 1px);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
/* An expander written before the mark keeps its room in every row, and in a
|
|
1335
|
+
table where no row folds when the table asks for it. */
|
|
1336
|
+
[data-ui-table][data-guides='branch'][data-expander-room='always']:has(
|
|
1337
|
+
[data-part-row][data-level] [data-part-mark]
|
|
1338
|
+
),
|
|
1339
|
+
[data-ui-table][data-guides='branch']:has(
|
|
1340
|
+
[data-part-row][data-level] > * > [data-part-expander] + [data-part-mark]
|
|
1341
|
+
) {
|
|
1342
|
+
--_lead: calc(var(--slotted-target-min, 24px) + var(--_gap));
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/* A child that folds too has its expander between its branch and its mark. */
|
|
1346
|
+
[data-ui-table][data-guides='branch']:has(
|
|
1347
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1348
|
+
> *
|
|
1349
|
+
> [data-part-expander]
|
|
1350
|
+
+ [data-part-mark]
|
|
1351
|
+
) {
|
|
1352
|
+
--_branch: calc(var(--slotted-target-min, 24px) + var(--_gap) + var(--slotted-space-2, 4px));
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
[data-ui-table][data-guides='branch'] [data-part-row][data-level] {
|
|
1356
|
+
--_guide: var(
|
|
1357
|
+
--slotted-table-guide-color,
|
|
1358
|
+
color-mix(in oklab, var(--slotted-text, CanvasText) 26%, var(--_surface))
|
|
1359
|
+
);
|
|
1360
|
+
/* The inline start of the first rail, and from one rail to the next. */
|
|
1361
|
+
--_rail: round(
|
|
1362
|
+
down,
|
|
1363
|
+
calc(var(--_pad-inline) + var(--_lead) + (var(--_node) - var(--_rule-width)) / 2),
|
|
1364
|
+
1px
|
|
1365
|
+
);
|
|
1366
|
+
--_rail-step: calc(var(--_branch) + var(--_node-child) / 2);
|
|
1367
|
+
/* Where the row's own mark starts, and the rail it hangs from. */
|
|
1368
|
+
--_own: calc(var(--_pad-inline) + var(--_lead));
|
|
1369
|
+
--_from: 0px;
|
|
1370
|
+
--_mark-size: var(--_node);
|
|
1371
|
+
/* The middle of the mark: in the cell, and in the box of the lines, which
|
|
1372
|
+
starts a rule above it; the middle of a line placed there as a tile. */
|
|
1373
|
+
--_y: 50%;
|
|
1374
|
+
--_at: calc(50% + var(--_rule-width) / 2);
|
|
1375
|
+
--_tile: calc(50% + var(--_rule-width) / 2);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
[data-ui-table][data-guides='branch'] [data-part-row][data-level]:not([data-level='0']) {
|
|
1379
|
+
--_from: calc(var(--_rail) + (var(--slotted-table-depth) - 1) * var(--_rail-step));
|
|
1380
|
+
--_own: calc(var(--_from) + var(--_branch));
|
|
1381
|
+
--_mark-size: var(--_node-child);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
[data-ui-table][data-guides='branch'][data-cell-align='start'] [data-part-row][data-level] {
|
|
1385
|
+
--_y: calc(var(--_pad-block) + var(--_line) / 2);
|
|
1386
|
+
--_at: calc(var(--_y) + var(--_rule-width));
|
|
1387
|
+
--_tile: calc(var(--_y) + var(--_rule-width) / 2);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
[data-ui-table][data-guides='branch'][data-cell-align='end'] [data-part-row][data-level] {
|
|
1391
|
+
--_y: calc(100% - var(--_pad-block) - var(--_line) / 2);
|
|
1392
|
+
--_at: var(--_y);
|
|
1393
|
+
--_tile: calc(var(--_y) + var(--_rule-width) / 2);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
/* The row's lead: the mark stands out of flow at one place of its level, and
|
|
1397
|
+
the cell keeps its room. An expander before it is in flow, inside the indent. */
|
|
1398
|
+
[data-ui-table][data-guides='branch']
|
|
1399
|
+
[data-part-row][data-level]
|
|
1400
|
+
> :nth-child(1 of :not([data-part-selection])) {
|
|
1401
|
+
block-size: calc(var(--_node) + 2 * var(--slotted-space-1, 2px));
|
|
1402
|
+
box-sizing: border-box;
|
|
1403
|
+
padding-inline-start: var(--_own);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
[data-ui-table][data-guides='branch']
|
|
1407
|
+
[data-part-row][data-level]
|
|
1408
|
+
> :nth-child(1 of :not([data-part-selection])):has(> [data-part-mark]) {
|
|
1409
|
+
padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
[data-ui-table][data-guides='branch']
|
|
1413
|
+
[data-part-row][data-level]
|
|
1414
|
+
> :nth-child(1 of :not([data-part-selection])):not(
|
|
1415
|
+
:has(> :is([data-part-expander], [data-part-mark]))
|
|
1416
|
+
) {
|
|
1417
|
+
padding-inline-start: calc(var(--_own) + var(--_mark-size) + var(--_gap));
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
[data-ui-table][data-guides='branch']
|
|
1421
|
+
[data-part-row][data-level]
|
|
1422
|
+
> :nth-child(1 of :not([data-part-selection]))
|
|
1423
|
+
> [data-part-mark] {
|
|
1424
|
+
inset-block-start: calc(var(--_y) - var(--_mark-size) / 2);
|
|
1425
|
+
inset-inline-start: var(--_own);
|
|
1426
|
+
margin: 0;
|
|
1427
|
+
position: absolute;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
[data-ui-table][data-guides='branch']
|
|
1431
|
+
[data-part-row][data-level]
|
|
1432
|
+
> :nth-child(1 of :not([data-part-selection]))
|
|
1433
|
+
> [data-part-expander]:has(+ [data-part-mark]) {
|
|
1434
|
+
inset-block-start: calc(var(--_y) - var(--slotted-target-min, 24px) / 2);
|
|
1435
|
+
inset-inline-start: calc(var(--_own) - var(--_gap) - var(--slotted-target-min, 24px));
|
|
1436
|
+
margin: 0;
|
|
1437
|
+
position: absolute;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
[data-ui-table][data-guides='branch']
|
|
1441
|
+
[data-part-row][data-level]
|
|
1442
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1443
|
+
--_ink: linear-gradient(var(--_guide) 0 0);
|
|
1444
|
+
--_trunk: none;
|
|
1445
|
+
--_twig: none;
|
|
1446
|
+
--_root: none;
|
|
1447
|
+
background: var(--_root), var(--_twig), var(--_trunk), var(--slotted-tree-rails, none);
|
|
1448
|
+
inline-size: calc(var(--_own) + var(--_mark-size));
|
|
1449
|
+
inset-inline-start: 0;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
[data-ui-table][data-guides='branch']
|
|
1453
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1454
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1455
|
+
--_reach: calc(var(--_branch) - var(--_rule-width) - var(--slotted-space-1, 2px));
|
|
1456
|
+
--_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width) 100% no-repeat;
|
|
1457
|
+
--_twig: var(--_ink) var(--_from) var(--_tile) / calc(var(--_rule-width) + var(--_reach))
|
|
1458
|
+
var(--_rule-width) no-repeat;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/* An expander between the branch and the mark takes the rest of the way. */
|
|
1462
|
+
[data-ui-table][data-guides='branch']
|
|
1463
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1464
|
+
> :nth-child(1 of :not([data-part-selection])):has(
|
|
1465
|
+
> [data-part-expander] + [data-part-mark]
|
|
1466
|
+
)::before {
|
|
1467
|
+
--_reach: var(--slotted-space-2, 4px);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
[data-ui-table][data-guides='branch']
|
|
1471
|
+
[data-part-row][data-level]:not([data-level='0'])
|
|
1472
|
+
> :nth-child(1 of :not([data-part-selection])):not(
|
|
1473
|
+
:has(> :is([data-part-expander], [data-part-mark]))
|
|
1474
|
+
)::before {
|
|
1475
|
+
--_reach: calc(var(--_branch) + var(--_mark-size) - var(--_rule-width));
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
[data-ui-table][data-guides='branch']
|
|
1479
|
+
[data-part-row][data-level][data-branch='last']:not([data-level='0'])
|
|
1480
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1481
|
+
--_trunk: var(--_ink) var(--_from) 0 / var(--_rule-width)
|
|
1482
|
+
calc(var(--_at) + var(--_rule-width) / 2) no-repeat;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
[data-ui-table][data-guides='branch']
|
|
1486
|
+
[data-part-row][data-level][data-branch-open]
|
|
1487
|
+
> :nth-child(1 of :not([data-part-selection]))::before {
|
|
1488
|
+
--_root: linear-gradient(
|
|
1489
|
+
to bottom,
|
|
1490
|
+
transparent calc(var(--_at) + var(--_mark-size) / 2),
|
|
1491
|
+
var(--_guide) calc(var(--_at) + var(--_mark-size) / 2)
|
|
1492
|
+
)
|
|
1493
|
+
calc(var(--_rail) + var(--slotted-table-depth) * var(--_rail-step)) 0 / var(--_rule-width)
|
|
1494
|
+
100% no-repeat;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
[data-ui-table][data-guides='branch']
|
|
1498
|
+
[data-part-row][data-level]
|
|
1499
|
+
> :nth-child(1 of :not([data-part-selection])):dir(rtl)::before {
|
|
1500
|
+
scale: -1 1;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1286
1503
|
/**
|
|
1287
1504
|
* ── The expander ───────────────────────────────────────────────────────
|
|
1288
1505
|
*
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"--slotted-radius-md",
|
|
26
26
|
"--slotted-radius-sm",
|
|
27
27
|
"--slotted-shadow-xs",
|
|
28
|
+
"--slotted-space-1",
|
|
28
29
|
"--slotted-space-2",
|
|
29
30
|
"--slotted-space-4",
|
|
30
31
|
"--slotted-space-5",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"--slotted-table-border-color",
|
|
34
35
|
"--slotted-table-border-color-strong",
|
|
35
36
|
"--slotted-table-border-width",
|
|
37
|
+
"--slotted-table-branch-size",
|
|
36
38
|
"--slotted-table-caption-surface",
|
|
37
39
|
"--slotted-table-cell-padding-block",
|
|
38
40
|
"--slotted-table-cell-padding-inline",
|
|
@@ -52,6 +54,8 @@
|
|
|
52
54
|
"--slotted-table-header-surface",
|
|
53
55
|
"--slotted-table-header-surface-hover",
|
|
54
56
|
"--slotted-table-icon-size",
|
|
57
|
+
"--slotted-table-mark-child-size",
|
|
58
|
+
"--slotted-table-mark-size",
|
|
55
59
|
"--slotted-table-radius",
|
|
56
60
|
"--slotted-table-row-color-selected",
|
|
57
61
|
"--slotted-table-row-min-block-size",
|