Fix blurry normal navigation on mobile: remove transition-all and shadow-sm from nav items
Local Build and Deploy / deploy (push) Successful in 59s
Local Build and Deploy / deploy (push) Successful in 59s
This commit is contained in:
1 parent
bfa8aedb25
commit
9910fd52c7
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -200,22 +200,23 @@ summary,
|
|||||||
/* ── Atom theme components ────────────────────────────────── */
|
/* ── Atom theme components ────────────────────────────────── */
|
||||||
@layer components {
|
@layer components {
|
||||||
.nav-item {
|
.nav-item {
|
||||||
@apply flex h-auto md:h-[54px] items-center text-[13px] font-bold transition-all duration-150 ease-in-out px-3 md:px-4 relative;
|
@apply flex h-auto md:h-[54px] items-center text-[13px] font-bold px-3 md:px-4 relative;
|
||||||
color: var(--color-navbar-text-readable, var(--color-navbar-text, #64748b));
|
color: var(--color-navbar-text-readable, var(--color-navbar-text, #64748b));
|
||||||
letter-spacing: 0.03em;
|
letter-spacing: 0.03em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
transition: color 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
.nav-item::after {
|
.nav-item::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%) scaleX(0);
|
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
border-radius: 3px 3px 0 0;
|
border-radius: 3px 3px 0 0;
|
||||||
background-color: var(--color-primary);
|
background-color: var(--color-primary);
|
||||||
|
transform: translateX(-50%) scaleX(0);
|
||||||
transition: transform 0.2s ease-in-out;
|
transition: transform 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
.nav-item:hover::after {
|
.nav-item:hover::after {
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ export async function Navigation() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<nav
|
<nav
|
||||||
className="sticky top-0 z-40 shadow-sm"
|
className="sticky top-0 z-40"
|
||||||
style={{ backgroundColor: "var(--color-navbar)", willChange: "transform" }}
|
style={{ backgroundColor: "var(--color-navbar)" }}
|
||||||
>
|
>
|
||||||
<div className="relative mx-auto flex min-h-[56px] max-w-7xl items-center px-4 md:px-6 gap-x-1">
|
<div className="relative mx-auto flex min-h-[56px] max-w-7xl items-center px-4 md:px-6 gap-x-1">
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in new issue
Block a user