Spinners, status-dot pulses, and entrance animations across the dashboard rendered frozen: transition tokens (--transition-slow: 0.3s ease) bundle a duration AND an easing, and 15 animation declarations reused them as bare durations. Substituting "0.3s ease" next to an explicit easing (linear, ease-in-out, ease-out) — or inside calc() — makes the declaration invalid at computed-value time, which per spec resolves the entire property to animation: none with no console error. - add duration-only tokens (--duration-instant/fast/normal/slow) and derive the --transition-* tokens from them so the two cannot drift - switch all 15 broken animation declarations across 14 CSS files to the duration tokens, preserving effective durations - add animation-duration-tokens.css.test.ts: sweeps every app CSS file and fails on transition-token-as-duration, calc() over a transition token, and transition token in animation-duration Verified in a real browser against the production build: previously frozen .status-dot--connecting and calc-based NodesView spinners now report running animations; transition shorthands still resolve to "0.15s / ease". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
99 lines
2.1 KiB
CSS
99 lines
2.1 KiB
CSS
/* === TaskIdIntegrityBanner === */
|
|
.task-id-integrity-banner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
padding: var(--space-lg);
|
|
margin-bottom: var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border: var(--btn-border-width) solid color-mix(in srgb, var(--color-error) 24%, transparent);
|
|
border-inline-start: var(--space-xs) solid var(--color-error);
|
|
background: color-mix(in srgb, var(--color-error) 10%, transparent);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.task-id-integrity-banner__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.task-id-integrity-banner__headline-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__headline {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.task-id-integrity-banner__body,
|
|
.task-id-integrity-banner__footer,
|
|
.task-id-integrity-banner__error,
|
|
.task-id-integrity-banner__item-detail {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-id-integrity-banner__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
margin: 0;
|
|
padding-inline-start: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.task-id-integrity-banner__item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.task-id-integrity-banner__item-title {
|
|
color: var(--text);
|
|
}
|
|
|
|
.task-id-integrity-banner__ids {
|
|
font-family: var(--font-mono);
|
|
color: var(--text);
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh-icon--spinning {
|
|
animation: status-dot-pulse var(--duration-slow) ease-in-out infinite;
|
|
}
|
|
|
|
.task-id-integrity-banner__error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.task-id-integrity-banner {
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.task-id-integrity-banner__header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.task-id-integrity-banner__refresh {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|