diff --git a/docs/app/global.css b/docs/app/global.css index 7814b7935..d70348410 100644 --- a/docs/app/global.css +++ b/docs/app/global.css @@ -464,16 +464,12 @@ a { } .landing-nav-link { - transition: - background 0.16s ease, - color 0.16s ease, - transform 0.16s ease; + transition: color 0.16s ease; } .landing-nav-link:hover { - background: var(--color-landing-soft); + background: transparent; color: var(--color-landing-ink); - transform: translateY(-1px); } .landing-mobile-menu { diff --git a/docs/components/landing/LandingNav.tsx b/docs/components/landing/LandingNav.tsx index cc9d35ade..12c70ace9 100644 --- a/docs/components/landing/LandingNav.tsx +++ b/docs/components/landing/LandingNav.tsx @@ -103,15 +103,15 @@ export function LandingNav({ lang, active }: { lang: "en" | "cn"; active?: "home key={item.id} href={item.href} aria-current={active === item.id ? "page" : undefined} - className={`landing-nav-link inline-flex min-h-11 items-center rounded-[7px] px-[11px] text-[13px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`} + className={`landing-nav-link inline-flex h-9 items-center rounded-[7px] px-[10px] text-[13px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`} > {item.label} ))} - + - setMenuOpen(false)}> + setMenuOpen(false)}> 文/A