@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20
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/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +152 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +155 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +210 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -59
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +78 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +271 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +175 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +81 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +154 -133
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +79 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +145 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +132 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +31 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +72 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* sunken surface, with each widget a raised card on it; the page decides
|
|
16
16
|
* that ground, and every mark below is drawn to read on it.
|
|
17
17
|
*/
|
|
18
|
-
[data-ui
|
|
18
|
+
[data-ui-dashboard-grid] {
|
|
19
19
|
--_gap: var(--slotted-dashboard-grid-gap, var(--slotted-space-6, 1rem));
|
|
20
20
|
--_row: var(--slotted-dashboard-grid-row-size, 4.5rem);
|
|
21
21
|
--_cols: var(--_dg-columns-expanded, 12);
|
|
@@ -29,10 +29,20 @@
|
|
|
29
29
|
min-inline-size: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* A row is the unit a reader moves and resizes by; the tracks are twelve
|
|
34
|
+
* times finer (`DASHBOARD_SUBROWS` in `@slotted/core/dashboard-grid`), so a
|
|
35
|
+
* widget sized by its content ends within a twelfth of a row's step of it.
|
|
36
|
+
* The tracks have no gap between them: each widget draws the gap as its
|
|
37
|
+
* margin below, inside its own cells, and the grid takes the last one back.
|
|
38
|
+
* A widget of `h` rows is `h` rows and `h - 1` gaps tall, as before.
|
|
39
|
+
*/
|
|
40
|
+
[data-ui-dashboard-grid] > [data-part-grid] {
|
|
41
|
+
column-gap: var(--_gap);
|
|
33
42
|
display: grid;
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
grid-auto-rows: calc((var(--_row) + var(--_gap)) / 12);
|
|
44
|
+
margin-block-end: calc(-1 * var(--_gap));
|
|
45
|
+
row-gap: 0;
|
|
36
46
|
grid-template-columns: repeat(var(--_cols), minmax(0, 1fr));
|
|
37
47
|
list-style: none;
|
|
38
48
|
margin: 0;
|
|
@@ -43,8 +53,8 @@
|
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
/* `display: grid` above would otherwise override the attribute. */
|
|
46
|
-
[data-ui
|
|
47
|
-
[data-ui
|
|
56
|
+
[data-ui-dashboard-grid] [data-part-grid][hidden],
|
|
57
|
+
[data-ui-dashboard-grid] [data-part-widget][hidden] {
|
|
48
58
|
display: none;
|
|
49
59
|
}
|
|
50
60
|
|
|
@@ -52,14 +62,15 @@
|
|
|
52
62
|
* In the expanded class every widget stands at its own cell. The DOM holds
|
|
53
63
|
* them by row, then column, so the order a reader walks is the picture's.
|
|
54
64
|
*/
|
|
55
|
-
[data-ui
|
|
65
|
+
[data-ui-dashboard-grid] :is([data-part-widget], [data-part-placeholder]) {
|
|
56
66
|
grid-column: var(--_dg-x, auto) / span var(--_dg-w, 4);
|
|
57
|
-
grid-row: var(--_dg-y, auto) / span var(--_dg-h,
|
|
67
|
+
grid-row: var(--_dg-y, auto) / span var(--_dg-h, 24);
|
|
68
|
+
margin-block-end: var(--_gap);
|
|
58
69
|
min-block-size: 0;
|
|
59
70
|
min-inline-size: 0;
|
|
60
71
|
}
|
|
61
72
|
|
|
62
|
-
[data-ui
|
|
73
|
+
[data-ui-dashboard-grid] [data-part-widget] {
|
|
63
74
|
display: flex;
|
|
64
75
|
position: relative;
|
|
65
76
|
}
|
|
@@ -68,37 +79,69 @@
|
|
|
68
79
|
* The medium class flows the same order, each widget a half or the whole
|
|
69
80
|
* of the row; its height stays in rows. The compact class is one
|
|
70
81
|
* column whose widgets are as tall as their content, the way a phone reads a
|
|
71
|
-
* dashboard.
|
|
72
|
-
*
|
|
82
|
+
* dashboard. Once the binding has measured the grid it writes the class on
|
|
83
|
+
* the root (`data-size-class`, from `expandedFrom`), and the rules follow
|
|
84
|
+
* the attribute. Before that the container queries draw the classes at the
|
|
85
|
+
* thresholds of §2.7, literal because CSS refuses a custom property in a
|
|
86
|
+
* container condition.
|
|
73
87
|
*/
|
|
74
88
|
@container dashboard-grid (width < 1024px) {
|
|
75
|
-
[data-ui
|
|
89
|
+
[data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid] {
|
|
76
90
|
--_cols: var(--_dg-columns-medium, 6);
|
|
77
91
|
}
|
|
78
92
|
|
|
79
|
-
[data-ui
|
|
93
|
+
[data-ui-dashboard-grid]:not([data-size-class])
|
|
94
|
+
:is([data-part-widget], [data-part-placeholder]) {
|
|
80
95
|
grid-column: auto / span var(--_dg-span-medium, 3);
|
|
81
|
-
grid-row: auto / span var(--_dg-h,
|
|
96
|
+
grid-row: auto / span var(--_dg-h, 24);
|
|
82
97
|
}
|
|
83
98
|
}
|
|
84
99
|
|
|
100
|
+
[data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
|
|
101
|
+
> [data-part-grid] {
|
|
102
|
+
--_cols: var(--_dg-columns-medium, 6);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
|
|
106
|
+
:is([data-part-widget], [data-part-placeholder]) {
|
|
107
|
+
grid-column: auto / span var(--_dg-span-medium, 3);
|
|
108
|
+
grid-row: auto / span var(--_dg-h, 24);
|
|
109
|
+
}
|
|
110
|
+
|
|
85
111
|
@container dashboard-grid (width < 600px) {
|
|
86
|
-
[data-ui
|
|
112
|
+
[data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid] {
|
|
87
113
|
--_cols: var(--_dg-columns-compact, 1);
|
|
88
114
|
|
|
89
115
|
grid-auto-rows: auto;
|
|
90
116
|
}
|
|
91
117
|
|
|
92
|
-
[data-ui
|
|
118
|
+
[data-ui-dashboard-grid]:not([data-size-class])
|
|
119
|
+
:is([data-part-widget], [data-part-placeholder]) {
|
|
93
120
|
grid-column: 1 / -1;
|
|
94
121
|
grid-row: auto;
|
|
95
122
|
}
|
|
96
123
|
|
|
97
|
-
[data-ui
|
|
124
|
+
[data-ui-dashboard-grid]:not([data-size-class]) [data-part-placeholder] {
|
|
98
125
|
min-block-size: calc(var(--_row) * 2);
|
|
99
126
|
}
|
|
100
127
|
}
|
|
101
128
|
|
|
129
|
+
[data-ui-dashboard-grid][data-size-class='compact'] > [data-part-grid] {
|
|
130
|
+
--_cols: var(--_dg-columns-compact, 1);
|
|
131
|
+
|
|
132
|
+
grid-auto-rows: auto;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-ui-dashboard-grid][data-size-class='compact']
|
|
136
|
+
:is([data-part-widget], [data-part-placeholder]) {
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
grid-row: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-ui-dashboard-grid][data-size-class='compact'] [data-part-placeholder] {
|
|
142
|
+
min-block-size: calc(var(--_row) * 2);
|
|
143
|
+
}
|
|
144
|
+
|
|
102
145
|
/* ── The widget ──────────────────────────────────────────────────────── */
|
|
103
146
|
|
|
104
147
|
/**
|
|
@@ -107,17 +150,20 @@
|
|
|
107
150
|
* than the cell grows into it, so a chart or a figure uses the height the
|
|
108
151
|
* reader gave the widget rather than stopping at its own size step.
|
|
109
152
|
*/
|
|
110
|
-
[data-ui
|
|
153
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-ui-card] {
|
|
111
154
|
flex: 1 1 auto;
|
|
112
155
|
min-block-size: 0;
|
|
113
156
|
min-inline-size: 0;
|
|
114
157
|
transition: box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
115
158
|
}
|
|
116
159
|
|
|
117
|
-
[data-ui
|
|
160
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-ui-card] > [data-part-body] {
|
|
118
161
|
/* A chart's plot takes whatever height the widget leaves it, down to a
|
|
119
|
-
floor of one and a half rows, instead of its own size step
|
|
162
|
+
floor of one and a half rows, instead of its own size step: the
|
|
163
|
+
reader sizes a widget, and every step answers to that size. */
|
|
120
164
|
--slotted-chart-plot-block-size: calc(var(--_row) * 1.5);
|
|
165
|
+
--slotted-chart-plot-block-size-sm: calc(var(--_row) * 1.5);
|
|
166
|
+
--slotted-chart-plot-block-size-lg: calc(var(--_row) * 1.5);
|
|
121
167
|
|
|
122
168
|
display: flex;
|
|
123
169
|
flex-direction: column;
|
|
@@ -128,20 +174,30 @@
|
|
|
128
174
|
/* The content grows into a taller cell and never shrinks under its own
|
|
129
175
|
height: shrunk, it overflowed its own box, and the body scrolled only that
|
|
130
176
|
overflow, so its last rows and the end padding stayed out of reach. */
|
|
131
|
-
[data-ui
|
|
132
|
-
[data-part
|
|
133
|
-
> [data-ui
|
|
134
|
-
> [data-part
|
|
135
|
-
> :not([data-part
|
|
177
|
+
[data-ui-dashboard-grid]
|
|
178
|
+
[data-part-widget]
|
|
179
|
+
> [data-ui-card]
|
|
180
|
+
> [data-part-body]
|
|
181
|
+
> :not([data-part-busy-indicator]) {
|
|
136
182
|
flex: 1 0 auto;
|
|
137
183
|
}
|
|
138
184
|
|
|
185
|
+
/* A widget sized by its content is measured by it: what its body holds
|
|
186
|
+
keeps its own height, and the cell is that height to a twelfth of a row. */
|
|
187
|
+
[data-ui-dashboard-grid]
|
|
188
|
+
[data-part-widget][data-rows='auto']
|
|
189
|
+
> [data-ui-card]
|
|
190
|
+
> [data-part-body]
|
|
191
|
+
> :not([data-part-busy-indicator]) {
|
|
192
|
+
flex-grow: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
139
195
|
/**
|
|
140
196
|
* The title is the widget's name and a card header's first line: the
|
|
141
197
|
* medium step, semibold, two lines and then an ellipsis. The clamp never
|
|
142
198
|
* removes a word from the DOM, and the article is named by the whole of it.
|
|
143
199
|
*/
|
|
144
|
-
[data-ui
|
|
200
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-title] {
|
|
145
201
|
-webkit-box-orient: vertical;
|
|
146
202
|
color: var(--slotted-dashboard-grid-title-color, var(--slotted-text, CanvasText));
|
|
147
203
|
display: -webkit-box;
|
|
@@ -165,7 +221,7 @@
|
|
|
165
221
|
overflow-wrap: anywhere;
|
|
166
222
|
}
|
|
167
223
|
|
|
168
|
-
[data-ui
|
|
224
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-description] {
|
|
169
225
|
color: var(--slotted-dashboard-grid-description-color, var(--slotted-text-muted, GrayText));
|
|
170
226
|
font-size: var(--slotted-font-size-sm, 0.75rem);
|
|
171
227
|
line-height: var(--slotted-line-height-sm, 1.5);
|
|
@@ -175,7 +231,7 @@
|
|
|
175
231
|
|
|
176
232
|
/* The corner of the header: the consumer's actions, then the way to the
|
|
177
233
|
widget's own page, on the title's row without adding to its height. */
|
|
178
|
-
[data-ui
|
|
234
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-actions] {
|
|
179
235
|
flex-wrap: nowrap;
|
|
180
236
|
gap: var(--slotted-space-1, 0.125rem);
|
|
181
237
|
margin-block: calc(
|
|
@@ -199,19 +255,19 @@
|
|
|
199
255
|
* its own: the family does not know what the body holds, but does know its
|
|
200
256
|
* box — the grid fixed it.
|
|
201
257
|
*/
|
|
202
|
-
[data-ui
|
|
258
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-skeleton] {
|
|
203
259
|
display: flex;
|
|
204
260
|
flex-direction: column;
|
|
205
261
|
min-block-size: var(--slotted-space-12, 4rem);
|
|
206
262
|
}
|
|
207
263
|
|
|
208
|
-
[data-ui
|
|
264
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-skeleton] > [data-ui-skeleton] {
|
|
209
265
|
block-size: auto;
|
|
210
266
|
flex: 1 1 auto;
|
|
211
267
|
inline-size: 100%;
|
|
212
268
|
}
|
|
213
269
|
|
|
214
|
-
[data-ui
|
|
270
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-message] {
|
|
215
271
|
align-content: center;
|
|
216
272
|
display: grid;
|
|
217
273
|
justify-items: center;
|
|
@@ -222,7 +278,7 @@
|
|
|
222
278
|
* the body, where Grafana draws its panel's. It is aria-hidden: the article
|
|
223
279
|
* carries `aria-busy`, which is the fact, and the line is only its picture.
|
|
224
280
|
*/
|
|
225
|
-
[data-ui
|
|
281
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
|
|
226
282
|
background-color: var(--_accent);
|
|
227
283
|
block-size: var(--slotted-border-width-medium, 2px);
|
|
228
284
|
inset-block-start: 0;
|
|
@@ -233,7 +289,7 @@
|
|
|
233
289
|
}
|
|
234
290
|
|
|
235
291
|
@media (prefers-reduced-motion: no-preference) {
|
|
236
|
-
[data-ui
|
|
292
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
|
|
237
293
|
animation: slotted-dashboard-grid-busy var(--slotted-duration-loop-slow) linear infinite;
|
|
238
294
|
background-color: transparent;
|
|
239
295
|
background-image: linear-gradient(to right, transparent, var(--_accent) 50%, transparent);
|
|
@@ -244,7 +300,7 @@
|
|
|
244
300
|
}
|
|
245
301
|
|
|
246
302
|
@media (prefers-reduced-motion: reduce) {
|
|
247
|
-
[data-ui
|
|
303
|
+
[data-ui-dashboard-grid] [data-part-widget] [data-part-busy-indicator] {
|
|
248
304
|
animation: none;
|
|
249
305
|
}
|
|
250
306
|
}
|
|
@@ -266,7 +322,7 @@
|
|
|
266
322
|
* the card's hairline and the smallest lift — so on the sunken page it reads
|
|
267
323
|
* as a tool laid over the dashboard rather than a stripe cut into it.
|
|
268
324
|
*/
|
|
269
|
-
[data-ui
|
|
325
|
+
[data-ui-dashboard-grid] > [data-part-edit-bar] {
|
|
270
326
|
align-items: center;
|
|
271
327
|
background-color: var(
|
|
272
328
|
--slotted-dashboard-grid-edit-bar-background,
|
|
@@ -284,19 +340,19 @@
|
|
|
284
340
|
}
|
|
285
341
|
|
|
286
342
|
@starting-style {
|
|
287
|
-
[data-ui
|
|
343
|
+
[data-ui-dashboard-grid] > [data-part-edit-bar] {
|
|
288
344
|
opacity: 0;
|
|
289
345
|
translate: 0 calc(var(--slotted-space-4, 0.5rem) * -1);
|
|
290
346
|
}
|
|
291
347
|
}
|
|
292
348
|
|
|
293
|
-
[data-ui
|
|
349
|
+
[data-ui-dashboard-grid] > [data-part-edit-bar] {
|
|
294
350
|
transition:
|
|
295
351
|
opacity var(--slotted-duration-medium) var(--slotted-easing-enter),
|
|
296
352
|
translate var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
297
353
|
}
|
|
298
354
|
|
|
299
|
-
[data-ui
|
|
355
|
+
[data-ui-dashboard-grid] > [data-part-edit-bar] > [data-part-edit-status] {
|
|
300
356
|
color: var(--slotted-text-muted, GrayText);
|
|
301
357
|
flex: 1 1 20rem;
|
|
302
358
|
font-size: var(--slotted-font-size-sm, 0.75rem);
|
|
@@ -305,7 +361,7 @@
|
|
|
305
361
|
min-inline-size: 0;
|
|
306
362
|
}
|
|
307
363
|
|
|
308
|
-
[data-ui
|
|
364
|
+
[data-ui-dashboard-grid] > [data-part-edit-bar] > [data-part-edit-actions] {
|
|
309
365
|
align-items: center;
|
|
310
366
|
display: flex;
|
|
311
367
|
flex-wrap: wrap;
|
|
@@ -325,7 +381,7 @@
|
|
|
325
381
|
* dot that shows marks a free cell; a dot on the crossing of two gaps
|
|
326
382
|
* showed between cards and under them, where no widget can land.
|
|
327
383
|
*/
|
|
328
|
-
[data-ui
|
|
384
|
+
[data-ui-dashboard-grid] > [data-part-grid]::before {
|
|
329
385
|
background-image: radial-gradient(
|
|
330
386
|
circle at calc((100% - var(--_gap)) / 2) calc((100% - var(--_gap)) / 2),
|
|
331
387
|
var(--slotted-dashboard-grid-lattice-color, var(--slotted-border-strong, currentColor))
|
|
@@ -341,49 +397,54 @@
|
|
|
341
397
|
transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
342
398
|
}
|
|
343
399
|
|
|
344
|
-
[data-ui
|
|
400
|
+
[data-ui-dashboard-grid][data-editing] > [data-part-grid] {
|
|
345
401
|
min-block-size: calc(var(--_row) * 2 + var(--_gap));
|
|
346
402
|
}
|
|
347
403
|
|
|
348
|
-
[data-ui
|
|
404
|
+
[data-ui-dashboard-grid][data-editing] > [data-part-grid]::before {
|
|
349
405
|
opacity: 0.7;
|
|
350
406
|
}
|
|
351
407
|
|
|
352
408
|
/* While a widget is carried or pulled the lattice is what it snaps to, so
|
|
353
409
|
it comes forward. The attribute is on the grid, in the compound it styles:
|
|
354
410
|
a browser invalidates by attribute name, and on the root ahead of
|
|
355
|
-
`> [data-part
|
|
411
|
+
`> [data-part-grid]` it restyled every element with a `data-part`
|
|
356
412
|
under the root as a widget was picked up and as it was dropped. */
|
|
357
|
-
[data-ui
|
|
413
|
+
[data-ui-dashboard-grid] > [data-part-grid][data-gesture]::before {
|
|
358
414
|
opacity: 1;
|
|
359
415
|
}
|
|
360
416
|
|
|
361
417
|
/* Below the expanded class the widgets flow, so no cell is a place to drop
|
|
362
418
|
on and the lattice would be specks in the gaps. */
|
|
363
419
|
@container dashboard-grid (width < 1024px) {
|
|
364
|
-
[data-ui
|
|
420
|
+
[data-ui-dashboard-grid]:not([data-size-class]) > [data-part-grid]::before {
|
|
365
421
|
display: none;
|
|
366
422
|
}
|
|
367
423
|
}
|
|
368
424
|
|
|
425
|
+
[data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
|
|
426
|
+
> [data-part-grid]::before {
|
|
427
|
+
display: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
369
430
|
/* ── Editing: the widget ─────────────────────────────────────────────── */
|
|
370
431
|
|
|
371
432
|
/* The whole card is a place to pick the widget up from; its controls keep
|
|
372
433
|
their own cursor because each is its own target. */
|
|
373
|
-
[data-ui
|
|
434
|
+
[data-ui-dashboard-grid][data-editing] [data-part-widget][data-movable] > [data-ui-card] {
|
|
374
435
|
cursor: grab;
|
|
375
436
|
}
|
|
376
437
|
|
|
377
|
-
[data-ui
|
|
378
|
-
[data-part
|
|
379
|
-
> [data-ui
|
|
438
|
+
[data-ui-dashboard-grid][data-editing]
|
|
439
|
+
[data-part-widget][data-movable]
|
|
440
|
+
> [data-ui-card]
|
|
380
441
|
:is(a, button, input, select, textarea, [tabindex]) {
|
|
381
442
|
cursor: auto;
|
|
382
443
|
}
|
|
383
444
|
|
|
384
|
-
[data-ui
|
|
385
|
-
[data-part
|
|
386
|
-
> [data-ui
|
|
445
|
+
[data-ui-dashboard-grid][data-editing]
|
|
446
|
+
[data-part-widget]:not([data-loading]):hover
|
|
447
|
+
> [data-ui-card] {
|
|
387
448
|
box-shadow: var(--slotted-shadow-sm);
|
|
388
449
|
}
|
|
389
450
|
|
|
@@ -395,7 +456,7 @@
|
|
|
395
456
|
* pill is drawn on the raised surface with the control's own edge, so it
|
|
396
457
|
* reads as part of the card rather than as a button beside it.
|
|
397
458
|
*/
|
|
398
|
-
[data-ui
|
|
459
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
|
|
399
460
|
--_pill-inline: var(--slotted-dashboard-grid-handle-inline-size, 2.25rem);
|
|
400
461
|
--_pill-block: var(--slotted-dashboard-grid-handle-block-size, 1rem);
|
|
401
462
|
|
|
@@ -430,7 +491,7 @@
|
|
|
430
491
|
}
|
|
431
492
|
|
|
432
493
|
@starting-style {
|
|
433
|
-
[data-ui
|
|
494
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
|
|
434
495
|
opacity: 0;
|
|
435
496
|
translate: 0 var(--slotted-space-3, 0.375rem);
|
|
436
497
|
}
|
|
@@ -438,7 +499,7 @@
|
|
|
438
499
|
|
|
439
500
|
/* The pill is small to the eye and not to the hand: the hit area reaches
|
|
440
501
|
the target floor on both axes. */
|
|
441
|
-
[data-ui
|
|
502
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle]::before {
|
|
442
503
|
content: '';
|
|
443
504
|
inset: calc((var(--slotted-target-min, 24px) - var(--_pill-block)) / -2)
|
|
444
505
|
calc(var(--slotted-space-4, 0.5rem) * -1);
|
|
@@ -446,28 +507,28 @@
|
|
|
446
507
|
}
|
|
447
508
|
|
|
448
509
|
/* The grip is an `icon` the binding draws; the pill gives it its size. */
|
|
449
|
-
[data-ui
|
|
510
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] > [data-ui-icon] {
|
|
450
511
|
--slotted-icon-size: var(--slotted-dashboard-grid-handle-glyph-size, 0.875rem);
|
|
451
512
|
}
|
|
452
513
|
|
|
453
|
-
[data-ui
|
|
454
|
-
[data-part
|
|
455
|
-
> [data-part
|
|
514
|
+
[data-ui-dashboard-grid][data-editing]
|
|
515
|
+
[data-part-widget]:not([data-loading]):hover
|
|
516
|
+
> [data-part-handle] {
|
|
456
517
|
border-color: var(--slotted-border-strong, ButtonBorder);
|
|
457
518
|
color: var(--slotted-text, CanvasText);
|
|
458
519
|
}
|
|
459
520
|
|
|
460
|
-
[data-ui
|
|
521
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle]:focus-visible {
|
|
461
522
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
462
523
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
463
524
|
}
|
|
464
525
|
|
|
465
526
|
/* Carried, or its menu open: the pill takes the accent, the one mark on the
|
|
466
527
|
page that says which widget the reader has in hand. */
|
|
467
|
-
[data-ui
|
|
468
|
-
[data-part
|
|
469
|
-
> [data-part
|
|
470
|
-
[data-ui
|
|
528
|
+
[data-ui-dashboard-grid]
|
|
529
|
+
[data-part-widget]:is([data-dragging], [data-resizing])
|
|
530
|
+
> [data-part-handle],
|
|
531
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle][aria-expanded='true'] {
|
|
471
532
|
background-color: var(--_accent);
|
|
472
533
|
border-color: var(--_accent);
|
|
473
534
|
color: var(--slotted-tone-accent-on-solid, HighlightText);
|
|
@@ -482,7 +543,7 @@
|
|
|
482
543
|
* are quiet until the widget is under the pointer, and always shown to a
|
|
483
544
|
* finger, which has no hover.
|
|
484
545
|
*/
|
|
485
|
-
[data-ui
|
|
546
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-resize-handle] {
|
|
486
547
|
--_hit: var(--slotted-dashboard-grid-resize-hit, 0.75rem);
|
|
487
548
|
--_mark: var(--slotted-border-strong, currentColor);
|
|
488
549
|
|
|
@@ -493,30 +554,30 @@
|
|
|
493
554
|
z-index: 2;
|
|
494
555
|
}
|
|
495
556
|
|
|
496
|
-
[data-ui
|
|
497
|
-
[data-part
|
|
498
|
-
> [data-part
|
|
499
|
-
[data-ui
|
|
500
|
-
[data-part
|
|
501
|
-
> [data-part
|
|
502
|
-
[data-ui
|
|
557
|
+
[data-ui-dashboard-grid][data-editing]
|
|
558
|
+
[data-part-widget]:not([data-loading]):hover
|
|
559
|
+
> [data-part-resize-handle],
|
|
560
|
+
[data-ui-dashboard-grid][data-editing]
|
|
561
|
+
[data-part-widget]:focus-within
|
|
562
|
+
> [data-part-resize-handle],
|
|
563
|
+
[data-ui-dashboard-grid] [data-part-widget][data-resizing] > [data-part-resize-handle] {
|
|
503
564
|
opacity: 1;
|
|
504
565
|
}
|
|
505
566
|
|
|
506
567
|
@media (pointer: coarse) {
|
|
507
|
-
[data-ui
|
|
568
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-resize-handle] {
|
|
508
569
|
--_hit: var(--slotted-target-comfortable, 44px);
|
|
509
570
|
|
|
510
571
|
opacity: 1;
|
|
511
572
|
}
|
|
512
573
|
|
|
513
|
-
[data-ui
|
|
574
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-handle] {
|
|
514
575
|
--_pill-inline: var(--slotted-dashboard-grid-handle-inline-size-coarse, 2.75rem);
|
|
515
576
|
--_pill-block: var(--slotted-dashboard-grid-handle-block-size-coarse, 1.25rem);
|
|
516
577
|
}
|
|
517
578
|
}
|
|
518
579
|
|
|
519
|
-
[data-ui
|
|
580
|
+
[data-ui-dashboard-grid] [data-part-resize-handle]::before {
|
|
520
581
|
background-color: var(--_mark);
|
|
521
582
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
522
583
|
content: '';
|
|
@@ -529,68 +590,67 @@
|
|
|
529
590
|
inline-size var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
530
591
|
}
|
|
531
592
|
|
|
532
|
-
[data-ui
|
|
533
|
-
[data-part='resize-handle']:is([data-edge='start'], [data-edge='end']) {
|
|
593
|
+
[data-ui-dashboard-grid] [data-part-resize-handle]:is([data-edge='start'], [data-edge='end']) {
|
|
534
594
|
cursor: ew-resize;
|
|
535
595
|
inline-size: var(--_hit);
|
|
536
596
|
inset-block: calc(var(--_radius) + var(--_hit) / 2);
|
|
537
597
|
}
|
|
538
598
|
|
|
539
|
-
[data-ui
|
|
599
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='start'] {
|
|
540
600
|
inset-inline-start: calc(var(--_hit) / -2);
|
|
541
601
|
}
|
|
542
602
|
|
|
543
|
-
[data-ui
|
|
603
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='end'] {
|
|
544
604
|
inset-inline-end: calc(var(--_hit) / -2);
|
|
545
605
|
}
|
|
546
606
|
|
|
547
|
-
[data-ui
|
|
548
|
-
[data-part
|
|
607
|
+
[data-ui-dashboard-grid]
|
|
608
|
+
[data-part-resize-handle]:is([data-edge='start'], [data-edge='end'])::before {
|
|
549
609
|
block-size: var(--slotted-dashboard-grid-resize-pill, 1.75rem);
|
|
550
610
|
inline-size: var(--slotted-border-width-thick, 3px);
|
|
551
611
|
}
|
|
552
612
|
|
|
553
|
-
[data-ui
|
|
613
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom'] {
|
|
554
614
|
block-size: var(--_hit);
|
|
555
615
|
cursor: ns-resize;
|
|
556
616
|
inset-block-end: calc(var(--_hit) / -2);
|
|
557
617
|
inset-inline: calc(var(--_radius) + var(--_hit) / 2);
|
|
558
618
|
}
|
|
559
619
|
|
|
560
|
-
[data-ui
|
|
620
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom']::before {
|
|
561
621
|
block-size: var(--slotted-border-width-thick, 3px);
|
|
562
622
|
inline-size: var(--slotted-dashboard-grid-resize-pill, 1.75rem);
|
|
563
623
|
}
|
|
564
624
|
|
|
565
|
-
[data-ui
|
|
566
|
-
[data-part
|
|
625
|
+
[data-ui-dashboard-grid]
|
|
626
|
+
[data-part-resize-handle]:is([data-edge='bottom-start'], [data-edge='bottom-end']) {
|
|
567
627
|
block-size: calc(var(--_hit) * 1.5);
|
|
568
628
|
inline-size: calc(var(--_hit) * 1.5);
|
|
569
629
|
inset-block-end: calc(var(--_hit) / -2);
|
|
570
630
|
}
|
|
571
631
|
|
|
572
|
-
[data-ui
|
|
632
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end'] {
|
|
573
633
|
cursor: nwse-resize;
|
|
574
634
|
inset-inline-end: calc(var(--_hit) / -2);
|
|
575
635
|
}
|
|
576
636
|
|
|
577
|
-
[data-ui
|
|
637
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start'] {
|
|
578
638
|
cursor: nesw-resize;
|
|
579
639
|
inset-inline-start: calc(var(--_hit) / -2);
|
|
580
640
|
}
|
|
581
641
|
|
|
582
|
-
[data-ui
|
|
642
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end']:dir(rtl) {
|
|
583
643
|
cursor: nesw-resize;
|
|
584
644
|
}
|
|
585
645
|
|
|
586
|
-
[data-ui
|
|
646
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start']:dir(rtl) {
|
|
587
647
|
cursor: nwse-resize;
|
|
588
648
|
}
|
|
589
649
|
|
|
590
650
|
/* The corner mark is an arc on the card's own corner: a quarter of a ring
|
|
591
651
|
whose radius is the card's, drawn over the card's edge. */
|
|
592
|
-
[data-ui
|
|
593
|
-
[data-part
|
|
652
|
+
[data-ui-dashboard-grid]
|
|
653
|
+
[data-part-resize-handle]:is([data-edge='bottom-start'], [data-edge='bottom-end'])::before {
|
|
594
654
|
background-color: transparent;
|
|
595
655
|
block-size: var(--_radius);
|
|
596
656
|
border-block-end: var(--slotted-border-width-thick, 3px) solid var(--_mark);
|
|
@@ -601,13 +661,13 @@
|
|
|
601
661
|
margin: 0;
|
|
602
662
|
}
|
|
603
663
|
|
|
604
|
-
[data-ui
|
|
664
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-end']::before {
|
|
605
665
|
border-end-end-radius: var(--_radius);
|
|
606
666
|
border-inline-end: var(--slotted-border-width-thick, 3px) solid var(--_mark);
|
|
607
667
|
inset-inline-end: calc(var(--_hit) / 2 - var(--slotted-border-width-thin, 1px));
|
|
608
668
|
}
|
|
609
669
|
|
|
610
|
-
[data-ui
|
|
670
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-edge='bottom-start']::before {
|
|
611
671
|
border-end-start-radius: var(--_radius);
|
|
612
672
|
border-inline-start: var(--slotted-border-width-thick, 3px) solid var(--_mark);
|
|
613
673
|
inset-inline-start: calc(var(--_hit) / 2 - var(--slotted-border-width-thin, 1px));
|
|
@@ -615,21 +675,21 @@
|
|
|
615
675
|
|
|
616
676
|
/* Under the pointer, and while it is pulled, the mark takes the accent and
|
|
617
677
|
the edge pill grows, so the reader sees which side answers. */
|
|
618
|
-
[data-ui
|
|
619
|
-
[data-ui
|
|
678
|
+
[data-ui-dashboard-grid] [data-part-resize-handle]:not([data-disabled]):hover,
|
|
679
|
+
[data-ui-dashboard-grid] [data-part-resize-handle][data-active] {
|
|
620
680
|
--_mark: var(--_accent);
|
|
621
681
|
}
|
|
622
682
|
|
|
623
|
-
[data-ui
|
|
624
|
-
[data-part
|
|
683
|
+
[data-ui-dashboard-grid]
|
|
684
|
+
[data-part-resize-handle]:is([data-edge='start'], [data-edge='end']):is(
|
|
625
685
|
:not([data-disabled]):hover,
|
|
626
686
|
[data-active]
|
|
627
687
|
)::before {
|
|
628
688
|
block-size: var(--slotted-dashboard-grid-resize-pill-active, 2.75rem);
|
|
629
689
|
}
|
|
630
690
|
|
|
631
|
-
[data-ui
|
|
632
|
-
[data-part
|
|
691
|
+
[data-ui-dashboard-grid]
|
|
692
|
+
[data-part-resize-handle][data-edge='bottom']:is(
|
|
633
693
|
:not([data-disabled]):hover,
|
|
634
694
|
[data-active]
|
|
635
695
|
)::before {
|
|
@@ -639,21 +699,33 @@
|
|
|
639
699
|
/* The medium class flows the widgets, so a widget's start is where the one
|
|
640
700
|
before it ends: there is no start edge to pull. */
|
|
641
701
|
@container dashboard-grid (width < 1024px) {
|
|
642
|
-
[data-ui
|
|
643
|
-
[data-part
|
|
644
|
-
> [data-part
|
|
702
|
+
[data-ui-dashboard-grid]:not([data-size-class])
|
|
703
|
+
[data-part-widget]
|
|
704
|
+
> [data-part-resize-handle]:is([data-edge='start'], [data-edge='bottom-start']) {
|
|
645
705
|
display: none;
|
|
646
706
|
}
|
|
647
707
|
}
|
|
648
708
|
|
|
709
|
+
[data-ui-dashboard-grid]:is([data-size-class='medium'], [data-size-class='compact'])
|
|
710
|
+
[data-part-widget]
|
|
711
|
+
> [data-part-resize-handle]:is([data-edge='start'], [data-edge='bottom-start']) {
|
|
712
|
+
display: none;
|
|
713
|
+
}
|
|
714
|
+
|
|
649
715
|
/* A phone reads a dashboard as one column as tall as its content: there is
|
|
650
716
|
no size to pull, only an order to change. */
|
|
651
717
|
@container dashboard-grid (width < 600px) {
|
|
652
|
-
[data-ui
|
|
718
|
+
[data-ui-dashboard-grid]:not([data-size-class]) [data-part-widget] > [data-part-resize-handle] {
|
|
653
719
|
display: none;
|
|
654
720
|
}
|
|
655
721
|
}
|
|
656
722
|
|
|
723
|
+
[data-ui-dashboard-grid][data-size-class='compact']
|
|
724
|
+
[data-part-widget]
|
|
725
|
+
> [data-part-resize-handle] {
|
|
726
|
+
display: none;
|
|
727
|
+
}
|
|
728
|
+
|
|
657
729
|
/* ── Editing: a widget in hand ───────────────────────────────────────── */
|
|
658
730
|
|
|
659
731
|
/**
|
|
@@ -665,7 +737,7 @@
|
|
|
665
737
|
* would land in is the placeholder, and the widgets around it make room as
|
|
666
738
|
* the placeholder moves.
|
|
667
739
|
*/
|
|
668
|
-
[data-ui
|
|
740
|
+
[data-ui-dashboard-grid] [data-part-widget]:is([data-dragging], [data-resizing]) {
|
|
669
741
|
grid-column: auto;
|
|
670
742
|
grid-row: auto;
|
|
671
743
|
position: absolute;
|
|
@@ -674,14 +746,14 @@
|
|
|
674
746
|
|
|
675
747
|
/* Picked up: lifted by the largest shadow on the scale. It is not scaled —
|
|
676
748
|
a card of text grown by two per cent is two per cent blurred (R7). */
|
|
677
|
-
[data-ui
|
|
749
|
+
[data-ui-dashboard-grid] [data-part-widget][data-dragging] {
|
|
678
750
|
cursor: grabbing;
|
|
679
751
|
}
|
|
680
752
|
|
|
681
753
|
/* A shadow is dark on a dark page, so the widget in hand also takes a
|
|
682
754
|
hairline of the accent: in the dark scheme it is what lifts the card, and
|
|
683
755
|
in the light one it says which card is held. */
|
|
684
|
-
[data-ui
|
|
756
|
+
[data-ui-dashboard-grid] [data-part-widget][data-dragging] > [data-ui-card] {
|
|
685
757
|
box-shadow:
|
|
686
758
|
var(--slotted-shadow-lg),
|
|
687
759
|
0 0 0 var(--slotted-border-width-thin, 1px)
|
|
@@ -689,7 +761,7 @@
|
|
|
689
761
|
}
|
|
690
762
|
|
|
691
763
|
/* Pulled: the card follows the pointer at any size, lifted a step less. */
|
|
692
|
-
[data-ui
|
|
764
|
+
[data-ui-dashboard-grid] [data-part-widget][data-resizing] > [data-ui-card] {
|
|
693
765
|
box-shadow:
|
|
694
766
|
var(--slotted-shadow-md),
|
|
695
767
|
0 0 0 var(--slotted-border-width-thin, 1px)
|
|
@@ -702,7 +774,7 @@
|
|
|
702
774
|
* No dashes and no fill that competes with the widget over it — it is a
|
|
703
775
|
* shape the reader aims at, not a second object.
|
|
704
776
|
*/
|
|
705
|
-
[data-ui
|
|
777
|
+
[data-ui-dashboard-grid] > [data-part-grid] > [data-part-placeholder] {
|
|
706
778
|
background-color: color-mix(in oklab, var(--_accent) 10%, transparent);
|
|
707
779
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
708
780
|
color-mix(in oklab, var(--_accent) 55%, transparent);
|
|
@@ -716,7 +788,7 @@
|
|
|
716
788
|
* corner the reader is pulling: the only text on screen during the gesture,
|
|
717
789
|
* where the eye already is.
|
|
718
790
|
*/
|
|
719
|
-
[data-ui
|
|
791
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout] {
|
|
720
792
|
background-color: var(--_accent);
|
|
721
793
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
722
794
|
box-shadow: var(--slotted-shadow-sm);
|
|
@@ -735,15 +807,13 @@
|
|
|
735
807
|
z-index: 4;
|
|
736
808
|
}
|
|
737
809
|
|
|
738
|
-
[data-ui
|
|
739
|
-
[data-ui
|
|
740
|
-
[data-part='widget']
|
|
741
|
-
> [data-part='size-readout'][data-edge='bottom-start'] {
|
|
810
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout][data-edge='start'],
|
|
811
|
+
[data-ui-dashboard-grid] [data-part-widget] > [data-part-size-readout][data-edge='bottom-start'] {
|
|
742
812
|
inset-inline: var(--slotted-space-5, 0.75rem) auto;
|
|
743
813
|
}
|
|
744
814
|
|
|
745
815
|
/* A grid with nothing visible. */
|
|
746
|
-
[data-ui
|
|
816
|
+
[data-ui-dashboard-grid] > [data-part-empty] {
|
|
747
817
|
min-block-size: calc(var(--_row) * 2 + var(--_gap));
|
|
748
818
|
}
|
|
749
819
|
}
|