asta-ui 0.7.0 → 0.8.0
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/css/asta.css +3 -0
- package/css/asta.js +4748 -0
- package/css/components.css +5805 -0
- package/css/src/blocks.css +919 -0
- package/css/src/core.css +702 -0
- package/css/src/data.css +965 -0
- package/css/src/display.css +681 -0
- package/css/src/forms.css +861 -0
- package/css/src/overlays.css +1114 -0
- package/css/tokens.css +140 -0
- package/package.json +3 -1
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
/* Blocks: sign-in, onboarding, pricing, AI chat, checkout, properties and settings panels, team members.
|
|
2
|
+
* Class lists mirror go/ui/<name>.templ. Embedded controls use the core classes (asta-btn, asta-input, asta-field,
|
|
3
|
+
* asta-select, asta-switch, asta-checkbox, asta-avatar, asta-progress). The runtime CSS keys on the data-asta-*
|
|
4
|
+
* attributes, so keep them in the markup. Modifiers come after the base class so they win. */
|
|
5
|
+
|
|
6
|
+
/* ---- Sign-in (sign_in.templ) ----
|
|
7
|
+
* <div id="sign-in" data-asta-sign-in class="asta-sign-in"><form class="asta-sign-in-form" hx-post="/sign-in" hx-target="#sign-in" hx-swap="outerHTML">
|
|
8
|
+
* <h3 class="asta-sign-in-title">Welcome back</h3> … <button type="submit" class="asta-btn asta-sign-in-submit">…</button></form></div>
|
|
9
|
+
* A field with an error: wrap its asta-input in <div class="asta-sign-in-shake">. */
|
|
10
|
+
.asta-sign-in {
|
|
11
|
+
@apply relative w-full max-w-[380px] overflow-hidden rounded-xl bg-paper p-6 text-ink sm:p-7;
|
|
12
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)];
|
|
13
|
+
}
|
|
14
|
+
.asta-sign-in-form {
|
|
15
|
+
@apply flex flex-col;
|
|
16
|
+
}
|
|
17
|
+
.asta-sign-in-title {
|
|
18
|
+
@apply text-[20px] font-medium tracking-[-0.02em] text-ink;
|
|
19
|
+
}
|
|
20
|
+
.asta-sign-in-subtitle {
|
|
21
|
+
@apply mt-1 text-[14px] leading-snug text-mute;
|
|
22
|
+
}
|
|
23
|
+
.asta-sign-in-providers {
|
|
24
|
+
@apply mt-6 grid gap-2;
|
|
25
|
+
&:has(> :nth-child(2)) {
|
|
26
|
+
@apply grid-cols-2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.asta-sign-in-divider {
|
|
30
|
+
@apply my-5 flex items-center gap-3 text-[12px] text-mute;
|
|
31
|
+
&::before,
|
|
32
|
+
&::after {
|
|
33
|
+
@apply h-px flex-1 bg-[color-mix(in_srgb,var(--ink)_10%,transparent)] content-[''];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.asta-sign-in-spacer {
|
|
37
|
+
@apply h-6;
|
|
38
|
+
}
|
|
39
|
+
.asta-sign-in-fields {
|
|
40
|
+
@apply flex flex-col gap-3;
|
|
41
|
+
}
|
|
42
|
+
.asta-sign-in-shake {
|
|
43
|
+
@apply animate-[asta-blk-shake_.42s_cubic-bezier(.16,1,.3,1)] motion-reduce:animate-none;
|
|
44
|
+
}
|
|
45
|
+
.asta-sign-in-options {
|
|
46
|
+
@apply mt-3 flex items-center justify-between gap-3 text-[13px];
|
|
47
|
+
}
|
|
48
|
+
.asta-sign-in-link {
|
|
49
|
+
@apply text-brand outline-none hover:underline focus-visible:underline;
|
|
50
|
+
}
|
|
51
|
+
.asta-sign-in-alert {
|
|
52
|
+
@apply mt-4 rounded-lg bg-[#e5484d]/10 px-3 py-2 text-[13px] text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
53
|
+
}
|
|
54
|
+
.asta-sign-in-submit {
|
|
55
|
+
@apply mt-5 w-full;
|
|
56
|
+
}
|
|
57
|
+
.asta-sign-in-footer {
|
|
58
|
+
@apply mt-4 text-center text-[13px] text-mute;
|
|
59
|
+
& a {
|
|
60
|
+
@apply font-medium text-ink outline-none hover:underline focus-visible:underline;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.asta-sign-in-reveal {
|
|
64
|
+
@apply flex h-8 w-8 items-center justify-center rounded-lg text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
65
|
+
& > svg {
|
|
66
|
+
@apply h-4 w-4;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.asta-sign-in-reveal-slash {
|
|
70
|
+
@apply origin-center transition-[opacity,transform] duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
71
|
+
.asta-sign-in-reveal[aria-pressed="true"] & {
|
|
72
|
+
@apply scale-0 opacity-0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.asta-sign-in-done {
|
|
76
|
+
@apply flex min-h-[380px] flex-col items-center justify-center text-center animate-[asta-blk-pop_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
77
|
+
}
|
|
78
|
+
.asta-sign-in-done-icon {
|
|
79
|
+
@apply flex h-14 w-14 items-center justify-center rounded-full bg-[#30a46c] text-white;
|
|
80
|
+
& > svg {
|
|
81
|
+
@apply h-7 w-7 animate-[asta-blk-pop_.5s_.15s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.asta-sign-in-done-title {
|
|
85
|
+
@apply mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink;
|
|
86
|
+
}
|
|
87
|
+
.asta-sign-in-done-text {
|
|
88
|
+
@apply mt-1.5 max-w-[26ch] text-[14px] leading-snug text-mute;
|
|
89
|
+
& strong {
|
|
90
|
+
@apply font-normal text-ink;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ---- Onboarding (onboarding.templ) ----
|
|
95
|
+
* <div id="onboarding" data-asta-onboarding class="asta-onboarding"><div data-asta-onboarding-list> <div class="asta-onboarding-head">…</div>
|
|
96
|
+
* <ol class="asta-onboarding-steps"><li data-asta-onboarding-step class="asta-onboarding-step"><button data-asta-onboarding-toggle
|
|
97
|
+
* aria-expanded="true" aria-controls="s1" class="asta-onboarding-toggle">…</button><div id="s1" role="region" class="asta-onboarding-panel">…</div></li></ol></div></div>
|
|
98
|
+
* A finished step adds asta-onboarding-step-done. */
|
|
99
|
+
.asta-onboarding {
|
|
100
|
+
@apply relative w-full max-w-[440px] overflow-hidden rounded-[14px] bg-paper text-ink;
|
|
101
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_18px_40px_-24px_rgb(0_0_0/0.3)];
|
|
102
|
+
}
|
|
103
|
+
.asta-onboarding-done {
|
|
104
|
+
@apply flex flex-col items-center px-8 py-12 text-center animate-[asta-rise_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
105
|
+
}
|
|
106
|
+
.asta-onboarding-done-icon {
|
|
107
|
+
@apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-white animate-[asta-blk-pop_.6s_.1s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
108
|
+
& > svg {
|
|
109
|
+
@apply h-6 w-6;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.asta-onboarding-done-title {
|
|
113
|
+
@apply mt-5 text-[18px] font-medium tracking-[-0.02em] text-ink;
|
|
114
|
+
}
|
|
115
|
+
.asta-onboarding-done-text {
|
|
116
|
+
@apply mt-1.5 max-w-[30ch] text-[13.5px] leading-relaxed text-mute;
|
|
117
|
+
}
|
|
118
|
+
.asta-onboarding-done-actions {
|
|
119
|
+
@apply mt-6 flex gap-2;
|
|
120
|
+
}
|
|
121
|
+
.asta-onboarding-head {
|
|
122
|
+
@apply px-5 pb-4 pt-5;
|
|
123
|
+
}
|
|
124
|
+
.asta-onboarding-heading {
|
|
125
|
+
@apply flex items-baseline justify-between gap-4;
|
|
126
|
+
}
|
|
127
|
+
.asta-onboarding-title {
|
|
128
|
+
@apply text-[15px] font-medium tracking-[-0.01em] text-ink;
|
|
129
|
+
}
|
|
130
|
+
.asta-onboarding-count {
|
|
131
|
+
@apply text-[12.5px] tabular-nums text-mute;
|
|
132
|
+
}
|
|
133
|
+
.asta-onboarding-subtitle {
|
|
134
|
+
@apply mt-1 text-[13px] text-mute;
|
|
135
|
+
}
|
|
136
|
+
.asta-onboarding-progress {
|
|
137
|
+
@apply mt-4;
|
|
138
|
+
}
|
|
139
|
+
.asta-onboarding-steps {
|
|
140
|
+
@apply px-2 pb-2;
|
|
141
|
+
}
|
|
142
|
+
.asta-onboarding-step {
|
|
143
|
+
@apply rounded-[10px] transition-colors duration-300;
|
|
144
|
+
&:has(> [aria-expanded="true"]) {
|
|
145
|
+
@apply bg-paper-2;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.asta-onboarding-toggle {
|
|
149
|
+
@apply flex w-full items-center gap-3 rounded-[10px] px-3 py-3 text-left outline-none focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
150
|
+
}
|
|
151
|
+
.asta-onboarding-label {
|
|
152
|
+
@apply flex-1 text-[14px] text-ink transition-colors duration-300;
|
|
153
|
+
.asta-onboarding-step-done & {
|
|
154
|
+
@apply text-mute;
|
|
155
|
+
}
|
|
156
|
+
.asta-onboarding-step-done [aria-expanded="true"] > & {
|
|
157
|
+
@apply text-ink;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
.asta-onboarding-duration {
|
|
161
|
+
@apply text-[12px] tabular-nums text-mute;
|
|
162
|
+
}
|
|
163
|
+
.asta-onboarding-chevron {
|
|
164
|
+
@apply h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
165
|
+
[aria-expanded="true"] > & {
|
|
166
|
+
@apply rotate-180;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.asta-onboarding-mark {
|
|
170
|
+
@apply relative flex h-5 w-5 shrink-0 items-center justify-center;
|
|
171
|
+
}
|
|
172
|
+
.asta-onboarding-ring {
|
|
173
|
+
@apply absolute inset-0 scale-100 rounded-full opacity-100 transition-[opacity,transform] duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
174
|
+
@apply shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)];
|
|
175
|
+
[aria-expanded="true"] & {
|
|
176
|
+
@apply shadow-[inset_0_0_0_1.5px_var(--ink)];
|
|
177
|
+
}
|
|
178
|
+
.asta-onboarding-step-done & {
|
|
179
|
+
@apply scale-75 opacity-0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.asta-onboarding-tick {
|
|
183
|
+
@apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-white opacity-0 transition-[opacity,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)];
|
|
184
|
+
& > svg {
|
|
185
|
+
@apply h-3 w-3;
|
|
186
|
+
}
|
|
187
|
+
.asta-onboarding-step-done & {
|
|
188
|
+
@apply scale-100 opacity-100;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.asta-onboarding-panel {
|
|
192
|
+
@apply pb-4 pl-11 pr-4 animate-[asta-rise_.45s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
193
|
+
}
|
|
194
|
+
.asta-onboarding-desc {
|
|
195
|
+
@apply text-[13px] leading-relaxed text-mute;
|
|
196
|
+
}
|
|
197
|
+
.asta-onboarding-error {
|
|
198
|
+
@apply mt-2 text-[12.5px] text-[#e5484d];
|
|
199
|
+
}
|
|
200
|
+
.asta-onboarding-actions {
|
|
201
|
+
@apply mt-3.5 flex items-center gap-2;
|
|
202
|
+
}
|
|
203
|
+
.asta-onboarding-done-note {
|
|
204
|
+
@apply flex items-center gap-1.5 text-[12.5px] text-mute;
|
|
205
|
+
& > svg {
|
|
206
|
+
@apply h-3.5 w-3.5 text-brand;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* ---- Pricing (pricing.templ) ----
|
|
211
|
+
* <div data-asta-pricing class="asta-plans"><div role="radiogroup" class="asta-plans-period"><span data-asta-pricing-pill class="asta-plans-pill"></span>
|
|
212
|
+
* <label class="asta-plans-option"><input type="radio" name="billing" value="monthly" checked class="sr-only">Monthly</label>…</div>
|
|
213
|
+
* <div class="asta-plans-grid"><div class="asta-plans-card">…</div><div class="asta-plans-card asta-plans-card-featured">…</div></div></div>
|
|
214
|
+
* Rolling digits keep the runtime classes: <span class="asta-pricing-digit asta-plans-digit" style="--m:1;--y:0;--dl:0ms">
|
|
215
|
+
* <span class="asta-pricing-strip asta-plans-strip"><span>0</span>…<span>9</span><span></span></span></span> */
|
|
216
|
+
.asta-plans {
|
|
217
|
+
@apply @container flex w-full flex-col items-center gap-6 text-ink;
|
|
218
|
+
}
|
|
219
|
+
.asta-plans-period {
|
|
220
|
+
@apply relative grid grid-cols-2 rounded-[10px] bg-paper-2 p-1 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)];
|
|
221
|
+
}
|
|
222
|
+
.asta-plans-pill {
|
|
223
|
+
@apply absolute bottom-1 left-1 top-1 w-[calc(50%-4px)] rounded-[7px] bg-paper shadow-[0_1px_2px_rgb(0_0_0/0.12),0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)];
|
|
224
|
+
}
|
|
225
|
+
.asta-plans-option {
|
|
226
|
+
@apply relative z-10 flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[7px] px-4 text-[13px] font-medium text-mute transition-colors duration-300;
|
|
227
|
+
@apply hover:text-ink has-[:checked]:text-ink has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
|
|
228
|
+
}
|
|
229
|
+
.asta-plans-saving {
|
|
230
|
+
@apply rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-white;
|
|
231
|
+
}
|
|
232
|
+
.asta-plans-grid {
|
|
233
|
+
@apply grid w-full gap-3 @min-[540px]:grid-cols-3;
|
|
234
|
+
}
|
|
235
|
+
.asta-plans-card {
|
|
236
|
+
@apply relative flex flex-col rounded-xl p-4 @min-[700px]:p-5 transition-transform duration-500 ease-[cubic-bezier(.16,1,.3,1)];
|
|
237
|
+
@apply bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
238
|
+
}
|
|
239
|
+
.asta-plans-card-featured {
|
|
240
|
+
@apply bg-ink text-paper shadow-[0_24px_50px_-24px_rgb(0_0_0/0.5)] @min-[540px]:-translate-y-2;
|
|
241
|
+
}
|
|
242
|
+
.asta-plans-card-head {
|
|
243
|
+
@apply flex items-center justify-between gap-2;
|
|
244
|
+
}
|
|
245
|
+
.asta-plans-name {
|
|
246
|
+
@apply text-[15px] font-medium tracking-[-0.01em];
|
|
247
|
+
}
|
|
248
|
+
.asta-plans-flag {
|
|
249
|
+
@apply rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-white;
|
|
250
|
+
}
|
|
251
|
+
.asta-plans-desc {
|
|
252
|
+
@apply mt-1 text-[12.5px] leading-snug text-mute;
|
|
253
|
+
.asta-plans-card-featured & {
|
|
254
|
+
@apply text-paper/60;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
.asta-plans-price {
|
|
258
|
+
@apply mt-5 flex items-end gap-1;
|
|
259
|
+
}
|
|
260
|
+
.asta-plans-amount {
|
|
261
|
+
@apply flex items-start font-medium leading-none tracking-[-0.04em];
|
|
262
|
+
}
|
|
263
|
+
.asta-plans-currency {
|
|
264
|
+
@apply mr-0.5 mt-1 text-[20px];
|
|
265
|
+
}
|
|
266
|
+
.asta-plans-number {
|
|
267
|
+
@apply inline-flex text-[40px] tabular-nums;
|
|
268
|
+
}
|
|
269
|
+
.asta-plans-digits {
|
|
270
|
+
@apply inline-flex;
|
|
271
|
+
}
|
|
272
|
+
.asta-plans-digit {
|
|
273
|
+
@apply relative inline-block h-[1em] w-[0.62em] overflow-hidden;
|
|
274
|
+
}
|
|
275
|
+
.asta-plans-strip {
|
|
276
|
+
@apply absolute inset-x-0 top-0 flex flex-col;
|
|
277
|
+
& > span {
|
|
278
|
+
@apply block h-[1em] text-center leading-[1em];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
.asta-plans-per {
|
|
282
|
+
@apply pb-1 text-[12px] text-mute;
|
|
283
|
+
.asta-plans-card-featured & {
|
|
284
|
+
@apply text-paper/55;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
.asta-plans-note {
|
|
288
|
+
@apply mt-1.5 h-4 text-[11.5px] text-mute;
|
|
289
|
+
.asta-plans-card-featured & {
|
|
290
|
+
@apply text-paper/55;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
.asta-plans-note-none {
|
|
294
|
+
@apply invisible;
|
|
295
|
+
}
|
|
296
|
+
.asta-plans-cta {
|
|
297
|
+
@apply mt-5 w-full;
|
|
298
|
+
.asta-plans-card-featured & {
|
|
299
|
+
@apply shadow-none;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
.asta-plans-features {
|
|
303
|
+
@apply mt-5 flex flex-col gap-2;
|
|
304
|
+
}
|
|
305
|
+
.asta-plans-feature {
|
|
306
|
+
@apply flex gap-2 text-[13px] leading-snug text-ink-2;
|
|
307
|
+
& > svg {
|
|
308
|
+
@apply mt-[3px] h-3.5 w-3.5 shrink-0 text-ink;
|
|
309
|
+
}
|
|
310
|
+
.asta-plans-card-featured & {
|
|
311
|
+
@apply text-paper/85;
|
|
312
|
+
& > svg {
|
|
313
|
+
@apply text-brand;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* ---- AI chat (ai_chat.templ) ----
|
|
319
|
+
* <div id="chat" data-asta-chat class="asta-ai-chat"> <header class="asta-ai-chat-header">…</header>
|
|
320
|
+
* <div data-asta-chat-log role="log" class="asta-ai-chat-log"><div data-asta-chat-empty class="asta-ai-chat-empty">…</div><ol data-asta-chat-list class="asta-ai-chat-list">…</ol></div>
|
|
321
|
+
* <form data-asta-chat-form class="asta-ai-chat-form" hx-post="/chat" hx-target="#chat-list" hx-swap="beforeend">…</form></div>
|
|
322
|
+
* Messages: <li data-role="user" class="asta-ai-chat-user"><p class="asta-ai-chat-bubble">Hi</p></li> and
|
|
323
|
+
* <li data-role="assistant" class="asta-ai-chat-reply">…</li>. Add asta-ai-chat-in to messages that arrive live. */
|
|
324
|
+
.asta-ai-chat {
|
|
325
|
+
@apply flex h-[540px] w-full flex-col overflow-hidden rounded-[14px] bg-paper text-ink;
|
|
326
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_1px_2px_rgb(0_0_0/0.04)];
|
|
327
|
+
}
|
|
328
|
+
.asta-ai-chat-header {
|
|
329
|
+
@apply flex items-center gap-2.5 px-5 pb-3 pt-4;
|
|
330
|
+
}
|
|
331
|
+
.asta-ai-chat-title {
|
|
332
|
+
@apply text-[14px] font-medium tracking-[-0.01em] text-ink;
|
|
333
|
+
}
|
|
334
|
+
.asta-ai-chat-mark {
|
|
335
|
+
@apply grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-[color-mix(in_srgb,var(--brand)_10%,transparent)] text-brand;
|
|
336
|
+
& > svg {
|
|
337
|
+
@apply h-3.5 w-3.5;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
.asta-ai-chat-log {
|
|
341
|
+
@apply relative min-h-0 flex-1 overflow-y-auto px-5 [scrollbar-width:thin];
|
|
342
|
+
}
|
|
343
|
+
.asta-ai-chat-empty {
|
|
344
|
+
@apply flex h-full flex-col items-center justify-center pb-6 text-center animate-[asta-blk-in_.5s_cubic-bezier(.16,1,.3,1)];
|
|
345
|
+
}
|
|
346
|
+
.asta-ai-chat-greeting {
|
|
347
|
+
@apply text-[22px] font-medium tracking-[-0.03em] text-ink;
|
|
348
|
+
}
|
|
349
|
+
.asta-ai-chat-suggestions {
|
|
350
|
+
@apply mt-6 flex max-w-[440px] flex-wrap justify-center gap-2;
|
|
351
|
+
}
|
|
352
|
+
.asta-ai-chat-suggest {
|
|
353
|
+
@apply rounded-lg bg-paper-2 px-3 py-2 text-left text-[13px] leading-snug text-ink-2 outline-none transition-[color,background-color,transform] duration-300;
|
|
354
|
+
@apply animate-[asta-blk-in_.5s_cubic-bezier(.16,1,.3,1)_80ms_both] hover:-translate-y-px hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
355
|
+
&:nth-child(2) {
|
|
356
|
+
animation-delay: 130ms;
|
|
357
|
+
}
|
|
358
|
+
&:nth-child(3) {
|
|
359
|
+
animation-delay: 180ms;
|
|
360
|
+
}
|
|
361
|
+
&:nth-child(n + 4) {
|
|
362
|
+
animation-delay: 230ms;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
.asta-ai-chat-list {
|
|
366
|
+
@apply flex flex-col gap-6 py-2 empty:py-0;
|
|
367
|
+
}
|
|
368
|
+
.asta-ai-chat-in {
|
|
369
|
+
@apply animate-[asta-blk-in_.4s_cubic-bezier(.16,1,.3,1)];
|
|
370
|
+
}
|
|
371
|
+
.asta-ai-chat-user {
|
|
372
|
+
@apply flex justify-end;
|
|
373
|
+
}
|
|
374
|
+
.asta-ai-chat-bubble {
|
|
375
|
+
@apply max-w-[80%] whitespace-pre-wrap rounded-xl bg-paper-2 px-3.5 py-2.5 text-[14px] leading-relaxed text-ink;
|
|
376
|
+
}
|
|
377
|
+
.asta-ai-chat-reply {
|
|
378
|
+
@apply flex gap-3;
|
|
379
|
+
}
|
|
380
|
+
.asta-ai-chat-body {
|
|
381
|
+
@apply min-w-0 flex-1 pt-0.5;
|
|
382
|
+
}
|
|
383
|
+
.asta-ai-chat-text {
|
|
384
|
+
@apply whitespace-pre-wrap text-[14px] leading-relaxed text-ink;
|
|
385
|
+
}
|
|
386
|
+
.asta-ai-chat-meta {
|
|
387
|
+
@apply mt-1.5 text-[12.5px] text-mute;
|
|
388
|
+
}
|
|
389
|
+
.asta-ai-chat-tools {
|
|
390
|
+
@apply -ml-1.5 mt-1.5 flex items-center gap-0.5 opacity-0 transition-opacity duration-300 focus-within:opacity-100;
|
|
391
|
+
.asta-ai-chat-reply:hover &,
|
|
392
|
+
.asta-ai-chat-reply:last-child & {
|
|
393
|
+
@apply opacity-100;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
.asta-ai-chat-copy {
|
|
397
|
+
@apply grid h-7 w-7 place-items-center rounded-md text-mute outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
398
|
+
& > svg {
|
|
399
|
+
@apply h-3.5 w-3.5;
|
|
400
|
+
}
|
|
401
|
+
& > svg + svg {
|
|
402
|
+
@apply hidden animate-[asta-scale-in_.3s_cubic-bezier(.16,1,.3,1)];
|
|
403
|
+
}
|
|
404
|
+
&[data-copied] > svg:first-child {
|
|
405
|
+
@apply hidden;
|
|
406
|
+
}
|
|
407
|
+
&[data-copied] > svg + svg {
|
|
408
|
+
@apply block;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
.asta-ai-chat-dots {
|
|
412
|
+
@apply inline-flex h-6 items-center gap-1;
|
|
413
|
+
& > span {
|
|
414
|
+
@apply h-1.5 w-1.5 rounded-full bg-mute animate-[asta-blk-dot_1.1s_cubic-bezier(.16,1,.3,1)_infinite];
|
|
415
|
+
}
|
|
416
|
+
& > span:nth-child(2) {
|
|
417
|
+
animation-delay: 140ms;
|
|
418
|
+
}
|
|
419
|
+
& > span:nth-child(3) {
|
|
420
|
+
animation-delay: 280ms;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
.asta-ai-chat-form {
|
|
424
|
+
@apply px-4 pb-4 pt-2;
|
|
425
|
+
}
|
|
426
|
+
.asta-ai-chat-composer {
|
|
427
|
+
@apply flex items-end gap-2 rounded-xl bg-paper p-1.5 pl-3.5 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)] transition-shadow duration-200;
|
|
428
|
+
@apply focus-within:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_14%,transparent)];
|
|
429
|
+
}
|
|
430
|
+
.asta-ai-chat-input {
|
|
431
|
+
@apply block max-h-36 min-h-[36px] flex-1 resize-none bg-transparent py-2 text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
432
|
+
}
|
|
433
|
+
.asta-ai-chat-send {
|
|
434
|
+
@apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-white outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35;
|
|
435
|
+
@apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&.htmx-request]:pointer-events-none;
|
|
436
|
+
& > svg {
|
|
437
|
+
@apply h-4 w-4 transition-opacity;
|
|
438
|
+
}
|
|
439
|
+
& > span {
|
|
440
|
+
@apply absolute inset-0 grid place-items-center opacity-0 transition-opacity [&>svg]:h-4 [&>svg]:w-4 [&>svg]:animate-spin;
|
|
441
|
+
}
|
|
442
|
+
&.htmx-request > svg {
|
|
443
|
+
@apply opacity-0;
|
|
444
|
+
}
|
|
445
|
+
&.htmx-request > span {
|
|
446
|
+
@apply opacity-100;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
.asta-ai-chat-note {
|
|
450
|
+
@apply mt-2 text-center text-[11.5px] text-mute;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* ---- Checkout (checkout.templ) ----
|
|
454
|
+
* <form id="checkout" data-asta-checkout class="asta-checkout-form" hx-post="/checkout" hx-target="#checkout" hx-swap="outerHTML">
|
|
455
|
+
* <div class="asta-checkout-main"><div class="asta-checkout-steps"><fieldset class="asta-checkout-section">…</fieldset>…</div></div>
|
|
456
|
+
* <aside data-asta-checkout-summary class="asta-checkout-summary">…</aside></form>
|
|
457
|
+
* Amounts that roll: <span data-asta-money="total" class="asta-checkout-amount"><span>$84.00</span></span> */
|
|
458
|
+
.asta-checkout-form {
|
|
459
|
+
@apply grid w-full gap-8 text-ink md:grid-cols-[minmax(0,1fr)_340px] md:gap-10;
|
|
460
|
+
}
|
|
461
|
+
.asta-checkout-main {
|
|
462
|
+
@apply min-w-0;
|
|
463
|
+
}
|
|
464
|
+
.asta-checkout-done {
|
|
465
|
+
@apply flex h-full min-h-[420px] flex-col items-start justify-center animate-[asta-blk-in_.5s_cubic-bezier(.16,1,.3,1)];
|
|
466
|
+
}
|
|
467
|
+
.asta-checkout-done-icon {
|
|
468
|
+
@apply grid h-12 w-12 place-items-center rounded-full bg-brand text-white animate-[asta-blk-pop_.55s_.1s_cubic-bezier(.16,1,.3,1)_both];
|
|
469
|
+
& > svg {
|
|
470
|
+
@apply h-5 w-5;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
.asta-checkout-done-title {
|
|
474
|
+
@apply mt-6 text-[24px] font-medium tracking-[-0.03em] text-ink;
|
|
475
|
+
}
|
|
476
|
+
.asta-checkout-done-text {
|
|
477
|
+
@apply mt-2 max-w-[360px] text-[14px] leading-relaxed text-mute;
|
|
478
|
+
}
|
|
479
|
+
.asta-checkout-steps {
|
|
480
|
+
@apply grid gap-9;
|
|
481
|
+
}
|
|
482
|
+
.asta-checkout-section {
|
|
483
|
+
@apply min-w-0;
|
|
484
|
+
}
|
|
485
|
+
.asta-checkout-legend {
|
|
486
|
+
@apply mb-4 flex items-center gap-2.5 text-[14px] font-medium tracking-[-0.01em] text-ink;
|
|
487
|
+
}
|
|
488
|
+
.asta-checkout-num {
|
|
489
|
+
@apply grid h-5 w-5 place-items-center rounded-md bg-paper-2 text-[11px] tabular-nums text-ink-2;
|
|
490
|
+
}
|
|
491
|
+
.asta-checkout-fields {
|
|
492
|
+
@apply grid gap-3;
|
|
493
|
+
}
|
|
494
|
+
.asta-checkout-pair {
|
|
495
|
+
@apply grid grid-cols-2 gap-3;
|
|
496
|
+
}
|
|
497
|
+
.asta-checkout-shipping {
|
|
498
|
+
@apply mt-1 grid gap-2 sm:grid-cols-2;
|
|
499
|
+
}
|
|
500
|
+
.asta-checkout-option {
|
|
501
|
+
@apply relative flex cursor-pointer items-start justify-between gap-3 rounded-[10px] p-3 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)] transition-shadow duration-300;
|
|
502
|
+
@apply hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_26%,transparent)] has-[:checked]:shadow-[inset_0_0_0_1.5px_var(--brand)] has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
|
|
503
|
+
}
|
|
504
|
+
.asta-checkout-option-label {
|
|
505
|
+
@apply block text-[13.5px] text-ink;
|
|
506
|
+
}
|
|
507
|
+
.asta-checkout-option-eta {
|
|
508
|
+
@apply block text-[12px] text-mute;
|
|
509
|
+
}
|
|
510
|
+
.asta-checkout-option-price {
|
|
511
|
+
@apply text-[13px] tabular-nums text-ink;
|
|
512
|
+
}
|
|
513
|
+
.asta-checkout-card-glyph {
|
|
514
|
+
@apply !h-3.5 !w-5;
|
|
515
|
+
}
|
|
516
|
+
.asta-checkout-pay {
|
|
517
|
+
@apply w-full;
|
|
518
|
+
}
|
|
519
|
+
.asta-checkout-note {
|
|
520
|
+
@apply mt-3 text-center text-[12px] text-mute;
|
|
521
|
+
}
|
|
522
|
+
.asta-checkout-error {
|
|
523
|
+
@apply mt-3 text-center text-[12.5px] text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
524
|
+
}
|
|
525
|
+
.asta-checkout-summary {
|
|
526
|
+
@apply h-max rounded-[14px] bg-paper-2 p-5 md:sticky md:top-4;
|
|
527
|
+
}
|
|
528
|
+
.asta-checkout-summary-title {
|
|
529
|
+
@apply text-[14px] font-medium tracking-[-0.01em] text-ink;
|
|
530
|
+
}
|
|
531
|
+
.asta-checkout-items {
|
|
532
|
+
@apply mt-4 grid gap-4;
|
|
533
|
+
}
|
|
534
|
+
.asta-checkout-item {
|
|
535
|
+
@apply flex gap-3;
|
|
536
|
+
}
|
|
537
|
+
.asta-checkout-thumb {
|
|
538
|
+
@apply grid h-14 w-14 shrink-0 place-items-center rounded-[10px] bg-paper object-cover text-[15px] font-medium text-mute;
|
|
539
|
+
}
|
|
540
|
+
.asta-checkout-item-body {
|
|
541
|
+
@apply min-w-0 flex-1;
|
|
542
|
+
}
|
|
543
|
+
.asta-checkout-item-head {
|
|
544
|
+
@apply flex items-baseline justify-between gap-3;
|
|
545
|
+
& > .asta-checkout-amount {
|
|
546
|
+
@apply text-[13px] text-ink;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
.asta-checkout-item-name {
|
|
550
|
+
@apply truncate text-[13.5px] text-ink;
|
|
551
|
+
}
|
|
552
|
+
.asta-checkout-item-variant {
|
|
553
|
+
@apply text-[12px] text-mute;
|
|
554
|
+
}
|
|
555
|
+
.asta-checkout-amount {
|
|
556
|
+
@apply inline-flex overflow-hidden tabular-nums;
|
|
557
|
+
& > span {
|
|
558
|
+
@apply inline-block;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
.asta-checkout-qty {
|
|
562
|
+
@apply -ml-1 mt-1 inline-flex items-center gap-1;
|
|
563
|
+
}
|
|
564
|
+
.asta-checkout-qty-btn {
|
|
565
|
+
@apply grid h-6 w-6 place-items-center rounded-md text-ink-2 outline-none transition-colors duration-200 hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 disabled:opacity-35 disabled:hover:bg-transparent;
|
|
566
|
+
& > svg {
|
|
567
|
+
@apply h-3 w-3;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
.asta-checkout-qty-text {
|
|
571
|
+
@apply w-5 text-center text-[12.5px] tabular-nums text-ink;
|
|
572
|
+
}
|
|
573
|
+
.asta-checkout-promo {
|
|
574
|
+
@apply mt-5;
|
|
575
|
+
}
|
|
576
|
+
.asta-checkout-promo-toggle {
|
|
577
|
+
@apply w-max cursor-pointer list-none rounded text-[12.5px] text-ink-2 underline decoration-[color-mix(in_srgb,var(--ink)_25%,transparent)] underline-offset-4 outline-none;
|
|
578
|
+
@apply hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 [&::-webkit-details-marker]:hidden;
|
|
579
|
+
details[open] > & {
|
|
580
|
+
@apply hidden;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
.asta-checkout-promo-row {
|
|
584
|
+
@apply flex gap-2 animate-[asta-blk-in_.3s_cubic-bezier(.16,1,.3,1)];
|
|
585
|
+
}
|
|
586
|
+
.asta-checkout-promo-applied {
|
|
587
|
+
@apply flex items-center justify-between text-[12.5px] text-ink-2;
|
|
588
|
+
& strong {
|
|
589
|
+
@apply font-medium text-ink;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
.asta-checkout-promo-remove {
|
|
593
|
+
@apply rounded text-mute outline-none hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 disabled:opacity-40;
|
|
594
|
+
}
|
|
595
|
+
.asta-checkout-promo-msg {
|
|
596
|
+
@apply mt-1.5 min-h-4 text-[12px] text-mute;
|
|
597
|
+
}
|
|
598
|
+
.asta-checkout-totals {
|
|
599
|
+
@apply mt-3 grid gap-2;
|
|
600
|
+
& > div {
|
|
601
|
+
@apply flex items-baseline justify-between gap-4 text-[13px];
|
|
602
|
+
}
|
|
603
|
+
& dt {
|
|
604
|
+
@apply text-mute;
|
|
605
|
+
}
|
|
606
|
+
& dd {
|
|
607
|
+
@apply text-ink;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
.asta-checkout-discount {
|
|
611
|
+
@apply animate-[asta-blk-in_.35s_cubic-bezier(.16,1,.3,1)];
|
|
612
|
+
& dd {
|
|
613
|
+
@apply text-brand;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
.asta-checkout-totals > .asta-checkout-total {
|
|
617
|
+
@apply mt-3 pt-1;
|
|
618
|
+
& dt {
|
|
619
|
+
@apply text-[14px] font-medium text-ink;
|
|
620
|
+
}
|
|
621
|
+
& dd {
|
|
622
|
+
@apply text-[20px] font-medium tracking-[-0.02em];
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* ---- Properties panel (properties_panel.templ) ----
|
|
627
|
+
* <form data-asta-props class="asta-properties" hx-post="/props" hx-trigger="change" hx-swap="none"><div class="asta-properties-header">…</div>
|
|
628
|
+
* <div class="asta-properties-body"><details open class="asta-prop-section"><summary class="asta-prop-summary">…Layout</summary>
|
|
629
|
+
* <div data-asta-props-body class="asta-prop-content"><div class="asta-prop-row"><span class="asta-prop-label">Size</span><div class="asta-prop-cells">
|
|
630
|
+
* <label data-asta-prop-scrub class="asta-prop-number">…</label></div></div></div></details></div></form> */
|
|
631
|
+
.asta-properties {
|
|
632
|
+
@apply w-full overflow-hidden rounded-[12px] bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_12px_32px_-16px_rgb(0_0_0/0.22)];
|
|
633
|
+
}
|
|
634
|
+
.asta-properties-header {
|
|
635
|
+
@apply flex h-11 items-center gap-2 px-3.5;
|
|
636
|
+
}
|
|
637
|
+
.asta-properties-kind {
|
|
638
|
+
@apply rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] px-1.5 py-0.5 text-[11px] text-ink-2;
|
|
639
|
+
}
|
|
640
|
+
.asta-properties-title {
|
|
641
|
+
@apply min-w-0 flex-1 truncate text-[13px] font-medium text-ink;
|
|
642
|
+
}
|
|
643
|
+
.asta-properties-body {
|
|
644
|
+
@apply pb-1.5;
|
|
645
|
+
}
|
|
646
|
+
.asta-prop-section {
|
|
647
|
+
@apply relative px-3.5 pt-2.5;
|
|
648
|
+
}
|
|
649
|
+
.asta-prop-summary {
|
|
650
|
+
@apply flex h-7 w-max cursor-pointer list-none items-center gap-1 rounded-[4px] text-[11.5px] font-medium text-ink outline-none focus-visible:shadow-[0_0_0_2px_var(--brand)];
|
|
651
|
+
& > svg {
|
|
652
|
+
@apply h-3 w-3 text-mute transition-transform duration-200 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
653
|
+
}
|
|
654
|
+
.asta-prop-section[open] > & > svg {
|
|
655
|
+
@apply rotate-90;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
.asta-prop-action {
|
|
659
|
+
@apply absolute right-3.5 top-2.5 flex h-7 items-center;
|
|
660
|
+
}
|
|
661
|
+
.asta-prop-content {
|
|
662
|
+
@apply space-y-1.5 pb-2 pt-1;
|
|
663
|
+
}
|
|
664
|
+
.asta-prop-row {
|
|
665
|
+
@apply grid grid-cols-1 items-center gap-2;
|
|
666
|
+
&:has(> .asta-prop-label) {
|
|
667
|
+
@apply grid-cols-[64px_1fr];
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
.asta-prop-label {
|
|
671
|
+
@apply truncate text-[11.5px] text-mute;
|
|
672
|
+
}
|
|
673
|
+
.asta-prop-cells {
|
|
674
|
+
@apply grid grid-cols-2 gap-1.5;
|
|
675
|
+
}
|
|
676
|
+
.asta-prop-cells-1 {
|
|
677
|
+
@apply grid-cols-1;
|
|
678
|
+
}
|
|
679
|
+
.asta-prop-cells-3 {
|
|
680
|
+
@apply grid-cols-3;
|
|
681
|
+
}
|
|
682
|
+
.asta-prop-cells-4 {
|
|
683
|
+
@apply grid-cols-4;
|
|
684
|
+
}
|
|
685
|
+
.asta-prop-number,
|
|
686
|
+
.asta-prop-color {
|
|
687
|
+
@apply flex h-7 min-w-0 items-center rounded-[6px] bg-[color-mix(in_srgb,var(--ink)_5%,transparent)] text-[12px] text-ink transition-[background-color,box-shadow] duration-150;
|
|
688
|
+
@apply hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] focus-within:bg-paper focus-within:shadow-[inset_0_0_0_1.5px_var(--brand)];
|
|
689
|
+
&:has(:disabled) {
|
|
690
|
+
@apply pointer-events-none opacity-45;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
.asta-prop-number[data-scrubbing] {
|
|
694
|
+
@apply bg-paper shadow-[inset_0_0_0_1.5px_var(--brand)];
|
|
695
|
+
}
|
|
696
|
+
.asta-prop-handle {
|
|
697
|
+
@apply grid h-full w-6 shrink-0 cursor-ew-resize touch-none select-none place-items-center text-[11px] text-mute [&>svg]:h-3.5 [&>svg]:w-3.5;
|
|
698
|
+
}
|
|
699
|
+
.asta-prop-input {
|
|
700
|
+
@apply h-full min-w-0 flex-1 bg-transparent pr-1.5 font-mono text-[11.5px] tabular-nums outline-none;
|
|
701
|
+
}
|
|
702
|
+
.asta-prop-unit {
|
|
703
|
+
@apply shrink-0 pr-2 text-[11px] text-mute;
|
|
704
|
+
}
|
|
705
|
+
.asta-prop-swatch {
|
|
706
|
+
@apply relative ml-1 h-5 w-5 shrink-0 cursor-pointer overflow-hidden rounded-[4px] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_15%,transparent)];
|
|
707
|
+
& > input {
|
|
708
|
+
@apply absolute inset-0 cursor-pointer opacity-0;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
.asta-prop-hex {
|
|
712
|
+
@apply h-full min-w-0 flex-1 bg-transparent px-2 font-mono text-[11.5px] uppercase outline-none;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/* ---- Settings panel (settings_panel.templ) ----
|
|
716
|
+
* <form data-asta-settings class="asta-settings-panel" hx-post="/settings" hx-swap="none" hx-indicator="find [data-asta-settings-save]">
|
|
717
|
+
* <div class="asta-settings-body"><section class="asta-settings-section">…<div class="asta-settings-row">…</div></section></div>
|
|
718
|
+
* <div data-asta-settings-bar class="asta-settings-savebar">…</div></form>
|
|
719
|
+
* Autosave: data-autosave hx-trigger="change" on the form and no save bar. */
|
|
720
|
+
.asta-settings-panel {
|
|
721
|
+
@apply relative w-full max-w-[520px] overflow-hidden rounded-xl bg-paper text-ink;
|
|
722
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_18px_40px_-24px_rgb(0_0_0/0.3)];
|
|
723
|
+
}
|
|
724
|
+
.asta-settings-body {
|
|
725
|
+
@apply max-h-[440px] overflow-y-auto px-5 pb-24 pt-5 sm:px-6 [&>section+section]:shadow-[inset_0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)];
|
|
726
|
+
.asta-settings-panel[data-autosave] > & {
|
|
727
|
+
@apply pb-2;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
.asta-settings-savebar {
|
|
731
|
+
@apply pointer-events-none absolute inset-x-3 bottom-3;
|
|
732
|
+
}
|
|
733
|
+
.asta-settings-toast {
|
|
734
|
+
@apply flex items-center gap-2 rounded-[10px] bg-ink py-2 pl-4 pr-2 text-paper shadow-[0_12px_30px_-10px_rgb(0_0_0/0.5)];
|
|
735
|
+
}
|
|
736
|
+
.asta-settings-status {
|
|
737
|
+
@apply flex min-w-0 flex-1 items-center gap-2 text-[13.5px];
|
|
738
|
+
}
|
|
739
|
+
.asta-settings-saved-msg {
|
|
740
|
+
@apply flex items-center gap-2;
|
|
741
|
+
& > svg {
|
|
742
|
+
@apply h-4 w-4 shrink-0 text-[#30a46c];
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
.asta-settings-unsaved-msg {
|
|
746
|
+
@apply flex min-w-0 items-center gap-2;
|
|
747
|
+
& > span:last-child {
|
|
748
|
+
@apply truncate;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
.asta-settings-dot {
|
|
752
|
+
@apply h-1.5 w-1.5 shrink-0 rounded-full bg-brand;
|
|
753
|
+
}
|
|
754
|
+
.asta-settings-actions {
|
|
755
|
+
@apply flex items-center gap-2;
|
|
756
|
+
}
|
|
757
|
+
.asta-settings-reset {
|
|
758
|
+
@apply text-paper/70 hover:bg-paper/10 hover:text-paper;
|
|
759
|
+
}
|
|
760
|
+
.asta-settings-section {
|
|
761
|
+
@apply py-5 first:pt-0;
|
|
762
|
+
}
|
|
763
|
+
.asta-settings-heading {
|
|
764
|
+
@apply mb-3 text-[12px] font-medium uppercase tracking-[0.06em] text-mute;
|
|
765
|
+
&:has(+ .asta-settings-desc) {
|
|
766
|
+
@apply mb-1;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
.asta-settings-desc {
|
|
770
|
+
@apply mb-3 text-[13px] leading-snug text-mute;
|
|
771
|
+
}
|
|
772
|
+
.asta-settings-rows {
|
|
773
|
+
@apply flex flex-col gap-3 [&>label]:py-1;
|
|
774
|
+
}
|
|
775
|
+
.asta-settings-row {
|
|
776
|
+
@apply flex items-center justify-between gap-4;
|
|
777
|
+
& > div:first-child {
|
|
778
|
+
@apply min-w-0;
|
|
779
|
+
}
|
|
780
|
+
& > div:last-child {
|
|
781
|
+
@apply shrink-0;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
.asta-settings-row-label {
|
|
785
|
+
@apply block text-[14px] text-ink;
|
|
786
|
+
}
|
|
787
|
+
.asta-settings-row-desc {
|
|
788
|
+
@apply mt-0.5 text-[12.5px] leading-snug text-mute;
|
|
789
|
+
}
|
|
790
|
+
.asta-settings-theme {
|
|
791
|
+
@apply grid grid-cols-3 gap-2;
|
|
792
|
+
}
|
|
793
|
+
.asta-settings-theme-option {
|
|
794
|
+
@apply flex cursor-pointer flex-col items-start gap-2 rounded-[10px] p-2 text-left shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] transition-shadow duration-300;
|
|
795
|
+
@apply hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_26%,transparent)] has-[:checked]:!shadow-[inset_0_0_0_2px_var(--brand)] has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
|
|
796
|
+
}
|
|
797
|
+
.asta-settings-swatch {
|
|
798
|
+
@apply h-10 w-full rounded-lg bg-[#fcfcfb] shadow-[inset_0_0_0_1px_rgb(0_0_0/0.08)];
|
|
799
|
+
}
|
|
800
|
+
.asta-settings-swatch-dark {
|
|
801
|
+
@apply bg-[#151516];
|
|
802
|
+
}
|
|
803
|
+
.asta-settings-swatch-system {
|
|
804
|
+
@apply bg-[linear-gradient(135deg,#fcfcfb_50%,#151516_50%)];
|
|
805
|
+
}
|
|
806
|
+
.asta-settings-theme-label {
|
|
807
|
+
@apply flex w-full items-center justify-between px-0.5 text-[13px] text-ink;
|
|
808
|
+
}
|
|
809
|
+
.asta-settings-theme-radio {
|
|
810
|
+
@apply h-3.5 w-3.5 rounded-full shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] transition-[background-color,box-shadow] duration-300;
|
|
811
|
+
.asta-settings-theme-option:has(:checked) & {
|
|
812
|
+
@apply bg-brand shadow-[inset_0_0_0_3.5px_var(--brand),inset_0_0_0_6px_white];
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/* ---- Team members (team_members.templ) ----
|
|
817
|
+
* <div id="team" data-asta-team class="asta-team-members"><header class="asta-team-header">…</header>
|
|
818
|
+
* <form class="asta-team-invite" hx-post="/team/invite" hx-target="#team" hx-swap="outerHTML">…</form>
|
|
819
|
+
* <h4 class="asta-team-heading">Members</h4><ul><li data-asta-team-row="u1" class="asta-team-member"><div class="asta-team-row">…</div></li></ul></div>
|
|
820
|
+
* A removed member shows <div data-asta-team-removed class="asta-team-removed"> with <span data-asta-team-countdown class="asta-team-timer" style="animation:asta-blk-count 5s linear forwards">. */
|
|
821
|
+
.asta-team-members {
|
|
822
|
+
@apply @container w-full text-ink;
|
|
823
|
+
}
|
|
824
|
+
.asta-team-header {
|
|
825
|
+
@apply flex items-baseline justify-between gap-4;
|
|
826
|
+
}
|
|
827
|
+
.asta-team-title {
|
|
828
|
+
@apply text-[17px] font-medium tracking-[-0.02em] text-ink;
|
|
829
|
+
}
|
|
830
|
+
.asta-team-count {
|
|
831
|
+
@apply text-[12.5px] tabular-nums text-mute;
|
|
832
|
+
}
|
|
833
|
+
.asta-team-invite {
|
|
834
|
+
@apply mt-5 rounded-[12px] bg-paper-2 p-3;
|
|
835
|
+
}
|
|
836
|
+
.asta-team-invite-row {
|
|
837
|
+
@apply flex flex-col gap-2 sm:flex-row sm:items-start;
|
|
838
|
+
}
|
|
839
|
+
.asta-team-invite-emails {
|
|
840
|
+
@apply min-w-0 flex-1;
|
|
841
|
+
}
|
|
842
|
+
.asta-team-invite-controls {
|
|
843
|
+
@apply flex gap-2;
|
|
844
|
+
}
|
|
845
|
+
.asta-team-invite-role {
|
|
846
|
+
@apply w-[124px] shrink-0;
|
|
847
|
+
}
|
|
848
|
+
.asta-team-hint {
|
|
849
|
+
@apply mt-2 min-h-4 px-1 text-[12px] text-mute;
|
|
850
|
+
}
|
|
851
|
+
.asta-team-hint-error {
|
|
852
|
+
@apply text-[#e5484d];
|
|
853
|
+
}
|
|
854
|
+
.asta-team-heading {
|
|
855
|
+
@apply mb-1 mt-7 px-1 text-[12px] font-medium text-mute;
|
|
856
|
+
}
|
|
857
|
+
.asta-team-member {
|
|
858
|
+
@apply relative;
|
|
859
|
+
}
|
|
860
|
+
.asta-team-removed {
|
|
861
|
+
@apply relative flex h-[60px] items-center gap-3 overflow-hidden rounded-[10px] bg-paper-2 px-3 transition-opacity duration-300 animate-[asta-blk-in_.35s_cubic-bezier(.16,1,.3,1)] data-[gone]:opacity-0;
|
|
862
|
+
}
|
|
863
|
+
.asta-team-removed-text {
|
|
864
|
+
@apply min-w-0 flex-1 truncate text-[13px] text-ink-2;
|
|
865
|
+
& strong {
|
|
866
|
+
@apply font-normal text-ink;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
.asta-team-undo {
|
|
870
|
+
@apply text-brand hover:text-brand;
|
|
871
|
+
}
|
|
872
|
+
.asta-team-timer {
|
|
873
|
+
@apply absolute inset-x-0 bottom-0 h-0.5 origin-left bg-brand/40;
|
|
874
|
+
}
|
|
875
|
+
.asta-team-row {
|
|
876
|
+
@apply flex h-[60px] items-center gap-3 rounded-[10px] px-1 transition-colors duration-200 hover:bg-[color-mix(in_srgb,var(--paper-2)_55%,transparent)] sm:px-3;
|
|
877
|
+
}
|
|
878
|
+
.asta-team-avatar {
|
|
879
|
+
@apply shrink-0 @max-[400px]:hidden;
|
|
880
|
+
}
|
|
881
|
+
.asta-team-info {
|
|
882
|
+
@apply min-w-0 flex-1;
|
|
883
|
+
}
|
|
884
|
+
.asta-team-name {
|
|
885
|
+
@apply flex items-center gap-2 truncate text-[13.5px] text-ink;
|
|
886
|
+
& > span:first-child {
|
|
887
|
+
@apply truncate;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
.asta-team-you {
|
|
891
|
+
@apply shrink-0 rounded-md bg-paper-2 px-1.5 text-[11px] leading-5 text-mute;
|
|
892
|
+
}
|
|
893
|
+
.asta-team-email {
|
|
894
|
+
@apply truncate text-[12.5px] text-mute;
|
|
895
|
+
}
|
|
896
|
+
.asta-team-role {
|
|
897
|
+
@apply w-[112px] shrink-0 @max-[400px]:w-[96px];
|
|
898
|
+
}
|
|
899
|
+
.asta-team-remove {
|
|
900
|
+
@apply grid h-8 w-8 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 disabled:pointer-events-none disabled:opacity-30;
|
|
901
|
+
& > svg {
|
|
902
|
+
@apply h-4 w-4;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
.asta-team-invitee {
|
|
906
|
+
@apply flex h-[52px] items-center gap-3 px-1 sm:px-3;
|
|
907
|
+
}
|
|
908
|
+
.asta-team-envelope {
|
|
909
|
+
@apply grid h-8 w-8 shrink-0 place-items-center rounded-full text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] @max-[400px]:hidden;
|
|
910
|
+
& > svg {
|
|
911
|
+
@apply h-3.5 w-3.5;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
.asta-team-invitee-email {
|
|
915
|
+
@apply truncate text-[13.5px] text-ink;
|
|
916
|
+
}
|
|
917
|
+
.asta-team-invitee-meta {
|
|
918
|
+
@apply truncate text-[12px] text-mute;
|
|
919
|
+
}
|