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>
139 lines
2.7 KiB
CSS
139 lines
2.7 KiB
CSS
@keyframes custom-provider-spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.custom-providers-section .onboarding-disclosure-content {
|
|
margin-top: var(--space-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-md);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.custom-provider-item:hover {
|
|
border-color: var(--text-dim);
|
|
}
|
|
|
|
.custom-provider-item-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
min-width: 0;
|
|
}
|
|
|
|
.custom-provider-item-name {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.custom-provider-item-meta {
|
|
color: var(--text-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.custom-provider-item-actions {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.custom-provider-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: var(--space-xs);
|
|
border-radius: var(--radius-pill);
|
|
background: color-mix(in srgb, var(--color-info) 15%, transparent);
|
|
color: var(--color-info);
|
|
}
|
|
|
|
.custom-provider-empty {
|
|
color: var(--text-muted);
|
|
padding: var(--space-sm) 0;
|
|
}
|
|
|
|
.custom-provider-add-btn {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-form {
|
|
padding: var(--space-md);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-form-row {
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-form-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.custom-provider-form-error {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
color: var(--color-error);
|
|
margin-top: var(--space-xs);
|
|
background: color-mix(in srgb, var(--color-error) 10%, transparent);
|
|
padding: var(--space-xs) var(--space-sm);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.custom-provider-item-edit-form {
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.spin {
|
|
animation: custom-provider-spin calc(var(--duration-slow) * 4) linear infinite;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.custom-provider-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.custom-provider-item-meta {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.custom-provider-form {
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
.custom-provider-item-actions {
|
|
align-self: flex-end;
|
|
margin-top: var(--space-xs);
|
|
}
|
|
}
|