@getaster/elements 0.0.0-stage → 0.1.0-preview.1
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/LICENSE +202 -0
- package/NOTICE +10 -0
- package/README.md +6 -2
- package/bin/aster-theme-check.js +317 -0
- package/dist/base/drag.d.ts +45 -0
- package/dist/base/drag.js +139 -0
- package/dist/base/element.d.ts +51 -0
- package/dist/base/element.js +133 -0
- package/dist/breadcrumbs/breadcrumbs.d.ts +23 -0
- package/dist/breadcrumbs/breadcrumbs.js +51 -0
- package/dist/button/button.d.ts +37 -0
- package/dist/button/button.js +108 -0
- package/dist/caret/caret-group.d.ts +14 -0
- package/dist/caret/caret-group.js +71 -0
- package/dist/carousel/carousel.d.ts +28 -0
- package/dist/carousel/carousel.js +134 -0
- package/dist/component/component.d.ts +73 -0
- package/dist/component/component.js +190 -0
- package/dist/component/echarts.d.ts +46 -0
- package/dist/component/echarts.js +95 -0
- package/dist/composition/authoring.d.ts +157 -0
- package/dist/composition/authoring.js +291 -0
- package/dist/composition/builtins.d.ts +1130 -0
- package/dist/composition/builtins.js +318 -0
- package/dist/composition/command-bar.d.ts +18 -0
- package/dist/composition/command-bar.js +34 -0
- package/dist/composition/commands.d.ts +14 -0
- package/dist/composition/commands.js +59 -0
- package/dist/composition/composite.d.ts +48 -0
- package/dist/composition/composite.js +409 -0
- package/dist/composition/contracts.d.ts +63 -0
- package/dist/composition/contracts.js +97 -0
- package/dist/composition/definition.d.ts +94 -0
- package/dist/composition/definition.js +291 -0
- package/dist/composition/element.d.ts +35 -0
- package/dist/composition/element.js +51 -0
- package/dist/composition/registry.d.ts +83 -0
- package/dist/composition/registry.js +99 -0
- package/dist/composition/schema.d.ts +9 -0
- package/dist/composition/schema.js +139 -0
- package/dist/composition/sessions.d.ts +15 -0
- package/dist/composition/sessions.js +61 -0
- package/dist/dashboard/dashboard.d.ts +26 -0
- package/dist/dashboard/dashboard.js +296 -0
- package/dist/dashboard/layout.d.ts +19 -0
- package/dist/dashboard/layout.js +48 -0
- package/dist/dashboard/widget.d.ts +42 -0
- package/dist/dashboard/widget.js +165 -0
- package/dist/date/calendar.d.ts +34 -0
- package/dist/date/calendar.js +137 -0
- package/dist/date/date-field.d.ts +18 -0
- package/dist/date/date-field.js +81 -0
- package/dist/date/dates.d.ts +22 -0
- package/dist/date/dates.js +80 -0
- package/dist/dialog/dialog.d.ts +23 -0
- package/dist/dialog/dialog.js +70 -0
- package/dist/field/bound-field.d.ts +55 -0
- package/dist/field/bound-field.js +139 -0
- package/dist/field/check.d.ts +11 -0
- package/dist/field/check.js +26 -0
- package/dist/field/composite-field.d.ts +35 -0
- package/dist/field/composite-field.js +88 -0
- package/dist/field/field.d.ts +29 -0
- package/dist/field/field.js +75 -0
- package/dist/field/input.d.ts +15 -0
- package/dist/field/input.js +18 -0
- package/dist/field/number-field.d.ts +33 -0
- package/dist/field/number-field.js +179 -0
- package/dist/field/numeric.d.ts +4 -0
- package/dist/field/numeric.js +57 -0
- package/dist/field/values.d.ts +14 -0
- package/dist/field/values.js +60 -0
- package/dist/filter/filter-builder.d.ts +18 -0
- package/dist/filter/filter-builder.js +305 -0
- package/dist/form/controls.d.ts +20 -0
- package/dist/form/controls.js +34 -0
- package/dist/form/form.d.ts +46 -0
- package/dist/form/form.js +85 -0
- package/dist/format.d.ts +10 -0
- package/dist/format.js +57 -0
- package/dist/grid/filters.d.ts +16 -0
- package/dist/grid/filters.js +66 -0
- package/dist/grid/grid.d.ts +209 -0
- package/dist/grid/grid.js +2587 -0
- package/dist/grid/rows.d.ts +32 -0
- package/dist/grid/rows.js +89 -0
- package/dist/grid/view.d.ts +69 -0
- package/dist/grid/view.js +172 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +61 -0
- package/dist/layout/stack.d.ts +112 -0
- package/dist/layout/stack.js +21 -0
- package/dist/list-edit/list-edit.d.ts +42 -0
- package/dist/list-edit/list-edit.js +220 -0
- package/dist/listbox/listbox.d.ts +45 -0
- package/dist/listbox/listbox.js +187 -0
- package/dist/menu/menu.d.ts +55 -0
- package/dist/menu/menu.js +286 -0
- package/dist/motion.d.ts +8 -0
- package/dist/motion.js +23 -0
- package/dist/overlay/anchor.d.ts +18 -0
- package/dist/overlay/anchor.js +41 -0
- package/dist/picker/options.d.ts +59 -0
- package/dist/picker/options.js +97 -0
- package/dist/picker/picker.d.ts +46 -0
- package/dist/picker/picker.js +492 -0
- package/dist/picker/tree-choices.d.ts +38 -0
- package/dist/picker/tree-choices.js +72 -0
- package/dist/picker/tree-picker.d.ts +29 -0
- package/dist/picker/tree-picker.js +282 -0
- package/dist/progress/policy.d.ts +5 -0
- package/dist/progress/policy.js +28 -0
- package/dist/progress/status.d.ts +20 -0
- package/dist/progress/status.js +38 -0
- package/dist/rule/operators.d.ts +8 -0
- package/dist/rule/operators.js +9 -0
- package/dist/rule/rule-editor.d.ts +57 -0
- package/dist/rule/rule-editor.js +290 -0
- package/dist/section/accordion.d.ts +24 -0
- package/dist/section/accordion.js +90 -0
- package/dist/section/section.d.ts +30 -0
- package/dist/section/section.js +99 -0
- package/dist/select/choice-element.d.ts +20 -0
- package/dist/select/choice-element.js +55 -0
- package/dist/select/choice.d.ts +34 -0
- package/dist/select/choice.js +122 -0
- package/dist/select/many.d.ts +13 -0
- package/dist/select/many.js +20 -0
- package/dist/select/select.d.ts +16 -0
- package/dist/select/select.js +40 -0
- package/dist/sidebar/sidebar.d.ts +47 -0
- package/dist/sidebar/sidebar.js +105 -0
- package/dist/slicer/slicer.d.ts +26 -0
- package/dist/slicer/slicer.js +140 -0
- package/dist/split/split.d.ts +41 -0
- package/dist/split/split.js +237 -0
- package/dist/styles/contract.d.ts +36 -0
- package/dist/styles/contract.js +39 -0
- package/dist/switch/switch.d.ts +22 -0
- package/dist/switch/switch.js +69 -0
- package/dist/tabs/tabs.d.ts +30 -0
- package/dist/tabs/tabs.js +202 -0
- package/dist/tile-grid/scroll.d.ts +9 -0
- package/dist/tile-grid/scroll.js +21 -0
- package/dist/tile-grid/tile-grid.d.ts +64 -0
- package/dist/tile-grid/tile-grid.js +734 -0
- package/dist/toast/toast.d.ts +25 -0
- package/dist/toast/toast.js +92 -0
- package/dist/tree/navigator.d.ts +41 -0
- package/dist/tree/navigator.js +228 -0
- package/dist/window/chrome.d.ts +3 -0
- package/dist/window/chrome.js +7 -0
- package/dist/window/window.d.ts +46 -0
- package/dist/window/window.js +347 -0
- package/dist/window/workspace.d.ts +29 -0
- package/dist/window/workspace.js +137 -0
- package/package.json +45 -4
- package/styles/aster-ui.css +1147 -0
- package/styles/base.css +88 -0
- package/styles/contract.ts +41 -0
- package/styles/elements.css +1058 -0
- package/styles/harbour.css +126 -0
- package/styles/lamplight.css +118 -0
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
/* These variables are read only on their owning elements. */
|
|
2
|
+
@property --grid-columns { syntax: "*"; inherits: false; }
|
|
3
|
+
@property --split-start { syntax: "<length>"; inherits: false; initial-value: 320px; }
|
|
4
|
+
|
|
5
|
+
@layer aster.elements {
|
|
6
|
+
:is(aster-stack, aster-horizontal-layout, aster-vertical-layout) { display:block; min-width:0; min-height:0; container-type:inline-size; }
|
|
7
|
+
.aster-stack { display:flex; flex-direction:column; gap:var(--aster-gap); min-width:0; min-height:0; height:100%; }
|
|
8
|
+
.aster-stack > * { min-width:0; min-height:0; flex-grow:var(--stack-grow,0); flex-basis:var(--stack-basis,auto); }
|
|
9
|
+
.aster-stack[data-direction=horizontal] { flex-direction:row; }
|
|
10
|
+
.aster-stack[data-wrap] { flex-wrap:wrap; }
|
|
11
|
+
.aster-stack[data-gap=none] { gap:0; }
|
|
12
|
+
.aster-stack[data-gap=small] { gap:calc(var(--aster-gap) / 2); }
|
|
13
|
+
.aster-stack[data-gap=large] { gap:calc(var(--aster-gap) * 2); }
|
|
14
|
+
.aster-stack[data-align=start] { align-items:flex-start; }
|
|
15
|
+
.aster-stack[data-align=center] { align-items:center; }
|
|
16
|
+
.aster-stack[data-align=end] { align-items:flex-end; }
|
|
17
|
+
.aster-stack[data-align=baseline] { align-items:baseline; }
|
|
18
|
+
.aster-stack[data-justify=center] { justify-content:center; }
|
|
19
|
+
.aster-stack[data-justify=end] { justify-content:flex-end; }
|
|
20
|
+
.aster-stack[data-justify=space-between] { justify-content:space-between; }
|
|
21
|
+
.aster-stack[data-justify=space-around] { justify-content:space-around; }
|
|
22
|
+
@container (max-width:520px) { .aster-stack[data-responsive][data-direction=horizontal] { flex-direction:column; } }
|
|
23
|
+
aster-composite-field { display:block; min-width:0; }
|
|
24
|
+
.aster-composite-field { min-inline-size:0; margin:0; padding:var(--aster-pad); border:1px solid var(--aster-rule); border-radius:var(--aster-r-card); }
|
|
25
|
+
.aster-composite-field > legend { padding-inline:6px; font-weight:var(--aster-weight-strong); }
|
|
26
|
+
.aster-composite-content { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap:var(--aster-gap); }
|
|
27
|
+
.aster-composite-field > .aster-hint { margin-block:0 var(--aster-gap); }
|
|
28
|
+
.aster-composite-field > .aster-revert { margin-block-start:8px; }
|
|
29
|
+
aster-composite-field[data-group-pending] > fieldset { border-inline-start:2px solid var(--aster-accent); }
|
|
30
|
+
.aster-number { display:flex; gap:6px; min-width:0; }
|
|
31
|
+
.aster-number input { flex:1; font-variant-numeric:tabular-nums; }
|
|
32
|
+
.aster-number-affix { color:var(--aster-text-2); white-space:nowrap; }
|
|
33
|
+
.aster-number-steps { display:flex; gap:2px; margin-inline-end:-7px; }
|
|
34
|
+
.aster-number-steps button { display:grid; place-items:center; width:var(--aster-ctl-tight); height:var(--aster-ctl-tight); border-radius:var(--aster-r-ctl); }
|
|
35
|
+
.aster-number-steps button:hover:not(:disabled) { background:var(--aster-accent-soft); }
|
|
36
|
+
.aster-number-steps button:disabled { opacity:.4; }
|
|
37
|
+
.aster-number-steps svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
|
|
38
|
+
.aster-accordion { display:grid; }
|
|
39
|
+
.aster-accordion-item { position:relative; min-width:0; }
|
|
40
|
+
.aster-section-actions { margin-inline-start:auto; display:flex; align-items:center; gap:4px; }
|
|
41
|
+
.aster-section-head button:disabled { opacity:.5; cursor:default; }
|
|
42
|
+
.aster-breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:0; margin:0; list-style:none; min-width:0; }
|
|
43
|
+
.aster-breadcrumbs li, .aster-breadcrumb-overflow { display:flex; align-items:center; gap:6px; min-width:0; }
|
|
44
|
+
.aster-breadcrumbs li + li::before, .aster-breadcrumb-overflow::before { content:"/"; color:var(--aster-text-3); }
|
|
45
|
+
.aster-breadcrumbs :is(a,button,[aria-current]) { display:block; max-width:24ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-height:var(--aster-ctl); align-content:center; }
|
|
46
|
+
.aster-breadcrumbs :is(a,button) { color:var(--aster-accent); }
|
|
47
|
+
.aster-breadcrumbs [aria-current] { color:var(--aster-text-2); }
|
|
48
|
+
.aster-menu a[role=menuitem] { color:inherit; text-decoration:none; }
|
|
49
|
+
@media (pointer:coarse) {
|
|
50
|
+
.aster-number:has(.aster-number-steps) { height:auto; min-height:48px; }
|
|
51
|
+
.aster-number-steps button, .aster-split-tools button, .aster-breadcrumbs :is(a,button) { min-width:44px; min-height:44px; }
|
|
52
|
+
.aster-accordion > .aster-accordion-item > aster-section > .aster-section-head button { min-height:44px; }
|
|
53
|
+
}
|
|
54
|
+
@media (forced-colors:active) { .aster-number-steps button { border:1px solid ButtonText; } }
|
|
55
|
+
aster-component { display: block; min-width: 0; }
|
|
56
|
+
.aster-component { min-width: 0; padding: var(--aster-pad); border: 1px solid var(--aster-rule); border-radius: var(--aster-r-card); background: var(--aster-surface); }
|
|
57
|
+
.aster-component > h3 { margin: 0 0 var(--aster-gap); font: inherit; font-weight: var(--aster-weight-strong); }
|
|
58
|
+
.aster-component-surface { position: relative; height: var(--component-height, 16rem); min-width: 0; overflow: hidden; }
|
|
59
|
+
.aster-component-content { position: absolute; inset: 0; }
|
|
60
|
+
.aster-component-status { color: var(--aster-text-2); }
|
|
61
|
+
.aster-component-status:empty { display: none; }
|
|
62
|
+
.aster-component-alternative { min-width: 0; max-height: var(--component-data-height, 18rem); overflow: auto; }
|
|
63
|
+
.aster-component-alternative:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
64
|
+
.aster-component-alternative table { width: 100%; border-collapse: collapse; }
|
|
65
|
+
.aster-component-alternative :is(th, td) { padding: 6px 8px; text-align: start; border-block-end: 1px solid var(--aster-rule-2); }
|
|
66
|
+
.aster-component-alternative caption { text-align: start; padding-block: var(--aster-gap); color: var(--aster-text-2); }
|
|
67
|
+
/* ── caret ── */
|
|
68
|
+
aster-caret-group { position: relative; display: block; }
|
|
69
|
+
.aster-caret {
|
|
70
|
+
position: absolute; left: 0; top: calc(var(--caret-pos, 0px) + 6px);
|
|
71
|
+
width: 2px; height: max(0px, calc(var(--caret-size, 0px) - 12px));
|
|
72
|
+
border-radius: 2px; background: var(--aster-indicator);
|
|
73
|
+
box-shadow: 0 0 0 .5px oklch(from var(--aster-indicator) l c h / .3), 1px 0 6px oklch(from var(--aster-indicator) l c h / .35);
|
|
74
|
+
opacity: var(--caret-opacity, 0); pointer-events: none; z-index: 1;
|
|
75
|
+
transition: top var(--aster-t-caret) var(--aster-ease), height var(--aster-t-caret) var(--aster-ease), opacity 120ms;
|
|
76
|
+
}
|
|
77
|
+
aster-caret-group[axis="x"] > .aster-caret {
|
|
78
|
+
top: auto; bottom: -1px; left: var(--caret-pos, 0px); width: var(--caret-size, 0px); height: 2px;
|
|
79
|
+
transition: left var(--aster-t-caret) var(--aster-ease), width var(--aster-t-caret) var(--aster-ease), opacity 120ms;
|
|
80
|
+
}
|
|
81
|
+
.aster-caret[data-instant] { transition: none; }
|
|
82
|
+
|
|
83
|
+
/* ── nav ── */
|
|
84
|
+
.aster-nav { display: grid; gap: 1px; }
|
|
85
|
+
.aster-nav-label { margin: 16px 8px 5px; font-size: 11.5px; font-weight: var(--aster-weight-label); color: var(--aster-text-3); user-select: none; }
|
|
86
|
+
.aster-nav-item {
|
|
87
|
+
position: relative; display: flex; align-items: center; gap: 9px; width: 100%;
|
|
88
|
+
padding: calc(var(--aster-row-y) - 1px) 8px calc(var(--aster-row-y) - 1px) 12px; border-radius: var(--aster-r-ctl);
|
|
89
|
+
color: var(--aster-text-2); text-align: left; user-select: none;
|
|
90
|
+
transition: color var(--aster-t-micro), background var(--aster-t-micro);
|
|
91
|
+
}
|
|
92
|
+
.aster-nav-item:hover { color: var(--aster-text); background: oklch(from var(--aster-text) l c h / .04); }
|
|
93
|
+
.aster-nav-item[aria-current="page"], .aster-nav-item[aria-current="true"] { color: var(--aster-text); font-weight: var(--aster-weight-strong); }
|
|
94
|
+
.aster-nav-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .75; flex: none; }
|
|
95
|
+
.aster-nav-item .aster-count { margin-left: auto; font-size: 13px; color: var(--aster-text-3); }
|
|
96
|
+
.aster-dot {
|
|
97
|
+
width: 7px; height: 7px; border-radius: 50%; flex: none; margin: 0 4px;
|
|
98
|
+
background: oklch(var(--aster-identity-l) var(--aster-identity-c) var(--hue, 0));
|
|
99
|
+
box-shadow: inset 0 0 0 .5px var(--aster-mark-ring);
|
|
100
|
+
}
|
|
101
|
+
.aster-avatar {
|
|
102
|
+
width: 18px; height: 18px; border-radius: 50%; flex: none;
|
|
103
|
+
background: oklch(var(--aster-identity-l) var(--aster-identity-c) var(--hue, 0));
|
|
104
|
+
box-shadow: inset 0 0 0 .5px var(--aster-mark-ring), var(--aster-highlight);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ── tabs ── */
|
|
108
|
+
aster-tabs { display: block; min-width: 0; }
|
|
109
|
+
.aster-tabs-strip { display: flex; align-items: center; min-width: 0; gap: 6px; }
|
|
110
|
+
.aster-tabs-viewport { flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 3px 5px; scrollbar-width: none; }
|
|
111
|
+
.aster-tabs-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
|
|
112
|
+
.aster-tabs { width: max-content; min-width: 100%; }
|
|
113
|
+
.aster-tab-item { display: inline-flex; align-items: center; flex: none; gap: 4px; }
|
|
114
|
+
.aster-tabs [role="tab"] { white-space: nowrap; max-width: min(24rem, 60vw); overflow: hidden; text-overflow: ellipsis; }
|
|
115
|
+
.aster-tabs [role="tab"]:disabled { opacity: .5; cursor: default; }
|
|
116
|
+
.aster-tab-close, .aster-tabs-scroll {
|
|
117
|
+
display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; line-height: 1;
|
|
118
|
+
border-radius: var(--aster-r-ctl); color: var(--aster-text-2);
|
|
119
|
+
}
|
|
120
|
+
.aster-tab-close { visibility: hidden; }
|
|
121
|
+
.aster-tab-item:has([role="tab"][aria-selected="true"]) .aster-tab-close,
|
|
122
|
+
.aster-tab-item:focus-within .aster-tab-close { visibility: visible; }
|
|
123
|
+
@media (hover: hover) {
|
|
124
|
+
.aster-tab-item:hover .aster-tab-close { visibility: visible; }
|
|
125
|
+
}
|
|
126
|
+
.aster-tab-close svg, .aster-tabs-scroll svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
127
|
+
.aster-tabs-scroll:dir(rtl) svg { transform: scaleX(-1); }
|
|
128
|
+
.aster-tab-close:hover, .aster-tabs-scroll:hover { background: var(--aster-sunk); color: var(--aster-text); }
|
|
129
|
+
.aster-tabs-scroll[hidden], aster-tabs > [role="tabpanel"][hidden] { display: none; }
|
|
130
|
+
aster-tabs > [role="tabpanel"] { padding-block: 16px; }
|
|
131
|
+
@media (pointer: coarse) {
|
|
132
|
+
.aster-tabs [role="tab"], .aster-tab-close, .aster-tabs-scroll { min-width: 44px; min-height: 44px; }
|
|
133
|
+
}
|
|
134
|
+
.aster-tabs { display: flex; gap: 18px; }
|
|
135
|
+
.aster-tabs [role="tab"] {
|
|
136
|
+
padding: calc(var(--aster-row-y) + 1px) 5px calc(var(--aster-row-y) + 3px); margin-inline: -5px; border-radius: var(--aster-r-ctl);
|
|
137
|
+
color: var(--aster-text-3); font-weight: 520; transition: color var(--aster-t-micro);
|
|
138
|
+
}
|
|
139
|
+
.aster-tabs [role="tab"]:hover { color: var(--aster-text-2); }
|
|
140
|
+
.aster-tabs [role="tab"][aria-selected="true"] { color: var(--aster-text); }
|
|
141
|
+
|
|
142
|
+
/* ── button ── */
|
|
143
|
+
aster-button { display: inline-flex; }
|
|
144
|
+
.aster-button {
|
|
145
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
146
|
+
height: calc(var(--aster-ctl) - 2px); padding: 0 11px; border-radius: var(--aster-r-ctl);
|
|
147
|
+
background: var(--aster-surface); box-shadow: var(--aster-e1);
|
|
148
|
+
font-weight: var(--aster-weight-strong); white-space: nowrap;
|
|
149
|
+
transition: transform var(--aster-t-micro) var(--aster-ease), box-shadow var(--aster-t-micro), background var(--aster-t-micro);
|
|
150
|
+
}
|
|
151
|
+
.aster-button:hover { box-shadow: var(--aster-e2); }
|
|
152
|
+
.aster-button:active { transform: translate(.5px, 1px); box-shadow: var(--aster-ring); }
|
|
153
|
+
.aster-button[data-variant="primary"] {
|
|
154
|
+
color: var(--aster-on-accent); background: var(--aster-accent);
|
|
155
|
+
box-shadow: inset 0 1px 0 var(--aster-accent-sheen), 0 0 0 .5px oklch(from var(--aster-accent) calc(l - .15) c h), 1px 2px 5px oklch(from var(--aster-shadow) l c h / .18);
|
|
156
|
+
}
|
|
157
|
+
.aster-button[data-variant="primary"]:hover { background: var(--aster-accent-hi); }
|
|
158
|
+
.aster-button[data-variant="primary"]:active {
|
|
159
|
+
background: oklch(from var(--aster-accent) calc(l - .04) c h);
|
|
160
|
+
box-shadow: inset 1px 1px 2px var(--aster-press), 0 0 0 .5px oklch(from var(--aster-accent) calc(l - .15) c h);
|
|
161
|
+
}
|
|
162
|
+
.aster-button[aria-busy="true"] { pointer-events: none; }
|
|
163
|
+
.aster-button[aria-busy="true"] .aster-label-swap { opacity: .75; }
|
|
164
|
+
.aster-button[aria-disabled="true"] { opacity: .45; box-shadow: var(--aster-ring); transform: none; }
|
|
165
|
+
.aster-button[data-variant="primary"][aria-disabled="true"] { background: var(--aster-text-3); }
|
|
166
|
+
.aster-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
|
|
167
|
+
.aster-label-swap { display: inline-grid; }
|
|
168
|
+
.aster-label-swap > * { grid-area: 1 / 1; transition: opacity 120ms; }
|
|
169
|
+
.aster-label-swap > [data-off] { visibility: hidden; opacity: 0; }
|
|
170
|
+
|
|
171
|
+
/* ── field ── */
|
|
172
|
+
:is(aster-field, aster-number-field) { display: grid; gap: 6px; }
|
|
173
|
+
.aster-field-row { display: flex; gap: 8px; }
|
|
174
|
+
.aster-field {
|
|
175
|
+
flex: 1; display: flex; align-items: center; height: var(--aster-ctl); padding: 0 10px; min-width: 0;
|
|
176
|
+
border-radius: var(--aster-r-ctl); background: var(--aster-sunk); box-shadow: var(--aster-well);
|
|
177
|
+
transition: box-shadow var(--aster-t-micro);
|
|
178
|
+
}
|
|
179
|
+
.aster-field input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; padding: 0; }
|
|
180
|
+
.aster-field input::placeholder, .aster-field textarea::placeholder { color: var(--aster-text-3); }
|
|
181
|
+
/* A value the server hides: said in the box, set apart from an empty one. */
|
|
182
|
+
.aster-field-hidden input::placeholder, .aster-hidden { color: var(--aster-text-3); font-style: italic; }
|
|
183
|
+
.aster-field-prose { height: auto; min-height: var(--aster-ctl); padding: calc(var(--aster-row-y) - 1px) 10px; align-items: stretch; }
|
|
184
|
+
.aster-field textarea {
|
|
185
|
+
border: 0; outline: 0; background: none; width: 100%; min-width: 0; padding: 0; resize: none;
|
|
186
|
+
line-height: 1.4; field-sizing: content; min-height: 2.8em; max-height: 12em;
|
|
187
|
+
}
|
|
188
|
+
.aster-grid-row[data-editing] .aster-field-prose { height: auto; }
|
|
189
|
+
.aster-field:has([aria-invalid="true"]) { box-shadow: 0 0 0 .5px var(--aster-negative), inset 1px 1px 2px oklch(from var(--aster-shadow) l c h / .09); }
|
|
190
|
+
.aster-field:has([aria-invalid="true"]):focus-within { outline-color: oklch(from var(--aster-negative) l c h / .55); }
|
|
191
|
+
.aster-error {
|
|
192
|
+
display: flex; gap: 6px; align-items: baseline; margin: 0;
|
|
193
|
+
color: var(--aster-negative); font-size: 12.5px; line-height: 1.4;
|
|
194
|
+
animation: aster-error-in 140ms var(--aster-ease);
|
|
195
|
+
}
|
|
196
|
+
.aster-error::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; translate: 0 -1px; }
|
|
197
|
+
@keyframes aster-error-in { from { opacity: 0; transform: translateY(-2px); } }
|
|
198
|
+
|
|
199
|
+
/* ── switch ── */
|
|
200
|
+
aster-switch { display: block; border-bottom: 1px solid var(--aster-rule-2); }
|
|
201
|
+
aster-switch:last-child { border-bottom: 0; }
|
|
202
|
+
aster-switch .aster-error { padding-bottom: 8px; }
|
|
203
|
+
.aster-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--aster-row-y) + 2px) 0; user-select: none; }
|
|
204
|
+
.aster-switch {
|
|
205
|
+
position: relative; width: 28px; height: 16px; flex: none; border-radius: 999px;
|
|
206
|
+
background: var(--aster-sunk); box-shadow: var(--aster-well); transition: background var(--aster-t-micro);
|
|
207
|
+
}
|
|
208
|
+
.aster-switch::after {
|
|
209
|
+
content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
|
|
210
|
+
background: var(--aster-surface); box-shadow: var(--aster-ring), 1px 1px 2px oklch(from var(--aster-shadow) l c h / .25);
|
|
211
|
+
transition: translate 160ms var(--aster-ease);
|
|
212
|
+
}
|
|
213
|
+
.aster-switch[aria-checked="true"] { background: var(--aster-accent); box-shadow: 0 0 0 .5px oklch(from var(--aster-accent) calc(l - .1) c h); }
|
|
214
|
+
.aster-switch[aria-checked="true"]::after { translate: 12px 0; }
|
|
215
|
+
|
|
216
|
+
/* ── listbox ── */
|
|
217
|
+
aster-listbox { display: block; }
|
|
218
|
+
.aster-listbox:focus-visible { outline: none; }
|
|
219
|
+
.aster-option { position: relative; transition: background var(--aster-t-micro); }
|
|
220
|
+
.aster-option:hover { background: oklch(from var(--aster-text) l c h / .025); }
|
|
221
|
+
.aster-option[aria-selected="true"] { background: var(--aster-accent-soft); }
|
|
222
|
+
.aster-listbox:focus-visible .aster-option[aria-selected="true"] { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
223
|
+
.aster-flash { animation: aster-flash 1.2s var(--aster-ease); }
|
|
224
|
+
@keyframes aster-flash { 0%, 30% { background: oklch(from var(--aster-accent) l c h / .2); } }
|
|
225
|
+
|
|
226
|
+
/* ── ledger ── */
|
|
227
|
+
.aster-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0; }
|
|
228
|
+
.aster-figure { padding: 0 18px; border-left: 1px solid var(--aster-rule-2); min-width: 0; }
|
|
229
|
+
.aster-figure:first-child { padding-left: 0; border-left: 0; }
|
|
230
|
+
.aster-figure dt { color: var(--aster-text-3); font-size: 12px; margin-bottom: 4px; user-select: none; }
|
|
231
|
+
.aster-figure dd { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
|
232
|
+
.aster-figure .aster-big {
|
|
233
|
+
font: 380 32px/1 var(--aster-font-figure); letter-spacing: -.02em;
|
|
234
|
+
font-variant-numeric: tabular-nums lining-nums; font-variation-settings: var(--aster-title-settings);
|
|
235
|
+
}
|
|
236
|
+
.aster-delta { font-size: 12px; color: var(--aster-text-3); }
|
|
237
|
+
.aster-delta[data-tone="up"] { color: var(--aster-positive); }
|
|
238
|
+
.aster-delta[data-tone="down"] { color: var(--aster-negative); }
|
|
239
|
+
|
|
240
|
+
/* ── status: a dot and words, never a pill ── */
|
|
241
|
+
.aster-status { display: inline-flex; align-items: center; gap: 7px; color: var(--aster-text-2); }
|
|
242
|
+
.aster-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--aster-text-3); }
|
|
243
|
+
.aster-status[data-tone="positive"]::before { background: var(--aster-positive); }
|
|
244
|
+
.aster-status[data-tone="negative"]::before { background: var(--aster-negative); }
|
|
245
|
+
.aster-status[data-tone="caution"]::before { background: var(--aster-caution); }
|
|
246
|
+
|
|
247
|
+
/* ── dialog: one panel that morphs ── */
|
|
248
|
+
.aster-dialog {
|
|
249
|
+
padding: 0; border: 0; background: none; color: inherit; overflow: visible;
|
|
250
|
+
max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
|
|
251
|
+
opacity: 0; transform: translate(-3px, 6px);
|
|
252
|
+
transition: opacity var(--aster-t-morph) ease, transform var(--aster-t-morph) var(--aster-ease),
|
|
253
|
+
overlay var(--aster-t-morph) allow-discrete, display var(--aster-t-morph) allow-discrete;
|
|
254
|
+
}
|
|
255
|
+
.aster-dialog[open] { opacity: 1; transform: none; }
|
|
256
|
+
@starting-style { .aster-dialog[open] { opacity: 0; transform: translate(-3px, 6px); } }
|
|
257
|
+
.aster-dialog::backdrop {
|
|
258
|
+
background: var(--aster-scrim); opacity: 0;
|
|
259
|
+
transition: opacity var(--aster-t-morph) ease, overlay var(--aster-t-morph) allow-discrete, display var(--aster-t-morph) allow-discrete;
|
|
260
|
+
}
|
|
261
|
+
.aster-dialog[open]::backdrop { opacity: 1; }
|
|
262
|
+
@starting-style { .aster-dialog[open]::backdrop { opacity: 0; } }
|
|
263
|
+
.aster-dialog-panel {
|
|
264
|
+
width: var(--dialog-width, 372px); max-width: 100%; border-radius: var(--aster-r-dialog); overflow: hidden;
|
|
265
|
+
background: var(--aster-surface); box-shadow: var(--aster-e3);
|
|
266
|
+
view-transition-name: aster-dialog-panel; corner-shape: squircle;
|
|
267
|
+
}
|
|
268
|
+
::view-transition-group(aster-dialog-panel) { animation-duration: var(--aster-t-morph); animation-timing-function: var(--aster-ease); }
|
|
269
|
+
::view-transition-old(aster-dialog-panel) { animation: 90ms ease both aster-vt-out; }
|
|
270
|
+
::view-transition-new(aster-dialog-panel) { animation: var(--aster-t-ink) ease 80ms both aster-vt-in; }
|
|
271
|
+
@keyframes aster-vt-out { to { opacity: 0; } }
|
|
272
|
+
@keyframes aster-vt-in { from { opacity: 0; filter: blur(2px); transform: translateY(2px); } }
|
|
273
|
+
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--aster-t-scheme); animation-timing-function: ease; }
|
|
274
|
+
|
|
275
|
+
/* ── toast ── */
|
|
276
|
+
.aster-toast {
|
|
277
|
+
position: fixed; left: 50%; bottom: 40px; z-index: 50; translate: -50% 10px;
|
|
278
|
+
display: flex; align-items: center; gap: 8px; padding: calc(var(--aster-pad) - 4px) 13px; border-radius: var(--aster-r-card);
|
|
279
|
+
background: var(--aster-toast-bg); color: var(--aster-toast-text); box-shadow: var(--aster-e2);
|
|
280
|
+
opacity: 0; visibility: hidden; pointer-events: none; user-select: none;
|
|
281
|
+
transition: opacity 160ms, translate 220ms var(--aster-ease), visibility 0s 220ms;
|
|
282
|
+
}
|
|
283
|
+
.aster-toast[data-show] { opacity: 1; visibility: visible; translate: -50% 0; pointer-events: auto; transition-delay: 0s; }
|
|
284
|
+
.aster-toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--aster-toast-mark); }
|
|
285
|
+
.aster-toast button { margin-left: 6px; padding: 2px 8px; border-radius: var(--aster-r-ctl); color: var(--aster-toast-action); font-weight: var(--aster-weight-label); }
|
|
286
|
+
.aster-toast button:hover { background: oklch(from var(--aster-toast-text) l c h / .1); }
|
|
287
|
+
|
|
288
|
+
/* ── menu ── */
|
|
289
|
+
aster-menu, aster-toaster, aster-dialog { display: contents; }
|
|
290
|
+
.aster-menu {
|
|
291
|
+
position: fixed; inset: auto; margin: 0; left: var(--menu-x, 0); top: var(--menu-y, 0);
|
|
292
|
+
translate: min(0px, calc(100vw - var(--menu-x, 0px) - 100% - 8px)) min(0px, calc(100dvh - var(--menu-y, 0px) - 100% - 8px));
|
|
293
|
+
min-width: 180px; padding: calc(var(--aster-pad) / 2 - 2px); border: 0; border-radius: var(--aster-r-pop);
|
|
294
|
+
background: var(--aster-surface); color: inherit; box-shadow: var(--aster-e3);
|
|
295
|
+
display: none; flex-direction: column;
|
|
296
|
+
}
|
|
297
|
+
.aster-menu:popover-open { display: flex; }
|
|
298
|
+
/* Against an element, and every submenu: anchor positioning, flipping at the edges. */
|
|
299
|
+
.aster-menu[data-anchored] { left: auto; top: auto; translate: none; margin: 4px 0; position-area: bottom span-right; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
|
|
300
|
+
.aster-menu[data-depth]:not([data-depth="0"]) { margin: 0 2px; position-area: right span-bottom; position-try-fallbacks: flip-inline, flip-block, flip-inline flip-block; }
|
|
301
|
+
.aster-menu [role^="menuitem"] { display: flex; align-items: center; gap: 6px; padding: var(--aster-row-y) 10px var(--aster-row-y) 6px; border-radius: var(--aster-r-ctl); text-align: left; }
|
|
302
|
+
.aster-menu [role^="menuitem"]:hover, .aster-menu [role^="menuitem"]:focus, .aster-menu [aria-expanded="true"] { background: var(--aster-accent-soft); outline: none; }
|
|
303
|
+
.aster-menu [role^="menuitem"]:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
304
|
+
.aster-menu [aria-disabled="true"] { color: var(--aster-text-3); }
|
|
305
|
+
.aster-menu-mark { width: 12px; flex: none; text-align: center; color: var(--aster-accent); }
|
|
306
|
+
.aster-menu-more { margin-left: auto; padding-left: 16px; color: var(--aster-text-3); }
|
|
307
|
+
.aster-menu-separator { height: 1px; margin: 4px 6px; background: var(--aster-rule-2); }
|
|
308
|
+
.aster-menu-heading { padding: var(--aster-row-y) 10px 2px 24px; font-size: 11.5px; font-weight: var(--aster-weight-label); color: var(--aster-text-3); }
|
|
309
|
+
|
|
310
|
+
/* ── bound fields: label, required, pending, read-only ── */
|
|
311
|
+
aster-select, aster-picker, aster-choice { display: grid; gap: 6px; }
|
|
312
|
+
aster-check[data-pending] .aster-check { box-shadow: inset 2px 0 0 var(--aster-accent); padding-left: 8px; }
|
|
313
|
+
.aster-field-head { display: flex; align-items: baseline; gap: 8px; min-height: 18px; }
|
|
314
|
+
.aster-field-label { font-size: 12px; font-weight: var(--aster-weight-label); color: var(--aster-text-2); }
|
|
315
|
+
.aster-optional { font-size: 11.5px; color: var(--aster-text-3); }
|
|
316
|
+
.aster-revert { margin-left: auto; padding: 0 2px; border-radius: 2px; font-size: 12px; color: var(--aster-accent); }
|
|
317
|
+
.aster-revert:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
318
|
+
.aster-hint { margin: 0; font-size: 12px; line-height: 1.4; color: var(--aster-text-2); }
|
|
319
|
+
.aster-form-reason { margin-top: var(--aster-pad); padding: calc(var(--aster-pad) - 4px) var(--aster-pad); border-radius: var(--aster-r-card); background: var(--aster-sunk); box-shadow: var(--aster-well); font-size: 12.5px; }
|
|
320
|
+
/* Pending: an ink edge on the frame and a dot by the label. */
|
|
321
|
+
[data-pending] .aster-field-label::after {
|
|
322
|
+
content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%;
|
|
323
|
+
background: var(--aster-accent); translate: 0 -2px;
|
|
324
|
+
}
|
|
325
|
+
:is(aster-field, aster-number-field, aster-select, aster-picker)[data-pending] .aster-field,
|
|
326
|
+
.aster-list-edit-row[data-new] .aster-field { box-shadow: var(--aster-well), inset 2px 0 0 var(--aster-accent); }
|
|
327
|
+
[data-readonly] .aster-field { background: transparent; box-shadow: inset 0 0 0 .5px var(--aster-rule); }
|
|
328
|
+
[data-readonly] .aster-field :is(input, select) { color: var(--aster-text-2); }
|
|
329
|
+
|
|
330
|
+
/* ── check ── */
|
|
331
|
+
aster-check { display: grid; gap: 6px; }
|
|
332
|
+
.aster-check { display: inline-flex; align-items: center; min-height: var(--aster-ctl); }
|
|
333
|
+
.aster-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--aster-accent); }
|
|
334
|
+
|
|
335
|
+
/* ── select ── */
|
|
336
|
+
.aster-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; outline: none; user-select: none; }
|
|
337
|
+
.aster-select-value[data-placeholder] { color: var(--aster-text-3); }
|
|
338
|
+
[data-readonly] .aster-select-value { color: var(--aster-text-2); }
|
|
339
|
+
|
|
340
|
+
/* ── picker ── */
|
|
341
|
+
.aster-picker { position: relative; }
|
|
342
|
+
.aster-picker-chevron { width: 10px; height: 10px; flex: none; fill: none; stroke: var(--aster-text-3); stroke-width: 1.5; }
|
|
343
|
+
/* Overlays: top layer, placed against their anchor, flipping at the viewport's edges. */
|
|
344
|
+
.aster-popover {
|
|
345
|
+
position: fixed; inset: auto; margin: 4px 0; border: 0; color: inherit;
|
|
346
|
+
position-area: bottom span-right; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
347
|
+
}
|
|
348
|
+
.aster-popover:not(:popover-open) { display: none; }
|
|
349
|
+
/* Window: non-modal, in the top layer, placed by --window-x/y */
|
|
350
|
+
aster-window { display: contents; }
|
|
351
|
+
.aster-window {
|
|
352
|
+
position: fixed; inset: auto; margin: 0; left: var(--window-x, auto); top: var(--window-y, 24px); right: auto;
|
|
353
|
+
display: none; flex-direction: column; width: 340px; height: 420px; min-width: min(240px, calc(100vw - 16px)); min-height: min(160px, calc(100dvh - 16px));
|
|
354
|
+
max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 0; border: 0; overflow: hidden; resize: both;
|
|
355
|
+
border-radius: var(--aster-r-pop); background: var(--aster-surface); color: inherit; box-shadow: var(--aster-e3);
|
|
356
|
+
}
|
|
357
|
+
.aster-window:popover-open { display: flex; }
|
|
358
|
+
.aster-window[data-state="maximized"] {
|
|
359
|
+
left: 8px; top: 8px; width: calc(100vw - 16px) !important; height: calc(100dvh - 16px) !important; resize: none;
|
|
360
|
+
}
|
|
361
|
+
.aster-window[data-active="true"] { outline: 1px solid var(--aster-rule); }
|
|
362
|
+
.aster-window:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 2px; }
|
|
363
|
+
.aster-window-bar {
|
|
364
|
+
display: flex; align-items: center; gap: 2px; padding: calc(var(--aster-pad) / 2) 6px calc(var(--aster-pad) / 2) 14px; cursor: grab; touch-action: none; user-select: none;
|
|
365
|
+
border-bottom: 1px solid var(--aster-rule-2);
|
|
366
|
+
}
|
|
367
|
+
.aster-window-bar:active { cursor: grabbing; }
|
|
368
|
+
.aster-window-bar h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: 13.5px; font-weight: var(--aster-weight-label); }
|
|
369
|
+
.aster-window-bar button { display: grid; place-items: center; width: calc(var(--aster-ctl) - 2px); height: calc(var(--aster-ctl) - 2px); border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
370
|
+
.aster-window-bar button { flex: none; }
|
|
371
|
+
.aster-window-bar button:disabled { opacity: .45; cursor: default; }
|
|
372
|
+
@media (pointer: coarse) { .aster-window-bar button { width: 44px; height: 44px; } }
|
|
373
|
+
.aster-window-bar button:hover { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
374
|
+
.aster-window-bar button:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
375
|
+
.aster-window-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
|
|
376
|
+
.aster-window-body { flex: 1; min-height: 0; overflow: auto; padding: var(--aster-pad) 14px; }
|
|
377
|
+
/* Dashboard geometry stays in CSS; stored sizes are column/row intent. */
|
|
378
|
+
aster-dashboard { display: block; min-width: 0; container-type: inline-size; }
|
|
379
|
+
.aster-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--dashboard-row, 300px); gap: var(--dashboard-gap, 16px); }
|
|
380
|
+
aster-dashboard-widget { display: block; min-width: 0; min-height: 0; grid-column: span 1; grid-row: span 1; }
|
|
381
|
+
aster-dashboard-widget[data-width="2"] { grid-column: span 2; }
|
|
382
|
+
aster-dashboard-widget[data-width="3"] { grid-column: span 3; }
|
|
383
|
+
aster-dashboard-widget[data-height="2"] { grid-row: span 2; }
|
|
384
|
+
aster-dashboard-widget[data-height="3"] { grid-row: span 3; }
|
|
385
|
+
.aster-portlet { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--aster-rule); border-radius: var(--aster-r-card); background: var(--aster-surface); color: var(--aster-text); overflow: hidden; box-shadow: var(--aster-e1); }
|
|
386
|
+
.aster-portlet .aster-window-bar { flex: none; cursor: default; }
|
|
387
|
+
.aster-portlet .aster-window-bar button { touch-action: none; }
|
|
388
|
+
.aster-portlet .aster-window-bar button:first-of-type { cursor: grab; }
|
|
389
|
+
.aster-portlet-body { flex: 1; min-width: 0; min-height: 0; overflow: auto; padding: var(--aster-pad) 14px; }
|
|
390
|
+
.aster-portlet[data-maximized="true"] { position: fixed; inset: 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); margin: 0; box-shadow: var(--aster-e3); }
|
|
391
|
+
aster-dashboard-widget[data-drop="true"] { outline: 3px solid var(--aster-focus); outline-offset: 3px; border-radius: var(--aster-r-card); }
|
|
392
|
+
.aster-dashboard-grid:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 4px; }
|
|
393
|
+
.aster-dashboard-empty { color: var(--aster-text-2); padding: 24px; border: 1px dashed var(--aster-rule); border-radius: var(--aster-r-card); text-align: center; }
|
|
394
|
+
@container (max-width: 1000px) {
|
|
395
|
+
.aster-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
396
|
+
aster-dashboard-widget[data-width="3"] { grid-column: span 2; }
|
|
397
|
+
}
|
|
398
|
+
@container (max-width: 640px) {
|
|
399
|
+
.aster-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
|
|
400
|
+
aster-dashboard-widget[data-width] { grid-column: span 1; }
|
|
401
|
+
}
|
|
402
|
+
/* Date field and calendar */
|
|
403
|
+
aster-date { display: block; min-width: 0; }
|
|
404
|
+
.aster-date { display: flex; align-items: center; }
|
|
405
|
+
.aster-date input, .aster-grid-filter .aster-field input { flex: 1; min-width: 0; }
|
|
406
|
+
.aster-field:has(> .aster-date-button), .aster-date { padding-right: 2px; }
|
|
407
|
+
.aster-date-button {
|
|
408
|
+
flex: none; display: grid; place-items: center; width: calc(var(--aster-ctl) - 8px); height: calc(var(--aster-ctl) - 8px);
|
|
409
|
+
margin-right: 2px; border-radius: var(--aster-r-ctl); color: var(--aster-text-2);
|
|
410
|
+
}
|
|
411
|
+
.aster-date-button:hover, .aster-date-button[aria-expanded="true"] { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
412
|
+
.aster-date-button:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
413
|
+
.aster-date-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
|
|
414
|
+
.aster-calendar { padding: calc(var(--aster-pad) - 4px); border-radius: var(--aster-r-pop); background: var(--aster-surface); box-shadow: var(--aster-e3); }
|
|
415
|
+
.aster-calendar-head { display: flex; align-items: center; gap: 2px; margin-bottom: calc(var(--aster-pad) / 2); }
|
|
416
|
+
.aster-calendar-head h2 { flex: 1; margin: 0; text-align: center; font-size: 13.5px; font-weight: var(--aster-weight-label); }
|
|
417
|
+
.aster-calendar-head button { width: calc(var(--aster-ctl) - 2px); height: calc(var(--aster-ctl) - 2px); border-radius: var(--aster-r-ctl); color: var(--aster-text-2); font-size: 15px; }
|
|
418
|
+
.aster-calendar-head button:hover { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
419
|
+
.aster-calendar-head button:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
420
|
+
.aster-calendar table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
|
421
|
+
.aster-calendar th { width: 34px; padding: 2px 0 4px; font-size: 11.5px; font-weight: var(--aster-weight-label); color: var(--aster-text-2); }
|
|
422
|
+
.aster-calendar td { width: 34px; height: 32px; padding: 0; text-align: center; border-radius: var(--aster-r-ctl); cursor: default; }
|
|
423
|
+
.aster-calendar td[role="gridcell"]:hover { background: var(--aster-accent-soft); }
|
|
424
|
+
.aster-calendar td[aria-current="date"] { font-weight: var(--aster-weight-label); color: var(--aster-accent); }
|
|
425
|
+
.aster-calendar td[aria-selected="true"] { background: var(--aster-accent); color: var(--aster-on-accent); }
|
|
426
|
+
.aster-calendar td:focus { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
427
|
+
.aster-picker-list {
|
|
428
|
+
min-width: anchor-size(width); max-width: min(480px, 100vw - 32px); max-height: min(280px, 45vh); overflow: auto;
|
|
429
|
+
padding: calc(var(--aster-pad) / 2 - 2px); border-radius: var(--aster-r-pop); background: var(--aster-surface); box-shadow: var(--aster-e3);
|
|
430
|
+
}
|
|
431
|
+
.aster-picker-list .aster-option { padding: var(--aster-row-y) 8px; border-radius: var(--aster-r-ctl); }
|
|
432
|
+
.aster-picker-list .aster-option[data-active] { background: var(--aster-accent-soft); }
|
|
433
|
+
.aster-picker-list .aster-option[aria-selected="true"] { font-weight: var(--aster-weight-strong); background: none; }
|
|
434
|
+
.aster-picker-list .aster-option[aria-selected="true"][data-active] { background: var(--aster-accent-soft); }
|
|
435
|
+
.aster-picker-empty { padding: calc(var(--aster-pad) - 4px); font-size: 12.5px; color: var(--aster-text-2); }
|
|
436
|
+
/* With columns, the list is a grid (template written by the picker) and options are subgrid rows. */
|
|
437
|
+
.aster-picker-list[data-columns] { display: grid; align-content: start; column-gap: 12px; min-width: max(anchor-size(width), 420px); }
|
|
438
|
+
.aster-picker-list[data-columns]:not(:popover-open) { display: none; }
|
|
439
|
+
.aster-picker-options { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-content: start; }
|
|
440
|
+
.aster-picker-options > [role="group"] { display: contents; }
|
|
441
|
+
.aster-option-sort { text-align: left; font: inherit; color: inherit; border-radius: var(--aster-r-ctl); }
|
|
442
|
+
.aster-option-sort:hover, .aster-option-sort[aria-pressed="true"] { color: var(--aster-text); }
|
|
443
|
+
.aster-option-sort:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 1px; }
|
|
444
|
+
.aster-option[data-columns] { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
|
|
445
|
+
.aster-option-col { color: var(--aster-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
446
|
+
.aster-option-head { position: sticky; top: -4px; z-index: 1; background: var(--aster-surface); font-size: 11.5px; font-weight: var(--aster-weight-label); color: var(--aster-text-2); }
|
|
447
|
+
.aster-option-group { grid-column: 1 / -1; padding: calc(var(--aster-row-y) + 2px) 8px 2px; font-size: 11.5px; font-weight: var(--aster-weight-label); color: var(--aster-text-2); }
|
|
448
|
+
.aster-option-check { width: 12px; color: var(--aster-accent); text-align: center; }
|
|
449
|
+
.aster-picker-list .aster-option:not([data-columns]):has(.aster-option-check) { display: flex; gap: 6px; }
|
|
450
|
+
.aster-option-create { color: var(--aster-accent); grid-column: 1 / -1; }
|
|
451
|
+
.aster-picker-outside { margin-top: 4px; }
|
|
452
|
+
/* Tree picker: rows indented by level (--level, set per row); folders that only open, and rows shown only as the way to a match, are quieter. */
|
|
453
|
+
.aster-tree-picker-list { min-width: max(anchor-size(width), 280px); }
|
|
454
|
+
.aster-tree-option { display: flex; align-items: center; gap: 2px; padding: var(--aster-row-y) 8px var(--aster-row-y) calc(4px + (var(--level, 1) - 1) * 16px); border-radius: var(--aster-r-ctl); cursor: default; white-space: nowrap; }
|
|
455
|
+
.aster-tree-option[data-active] { background: var(--aster-accent-soft); }
|
|
456
|
+
.aster-tree-option[aria-selected="true"] { font-weight: var(--aster-weight-strong); }
|
|
457
|
+
.aster-tree-option[data-group], .aster-tree-option[data-context] { color: var(--aster-text-2); }
|
|
458
|
+
.aster-tree-option-twisty { display: grid; place-items: center; flex: none; width: 16px; height: 16px; color: var(--aster-text-2); }
|
|
459
|
+
.aster-tree-option-twisty svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: rotate var(--aster-t-micro); }
|
|
460
|
+
.aster-tree-option[aria-expanded="true"] > .aster-tree-option-twisty svg { rotate: 90deg; }
|
|
461
|
+
.aster-tree-picker-trail { margin: 2px 0 0; font-size: 11.5px; color: var(--aster-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
462
|
+
/* Chips in a multiple picker's frame, before the input */
|
|
463
|
+
.aster-picker[data-multiple] .aster-field { height: auto; min-height: var(--aster-ctl); flex-wrap: wrap; gap: 4px; padding-block: 3px; }
|
|
464
|
+
.aster-picker[data-multiple] input { flex: 1; min-width: 6ch; }
|
|
465
|
+
.aster-chip {
|
|
466
|
+
display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 8px; border-radius: 999px;
|
|
467
|
+
background: var(--aster-accent-soft); font-size: 12.5px; white-space: nowrap;
|
|
468
|
+
}
|
|
469
|
+
.aster-chip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; color: var(--aster-text-2); }
|
|
470
|
+
.aster-chip button:hover { background: oklch(from var(--aster-text) l c h / .08); color: var(--aster-text); }
|
|
471
|
+
.aster-chip button:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -1px; }
|
|
472
|
+
.aster-chip svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
|
|
473
|
+
/* ── slicer: the shared filter as chips ── */
|
|
474
|
+
aster-slicer { display: block; min-width: 0; }
|
|
475
|
+
.aster-slicer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-height: var(--aster-ctl); }
|
|
476
|
+
.aster-slicer-label { color: var(--aster-text-3); font-size: 12px; font-weight: var(--aster-weight-label); user-select: none; }
|
|
477
|
+
.aster-slicer-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
|
|
478
|
+
.aster-slicer-chip {
|
|
479
|
+
display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
|
|
480
|
+
height: calc(var(--aster-ctl) - 6px); padding: 0 8px 0 10px; border-radius: 999px;
|
|
481
|
+
background: var(--aster-accent-soft); color: var(--aster-text); font-size: 12.5px; white-space: nowrap;
|
|
482
|
+
transition: background var(--aster-t-micro);
|
|
483
|
+
}
|
|
484
|
+
.aster-slicer-chip span { overflow: hidden; text-overflow: ellipsis; }
|
|
485
|
+
.aster-slicer-chip:hover:not([aria-disabled]) { background: oklch(from var(--aster-accent-soft) calc(l - .04) c h); }
|
|
486
|
+
.aster-slicer-chip svg { flex: none; width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; color: var(--aster-text-2); }
|
|
487
|
+
.aster-slicer-chip[aria-disabled] { background: transparent; box-shadow: inset 0 0 0 1px var(--aster-rule); padding-right: 10px; }
|
|
488
|
+
.aster-slicer-clear { height: calc(var(--aster-ctl) - 6px); padding: 0 8px; border-radius: var(--aster-r-ctl); color: var(--aster-accent); font-size: 12.5px; font-weight: var(--aster-weight-strong); }
|
|
489
|
+
.aster-slicer-clear:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
490
|
+
.aster-slicer-empty { margin: 0; color: var(--aster-text-2); font-size: 12.5px; }
|
|
491
|
+
/* "Create …": a small form where the list was */
|
|
492
|
+
.aster-picker-create {
|
|
493
|
+
width: max(anchor-size(width), 300px); padding: var(--aster-pad); display: grid; gap: calc(var(--aster-gap) - 4px);
|
|
494
|
+
border-radius: var(--aster-r-pop); background: var(--aster-surface); box-shadow: var(--aster-e3);
|
|
495
|
+
}
|
|
496
|
+
.aster-picker-create:not(:popover-open) { display: none; }
|
|
497
|
+
.aster-picker-create-title { margin: 0; font-weight: var(--aster-weight-label); }
|
|
498
|
+
.aster-picker-create-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
499
|
+
|
|
500
|
+
/* ── section ── */
|
|
501
|
+
aster-section { display: block; }
|
|
502
|
+
.aster-section-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: var(--aster-pad) 0 calc(var(--aster-pad) - 4px); font: inherit; border-bottom: 1px solid var(--aster-rule-2); }
|
|
503
|
+
.aster-section-head button { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: var(--aster-weight-strong); color: var(--aster-text); }
|
|
504
|
+
.aster-section-head svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: rotate var(--aster-t-micro) var(--aster-ease); }
|
|
505
|
+
aster-section[data-open] > .aster-section-head > button > svg { rotate: 90deg; }
|
|
506
|
+
.aster-section-summary { font-size: 12px; color: var(--aster-text-3); }
|
|
507
|
+
/* Height animates as a grid track, so nothing is measured in JS. */
|
|
508
|
+
.aster-section-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--aster-t-morph) var(--aster-ease); }
|
|
509
|
+
aster-section[data-open] > .aster-section-body { grid-template-rows: 1fr; }
|
|
510
|
+
.aster-section-inner { min-height: 0; overflow: hidden; }
|
|
511
|
+
aster-section[data-open] > .aster-section-body > .aster-section-inner { overflow: visible; }
|
|
512
|
+
|
|
513
|
+
/* ── form ── */
|
|
514
|
+
aster-form { display: block; container-type: inline-size; }
|
|
515
|
+
.aster-form-grid { display: grid; grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); gap: var(--aster-gap) calc(var(--aster-gap) + 4px); padding: var(--aster-gap) 0 calc(var(--aster-gap) + 4px); }
|
|
516
|
+
.aster-form-grid > * { grid-column: span min(var(--span, 1), var(--columns, 2)); }
|
|
517
|
+
@container (max-width: 520px) {
|
|
518
|
+
.aster-form-grid { grid-template-columns: minmax(0, 1fr); }
|
|
519
|
+
.aster-form-grid > * { grid-column: auto; }
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/* ── split ── */
|
|
523
|
+
aster-split { display:flex; flex-direction:column; container-type:inline-size; min-width:0; min-height:0; }
|
|
524
|
+
.aster-split-layout { --split-handle:9px; display:grid; flex:1; min-height:0; min-width:0; grid-template-columns:minmax(0,min(var(--split-start),calc(100% - var(--split-handle) - 44px))) var(--split-handle) minmax(44px,1fr); }
|
|
525
|
+
.aster-split-pane { min-width:0; min-height:0; overflow:auto; }
|
|
526
|
+
.aster-split-bar { position:relative; touch-action:none; cursor:col-resize; }
|
|
527
|
+
.aster-split-bar::before { content:""; position:absolute; inset:0 calc((var(--split-handle) - 1px) / 2); background:var(--aster-rule-2); transition:background var(--aster-t-micro); }
|
|
528
|
+
.aster-split-bar:hover::before, .aster-split-bar:focus-visible::before { background:var(--aster-accent); }
|
|
529
|
+
.aster-split-bar:focus-visible { outline:2px solid var(--aster-focus); outline-offset:-2px; }
|
|
530
|
+
.aster-split-layout[data-orientation=vertical] { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,min(var(--split-start),calc(100% - var(--split-handle) - 44px))) var(--split-handle) minmax(44px,1fr); }
|
|
531
|
+
.aster-split-layout[data-orientation=vertical] > .aster-split-bar { cursor:row-resize; }
|
|
532
|
+
.aster-split-layout[data-orientation=vertical] > .aster-split-bar::before { inset:calc((var(--split-handle) - 1px) / 2) 0; }
|
|
533
|
+
.aster-split-layout[data-collapsed]:not([data-orientation=vertical]) { grid-template-columns:0 var(--split-handle) minmax(0,1fr); }
|
|
534
|
+
.aster-split-layout[data-collapsed][data-orientation=vertical] { grid-template-rows:0 var(--split-handle) minmax(0,1fr); }
|
|
535
|
+
.aster-split-layout[data-collapsed] > [data-pane=start] { visibility:hidden; }
|
|
536
|
+
.aster-split-tools { display:flex; justify-content:flex-end; padding:4px; }
|
|
537
|
+
.aster-split-tools button { color:var(--aster-accent); font-size:12px; min-height:var(--aster-ctl-tight); }
|
|
538
|
+
@container (max-width:720px) {
|
|
539
|
+
.aster-split-layout[data-responsive][data-orientation=horizontal] { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); }
|
|
540
|
+
.aster-split-layout[data-responsive][data-orientation=horizontal] > .aster-split-bar { display:none; }
|
|
541
|
+
.aster-split-layout[data-responsive][data-collapsed][data-orientation=horizontal] { grid-template-rows:0 minmax(0,1fr); }
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* ── list editor ── */
|
|
545
|
+
aster-list-editor { display: block; }
|
|
546
|
+
.aster-list-edit-row {
|
|
547
|
+
display: grid; grid-template-columns: var(--list-columns); gap: 8px; align-items: start;
|
|
548
|
+
padding: var(--aster-row-y) 0; border-bottom: 1px solid var(--aster-rule-2);
|
|
549
|
+
}
|
|
550
|
+
.aster-list-edit-head { padding: 0 0 4px; font-size: 12px; font-weight: var(--aster-weight-label); color: var(--aster-text-3); }
|
|
551
|
+
.aster-list-edit-static { display: block; padding: var(--aster-row-y) 0; overflow-wrap: anywhere; }
|
|
552
|
+
.aster-list-edit-row[data-removing] .aster-list-edit-static { text-decoration: line-through; color: var(--aster-text-3); }
|
|
553
|
+
/* A changed value shown as text (read-only, or a replayed change) keeps the pending edge. */
|
|
554
|
+
.aster-list-edit-static[data-pending] { box-shadow: inset 2px 0 0 var(--aster-accent); padding-left: 8px; }
|
|
555
|
+
.aster-list-edit-actions { display: flex; gap: 2px; justify-content: end; }
|
|
556
|
+
.aster-list-edit-action { padding: var(--aster-row-y) 6px; border-radius: var(--aster-r-ctl); font-size: 12.5px; color: var(--aster-text-2); }
|
|
557
|
+
.aster-list-edit-action:hover { color: var(--aster-text); background: oklch(from var(--aster-text) l c h / .05); }
|
|
558
|
+
.aster-list-edit-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: var(--aster-weight-label); color: var(--aster-accent); }
|
|
559
|
+
.aster-list-edit-add svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
|
|
560
|
+
.aster-list-edit-error { grid-column: 1 / -1; }
|
|
561
|
+
.aster-list-edit-empty { margin: 12px 0 0; color: var(--aster-text-3); }
|
|
562
|
+
.aster-list-edit { position: relative; }
|
|
563
|
+
.aster-list-edit-handle {
|
|
564
|
+
display: grid; place-items: center; width: 24px; height: var(--aster-ctl); border-radius: var(--aster-r-ctl);
|
|
565
|
+
color: var(--aster-text-3); cursor: grab; -webkit-touch-callout: none;
|
|
566
|
+
}
|
|
567
|
+
.aster-list-edit-handle:hover { color: var(--aster-text); background: oklch(from var(--aster-text) l c h / .05); }
|
|
568
|
+
.aster-list-edit-handle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
|
|
569
|
+
.aster-list-edit-row[data-dragging] { opacity: .55; }
|
|
570
|
+
/* A row a touch lifted: raised over its neighbours while the line shows where it goes. */
|
|
571
|
+
.aster-list-edit-row[data-lifted] {
|
|
572
|
+
position: relative; z-index: 1; opacity: 1; border-radius: var(--aster-r-ctl);
|
|
573
|
+
background: var(--aster-surface); box-shadow: var(--aster-e3);
|
|
574
|
+
}
|
|
575
|
+
.aster-list-edit-row[data-lifted] .aster-list-edit-handle { color: var(--aster-accent); background: var(--aster-accent-soft); }
|
|
576
|
+
.aster-list-edit-drop { position: absolute; left: 0; right: 0; top: calc(var(--at) * 1px - 1px); height: 2px; background: var(--aster-accent); pointer-events: none; }
|
|
577
|
+
|
|
578
|
+
/* ── rule editor ── */
|
|
579
|
+
aster-filter-builder { display: block; min-width: 0; container: aster-filter / inline-size; }
|
|
580
|
+
.aster-grid-advanced .aster-dialog {
|
|
581
|
+
--dialog-width: 960px; overflow: auto; overscroll-behavior: contain;
|
|
582
|
+
}
|
|
583
|
+
.aster-grid-advanced .aster-dialog-panel { padding: var(--aster-pad); box-sizing: border-box; }
|
|
584
|
+
.aster-grid-advanced .aster-filter-builder > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
585
|
+
.aster-filter-builder { display: grid; gap: 12px; min-width: 0; }
|
|
586
|
+
.aster-filter-builder h3 { margin: 0; font-size: 1rem; }
|
|
587
|
+
.aster-filter-controls { border: 0; margin: 0; padding: 0; min-width: 0; }
|
|
588
|
+
.aster-filter-condition { min-width: 0; }
|
|
589
|
+
.aster-filter-condition-fields { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(8rem, .9fr) minmax(12rem, 1.5fr) auto; align-items: start; gap: 8px; }
|
|
590
|
+
.aster-filter-condition-fields > .aster-picker { min-width: 0; }
|
|
591
|
+
.aster-filter-start { grid-column: 2 / 4; align-self: center; }
|
|
592
|
+
.aster-filter-value { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
|
|
593
|
+
.aster-filter-value > :is(.aster-picker, .aster-field) { flex: 1 1 8rem; min-width: 0; }
|
|
594
|
+
.aster-filter-value > label:not(.aster-field) { flex-basis: 100%; }
|
|
595
|
+
.aster-filter-value .aster-rule-many { flex: 1 1 100%; padding-block: 6px; }
|
|
596
|
+
.aster-filter-value .aster-rule-many > label { display: inline-flex; align-items: center; gap: 5px; }
|
|
597
|
+
.aster-filter-choices { flex: 1 1 100%; min-width: 0; }
|
|
598
|
+
.aster-filter-comparison { flex-basis: 100%; font-size: 12px; color: var(--aster-text-2); }
|
|
599
|
+
.aster-filter-comparison > summary { cursor: pointer; width: fit-content; border-radius: var(--aster-r-card); }
|
|
600
|
+
.aster-filter-comparison > summary:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 2px; }
|
|
601
|
+
.aster-filter-comparison > .aster-picker { margin-top: 6px; }
|
|
602
|
+
.aster-filter-list, .aster-filter-relative { flex: 1 1 100%; min-width: 0; }
|
|
603
|
+
.aster-filter-relative { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
604
|
+
.aster-filter-relative > :is(.aster-field, .aster-picker) { flex: 1 1 7rem; min-width: 0; }
|
|
605
|
+
.aster-filter-relative > .aster-field { display: flex; flex-direction: column; align-items: stretch; }
|
|
606
|
+
.aster-filter-relative > .aster-field > span { font-size: 11px; color: var(--aster-text-2); }
|
|
607
|
+
.aster-filter-relative > .aster-hint { flex-basis: 100%; }
|
|
608
|
+
.aster-filter-list .aster-field { display:flex; flex-direction:column; align-items:stretch; gap:6px; height:auto; }
|
|
609
|
+
.aster-filter-list .aster-field > span { font-size:12px; color:var(--aster-text-2); }
|
|
610
|
+
.aster-filter-list textarea { min-height:4.2em; resize:vertical; }
|
|
611
|
+
.aster-filter-list > label:not(.aster-field) { display:flex; align-items:center; gap:6px; margin-block-start:8px; }
|
|
612
|
+
.aster-filter-group .aster-rule-head > .aster-picker { flex: 0 1 10rem; min-width: 0; }
|
|
613
|
+
.aster-filter-group .aster-rule-adds { flex-wrap: wrap; gap: 8px 14px; }
|
|
614
|
+
.aster-filter-group .aster-rule-body { padding-left: clamp(2px, 1vw, 12px); }
|
|
615
|
+
.aster-filter-preview, .aster-grid-expression { overflow-wrap: anywhere; color: var(--aster-text-2); }
|
|
616
|
+
.aster-filter-preview { margin: 0; padding: 8px; border: 1px solid var(--aster-rule-2); border-radius: var(--aster-r-card); }
|
|
617
|
+
.aster-grid-expression { flex-basis: 100%; }
|
|
618
|
+
.aster-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
619
|
+
@container aster-filter (max-width: 650px) {
|
|
620
|
+
.aster-filter-condition-fields { grid-template-columns: minmax(0, 1fr) auto; }
|
|
621
|
+
.aster-filter-condition-fields > :is(.aster-picker, .aster-filter-value) { grid-column: 1; }
|
|
622
|
+
.aster-filter-condition-fields > .aster-list-edit-action { grid-column: 2; grid-row: 1; }
|
|
623
|
+
.aster-filter-start { grid-column: 1; }
|
|
624
|
+
}
|
|
625
|
+
@media (forced-colors: active) {
|
|
626
|
+
.aster-filter-group { border: 1px solid CanvasText; }
|
|
627
|
+
}
|
|
628
|
+
aster-rule-editor { display: block; }
|
|
629
|
+
.aster-rule { display: grid; gap: 8px; }
|
|
630
|
+
.aster-rule-label { margin: 0; font-size: 13px; font-weight: var(--aster-weight-label); }
|
|
631
|
+
.aster-rule-empty { margin: 0; color: var(--aster-text-3); }
|
|
632
|
+
.aster-rule-group {
|
|
633
|
+
display: grid; gap: 6px; padding: calc(var(--aster-pad) - 4px) 10px; border-radius: var(--aster-r-card);
|
|
634
|
+
box-shadow: inset 0 0 0 1px var(--aster-rule-2);
|
|
635
|
+
}
|
|
636
|
+
.aster-rule-group .aster-rule-group { background: oklch(from var(--aster-text) l c h / .02); }
|
|
637
|
+
.aster-rule-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
638
|
+
.aster-rule-head aster-field { flex: 1 1 16rem; }
|
|
639
|
+
.aster-rule-head aster-select { width: 8.5rem; }
|
|
640
|
+
.aster-rule-when, .aster-rule-of { font-size: 12.5px; color: var(--aster-text-2); }
|
|
641
|
+
.aster-rule-when:empty { display: none; }
|
|
642
|
+
.aster-rule-head .aster-rule-actions { margin-left: auto; }
|
|
643
|
+
.aster-rule-body { display: grid; gap: 6px; padding-left: 12px; border-left: 2px solid var(--aster-rule-2); }
|
|
644
|
+
.aster-rule-leaf {
|
|
645
|
+
display: grid; grid-template-columns: minmax(10rem, 1.4fr) minmax(8rem, .8fr) minmax(8rem, 1.2fr) auto;
|
|
646
|
+
gap: 8px; align-items: start;
|
|
647
|
+
}
|
|
648
|
+
.aster-rule-leaf > .aster-error { grid-column: 1 / -1; }
|
|
649
|
+
.aster-rule-actions { display: flex; gap: 2px; justify-content: end; }
|
|
650
|
+
.aster-rule-adds { display: flex; gap: 14px; }
|
|
651
|
+
.aster-rule-adds .aster-list-edit-add { margin-top: 2px; }
|
|
652
|
+
.aster-rule-static { display: block; padding: var(--aster-row-y) 0; overflow-wrap: anywhere; }
|
|
653
|
+
.aster-rule-trail { color: var(--aster-text-2); font-size: 12px; }
|
|
654
|
+
:is(.aster-rule-group, .aster-rule-leaf)[data-removing] > :is(.aster-rule-static, .aster-rule-head > .aster-rule-static) {
|
|
655
|
+
text-decoration: line-through; color: var(--aster-text-3);
|
|
656
|
+
}
|
|
657
|
+
.aster-rule-group[data-removing] .aster-rule-static { text-decoration: line-through; color: var(--aster-text-3); }
|
|
658
|
+
:is(.aster-rule-group, .aster-rule-leaf)[data-new] .aster-field { box-shadow: var(--aster-well), inset 2px 0 0 var(--aster-accent); }
|
|
659
|
+
.aster-rule-many { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: var(--aster-row-y) 0; border: 0; font-size: 13px; }
|
|
660
|
+
.aster-rule-many[data-pending] { box-shadow: inset 2px 0 0 var(--aster-accent); padding-left: 8px; }
|
|
661
|
+
.aster-rule-many label { display: inline-flex; align-items: center; gap: 5px; min-height: var(--aster-ctl); }
|
|
662
|
+
.aster-rule-many input { width: 16px; height: 16px; margin: 0; accent-color: var(--aster-accent); }
|
|
663
|
+
.aster-rule-many input:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 3px; }
|
|
664
|
+
@media (pointer: coarse) { .aster-rule-many label { min-height: 44px; } }
|
|
665
|
+
@container (max-width: 560px) {
|
|
666
|
+
.aster-rule-leaf { grid-template-columns: 1fr auto; }
|
|
667
|
+
}
|
|
668
|
+
/* Phone width: the field on a line of its own, then the test with the actions, then the value. */
|
|
669
|
+
@container (max-width: 420px) {
|
|
670
|
+
.aster-rule-leaf { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "field field" "op actions" "value value"; }
|
|
671
|
+
.aster-rule-leaf > :nth-child(1) { grid-area: field; }
|
|
672
|
+
.aster-rule-leaf > :nth-child(2) { grid-area: op; }
|
|
673
|
+
.aster-rule-leaf > :nth-child(3) { grid-area: value; }
|
|
674
|
+
.aster-rule-leaf > :nth-child(4):not(.aster-error) { grid-area: actions; }
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/* ── grid ── */
|
|
678
|
+
aster-grid { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; container: aster-grid / inline-size; }
|
|
679
|
+
|
|
680
|
+
aster-grid[data-dragging], aster-grid[data-dragging] * { cursor: grabbing; }
|
|
681
|
+
.aster-grid-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: var(--aster-row-y) 12px; border-bottom: 1px solid var(--aster-rule-2); }
|
|
682
|
+
.aster-grid-group-tools { display: inline-flex; align-items: center; max-width: 100%; }
|
|
683
|
+
.aster-grid-summary { flex: none; padding: var(--aster-row-y) 12px; border-top: 1px solid var(--aster-rule-2); font-size: 12.5px; }
|
|
684
|
+
.aster-grid-summary dl { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
|
|
685
|
+
.aster-grid-summary dl > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
|
|
686
|
+
.aster-grid-summary dt { color: var(--aster-text-2); overflow-wrap: anywhere; }
|
|
687
|
+
.aster-grid-summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
688
|
+
.aster-grid-summary-status:empty { display: none; }
|
|
689
|
+
.aster-grid-group-summary { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; color: var(--aster-text-2); font-variant-numeric: tabular-nums; }
|
|
690
|
+
.aster-grid-total { margin-right: auto; font-size: 12.5px; color: var(--aster-text-2); font-variant-numeric: tabular-nums; }
|
|
691
|
+
.aster-grid-tool { padding: calc(var(--aster-row-y) - 2px) 9px; border-radius: var(--aster-r-ctl); font-size: 12.5px; color: var(--aster-text-2); }
|
|
692
|
+
.aster-grid-tool:hover, .aster-grid-tool[aria-expanded="true"], .aster-grid-tool[aria-pressed="true"] { color: var(--aster-text); background: oklch(from var(--aster-text) l c h / .05); }
|
|
693
|
+
/* Floating row controls: over the row's end, in view when the grid scrolls sideways. */
|
|
694
|
+
.aster-grid-row { position: relative; }
|
|
695
|
+
/* Cells keep the first line; the controls overlay it, an expansion takes the second. */
|
|
696
|
+
.aster-grid-row > .aster-grid-cell { grid-row: 1; }
|
|
697
|
+
.aster-grid-controls {
|
|
698
|
+
grid-row: 1; grid-column: 1 / -1; justify-self: end; align-self: start; position: sticky; right: 0; z-index: 2;
|
|
699
|
+
display: flex; gap: 2px; margin: 3px 6px; padding: 2px; border-radius: var(--aster-r-ctl);
|
|
700
|
+
background: var(--aster-surface); box-shadow: var(--aster-e2);
|
|
701
|
+
opacity: 0; pointer-events: none; transition: opacity var(--aster-t-micro);
|
|
702
|
+
}
|
|
703
|
+
.aster-grid-row:is(:hover, :focus-within, [aria-selected="true"], [data-expanded]) > .aster-grid-controls,
|
|
704
|
+
.aster-grid-scroll:focus-visible .aster-grid-row[data-active-row] > .aster-grid-controls { opacity: 1; pointer-events: auto; }
|
|
705
|
+
/* With a mouse, the row under the pointer has the controls: a selected row's give way, unless it's expanded or holds keyboard focus. */
|
|
706
|
+
@media (hover: hover) {
|
|
707
|
+
.aster-grid-table:has(> .aster-grid-row:hover) > .aster-grid-row:not(:hover, [data-expanded], :has(:focus-visible)) > .aster-grid-controls { opacity: 0; pointer-events: none; }
|
|
708
|
+
}
|
|
709
|
+
.aster-grid-controls button { display: grid; place-items: center; width: var(--aster-ctl-tight); height: calc(var(--aster-ctl-tight) - 2px); border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
710
|
+
.aster-grid-controls button:hover { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
711
|
+
.aster-grid-controls button:active { background: oklch(from var(--aster-accent) l c h / .18); }
|
|
712
|
+
.aster-grid-controls button:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
713
|
+
.aster-grid-controls svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
|
|
714
|
+
/* An expanded row's content: under its cells, across every column. */
|
|
715
|
+
.aster-grid-expansion {
|
|
716
|
+
grid-row: 2; grid-column: 1 / -1; position: sticky; left: 0; max-width: var(--grid-viewport, 100%);
|
|
717
|
+
padding: var(--aster-pad) 16px calc(var(--aster-pad) + 4px); background: var(--aster-sunk); border-top: 1px solid var(--aster-rule-2);
|
|
718
|
+
}
|
|
719
|
+
.aster-grid-row[data-expanded] > .aster-grid-cell { background: var(--aster-surface); }
|
|
720
|
+
.aster-grid-asking { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--aster-pad); padding: calc(var(--aster-pad) - 4px) var(--aster-pad); border-radius: var(--aster-r-card); background: var(--aster-surface); box-shadow: var(--aster-e1); }
|
|
721
|
+
.aster-grid-asking p { margin: 0 auto 0 0; }
|
|
722
|
+
.aster-grid-refused { color: var(--aster-negative); }
|
|
723
|
+
/* Carousel: one card at a time, the next peeking in. */
|
|
724
|
+
aster-carousel { display: block; min-width: 0; }
|
|
725
|
+
.aster-carousel { display: grid; gap: 8px; }
|
|
726
|
+
.aster-carousel-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; scroll-padding-inline: 2px; overscroll-behavior-x: contain; padding: 3px 5px; scrollbar-width: none; }
|
|
727
|
+
.aster-carousel-rail::-webkit-scrollbar { display: none; }
|
|
728
|
+
.aster-carousel-slide { flex: 0 0 var(--slide-width, calc(100% - 28px)); scroll-snap-align: start; min-width: 0; }
|
|
729
|
+
.aster-carousel-nav { display: flex; align-items: center; gap: 2px; justify-content: flex-end; font-size: 12.5px; color: var(--aster-text-2); }
|
|
730
|
+
.aster-carousel-nav span { margin-right: auto; font-variant-numeric: tabular-nums; }
|
|
731
|
+
.aster-carousel-nav button { display: grid; place-items: center; width: var(--aster-ctl); height: var(--aster-ctl); border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
732
|
+
.aster-carousel-nav button:hover:not(:disabled) { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
733
|
+
.aster-carousel-nav button:disabled { opacity: .4; }
|
|
734
|
+
.aster-carousel-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
735
|
+
/* Drill-down navigator: one level at a time, sliding between levels. */
|
|
736
|
+
aster-tree-navigator { display: block; min-width: 0; }
|
|
737
|
+
.aster-drill { display: grid; gap: 8px; min-width: 0; }
|
|
738
|
+
.aster-drill-bar { display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
739
|
+
.aster-drill-step, .aster-drill-open { display: grid; place-items: center; flex: none; width: var(--aster-ctl); height: var(--aster-ctl); border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
740
|
+
.aster-drill-step:hover:not(:disabled), .aster-drill-open:hover { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
741
|
+
.aster-drill-step:disabled { opacity: .4; }
|
|
742
|
+
.aster-drill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
743
|
+
.aster-drill-crumbs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
|
|
744
|
+
.aster-drill-crumbs ol { display: flex; align-items: center; margin: 0; padding: 0 4px; list-style: none; white-space: nowrap; }
|
|
745
|
+
.aster-drill-crumbs li + li::before { content: "›" / ""; padding: 0 6px; color: var(--aster-text-2); }
|
|
746
|
+
.aster-drill-crumbs button { color: var(--aster-accent); font-size: 12.5px; }
|
|
747
|
+
.aster-drill-crumbs button:hover { text-decoration: underline; }
|
|
748
|
+
.aster-drill-crumbs button[aria-current] { color: var(--aster-text); font-weight: var(--aster-weight-strong); }
|
|
749
|
+
.aster-drill-heading { margin: 0; font-size: 14px; font-weight: var(--aster-weight-label); }
|
|
750
|
+
.aster-drill-heading:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: 2px; border-radius: 2px; }
|
|
751
|
+
.aster-drill-viewport { position: relative; isolation: isolate; overflow: hidden; min-height: 48px; }
|
|
752
|
+
.aster-drill-list { position: relative; z-index: 1; display: grid; align-content: start; margin: 0; padding: 0; list-style: none; max-height: var(--nav-height, 320px); overflow: auto; background: var(--aster-surface); }
|
|
753
|
+
.aster-drill-ghost { position: absolute; inset: 0; pointer-events: none; }
|
|
754
|
+
.aster-drill-row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--aster-rule-2); }
|
|
755
|
+
.aster-drill-choose { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: calc(var(--aster-row-y) + 1px) 8px; border-radius: var(--aster-r-ctl); text-align: left; }
|
|
756
|
+
.aster-drill-choose:hover:not([aria-disabled]) { background: var(--aster-accent-soft); }
|
|
757
|
+
.aster-drill-choose[aria-disabled] { color: var(--aster-text-2); }
|
|
758
|
+
.aster-drill-choose span { min-width: 0; overflow-wrap: anywhere; }
|
|
759
|
+
.aster-drill-choose svg { color: var(--aster-accent); }
|
|
760
|
+
.aster-drill-empty { padding: calc(var(--aster-row-y) + 4px) 8px; color: var(--aster-text-2); font-size: 12.5px; }
|
|
761
|
+
/* Dragging a row in a tree grid: a label at the pointer, the drop target marked. */
|
|
762
|
+
.aster-grid-drag {
|
|
763
|
+
position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; max-width: 280px; padding: 4px 10px;
|
|
764
|
+
border-radius: var(--aster-r-ctl); background: var(--aster-surface); box-shadow: var(--aster-e3); font-size: 12.5px;
|
|
765
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
766
|
+
}
|
|
767
|
+
aster-grid[data-dragging] .aster-grid-scroll { user-select: none; }
|
|
768
|
+
/* A touch lifts a row by holding it: no callout, the row dimmed where it was, its label large and above the finger. */
|
|
769
|
+
.aster-grid-scroll[data-draggable] .aster-grid-row { -webkit-touch-callout: none; }
|
|
770
|
+
.aster-grid-row[data-lifted] > .aster-grid-cell { opacity: .5; }
|
|
771
|
+
.aster-grid-drag[data-touch] {
|
|
772
|
+
padding: 8px 14px; font-size: 14px; box-shadow: var(--aster-e3), inset 0 0 0 1px var(--aster-accent);
|
|
773
|
+
transition: scale var(--aster-t-micro) var(--aster-ease), opacity var(--aster-t-micro) var(--aster-ease);
|
|
774
|
+
}
|
|
775
|
+
@starting-style { .aster-grid-drag[data-touch] { scale: .9; opacity: 0; } }
|
|
776
|
+
.aster-grid-row[data-drop="ok"] > .aster-grid-cell { background: var(--aster-accent-soft); box-shadow: inset 0 -2px 0 var(--aster-accent); }
|
|
777
|
+
.aster-grid-row[data-drop="refused"] > .aster-grid-cell { background: oklch(from var(--aster-negative) l c h / .08); cursor: not-allowed; }
|
|
778
|
+
/* Tree grid: the first column's indent and opener. */
|
|
779
|
+
.aster-grid-tree { display: inline-flex; align-items: center; flex: none; padding-left: calc(var(--level, 0) * 18px); margin-right: 4px; vertical-align: middle; }
|
|
780
|
+
.aster-grid-opener { display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
781
|
+
button.aster-grid-opener:hover { background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
782
|
+
.aster-grid-opener svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: rotate var(--aster-t-micro) var(--aster-ease); }
|
|
783
|
+
.aster-grid-opener[data-open] svg { rotate: 90deg; }
|
|
784
|
+
.aster-grid-note { font-size: 12.5px; color: var(--aster-text-2); }
|
|
785
|
+
/* A popover under its toolbar button, aligned to the button's right edge. */
|
|
786
|
+
.aster-grid-panel {
|
|
787
|
+
position-area: bottom span-left; position-try-fallbacks: flip-block, flip-inline;
|
|
788
|
+
width: 280px; max-width: calc(100vw - 16px); max-height: min(420px, 70vh); overflow: auto;
|
|
789
|
+
padding: calc(var(--aster-pad) - 2px) var(--aster-pad); border-radius: var(--aster-r-pop); background: var(--aster-surface); box-shadow: var(--aster-e3);
|
|
790
|
+
display: grid; gap: 8px;
|
|
791
|
+
}
|
|
792
|
+
.aster-grid-panel:not(:popover-open) { display: none; }
|
|
793
|
+
.aster-grid-panel ul { margin: 0; padding: 0; list-style: none; display: grid; }
|
|
794
|
+
.aster-grid-panel li { display: flex; align-items: center; gap: 4px; padding: calc(var(--aster-row-y) - 3px) 0; }
|
|
795
|
+
.aster-grid-panel li label { flex: 1; display: flex; align-items: center; gap: 8px; }
|
|
796
|
+
.aster-grid-panel li input { accent-color: var(--aster-accent); }
|
|
797
|
+
.aster-grid-panel li button { padding: 2px 6px; border-radius: var(--aster-r-ctl); color: var(--aster-text-2); }
|
|
798
|
+
.aster-grid-panel li button:hover:not(:disabled) { color: var(--aster-text); background: oklch(from var(--aster-text) l c h / .05); }
|
|
799
|
+
.aster-grid-panel li button:disabled { opacity: .35; }
|
|
800
|
+
.aster-grid-panel-title { margin: 0; font-size: 12px; font-weight: var(--aster-weight-label); color: var(--aster-text-2); }
|
|
801
|
+
.aster-grid-panel-note { margin: 0; font-size: 12.5px; color: var(--aster-text-3); }
|
|
802
|
+
.aster-grid-panel-view { flex: 1; text-align: left; }
|
|
803
|
+
.aster-grid-panel-save { display: flex; gap: 6px; }
|
|
804
|
+
.aster-grid-panel-action { justify-self: start; font-size: 12.5px; font-weight: var(--aster-weight-label); color: var(--aster-accent); }
|
|
805
|
+
/* One scroll container both ways; the header and frozen cells stick inside it. */
|
|
806
|
+
.aster-grid-scroll { height: 100%; overflow: auto; overflow-anchor: none; scrollbar-gutter: stable; outline: none; }
|
|
807
|
+
.aster-grid-scroll[data-fixed-columns] { width: fit-content; max-width: 100%; min-width: 0; }
|
|
808
|
+
.aster-grid-scroll:focus-visible .aster-grid-cell[data-active] { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
809
|
+
.aster-grid-table { display: grid; grid-template-columns: var(--grid-columns); min-width: 100%; width: fit-content; }
|
|
810
|
+
.aster-grid-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; border-bottom: 1px solid var(--aster-rule-2); }
|
|
811
|
+
.aster-grid-spacer { grid-column: 1 / -1; }
|
|
812
|
+
.aster-grid-cell {
|
|
813
|
+
min-width: 0; padding: var(--aster-pad-y) 12px; background: var(--aster-surface);
|
|
814
|
+
overflow-wrap: anywhere; line-height: 1.4;
|
|
815
|
+
}
|
|
816
|
+
.aster-grid-cell[data-numeric] { text-align: right; font-variant-numeric: tabular-nums; }
|
|
817
|
+
.aster-grid-cell[data-frozen] { position: sticky; z-index: 1; }
|
|
818
|
+
.aster-grid-cell[data-frozen]:last-of-type, .aster-grid-cell[data-frozen]:has(+ :not([data-frozen])) { box-shadow: 1px 0 0 var(--aster-rule); }
|
|
819
|
+
.aster-grid-row[aria-selected="true"] > .aster-grid-cell { background: color-mix(in oklch, var(--aster-accent-soft), var(--aster-surface)); }
|
|
820
|
+
/* The header and filter row stick together. */
|
|
821
|
+
.aster-grid-headgroup { position: sticky; top: 0; z-index: 2; display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
822
|
+
.aster-grid-head { border-bottom: 1px solid var(--aster-rule); }
|
|
823
|
+
.aster-grid-head .aster-grid-cell { position: relative; display: flex; align-items: stretch; padding: 0; background: var(--aster-surface); }
|
|
824
|
+
.aster-grid-headgroup .aster-grid-cell[data-frozen] { position: sticky; z-index: 3; }
|
|
825
|
+
.aster-grid-header-menu { flex: none; width: 22px; display: grid; place-items: center; color: var(--aster-text-3); opacity: 0; transition: opacity var(--aster-t-micro); }
|
|
826
|
+
.aster-grid-header:hover .aster-grid-header-menu, .aster-grid-header-menu:focus-visible { opacity: 1; }
|
|
827
|
+
.aster-grid-header-menu svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
|
|
828
|
+
.aster-grid-resize { position: absolute; top: 0; right: -4px; bottom: 0; width: 8px; z-index: 1; cursor: col-resize; touch-action: none; }
|
|
829
|
+
.aster-grid-header:last-child .aster-grid-resize { right: 0; }
|
|
830
|
+
.aster-grid-resize::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 2px; border-radius: 1px; background: transparent; transition: background var(--aster-t-micro); }
|
|
831
|
+
.aster-grid-resize:hover::after { background: var(--aster-accent); }
|
|
832
|
+
.aster-grid-filters .aster-grid-cell { padding: 4px 6px; background: var(--aster-surface); }
|
|
833
|
+
.aster-grid-filters .aster-field { height: var(--aster-ctl-tight); padding: 0 8px; font-size: 12.5px; }
|
|
834
|
+
.aster-grid-filters .aster-error { font-size: 11.5px; }
|
|
835
|
+
.aster-grid-sort {
|
|
836
|
+
flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; padding: var(--aster-pad-y) 0 var(--aster-pad-y) 12px;
|
|
837
|
+
font-size: 12px; font-weight: var(--aster-weight-label); color: var(--aster-text-2);
|
|
838
|
+
}
|
|
839
|
+
.aster-grid-header[data-numeric] .aster-grid-sort { justify-content: flex-end; }
|
|
840
|
+
.aster-grid-sort:hover { color: var(--aster-text); }
|
|
841
|
+
.aster-grid-sort-mark { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
|
|
842
|
+
.aster-grid-sort small { font-size: 10px; color: var(--aster-text-3); }
|
|
843
|
+
.aster-grid-group > .aster-grid-cell {
|
|
844
|
+
grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: calc(var(--aster-row-y) + 2px) 12px;
|
|
845
|
+
background: var(--aster-sunk); font-weight: var(--aster-weight-strong); user-select: none;
|
|
846
|
+
padding-inline-start: calc(12px + var(--level, 0) * 16px);
|
|
847
|
+
}
|
|
848
|
+
.aster-grid-row[data-grouped-row] > .aster-grid-cell:first-child { padding-inline-start: calc(12px + var(--level, 0) * 16px); }
|
|
849
|
+
.aster-grid-group svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: rotate var(--aster-t-micro) var(--aster-ease); }
|
|
850
|
+
.aster-grid-group[aria-expanded="true"] svg { rotate: 90deg; }
|
|
851
|
+
.aster-grid-group-loading { font-weight: var(--aster-weight); font-size: 12px; color: var(--aster-text-3); }
|
|
852
|
+
.aster-grid-group-count { font-weight: var(--aster-weight); font-size: 12.5px; color: var(--aster-text-2); font-variant-numeric: tabular-nums; }
|
|
853
|
+
.aster-grid-row[data-editing] > .aster-grid-cell { padding: 4px 6px; background: var(--aster-surface); box-shadow: inset 0 1px 0 var(--aster-accent), inset 0 -1px 0 var(--aster-accent); }
|
|
854
|
+
.aster-grid-row[data-editing] .aster-field { height: var(--aster-ctl-tight); }
|
|
855
|
+
/* Controls in a cell shrink to the column; a native date input otherwise keeps its own width. */
|
|
856
|
+
.aster-grid-cell > :is(aster-field, aster-number-field, aster-select, aster-picker, aster-check, aster-choice) { min-width: 0; grid-template-columns: minmax(0, 1fr); }
|
|
857
|
+
.aster-grid-cell :is(.aster-field-row, .aster-field) { min-width: 0; }
|
|
858
|
+
.aster-grid-cell .aster-field { overflow: hidden; }
|
|
859
|
+
.aster-grid-row[data-editing] .aster-hint, .aster-grid-row[data-editing] .aster-error { font-size: 11.5px; padding: 2px 4px 0; }
|
|
860
|
+
.aster-grid-row-note { grid-column: 1 / -1; margin: 0; padding: var(--aster-row-y) 12px calc(var(--aster-row-y) + 2px); font-size: 12.5px; background: var(--aster-surface); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
|
|
861
|
+
.aster-grid-row-note button { color: var(--aster-accent); font-weight: var(--aster-weight-strong); }
|
|
862
|
+
.aster-grid-skeleton { display: block; height: 10px; margin-block: 4px; border-radius: 3px; background: oklch(from var(--aster-text) l c h / .06); }
|
|
863
|
+
.aster-grid-empty { padding: 24px 14px; color: var(--aster-text-3); }
|
|
864
|
+
|
|
865
|
+
/* Touch: larger targets, same look. */
|
|
866
|
+
@media (pointer: coarse) {
|
|
867
|
+
.aster-button { padding: 0 14px; }
|
|
868
|
+
.aster-switch { width: 36px; height: 22px; }
|
|
869
|
+
.aster-switch::after { width: 18px; height: 18px; }
|
|
870
|
+
.aster-switch[aria-checked="true"]::after { translate: 14px 0; }
|
|
871
|
+
.aster-split-layout { --split-handle:44px; }
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.aster-grid-root-drop { display: none; }
|
|
875
|
+
|
|
876
|
+
/* Cards: in a narrow grid each record is a card of labelled values. The
|
|
877
|
+
header row stays for assistive technology and the keyboard, out of sight;
|
|
878
|
+
the labels are generated content with empty alternative text, for the
|
|
879
|
+
eye only, as the headers already name the cells. */
|
|
880
|
+
@container aster-grid (max-width: 560px) {
|
|
881
|
+
.aster-grid-scroll[data-fixed-columns] { width: 100%; }
|
|
882
|
+
aster-grid[data-dragging] .aster-grid-root-drop { display: block; position: absolute; top: 0; inset-inline: 0; padding: 12px; text-align: center; background: var(--aster-surface); border: 2px dashed var(--aster-accent); z-index: 4; }
|
|
883
|
+
aster-grid[data-dragging] .aster-grid-root-drop[data-drop="ok"] { background: var(--aster-accent-soft); }
|
|
884
|
+
.aster-grid-table { grid-template-columns: minmax(0, 1fr); width: 100%; }
|
|
885
|
+
.aster-grid-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
886
|
+
.aster-grid-row:not(.aster-grid-head) { display: block; padding: calc(var(--aster-pad) - 4px) var(--aster-pad); border-bottom: 1px solid var(--aster-rule); }
|
|
887
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell {
|
|
888
|
+
position: static; display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); gap: 8px;
|
|
889
|
+
padding: 3px 0; box-shadow: none; text-align: left;
|
|
890
|
+
}
|
|
891
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell[data-numeric] { justify-content: initial; }
|
|
892
|
+
/* The card, not its cells, carries the row's background, so selection and drop targets cover its padding too. */
|
|
893
|
+
.aster-grid-row:not(.aster-grid-head) { background: var(--aster-surface); }
|
|
894
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell { background: none; }
|
|
895
|
+
.aster-grid-row[aria-selected="true"]:not(.aster-grid-head) { background: color-mix(in oklch, var(--aster-accent-soft), var(--aster-surface)); }
|
|
896
|
+
.aster-grid-row[data-drop="ok"]:not(.aster-grid-head) { background: var(--aster-accent-soft); box-shadow: inset 0 -2px 0 var(--aster-accent); }
|
|
897
|
+
.aster-grid-row[data-drop="refused"]:not(.aster-grid-head) { background: oklch(from var(--aster-negative) l c h / .08); }
|
|
898
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell[data-label]::before {
|
|
899
|
+
content: attr(data-label) / ""; color: var(--aster-text-2); font-size: 12.5px; font-weight: var(--aster-weight);
|
|
900
|
+
}
|
|
901
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell:first-child { font-weight: var(--aster-weight-strong); }
|
|
902
|
+
.aster-grid-filters > .aster-grid-cell { grid-template-columns: minmax(0, 1fr); }
|
|
903
|
+
.aster-grid-row.aster-grid-group > .aster-grid-cell { display: flex; }
|
|
904
|
+
.aster-grid-row.aster-grid-group { padding-inline-start: calc(var(--aster-pad) + var(--level, 0) * 16px); }
|
|
905
|
+
.aster-grid-row[data-grouped-row] { padding-inline-start: calc(var(--aster-pad) + var(--level, 0) * 16px); }
|
|
906
|
+
.aster-grid-row[data-grouped-row] > .aster-grid-cell:first-child { padding-inline-start: 0; }
|
|
907
|
+
/* A tree's card is indented by its level; its first cell is the heading, opener and title on one line. */
|
|
908
|
+
.aster-grid-row:not(.aster-grid-head):has(> .aster-grid-cell > .aster-grid-tree) { padding-left: calc(var(--aster-pad) + var(--level, 0) * 14px); }
|
|
909
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell:has(> .aster-grid-tree) { display: flex; align-items: center; }
|
|
910
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-cell[data-label]:has(> .aster-grid-tree)::before { content: none; }
|
|
911
|
+
.aster-grid-row:not(.aster-grid-head) .aster-grid-tree { padding-left: 0; margin-left: -6px; }
|
|
912
|
+
.aster-grid-row:not(.aster-grid-head) .aster-grid-opener { width: 28px; height: 28px; }
|
|
913
|
+
/* Row controls are a line at the card's end, there only while they show, so a card has no empty space for them.
|
|
914
|
+
Hover shows them only where hover is real: a touch's hover stays on the last card tapped and would move
|
|
915
|
+
the content under the next tap as that card shrinks. */
|
|
916
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-controls { position: static; display: none; width: fit-content; margin: 6px 0 0 auto; }
|
|
917
|
+
.aster-grid-row:not(.aster-grid-head):is(:focus-within, [aria-selected="true"], [data-expanded]) > .aster-grid-controls,
|
|
918
|
+
.aster-grid-scroll:focus-visible .aster-grid-row[data-active-row] > .aster-grid-controls { display: flex; }
|
|
919
|
+
@media (hover: hover) {
|
|
920
|
+
.aster-grid-row:not(.aster-grid-head):hover > .aster-grid-controls { display: flex; }
|
|
921
|
+
}
|
|
922
|
+
/* An expansion takes the card's full width. */
|
|
923
|
+
.aster-grid-row:not(.aster-grid-head) > .aster-grid-expansion {
|
|
924
|
+
position: static; max-width: none; padding: var(--aster-pad) 12px;
|
|
925
|
+
margin: 8px calc(-1 * var(--aster-pad)) calc(4px - var(--aster-pad)) calc(-1 * (var(--aster-pad) + var(--level, 0) * 14px));
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
@layer aster.elements {
|
|
931
|
+
aster-tile-grid { display: block; min-width: 0; }
|
|
932
|
+
.aster-tile-grid {
|
|
933
|
+
display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min-width, 12rem)), 1fr));
|
|
934
|
+
gap: var(--tile-gap, var(--aster-gap)); padding: 3px; align-content: start; grid-auto-rows: minmax(var(--tile-height, 15rem), 1fr);
|
|
935
|
+
}
|
|
936
|
+
.aster-tile-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; gap: inherit; }
|
|
937
|
+
.aster-tile {
|
|
938
|
+
min-width: 0; padding: var(--aster-pad);
|
|
939
|
+
display: flex; flex-direction: column; gap: var(--aster-row-y);
|
|
940
|
+
border: 1px solid var(--aster-rule); border-radius: var(--aster-r-ctl);
|
|
941
|
+
background: var(--aster-surface); color: var(--aster-text);
|
|
942
|
+
transition: background var(--aster-t-micro), border-color var(--aster-t-micro);
|
|
943
|
+
}
|
|
944
|
+
.aster-tile:hover { border-color: var(--aster-text-3); }
|
|
945
|
+
.aster-tile[aria-selected="true"] { background: var(--aster-accent-soft); border-color: var(--aster-accent); }
|
|
946
|
+
.aster-tile-grid[data-layout="content"] { grid-auto-rows: auto; }
|
|
947
|
+
.aster-tile-grid[data-virtual="true"] {
|
|
948
|
+
display: block; height: var(--tile-viewport-height, 34rem); overflow: auto; overscroll-behavior: contain;
|
|
949
|
+
overflow-anchor: none; grid-auto-rows: auto; scrollbar-gutter: stable;
|
|
950
|
+
}
|
|
951
|
+
.aster-tile-canvas { display: contents; }
|
|
952
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile-canvas { display: grid; position: relative; grid-template-columns: inherit; gap: inherit; }
|
|
953
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile-row {
|
|
954
|
+
position: absolute; inset-inline: 0; grid-template-columns: inherit;
|
|
955
|
+
height: var(--tile-height, 20rem); min-height: 0;
|
|
956
|
+
}
|
|
957
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile-row[data-pinned="true"] { clip-path: inset(50%); pointer-events: none; }
|
|
958
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile { min-height: 0; position: relative; }
|
|
959
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile-content { min-height: 0; overflow: hidden; }
|
|
960
|
+
.aster-tile-grid[data-virtual="true"] .aster-tile[data-interaction="true"] .aster-tile-content { overflow: auto; }
|
|
961
|
+
.aster-tile-placeholder { color: var(--aster-text-2); background: var(--aster-sunk); }
|
|
962
|
+
.aster-tile-order { align-self: flex-start; border-radius: var(--aster-r-ctl); padding: 2px 7px; background: var(--aster-accent-soft); color: var(--aster-text); }
|
|
963
|
+
.aster-tile-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
964
|
+
.aster-tile-media {
|
|
965
|
+
position: relative; height: var(--tile-media-height, 7rem); margin-bottom: var(--aster-row-y);
|
|
966
|
+
display: grid; place-items: center; border-radius: var(--aster-r-ctl); background: var(--aster-sunk);
|
|
967
|
+
}
|
|
968
|
+
.aster-tile-media > svg { width: 3rem; height: 3rem; fill: none; stroke: var(--aster-text-2); stroke-width: 1.5; }
|
|
969
|
+
.aster-tile-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--tile-image-fit, contain); border-radius: inherit; background: var(--aster-sunk); }
|
|
970
|
+
.aster-tile-content :is(input, select, textarea) { max-width: 100%; min-width: 0; }
|
|
971
|
+
.aster-tile-title { display: block; font-weight: var(--aster-weight-strong); }
|
|
972
|
+
.aster-tile-description { display: block; margin-top: 3px; color: var(--aster-text-2); }
|
|
973
|
+
.aster-tile-actions { display: flex; gap: var(--aster-row-y); align-items: center; justify-content: flex-end; flex-wrap: wrap; }
|
|
974
|
+
.aster-tile-actions .aster-button { box-shadow: var(--aster-ring); }
|
|
975
|
+
.aster-tile-status { color: var(--aster-text-2); padding: var(--aster-row-y) 3px; font-size: .9em; }
|
|
976
|
+
.aster-tile-empty { grid-column: 1 / -1; color: var(--aster-text-2); }
|
|
977
|
+
@media (hover: hover) {
|
|
978
|
+
.aster-tile:not(:hover, :focus-within, [aria-selected="true"]) .aster-tile-actions { opacity: 0; }
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
@media (prefers-reduced-motion: reduce) {
|
|
982
|
+
.aster-tile, .aster-tile * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
|
|
983
|
+
}
|
|
984
|
+
@media (forced-colors: active) {
|
|
985
|
+
.aster-tile[aria-selected="true"] { border: 2px solid Highlight; }
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
@layer aster.elements {
|
|
989
|
+
.aster-grid-selection-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
|
|
990
|
+
.aster-grid-selection-content { flex: 1; min-width: 8ch; overflow-wrap: anywhere; }
|
|
991
|
+
.aster-grid-selection-content > :is(aster-field, aster-number-field, aster-select, aster-picker, aster-check, aster-choice) { min-width: 0; grid-template-columns: minmax(0, 1fr); }
|
|
992
|
+
.aster-grid-selection { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; }
|
|
993
|
+
.aster-grid-pick { min-width: var(--aster-ctl-tight); min-height: calc(var(--aster-ctl-tight) - 2px); padding: 2px 5px;
|
|
994
|
+
border: 1px solid var(--aster-rule); border-radius: var(--aster-r-ctl); background: var(--aster-surface); color: var(--aster-text); font-variant-numeric: tabular-nums; }
|
|
995
|
+
.aster-grid-pick[aria-pressed="true"] { background: var(--aster-accent-soft); border-color: var(--aster-accent); }
|
|
996
|
+
.aster-grid-pick:focus-visible { outline: 2px solid var(--aster-focus); outline-offset: -2px; }
|
|
997
|
+
}
|
|
998
|
+
@media (forced-colors: active) {
|
|
999
|
+
.aster-grid-pick[aria-pressed="true"] { border: 2px solid Highlight; }
|
|
1000
|
+
}
|
|
1001
|
+
@media (pointer: coarse) {
|
|
1002
|
+
.aster-component-alternative button { min-height: 44px; min-width: 44px; }
|
|
1003
|
+
.aster-tile-actions { opacity: 1; }
|
|
1004
|
+
.aster-tile-actions .aster-button { min-height: 44px; min-width: 44px; }
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/* Application composition: geometry remains CSS-owned. */
|
|
1008
|
+
.aster-composite, .aster-composite-child, .aster-composite-deck, .aster-composite-outlet { min-width:0; }
|
|
1009
|
+
.aster-composite-stack { display:flex; flex-direction:column; min-width:0; gap:var(--aster-gap, 16px); }
|
|
1010
|
+
.aster-composite-child[hidden] { display:none!important; }
|
|
1011
|
+
.aster-command-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
|
|
1012
|
+
.aster-command-error { margin-block-start:12px; padding:12px 16px; border:1px solid var(--aster-rule); border-inline-start:3px solid var(--aster-negative); border-radius:var(--aster-r-ctl); color:var(--aster-text); background:var(--aster-sunk); }
|
|
1013
|
+
.aster-command-error p { display:grid; gap:4px; margin:0; }
|
|
1014
|
+
.aster-command-error p + p { margin-block-start:12px; }
|
|
1015
|
+
.aster-command-error:empty { display:none; }
|
|
1016
|
+
|
|
1017
|
+
@layer aster.elements {
|
|
1018
|
+
aster-sidebar { display: block; min-inline-size: 0; }
|
|
1019
|
+
.aster-sidebar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
|
|
1020
|
+
.aster-sidebar li { min-inline-size: 0; }
|
|
1021
|
+
.aster-sidebar .aster-sidebar-item, .aster-sidebar summary {
|
|
1022
|
+
display: flex; align-items: center; gap: 10px; min-block-size: 44px; inline-size: 100%;
|
|
1023
|
+
padding: 10px 12px; box-sizing: border-box; border: 1px solid transparent;
|
|
1024
|
+
border-radius: var(--aster-r-ctl); background: transparent; color: var(--aster-text-2);
|
|
1025
|
+
font: inherit; text-align: start; text-decoration: none; cursor: pointer;
|
|
1026
|
+
}
|
|
1027
|
+
.aster-sidebar summary { font-weight: var(--aster-weight-label); }
|
|
1028
|
+
.aster-sidebar details > ul { padding-inline-start: 16px; margin-block: 4px; }
|
|
1029
|
+
.aster-sidebar summary::marker { content: ""; }
|
|
1030
|
+
.aster-sidebar summary::-webkit-details-marker { display: none; }
|
|
1031
|
+
.aster-sidebar summary::after { content: "⌄"; margin-inline-start: auto; }
|
|
1032
|
+
.aster-sidebar details:not([open]) > summary::after { content: "›"; }
|
|
1033
|
+
.aster-sidebar-item:hover, .aster-sidebar summary:hover { background: var(--aster-sunk); color: var(--aster-text); }
|
|
1034
|
+
.aster-sidebar-item[aria-current="page"] { color: var(--aster-accent); background: var(--aster-accent-soft); font-weight: var(--aster-weight-label); }
|
|
1035
|
+
.aster-sidebar-item:focus-visible, .aster-sidebar summary:focus-visible { outline: 2px solid var(--aster-accent); outline-offset: 2px; }
|
|
1036
|
+
.aster-sidebar-item:disabled, .aster-sidebar-item[aria-disabled="true"] { opacity: .6; cursor: default; }
|
|
1037
|
+
.aster-sidebar-icon { inline-size: 20px; flex: none; text-align: center; font-size: 18px; line-height: 1; }
|
|
1038
|
+
.aster-sidebar-icon svg { display: block; inline-size: 18px; block-size: 18px; margin-inline: auto; }
|
|
1039
|
+
.aster-sidebar-label { overflow-wrap: anywhere; }
|
|
1040
|
+
.aster-sidebar-badge { margin-inline-start: auto; padding: 1px 6px; border-radius: var(--aster-r-ctl); background: var(--aster-sunk); font-size: .8em; }
|
|
1041
|
+
.aster-sidebar[data-compact] { inline-size: 52px; }
|
|
1042
|
+
.aster-sidebar[data-compact] .aster-sidebar-label, .aster-sidebar[data-compact] .aster-sidebar-badge { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
1043
|
+
.aster-sidebar[data-compact] .aster-sidebar-item { justify-content: center; }
|
|
1044
|
+
.aster-sidebar[data-compact] details > ul { padding-inline-start: 0; }
|
|
1045
|
+
@media (forced-colors: active) {
|
|
1046
|
+
.aster-sidebar-item[aria-current="page"] { border-color: Highlight; }
|
|
1047
|
+
.aster-sidebar-item:disabled, .aster-sidebar-item[aria-disabled="true"] { color: GrayText; opacity: 1; }
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
@layer aster.elements {
|
|
1052
|
+
aster-progress-status { display: block; min-inline-size: 0; }
|
|
1053
|
+
.aster-progress-status { display: block; color: var(--aster-text-2); }
|
|
1054
|
+
.aster-progress-status[data-reserve] { min-block-size: 1.5em; }
|
|
1055
|
+
.aster-progress-status[data-phase="error"] { color: var(--aster-negative); }
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
@layer aster.elements { .aster-grid-menu .aster-menu { max-height:calc(100dvh - 24px); overflow-y:auto; } }
|