Repository navigation
Expand file tree
/
Copy pathapp.css
More file actions
331 lines (297 loc) · 7.83 KB
/
Copy pathapp.css
File metadata and controls
331 lines (297 loc) · 7.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
/*
* bb-plugin-agent-board — shared live-execution animation vocabulary.
*
* Operations-dashboard feel: slow, restrained, state-driven. Every moving
* effect is disabled under `prefers-reduced-motion: reduce` AND when the
* focus root carries [data-motion="reduced"] (belt and suspenders: the CSS
* media query alone would cover system settings, the attribute also covers
* harness-driven toggles and any future in-app control). Status clarity
* never depends on animation: glyphs, chips, and text carry the state.
*/
/* BB deliberately does not provide a global preflight to plugin panels. Keep
the dashboard's width contract local: padding and borders must be included
in every descendant's declared/max width, including third-party primitives
such as buttons and dialogs rendered inside cards. */
.ab-global-dashboard,
.ab-global-dashboard::before,
.ab-global-dashboard::after,
.ab-global-dashboard *,
.ab-global-dashboard *::before,
.ab-global-dashboard *::after {
box-sizing: border-box;
}
/* Calm, state-driven hierarchy. The live strip remains indeterminate. */
.ab-global-dashboard [data-global-card="active"] {
border-inline-start: 2px solid color-mix(in srgb, var(--primary) 38%, var(--border));
}
.ab-global-dashboard [data-global-card="active"][data-status="waiting"],
.ab-global-dashboard [data-global-card="attention"] {
border-inline-start: 2px solid color-mix(in srgb, #b78632 45%, var(--border));
}
.ab-global-dashboard [data-global-card="attention"][data-attention-type="failed"] {
border-inline-start-color: color-mix(in srgb, var(--destructive) 65%, var(--border));
}
.ab-global-dashboard [data-part="execution-model"] {
margin-top: 3px;
font-size: 11px;
}
.ab-global-dashboard [data-part="execution-activity"] {
margin-top: 10px;
color: var(--foreground);
font-family: var(--font-mono, ui-monospace, monospace);
font-size: 12px;
}
.ab-global-dashboard .ab-update-detail[open] { flex-basis: 100%; }
.ab-global-dashboard [data-global-card="recent"] {
border: 0;
border-bottom: 1px solid var(--border);
border-radius: 0;
background: transparent;
padding: 10px 0;
}
.ab-global-dashboard [data-part="recent-title"] { font-size: 13px; }
/* --- 1. Active pulse: the live dot and the active pipeline node breathe
slowly (opacity/shadow nuance only — no card ever expands). ------- */
@keyframes ab-breathe {
0%,
100% {
opacity: 0.45;
}
50% {
opacity: 1;
}
}
@keyframes ab-node-pulse {
0%,
100% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent);
opacity: 0.85;
}
50% {
box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 12%, transparent);
opacity: 1;
}
}
.ab-live-dot {
animation: ab-breathe 1.8s ease-in-out infinite;
}
.ab-node-active-glyph {
animation: ab-node-pulse 1.8s ease-in-out infinite;
}
/* --- 2. Active connector / signal: a one-shot sweep travels the connector
when the active phase advances, then settles (500ms). ------------ */
@keyframes ab-signal {
0% {
transform: translateX(0);
opacity: 0;
}
20% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
.ab-connector {
position: relative;
overflow: hidden;
}
.ab-connector-signal::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 34%;
border-radius: inherit;
background: linear-gradient(
90deg,
transparent,
color-mix(in srgb, var(--primary) 85%, transparent),
transparent
);
animation: ab-signal 500ms ease-in-out forwards;
}
/* --- 3. Indeterminate live-operation strip: a short highlight travels a
thin track. Never a percentage; static (no travel) under reduced
motion. ---------------------------------------------------------- */
@keyframes ab-strip-slide {
0% {
transform: translateX(-110%);
}
100% {
transform: translateX(440%);
}
}
.ab-strip {
position: relative;
height: 3px;
width: 100%;
overflow: hidden;
border-radius: 9999px;
background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.ab-strip::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 22%;
border-radius: inherit;
background: color-mix(in srgb, var(--primary) 80%, transparent);
animation: ab-strip-slide 1.5s ease-in-out infinite;
}
/* Stable per-card offsets prevent several active Kanban strips from moving
in lockstep. Negative delays avoid an empty initial track. */
.ab-strip[data-motion-variant="1"]::after {
animation-delay: -375ms;
}
.ab-strip[data-motion-variant="2"]::after {
animation-delay: -750ms;
}
.ab-strip[data-motion-variant="3"]::after {
animation-delay: -1125ms;
}
.ab-strip-static::after {
animation: none;
width: 34%;
transform: translateX(100%);
opacity: 0.45;
}
/* --- 4. Current-activity change: the old line fades upward while the new
line enters from below (250ms, absolute overlay keeps layout). --- */
@keyframes ab-activity-in {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes ab-activity-out {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-6px);
}
}
.ab-activity-in {
animation: ab-activity-in 250ms ease-out both;
}
.ab-activity-out {
animation: ab-activity-out 250ms ease-in both;
}
/* --- 5. Recent-activity insertion: new rows fade/slide in briefly; older
rows shift with the flow (250ms, keyed by entry id). ------------- */
@keyframes ab-row-in {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.ab-row-in {
animation: ab-row-in 250ms ease-out both;
}
/* --- 6. Completion: a one-shot checkmark pop, then fully static. ------ */
@keyframes ab-pop {
0% {
transform: scale(0.55);
opacity: 0;
}
60% {
transform: scale(1.18);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.ab-pop {
animation: ab-pop 250ms ease-out both;
}
/* --- 7. Failure: a one-time subtle flash, then persistent error styling. */
@keyframes ab-fail-in {
0% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--destructive) 55%, transparent);
}
100% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--destructive) 0%, transparent);
}
}
.ab-fail-in {
animation: ab-fail-in 300ms ease-out both;
}
/* --- Phase activation settle: the newly active node draws focus once
(450ms), then only the slow pulse remains. ---------------------- */
@keyframes ab-settle {
0% {
opacity: 0.25;
transform: scale(0.82);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.ab-settle {
animation: ab-settle 450ms ease-out both;
}
/* --- Reduced motion: no travel, no sweeps, no slides, no pulsing. Status
stays perfectly readable through glyphs, chips, and text. ------ */
@media (prefers-reduced-motion: reduce) {
.ab-live-dot,
.ab-node-active-glyph,
.ab-connector-signal::after,
.ab-strip::after,
.ab-activity-in,
.ab-activity-out,
.ab-row-in,
.ab-pop,
.ab-fail-in,
.ab-settle {
animation: none !important;
}
.ab-strip::after {
width: 34%;
transform: translateX(100%);
opacity: 0.45;
}
.ab-connector-signal::after {
display: none;
}
}
[data-motion="reduced"] .ab-live-dot,
[data-motion="reduced"] .ab-node-active-glyph,
[data-motion="reduced"] .ab-connector-signal::after,
[data-motion="reduced"] .ab-strip::after,
[data-motion="reduced"] .ab-activity-in,
[data-motion="reduced"] .ab-activity-out,
[data-motion="reduced"] .ab-row-in,
[data-motion="reduced"] .ab-pop,
[data-motion="reduced"] .ab-fail-in,
[data-motion="reduced"] .ab-settle {
animation: none !important;
}
[data-motion="reduced"] .ab-strip::after {
width: 34%;
transform: translateX(100%);
opacity: 0.45;
}
[data-motion="reduced"] .ab-connector-signal::after {
display: none;
}