diff --git a/docs/.vitepress/components/HomeButton.vue b/docs/.vitepress/components/HomeButton.vue index e32e27e84..64c5b337b 100644 --- a/docs/.vitepress/components/HomeButton.vue +++ b/docs/.vitepress/components/HomeButton.vue @@ -12,9 +12,10 @@ defineProps<{ :class="[ 'rounded-xl px-3 py-2 lg:px-5 lg:py-3 font-extrabold outline-none backdrop-blur-md active:scale-95 focus:outline-none text-nowrap text-sm md:text-base', 'text-slate-700 dark:text-slate-100', + 'transition-colors,transform', + 'duration-200 ease-in-out', + item.primary ? 'bg-primary/20 dark:bg-primary/30 dark:hover:bg-primary/40' : 'bg-black/4 dark:bg-white/20 dark:hover:bg-white/30', ]" - :bg="item.primary ? 'primary/20 dark:primary/30 dark:hover:primary/40' : 'black/4 dark:white/20 dark:hover:white/30'" - transition="colors,transform duration-200 ease-in-out" cursor-pointer > {{ item.text }} diff --git a/docs/.vitepress/components/Navbar.vue b/docs/.vitepress/components/Navbar.vue index 25a8449a6..49973944e 100644 --- a/docs/.vitepress/components/Navbar.vue +++ b/docs/.vitepress/components/Navbar.vue @@ -41,9 +41,11 @@ function isNavLinkActive(link: string, path: string) { {{ nav.text }} @@ -79,8 +81,12 @@ function isNavLinkActive(link: string, path: string) { :href="link.link" :aria-label="link.icon" target="_blank" - class="h-9 w-9 flex flex-shrink-0 items-center justify-center rounded-lg bg-transparent text-xl text-muted-foreground hover:bg-muted hover:text-foreground" - transition="colors duration-200 ease-in-out" + :class="[ + 'h-9 w-9', + 'flex flex-shrink-0 items-center justify-center rounded-lg', + 'bg-transparent text-xl text-muted-foreground hover:bg-muted hover:text-foreground', + 'transition-colors duration-200 ease-in-out', + ]" > @@ -100,8 +106,8 @@ function isNavLinkActive(link: string, path: string) { class="will-change-[transform,opacity] z-10 w-[180px] border rounded-xl p-2 shadow-md backdrop-blur-md data-[state=open]:data-[side=bottom]:animate-slideUpAndFade" :class="[ 'bg-white/70 dark:border-white/5 dark:bg-black/70', + 'transition-colors duration-200 ease-in-out', ]" - transition="colors duration-200 ease-in-out" >