chore(collapsible/accordion): merge animations

This commit is contained in:
Benjamin Canac
2024-04-03 18:12:05 +02:00
parent ea29cc238c
commit 4a409fdf8b
5 changed files with 30 additions and 30 deletions

View File

@@ -17,20 +17,11 @@ export function addTemplates (options: ModuleOptions, nuxt: Nuxt) {
color-scheme: light dark;
}
@keyframes accordion-up {
from { height: var(--radix-accordion-content-height); }
to { height: 0; }
}
@keyframes accordion-down {
from { height: 0; }
to { height: var(--radix-accordion-content-height); }
}
@keyframes collapsible-up {
@keyframes slide-up {
from { height: var(--radix-collapsible-content-height); }
to { height: 0; }
}
@keyframes collapsible-down {
@keyframes slide-down {
from { height: 0; }
to { height: var(--radix-collapsible-content-height); }
}