mirror of
https://github.com/hoornet/vega.git
synced 2026-05-06 20:29:12 -07:00
Polish: reduced motion, toast animation, token consistency
- Add prefers-reduced-motion media query for accessibility - Add slide-in animation for toast notifications - Standardize transition durations across note cards - Replace remaining hard-coded text-white with theme tokens
This commit is contained in:
@@ -99,6 +99,25 @@ body {
|
||||
animation: fade-in 150ms ease-out;
|
||||
}
|
||||
|
||||
/* Toast slide-in */
|
||||
@keyframes toast-in {
|
||||
from { opacity: 0; transform: translateX(16px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
.toast-enter {
|
||||
animation: toast-in 200ms ease-out;
|
||||
}
|
||||
|
||||
/* Reduced motion: collapse all animations/transitions */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
|
||||
Reference in New Issue
Block a user