asta-ui 0.6.1 → 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/README.md +11 -0
- package/bin/asta-ui.mjs +179 -2
- 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,681 @@
|
|
|
1
|
+
/* Display: accordion, alert, avatar, breadcrumb, card, empty state, kbd, pagination, progress, skeleton, spinner,
|
|
2
|
+
* stat card and tooltip. Class lists mirror go/ui/<name>.templ. Modifiers come after the base class so they win. */
|
|
3
|
+
|
|
4
|
+
/* ---- Accordion (accordion.templ) ----
|
|
5
|
+
* <div class="asta-accordion"><details class="asta-accordion-item" name="faq" open>
|
|
6
|
+
* <summary class="asta-accordion-trigger">Title<span class="asta-accordion-icon" aria-hidden="true"><span></span><span></span></span></summary>
|
|
7
|
+
* <div class="asta-accordion-content">Answer</div></details></div>
|
|
8
|
+
* Native <details>: no script. Same name on each item = one open at a time. */
|
|
9
|
+
.asta-accordion {
|
|
10
|
+
@apply flex w-full flex-col gap-1.5;
|
|
11
|
+
}
|
|
12
|
+
.asta-accordion-item {
|
|
13
|
+
@apply rounded-xl bg-paper-2 transition-[background-color,box-shadow] duration-300;
|
|
14
|
+
@apply open:bg-paper open:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_8px_24px_-14px_rgb(0_0_0/0.25)];
|
|
15
|
+
@apply details-content:-translate-y-1 details-content:opacity-0 details-content:[transition:opacity_.45s_cubic-bezier(.16,1,.3,1),translate_.45s_cubic-bezier(.16,1,.3,1),content-visibility_.45s_allow-discrete];
|
|
16
|
+
@apply open:details-content:translate-y-0 open:details-content:opacity-100 motion-reduce:details-content:transition-none;
|
|
17
|
+
}
|
|
18
|
+
.asta-accordion-trigger {
|
|
19
|
+
@apply flex w-full cursor-pointer list-none items-center justify-between gap-4 rounded-xl px-4 py-3.5 text-left text-[14.5px] font-medium tracking-[-0.01em] text-ink outline-none focus-visible:ring-2 focus-visible:ring-brand/50 [&::-webkit-details-marker]:hidden;
|
|
20
|
+
}
|
|
21
|
+
.asta-accordion-icon {
|
|
22
|
+
@apply relative flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-paper text-ink-2 transition-colors duration-300;
|
|
23
|
+
& > span {
|
|
24
|
+
@apply absolute h-[1.5px] w-2.5 rounded-full bg-current;
|
|
25
|
+
}
|
|
26
|
+
& > span + span {
|
|
27
|
+
@apply h-2.5 w-[1.5px] transition-transform duration-500 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
28
|
+
}
|
|
29
|
+
.asta-accordion-trigger:hover & {
|
|
30
|
+
@apply text-ink;
|
|
31
|
+
}
|
|
32
|
+
.asta-accordion-item[open] & {
|
|
33
|
+
@apply bg-ink text-paper;
|
|
34
|
+
}
|
|
35
|
+
.asta-accordion-item[open] & > span + span {
|
|
36
|
+
@apply rotate-90 scale-y-0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.asta-accordion-content {
|
|
40
|
+
@apply px-4 pb-4 text-[14px] leading-relaxed text-ink-2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ---- Alert (alert.templ) ----
|
|
44
|
+
* <div class="asta-alert asta-alert-success" role="status"><span class="asta-alert-icon"><svg…/></span>
|
|
45
|
+
* <div class="asta-alert-body"><p class="asta-alert-title">Saved</p><div class="asta-alert-text">…</div></div>
|
|
46
|
+
* <label class="asta-alert-dismiss"><input type="checkbox" data-asta-dismiss aria-label="Dismiss"><svg…/></label></div>
|
|
47
|
+
* Tones: (info) success warning neutral. Ticking the dismiss checkbox hides the alert, no script. */
|
|
48
|
+
.asta-alert {
|
|
49
|
+
@apply flex items-start gap-3 rounded-xl px-4 py-3.5;
|
|
50
|
+
@apply animate-[asta-field-in_.36s_cubic-bezier(.16,1,.3,1)_backwards] motion-reduce:animate-none;
|
|
51
|
+
@apply transition-[opacity,scale,display] transition-discrete duration-200 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
52
|
+
@apply has-[[data-asta-dismiss]:checked]:hidden has-[[data-asta-dismiss]:checked]:scale-[.98] has-[[data-asta-dismiss]:checked]:opacity-0;
|
|
53
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_7%,var(--paper))];
|
|
54
|
+
}
|
|
55
|
+
.asta-alert-success,
|
|
56
|
+
.asta-alert-neutral {
|
|
57
|
+
@apply bg-paper-2;
|
|
58
|
+
}
|
|
59
|
+
.asta-alert-warning {
|
|
60
|
+
@apply bg-paper-2 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_16%,transparent)];
|
|
61
|
+
}
|
|
62
|
+
/* Icons use currentColor: brand for info and success, ink for warning, mute for neutral. */
|
|
63
|
+
.asta-alert-icon {
|
|
64
|
+
@apply mt-px flex shrink-0 text-brand [&_svg]:h-5 [&_svg]:w-5;
|
|
65
|
+
.asta-alert-warning > & {
|
|
66
|
+
@apply text-ink;
|
|
67
|
+
}
|
|
68
|
+
.asta-alert-neutral > & {
|
|
69
|
+
@apply text-mute;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.asta-alert-body {
|
|
73
|
+
@apply min-w-0 flex-1 pt-px;
|
|
74
|
+
}
|
|
75
|
+
.asta-alert-title {
|
|
76
|
+
@apply text-[13.5px] font-medium tracking-[-0.01em] text-ink;
|
|
77
|
+
}
|
|
78
|
+
.asta-alert-text {
|
|
79
|
+
@apply text-[13px] leading-relaxed text-ink-2 empty:hidden;
|
|
80
|
+
.asta-alert-title + & {
|
|
81
|
+
@apply mt-0.5;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.asta-alert-actions {
|
|
85
|
+
@apply mt-2.5 flex flex-wrap items-center gap-2;
|
|
86
|
+
}
|
|
87
|
+
.asta-alert-dismiss {
|
|
88
|
+
@apply -mr-1.5 -mt-0.5 flex h-7 w-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-mute transition-colors hover:bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] hover:text-ink has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
|
|
89
|
+
& > input {
|
|
90
|
+
@apply sr-only;
|
|
91
|
+
}
|
|
92
|
+
& > svg {
|
|
93
|
+
@apply h-3.5 w-3.5;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* ---- Avatar (avatar.templ) ----
|
|
98
|
+
* <span class="asta-avatar asta-avatar-sm" role="img" aria-label="Ada Lovelace (online)">
|
|
99
|
+
* <span class="asta-avatar-face asta-avatar-brand">AL<img class="asta-avatar-img" src="…" alt=""></span>
|
|
100
|
+
* <span class="asta-avatar-status" data-status="online" aria-hidden="true"></span></span>
|
|
101
|
+
* Sizes: xs sm (md) lg xl. Shape: asta-avatar-square. Fills on the face: (ink) brand soft tint gray.
|
|
102
|
+
* Status: online away busy offline. */
|
|
103
|
+
.asta-avatar {
|
|
104
|
+
@apply relative inline-flex h-10 w-10 shrink-0;
|
|
105
|
+
}
|
|
106
|
+
.asta-avatar-face {
|
|
107
|
+
@apply relative flex h-full w-full select-none items-center justify-center overflow-hidden rounded-full font-medium tracking-[-0.02em] text-[14px];
|
|
108
|
+
@apply bg-ink text-paper;
|
|
109
|
+
}
|
|
110
|
+
.asta-avatar-brand {
|
|
111
|
+
@apply bg-brand text-white;
|
|
112
|
+
}
|
|
113
|
+
.asta-avatar-soft {
|
|
114
|
+
@apply bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)];
|
|
115
|
+
}
|
|
116
|
+
.asta-avatar-tint {
|
|
117
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_14%,var(--paper))] text-brand;
|
|
118
|
+
}
|
|
119
|
+
.asta-avatar-gray {
|
|
120
|
+
@apply bg-[color-mix(in_srgb,var(--ink)_70%,var(--paper))] text-paper;
|
|
121
|
+
}
|
|
122
|
+
.asta-avatar-img {
|
|
123
|
+
@apply absolute inset-0 h-full w-full object-cover;
|
|
124
|
+
}
|
|
125
|
+
.asta-avatar-status {
|
|
126
|
+
@apply absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full bg-mute shadow-[0_0_0_2px_var(--paper)];
|
|
127
|
+
&[data-status="online"] {
|
|
128
|
+
@apply bg-[#30a46c];
|
|
129
|
+
}
|
|
130
|
+
&[data-status="away"] {
|
|
131
|
+
@apply bg-[#f5a524];
|
|
132
|
+
}
|
|
133
|
+
&[data-status="busy"] {
|
|
134
|
+
@apply bg-[#e5484d];
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.asta-avatar-xs {
|
|
138
|
+
@apply h-6 w-6;
|
|
139
|
+
& > .asta-avatar-face {
|
|
140
|
+
@apply text-[10px];
|
|
141
|
+
}
|
|
142
|
+
& > .asta-avatar-status {
|
|
143
|
+
@apply h-1.5 w-1.5;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.asta-avatar-sm {
|
|
147
|
+
@apply h-8 w-8;
|
|
148
|
+
& > .asta-avatar-face {
|
|
149
|
+
@apply text-[12px];
|
|
150
|
+
}
|
|
151
|
+
& > .asta-avatar-status {
|
|
152
|
+
@apply h-2 w-2;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.asta-avatar-lg {
|
|
156
|
+
@apply h-12 w-12;
|
|
157
|
+
& > .asta-avatar-face {
|
|
158
|
+
@apply text-[16px];
|
|
159
|
+
}
|
|
160
|
+
& > .asta-avatar-status {
|
|
161
|
+
@apply h-3 w-3;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.asta-avatar-xl {
|
|
165
|
+
@apply h-16 w-16;
|
|
166
|
+
& > .asta-avatar-face {
|
|
167
|
+
@apply text-[20px];
|
|
168
|
+
}
|
|
169
|
+
& > .asta-avatar-status {
|
|
170
|
+
@apply h-3.5 w-3.5;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
.asta-avatar-square {
|
|
174
|
+
& > .asta-avatar-face {
|
|
175
|
+
@apply rounded-[30%];
|
|
176
|
+
}
|
|
177
|
+
& > .asta-avatar-status {
|
|
178
|
+
@apply -bottom-0.5 -right-0.5;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ---- Avatar group (avatar.templ AvatarGroup) ----
|
|
183
|
+
* <ul class="asta-avatar-group" aria-label="5 people">
|
|
184
|
+
* <li class="asta-avatar-group-item" style="--i:0"><span class="asta-avatar-group-face" role="img" aria-label="Ada Lovelace">
|
|
185
|
+
* <span class="asta-avatar-face">AL</span><span class="asta-avatar-tip" aria-hidden="true">Ada Lovelace</span></span></li>
|
|
186
|
+
* <li class="asta-avatar-group-item" style="--i:4"><span class="asta-avatar-group-face asta-avatar-group-more">+2<span class="asta-avatar-tip">…</span></span></li></ul>
|
|
187
|
+
* Sizes: sm (md) lg. Hover fans the stack out (--i is the item's index). */
|
|
188
|
+
.asta-avatar-group {
|
|
189
|
+
@apply flex items-center;
|
|
190
|
+
}
|
|
191
|
+
.asta-avatar-group-item {
|
|
192
|
+
@apply relative transition-[translate] duration-500 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
193
|
+
@apply hover:z-10 focus-within:z-10 [&:hover>*]:-translate-y-1 [&:focus-within>*]:-translate-y-1;
|
|
194
|
+
& + & {
|
|
195
|
+
@apply -ml-2.5;
|
|
196
|
+
}
|
|
197
|
+
.asta-avatar-group:is(:hover, :focus-within) > & {
|
|
198
|
+
@apply translate-x-[calc(var(--i)*5px)];
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
.asta-avatar-group-face {
|
|
202
|
+
@apply relative block h-9 w-9 rounded-full outline-none shadow-[0_0_0_2px_var(--paper)] focus-visible:shadow-[0_0_0_2px_var(--paper),0_0_0_4px_var(--brand)];
|
|
203
|
+
@apply transition-[translate] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
204
|
+
& > .asta-avatar-face {
|
|
205
|
+
@apply text-[13px];
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.asta-avatar-group-more {
|
|
209
|
+
@apply flex items-center justify-center bg-paper-2 text-[13px] font-medium tabular-nums text-ink-2;
|
|
210
|
+
&:is(button) {
|
|
211
|
+
@apply transition-[translate,color] hover:text-ink;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.asta-avatar-group-sm {
|
|
215
|
+
& .asta-avatar-group-face {
|
|
216
|
+
@apply h-7 w-7 text-[11px];
|
|
217
|
+
}
|
|
218
|
+
& .asta-avatar-group-face > .asta-avatar-face {
|
|
219
|
+
@apply text-[11px];
|
|
220
|
+
}
|
|
221
|
+
& .asta-avatar-group-item + .asta-avatar-group-item {
|
|
222
|
+
@apply -ml-2;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
.asta-avatar-group-lg {
|
|
226
|
+
& .asta-avatar-group-face {
|
|
227
|
+
@apply h-11 w-11 text-[15px];
|
|
228
|
+
}
|
|
229
|
+
& .asta-avatar-group-face > .asta-avatar-face {
|
|
230
|
+
@apply text-[15px];
|
|
231
|
+
}
|
|
232
|
+
& .asta-avatar-group-item + .asta-avatar-group-item {
|
|
233
|
+
@apply -ml-3;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.asta-avatar-tip {
|
|
237
|
+
@apply pointer-events-none absolute bottom-full left-1/2 z-20 mb-2 max-w-[220px] -translate-x-1/2 translate-y-1 truncate whitespace-nowrap rounded-[6px] bg-ink px-2 py-1 text-[12px] font-medium leading-none text-paper opacity-0;
|
|
238
|
+
@apply transition-[opacity,translate] duration-200 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
239
|
+
.asta-avatar-group-face:is(:hover, :focus-visible) > & {
|
|
240
|
+
@apply translate-y-0 opacity-100;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* ---- Breadcrumb (breadcrumb.templ) ----
|
|
245
|
+
* <nav class="asta-breadcrumb" aria-label="Breadcrumb"><ol class="asta-breadcrumb-list">
|
|
246
|
+
* <li class="asta-breadcrumb-item"><a class="asta-breadcrumb-link" href="/"><span class="asta-breadcrumb-label">Astabyte</span></a><span class="asta-breadcrumb-sep" aria-hidden="true"><svg…/></span></li>
|
|
247
|
+
* <li class="asta-breadcrumb-item"><span class="asta-breadcrumb-page" aria-current="page"><span class="asta-breadcrumb-label">Billing</span></span></li></ol></nav>
|
|
248
|
+
* Folded pages: <div class="asta-breadcrumb-more" data-asta-menu> with a [data-asta-menu-trigger]
|
|
249
|
+
* .asta-breadcrumb-more-trigger and a <div role="menu" hidden class="asta-breadcrumb-menu"> of .asta-breadcrumb-menu-item. */
|
|
250
|
+
.asta-breadcrumb {
|
|
251
|
+
@apply relative min-w-0 text-[13.5px];
|
|
252
|
+
}
|
|
253
|
+
.asta-breadcrumb-list {
|
|
254
|
+
@apply flex min-w-0 items-center gap-1.5;
|
|
255
|
+
}
|
|
256
|
+
.asta-breadcrumb-item {
|
|
257
|
+
@apply flex min-w-0 shrink-[2] items-center gap-1.5;
|
|
258
|
+
&:first-child,
|
|
259
|
+
&:has(> .asta-breadcrumb-more) {
|
|
260
|
+
@apply shrink-0;
|
|
261
|
+
}
|
|
262
|
+
&:last-child {
|
|
263
|
+
@apply min-w-8 shrink;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
.asta-breadcrumb-link {
|
|
267
|
+
@apply flex min-w-0 items-center gap-1.5 rounded-md text-mute outline-none transition-colors hover:text-ink focus-visible:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
268
|
+
}
|
|
269
|
+
.asta-breadcrumb-page {
|
|
270
|
+
@apply flex min-w-0 items-center gap-1.5 font-medium text-ink;
|
|
271
|
+
}
|
|
272
|
+
.asta-breadcrumb-text {
|
|
273
|
+
@apply flex min-w-0 items-center gap-1.5 text-mute;
|
|
274
|
+
}
|
|
275
|
+
.asta-breadcrumb-icon {
|
|
276
|
+
@apply flex shrink-0;
|
|
277
|
+
}
|
|
278
|
+
.asta-breadcrumb-label {
|
|
279
|
+
@apply truncate;
|
|
280
|
+
}
|
|
281
|
+
.asta-breadcrumb-sep {
|
|
282
|
+
@apply flex shrink-0 text-[color-mix(in_srgb,var(--ink)_28%,transparent)] [&_svg]:h-3.5 [&_svg]:w-3.5;
|
|
283
|
+
}
|
|
284
|
+
.asta-breadcrumb-more {
|
|
285
|
+
@apply relative flex;
|
|
286
|
+
}
|
|
287
|
+
.asta-breadcrumb-more-trigger {
|
|
288
|
+
@apply flex h-6 w-7 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 [&_svg]:h-3.5 [&_svg]:w-3.5;
|
|
289
|
+
.asta-breadcrumb-more[data-open] > & {
|
|
290
|
+
@apply bg-paper-2 text-ink;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
.asta-breadcrumb-menu {
|
|
294
|
+
@apply absolute left-0 top-full z-50 mt-1.5 flex w-max min-w-40 max-w-64 flex-col rounded-[10px] bg-paper p-1 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_14px_32px_-14px_rgb(0_0_0/0.3)];
|
|
295
|
+
}
|
|
296
|
+
.asta-breadcrumb-menu-item {
|
|
297
|
+
@apply flex w-full min-w-0 items-center gap-2 rounded-md px-2.5 py-1.5 text-left text-[13px] text-ink-2 outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:bg-paper-2 focus-visible:text-ink;
|
|
298
|
+
& .asta-breadcrumb-icon {
|
|
299
|
+
@apply text-mute;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* ---- Card (card.templ) ----
|
|
304
|
+
* <div class="asta-card"><div class="asta-card-header"><h3 class="asta-card-title">Plan</h3>
|
|
305
|
+
* <p class="asta-card-description">…</p></div>…<div class="asta-card-footer">buttons</div></div> */
|
|
306
|
+
.asta-card {
|
|
307
|
+
@apply rounded-[12px] bg-paper p-5 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)];
|
|
308
|
+
}
|
|
309
|
+
.asta-card-header {
|
|
310
|
+
@apply mb-4;
|
|
311
|
+
}
|
|
312
|
+
.asta-card-title {
|
|
313
|
+
@apply text-[15px] font-medium tracking-[-0.01em] text-ink;
|
|
314
|
+
}
|
|
315
|
+
.asta-card-description {
|
|
316
|
+
@apply mt-1 text-[13px] leading-relaxed text-mute;
|
|
317
|
+
}
|
|
318
|
+
.asta-card-footer {
|
|
319
|
+
@apply mt-5 flex flex-wrap items-center justify-end gap-2;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/* ---- Empty state (empty_state.templ) ----
|
|
323
|
+
* <div class="asta-empty-state" role="status"><div class="asta-empty-state-art" aria-hidden="true">
|
|
324
|
+
* <span class="asta-empty-state-blob"></span><svg viewBox="0 0 120 88" …><path d="…"/><path class="asta-empty-state-accent" d="…"/></svg></div>
|
|
325
|
+
* <h3 class="asta-empty-state-title">Nothing here yet</h3><p class="asta-empty-state-description">…</p>
|
|
326
|
+
* <div class="asta-empty-state-actions">buttons</div></div>
|
|
327
|
+
* Size: asta-empty-state-sm (use asta-btn-xs buttons in it, asta-btn-sm otherwise). */
|
|
328
|
+
.asta-empty-state {
|
|
329
|
+
@apply flex flex-col items-center px-6 py-12 text-center motion-reduce:[&_*]:!animate-none;
|
|
330
|
+
}
|
|
331
|
+
.asta-empty-state-art {
|
|
332
|
+
@apply relative flex h-28 w-40 items-center justify-center;
|
|
333
|
+
& > svg {
|
|
334
|
+
@apply relative h-full w-full overflow-visible animate-[asta-scale-in_.8s_cubic-bezier(.16,1,.3,1)_.12s_both];
|
|
335
|
+
@apply fill-none stroke-[1.5] [stroke-linecap:round] [stroke-linejoin:round];
|
|
336
|
+
}
|
|
337
|
+
& path {
|
|
338
|
+
@apply stroke-[color-mix(in_srgb,var(--ink)_34%,transparent)];
|
|
339
|
+
}
|
|
340
|
+
& path.asta-empty-state-accent {
|
|
341
|
+
@apply stroke-brand;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
.asta-empty-state-blob {
|
|
345
|
+
@apply absolute h-[78%] w-[66%] rounded-full bg-paper-2 animate-[asta-scale-in_.8s_cubic-bezier(.16,1,.3,1)_both];
|
|
346
|
+
}
|
|
347
|
+
.asta-empty-state-title {
|
|
348
|
+
@apply mt-5 text-[17px] font-medium tracking-[-0.02em] text-ink animate-[asta-rise_.6s_cubic-bezier(.16,1,.3,1)_.38s_both];
|
|
349
|
+
}
|
|
350
|
+
.asta-empty-state-description {
|
|
351
|
+
@apply mt-1.5 max-w-[34ch] text-[13.5px] leading-relaxed text-mute animate-[asta-rise_.6s_cubic-bezier(.16,1,.3,1)_.46s_both];
|
|
352
|
+
}
|
|
353
|
+
.asta-empty-state-actions {
|
|
354
|
+
@apply mt-6 flex flex-wrap items-center justify-center gap-2 animate-[asta-rise_.6s_cubic-bezier(.16,1,.3,1)_.54s_both];
|
|
355
|
+
}
|
|
356
|
+
.asta-empty-state-sm {
|
|
357
|
+
@apply px-4 py-8;
|
|
358
|
+
& .asta-empty-state-art {
|
|
359
|
+
@apply h-20 w-28;
|
|
360
|
+
}
|
|
361
|
+
& .asta-empty-state-title {
|
|
362
|
+
@apply mt-3 text-[14.5px];
|
|
363
|
+
}
|
|
364
|
+
& .asta-empty-state-description {
|
|
365
|
+
@apply mt-1 text-[12.5px];
|
|
366
|
+
}
|
|
367
|
+
& .asta-empty-state-actions {
|
|
368
|
+
@apply mt-4;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* ---- Kbd (kbd.templ) ----
|
|
373
|
+
* <kbd class="asta-kbd">Esc</kbd> · <span class="asta-kbd-combo" aria-label="⌘ + K"><kbd class="asta-kbd">⌘</kbd><span class="asta-kbd-combo-sep" aria-hidden="true">+</span><kbd class="asta-kbd">K</kbd></span>
|
|
374
|
+
* Sizes: sm (md) lg. data-pressed shows the key held down. */
|
|
375
|
+
.asta-kbd {
|
|
376
|
+
@apply inline-flex select-none items-center justify-center bg-paper font-sans font-medium text-ink-2;
|
|
377
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent),inset_0_-2px_0_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
378
|
+
@apply transition-[transform,box-shadow,background-color,color] duration-100 ease-out;
|
|
379
|
+
@apply data-[pressed]:translate-y-px data-[pressed]:bg-paper-2 data-[pressed]:text-brand data-[pressed]:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--brand)_45%,transparent)];
|
|
380
|
+
@apply h-7 min-w-7 rounded-[7px] px-1.5 text-[12.5px];
|
|
381
|
+
}
|
|
382
|
+
.asta-kbd-sm {
|
|
383
|
+
@apply h-5 min-w-5 rounded-[5px] px-1 text-[11px];
|
|
384
|
+
}
|
|
385
|
+
.asta-kbd-lg {
|
|
386
|
+
@apply h-10 min-w-10 rounded-[10px] px-2.5 text-[15px];
|
|
387
|
+
}
|
|
388
|
+
.asta-kbd-combo {
|
|
389
|
+
@apply inline-flex items-center gap-1;
|
|
390
|
+
}
|
|
391
|
+
.asta-kbd-combo-sep {
|
|
392
|
+
@apply text-[12px] text-mute;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* ---- Pagination (pagination.templ) ----
|
|
396
|
+
* <nav class="asta-pagination" aria-label="Pagination"><a class="asta-pagination-link" href="?page=4" aria-label="Previous page"><svg…/></a>
|
|
397
|
+
* <ul class="asta-pagination-list"><li><a class="asta-pagination-link" href="?page=1">1</a></li><li class="asta-pagination-gap" aria-hidden="true">…</li>
|
|
398
|
+
* <li><a class="asta-pagination-link" aria-current="page" href="?page=5">5</a></li></ul>…</nav>
|
|
399
|
+
* Size: asta-pagination-sm. A disabled step is <span role="link" aria-disabled="true" class="asta-pagination-link">. */
|
|
400
|
+
.asta-pagination {
|
|
401
|
+
@apply flex items-center gap-1;
|
|
402
|
+
}
|
|
403
|
+
.asta-pagination-list {
|
|
404
|
+
@apply flex items-center gap-1;
|
|
405
|
+
}
|
|
406
|
+
.asta-pagination-link {
|
|
407
|
+
@apply relative flex h-9 min-w-9 items-center justify-center rounded-lg px-2 text-[13.5px] tabular-nums outline-none transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
408
|
+
@apply text-ink-2 hover:bg-paper-2 hover:text-ink [&_svg]:h-4 [&_svg]:w-4;
|
|
409
|
+
&[aria-current="page"] {
|
|
410
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_11%,transparent)] font-medium text-brand hover:bg-[color-mix(in_srgb,var(--brand)_11%,transparent)] hover:text-brand;
|
|
411
|
+
}
|
|
412
|
+
&[aria-disabled="true"] {
|
|
413
|
+
@apply opacity-35 hover:bg-transparent hover:text-ink-2;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
.asta-pagination-gap {
|
|
417
|
+
@apply flex h-9 min-w-9 items-center justify-center text-mute;
|
|
418
|
+
}
|
|
419
|
+
.asta-pagination-sm {
|
|
420
|
+
& .asta-pagination-link {
|
|
421
|
+
@apply h-8 min-w-8 text-[13px];
|
|
422
|
+
}
|
|
423
|
+
& .asta-pagination-gap {
|
|
424
|
+
@apply h-8 min-w-8;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* ---- Progress (progress.templ) ----
|
|
429
|
+
* <div class="asta-progress"><div class="asta-progress-header"><span class="asta-progress-label">Upload</span><span class="asta-progress-value">62%</span></div>
|
|
430
|
+
* <div class="asta-progress-track" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="62">
|
|
431
|
+
* <span class="asta-progress-fill" style="transform:translateX(-38%)"></span></div></div>
|
|
432
|
+
* Indeterminate: aria-busy="true" on the track and no style on the fill. Size: asta-progress-sm. */
|
|
433
|
+
.asta-progress {
|
|
434
|
+
@apply w-full;
|
|
435
|
+
}
|
|
436
|
+
.asta-progress-header {
|
|
437
|
+
@apply mb-2 flex items-baseline justify-between gap-4 text-[13px];
|
|
438
|
+
}
|
|
439
|
+
.asta-progress-label {
|
|
440
|
+
@apply text-ink-2;
|
|
441
|
+
}
|
|
442
|
+
.asta-progress-value {
|
|
443
|
+
@apply tabular-nums text-mute;
|
|
444
|
+
}
|
|
445
|
+
.asta-progress-track {
|
|
446
|
+
@apply relative h-1.5 w-full overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_9%,transparent)];
|
|
447
|
+
.asta-progress-sm & {
|
|
448
|
+
@apply h-1;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
.asta-progress-fill {
|
|
452
|
+
@apply absolute inset-0 rounded-full bg-brand transition-transform duration-700 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
453
|
+
[aria-busy="true"] > & {
|
|
454
|
+
@apply right-auto w-[38%] animate-[asta-progress-sweep_1.5s_cubic-bezier(.16,1,.3,1)_infinite] transition-none motion-reduce:w-full motion-reduce:animate-pulse;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* ---- Progress ring (progress.templ ProgressRing) ----
|
|
459
|
+
* <span class="asta-progress-ring" role="progressbar" aria-valuenow="70" style="width:44px;height:44px">
|
|
460
|
+
* <svg viewBox="0 0 44 44" width="44" height="44" aria-hidden="true"><circle class="asta-progress-ring-track" cx="22" cy="22" r="20.25" stroke-width="3.5"/>
|
|
461
|
+
* <circle class="asta-progress-ring-bar" cx="22" cy="22" r="20.25" stroke-width="3.5" pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="30"/></svg>
|
|
462
|
+
* <span class="asta-progress-ring-value">70%</span></span>
|
|
463
|
+
* Indeterminate: aria-busy="true" and stroke-dashoffset="75". */
|
|
464
|
+
.asta-progress-ring {
|
|
465
|
+
@apply relative inline-flex h-11 w-11 shrink-0 items-center justify-center;
|
|
466
|
+
& > svg {
|
|
467
|
+
@apply absolute inset-0 -rotate-90;
|
|
468
|
+
}
|
|
469
|
+
&[aria-busy="true"] > svg {
|
|
470
|
+
@apply rotate-0 animate-spin motion-reduce:animate-pulse;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
.asta-progress-ring-track {
|
|
474
|
+
@apply fill-none stroke-[color-mix(in_srgb,var(--ink)_9%,transparent)];
|
|
475
|
+
}
|
|
476
|
+
.asta-progress-ring-bar {
|
|
477
|
+
@apply fill-none stroke-brand [stroke-linecap:round];
|
|
478
|
+
}
|
|
479
|
+
.asta-progress-ring-value {
|
|
480
|
+
@apply relative text-[11px] font-medium tabular-nums text-ink;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* ---- Skeleton (skeleton.templ) ----
|
|
484
|
+
* <span class="asta-skeleton" aria-hidden="true" style="width:60%"></span> · asta-skeleton-circle (set width and height) · asta-skeleton-block
|
|
485
|
+
* <span class="asta-skeleton-text"><span class="asta-skeleton"></span><span class="asta-skeleton"></span></span> (last line is 62%)
|
|
486
|
+
* <div class="asta-skeleton-card" role="status" aria-label="Loading">…</div> with .asta-skeleton-row and .asta-skeleton-stack inside. */
|
|
487
|
+
.asta-skeleton {
|
|
488
|
+
@apply relative block h-3 overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_7%,transparent)];
|
|
489
|
+
@apply before:absolute before:inset-0 before:bg-[linear-gradient(100deg,transparent_20%,color-mix(in_srgb,var(--paper)_70%,transparent)_50%,transparent_80%)] before:content-[''];
|
|
490
|
+
@apply before:animate-[asta-skeleton-shimmer_1.6s_cubic-bezier(.4,0,.2,1)_infinite] motion-reduce:before:hidden;
|
|
491
|
+
}
|
|
492
|
+
.asta-skeleton-circle {
|
|
493
|
+
@apply aspect-square h-auto shrink-0 self-start rounded-full;
|
|
494
|
+
}
|
|
495
|
+
.asta-skeleton-block {
|
|
496
|
+
@apply h-auto rounded-[10px];
|
|
497
|
+
}
|
|
498
|
+
.asta-skeleton-text {
|
|
499
|
+
@apply flex flex-col gap-2;
|
|
500
|
+
& > .asta-skeleton:last-child {
|
|
501
|
+
@apply w-[62%];
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
.asta-skeleton-card {
|
|
505
|
+
@apply flex w-full flex-col gap-4 rounded-xl bg-paper p-3 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)];
|
|
506
|
+
& > .asta-skeleton-block:first-child {
|
|
507
|
+
@apply aspect-[16/9] w-full;
|
|
508
|
+
}
|
|
509
|
+
& > .asta-skeleton-text {
|
|
510
|
+
@apply px-1 pb-1;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
.asta-skeleton-row {
|
|
514
|
+
@apply flex items-center gap-3 px-1;
|
|
515
|
+
}
|
|
516
|
+
.asta-skeleton-stack {
|
|
517
|
+
@apply flex flex-1 flex-col gap-2;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* ---- Spinner (spinner.templ) ----
|
|
521
|
+
* <span class="asta-spinner" role="status" aria-label="Loading"><svg viewBox="0 0 24 24" fill="none" aria-hidden="true">…</svg></span>
|
|
522
|
+
* Variants with empty spans: asta-spinner-dots (3), asta-spinner-bars (4), asta-spinner-orbit (3). Size = font-size, colour = currentColor. */
|
|
523
|
+
.asta-spinner {
|
|
524
|
+
@apply relative inline-flex h-[1em] w-[1em] shrink-0 items-center justify-center motion-reduce:[&_*]:![animation-duration:2.4s];
|
|
525
|
+
& > svg {
|
|
526
|
+
@apply h-full w-full animate-[spin_.8s_linear_infinite];
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
.asta-spinner-dots {
|
|
530
|
+
@apply justify-between;
|
|
531
|
+
& > span {
|
|
532
|
+
@apply h-[26%] w-[26%] rounded-full bg-current animate-[asta-spinner-dot_1.1s_cubic-bezier(.16,1,.3,1)_infinite];
|
|
533
|
+
}
|
|
534
|
+
& > span:nth-child(2) {
|
|
535
|
+
@apply [animation-delay:.16s];
|
|
536
|
+
}
|
|
537
|
+
& > span:nth-child(3) {
|
|
538
|
+
@apply [animation-delay:.32s];
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
.asta-spinner-bars {
|
|
542
|
+
@apply justify-between;
|
|
543
|
+
& > span {
|
|
544
|
+
@apply h-[80%] w-[16%] rounded-full bg-current animate-[asta-spinner-bar_.9s_ease-in-out_infinite];
|
|
545
|
+
}
|
|
546
|
+
& > span:nth-child(2) {
|
|
547
|
+
@apply [animation-delay:.12s];
|
|
548
|
+
}
|
|
549
|
+
& > span:nth-child(3) {
|
|
550
|
+
@apply [animation-delay:.24s];
|
|
551
|
+
}
|
|
552
|
+
& > span:nth-child(4) {
|
|
553
|
+
@apply [animation-delay:.36s];
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
.asta-spinner-orbit {
|
|
557
|
+
& > span:nth-child(1) {
|
|
558
|
+
@apply absolute inset-[30%] rounded-full bg-current opacity-25;
|
|
559
|
+
}
|
|
560
|
+
& > span:nth-child(2) {
|
|
561
|
+
@apply absolute inset-0 animate-[spin_1.2s_cubic-bezier(.6,.1,.4,.9)_infinite];
|
|
562
|
+
@apply before:absolute before:left-1/2 before:top-0 before:h-[24%] before:w-[24%] before:-translate-x-1/2 before:rounded-full before:bg-current before:content-[''];
|
|
563
|
+
}
|
|
564
|
+
& > span:nth-child(3) {
|
|
565
|
+
@apply absolute inset-0 animate-[spin_1.8s_linear_infinite_reverse];
|
|
566
|
+
@apply before:absolute before:bottom-[6%] before:left-1/2 before:h-[16%] before:w-[16%] before:-translate-x-1/2 before:rounded-full before:bg-current before:opacity-60 before:content-[''];
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/* ---- Stat card (stat_card.templ) ----
|
|
571
|
+
* <div class="asta-stat-card"><p class="asta-stat-card-label">Revenue</p>
|
|
572
|
+
* <div class="asta-stat-card-row"><p class="asta-stat-card-value">$48.2k</p>
|
|
573
|
+
* <svg class="asta-stat-card-spark" viewBox="0 0 96 32" width="96" height="32"><g><path d="…area" class="asta-stat-card-area"/><path d="…line" class="asta-stat-card-line"/></g><circle class="asta-stat-card-dot" cx="94" cy="3" r="2.25"/></svg></div>
|
|
574
|
+
* <p class="asta-stat-card-delta"><span class="asta-stat-card-change"><svg viewBox="0 0 12 12">…</svg>+12.4%</span><span class="asta-stat-card-note">vs last month</span></p></div>
|
|
575
|
+
* Trend: (up, brand) asta-stat-card-down (mute, arrow flipped) asta-stat-card-flat (mute, no arrow). */
|
|
576
|
+
.asta-stat-card {
|
|
577
|
+
@apply flex flex-col gap-3 rounded-xl bg-paper-2 p-5 motion-reduce:[&_*]:!animate-none;
|
|
578
|
+
}
|
|
579
|
+
.asta-stat-card-label {
|
|
580
|
+
@apply text-[13px] text-mute;
|
|
581
|
+
}
|
|
582
|
+
.asta-stat-card-row {
|
|
583
|
+
@apply flex items-end justify-between gap-4;
|
|
584
|
+
}
|
|
585
|
+
.asta-stat-card-value {
|
|
586
|
+
@apply text-[28px] font-medium leading-none tracking-[-0.04em] text-ink tabular-nums;
|
|
587
|
+
}
|
|
588
|
+
.asta-stat-card-spark {
|
|
589
|
+
@apply shrink-0 overflow-visible text-brand;
|
|
590
|
+
& > g {
|
|
591
|
+
@apply animate-[asta-fade_.9s_cubic-bezier(.16,1,.3,1)_both];
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
.asta-stat-card-area {
|
|
595
|
+
@apply fill-current opacity-10;
|
|
596
|
+
}
|
|
597
|
+
.asta-stat-card-line {
|
|
598
|
+
@apply fill-none stroke-current stroke-[1.5] [stroke-linecap:round] [stroke-linejoin:round];
|
|
599
|
+
}
|
|
600
|
+
.asta-stat-card-dot {
|
|
601
|
+
@apply origin-center fill-current animate-[asta-pop_.5s_cubic-bezier(.16,1,.3,1)_.5s_both] [transform-box:fill-box];
|
|
602
|
+
}
|
|
603
|
+
.asta-stat-card-delta {
|
|
604
|
+
@apply flex items-center gap-1.5 text-[12.5px];
|
|
605
|
+
}
|
|
606
|
+
.asta-stat-card-change {
|
|
607
|
+
@apply inline-flex items-center gap-0.5 font-medium tabular-nums text-brand;
|
|
608
|
+
& > svg {
|
|
609
|
+
@apply h-3 w-3;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
.asta-stat-card-note {
|
|
613
|
+
@apply text-mute;
|
|
614
|
+
}
|
|
615
|
+
.asta-stat-card-down,
|
|
616
|
+
.asta-stat-card-flat {
|
|
617
|
+
& .asta-stat-card-spark,
|
|
618
|
+
& .asta-stat-card-change {
|
|
619
|
+
@apply text-mute;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
.asta-stat-card-down .asta-stat-card-change > svg {
|
|
623
|
+
@apply rotate-180;
|
|
624
|
+
}
|
|
625
|
+
.asta-stat-card-flat .asta-stat-card-change > svg {
|
|
626
|
+
@apply hidden;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* ---- Tooltip (tooltip.templ) ----
|
|
630
|
+
* <span class="asta-tooltip"><button aria-describedby="tip-copy">Copy</button>
|
|
631
|
+
* <span class="asta-tooltip-bubble" id="tip-copy" role="tooltip">Copy link<kbd class="asta-tooltip-kbd">⌘C</kbd><span class="asta-tooltip-arrow" aria-hidden="true"></span></span></span>
|
|
632
|
+
* Sides: (top) asta-tooltip-bottom, -left, -right. asta-tooltip-instant skips the 400ms hover delay.
|
|
633
|
+
* Shows on hover and on keyboard focus, CSS only. */
|
|
634
|
+
.asta-tooltip {
|
|
635
|
+
@apply relative inline-flex;
|
|
636
|
+
}
|
|
637
|
+
.asta-tooltip-bubble {
|
|
638
|
+
@apply pointer-events-none absolute z-50 flex w-max max-w-[240px] select-none items-center gap-2 rounded-lg bg-ink px-2.5 py-1.5 text-[12px] font-medium leading-snug text-paper;
|
|
639
|
+
@apply shadow-[0_6px_20px_-6px_rgb(0_0_0/0.35)] scale-95 opacity-0;
|
|
640
|
+
@apply transition-[opacity,scale,translate] duration-200 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
641
|
+
@apply bottom-full left-1/2 mb-2 origin-bottom -translate-x-1/2 translate-y-1;
|
|
642
|
+
.asta-tooltip:hover > & {
|
|
643
|
+
@apply scale-100 opacity-100 delay-400 translate-y-0;
|
|
644
|
+
}
|
|
645
|
+
.asta-tooltip-instant:hover > & {
|
|
646
|
+
@apply delay-0;
|
|
647
|
+
}
|
|
648
|
+
.asta-tooltip:has(:focus-visible) > & {
|
|
649
|
+
@apply scale-100 opacity-100 delay-0 translate-y-0;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
.asta-tooltip-bottom > .asta-tooltip-bubble {
|
|
653
|
+
@apply bottom-auto top-full mb-0 mt-2 origin-top -translate-y-1;
|
|
654
|
+
}
|
|
655
|
+
.asta-tooltip-left > .asta-tooltip-bubble {
|
|
656
|
+
@apply bottom-auto left-auto right-full top-1/2 mb-0 mr-2 origin-right translate-x-1 -translate-y-1/2;
|
|
657
|
+
}
|
|
658
|
+
.asta-tooltip-right > .asta-tooltip-bubble {
|
|
659
|
+
@apply bottom-auto left-full top-1/2 mb-0 ml-2 origin-left -translate-x-1 -translate-y-1/2;
|
|
660
|
+
}
|
|
661
|
+
.asta-tooltip-bottom:is(:hover, :has(:focus-visible)) > .asta-tooltip-bubble {
|
|
662
|
+
@apply translate-y-0;
|
|
663
|
+
}
|
|
664
|
+
.asta-tooltip:is(.asta-tooltip-left, .asta-tooltip-right):is(:hover, :has(:focus-visible)) > .asta-tooltip-bubble {
|
|
665
|
+
@apply translate-x-0 -translate-y-1/2;
|
|
666
|
+
}
|
|
667
|
+
.asta-tooltip-kbd {
|
|
668
|
+
@apply rounded bg-paper/15 px-1 font-sans text-[11px] text-paper/80;
|
|
669
|
+
}
|
|
670
|
+
.asta-tooltip-arrow {
|
|
671
|
+
@apply absolute left-1/2 top-full -mt-1 h-2 w-2 -translate-x-1/2 rotate-45 rounded-[1px] bg-ink;
|
|
672
|
+
.asta-tooltip-bottom & {
|
|
673
|
+
@apply bottom-full top-auto -mb-1 mt-0;
|
|
674
|
+
}
|
|
675
|
+
.asta-tooltip-left & {
|
|
676
|
+
@apply left-full top-1/2 -ml-1 mt-0 translate-x-0 -translate-y-1/2;
|
|
677
|
+
}
|
|
678
|
+
.asta-tooltip-right & {
|
|
679
|
+
@apply left-auto right-full top-1/2 -mr-1 mt-0 translate-x-0 -translate-y-1/2;
|
|
680
|
+
}
|
|
681
|
+
}
|