// Submit feedback. A button whose POST is slow gets is-busy (nav.js adds it after 150 ms, and only // while the request is in flight). It dims and shows a small spinner; it is never disabled. Once the // server confirmed the save, a done-tick sits after the button for a moment, then fades out. .is-busy { cursor: progress; opacity: 0.75; &::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: busy-spin 0.7s linear infinite; } } @keyframes busy-spin { to { transform: rotate(360deg); } } .done-tick { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--ok); font-size: 0.875em; font-weight: 500; white-space: nowrap; animation: done-tick 2.2s ease-out both; .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } } // Quick fade in, hold, then fade out over the last part of the 2.2 s. @keyframes done-tick { 0% { opacity: 0; } 12%, 78% { opacity: 1; } 100% { opacity: 0; } } @media (prefers-reduced-motion: reduce) { // No spin: the dimmed label alone shows it is busy. .is-busy::after { display: none; } .done-tick { animation: none; } }