From 42e0c89c44b0c2dbd7769beece014135fe6ea959 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Sun, 6 Dec 2026 02:17:30 +0800 Subject: [PATCH] Lighten Home navigation icon strokes --- home/app/globals.css | 9 +++++++++ home/components/home-design.tsx | 24 ++++++++++++------------ home/components/home-interactions.tsx | 5 ----- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/home/app/globals.css b/home/app/globals.css index 4fc3bf5..0d407d5 100644 --- a/home/app/globals.css +++ b/home/app/globals.css @@ -108,6 +108,15 @@ @tailwind components; @tailwind utilities; +.material-symbols-outlined.home-rail-icon { + font-weight: 300; + font-variation-settings: 'FILL' 0; +} + +.nav-item[aria-current="page"] .home-rail-icon { + font-weight: 360; +} + .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, .material-icons { display: inline-block; width: 1em; diff --git a/home/components/home-design.tsx b/home/components/home-design.tsx index 1f00619..037783b 100644 --- a/home/components/home-design.tsx +++ b/home/components/home-design.tsx @@ -14,26 +14,26 @@ export function HomeDesign() {
@@ -78,7 +78,7 @@ export function HomeDesign() { @you_dian_ai - + diff --git a/home/components/home-interactions.tsx b/home/components/home-interactions.tsx index a94a87a..8e82ae2 100644 --- a/home/components/home-interactions.tsx +++ b/home/components/home-interactions.tsx @@ -36,11 +36,6 @@ export function HomeInteractions() { else item.removeAttribute("aria-current"); item.classList.toggle("font-title", active); item.classList.toggle("font-body", !active); - const icon = item.querySelector(".nav-icon"); - if (icon) { - icon.textContent = item.dataset.nav === "home" ? "home" : active ? "person" : "person_outline"; - icon.style.fontVariationSettings = active ? "'FILL' 1" : "'FILL' 0"; - } }); window.scrollTo({ top: 0, behavior: "smooth" }); } -- 2.52.0