From f7b7f7d320bca18527353f3cd3d4da12546e5cdc Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Sun, 2 Aug 2026 16:46:40 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=A0=87=E7=AD=BE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IndexSidebar.astro | 2 +- src/components/PostList.astro | 4 ++-- src/styles/global.css | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/IndexSidebar.astro b/src/components/IndexSidebar.astro index 6479c7f..30cd0e2 100644 --- a/src/components/IndexSidebar.astro +++ b/src/components/IndexSidebar.astro @@ -118,7 +118,7 @@ const { data: categories } = .tag { font-size: 12px; - color: var(--primary); + color: var(--tag-text); background: var(--tag-bg); padding: 3px 10px; border-radius: 999px; diff --git a/src/components/PostList.astro b/src/components/PostList.astro index bf5ffcf..ecd62da 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -86,7 +86,7 @@ posts.map((post) => { background: var(--card-bg); border-radius: 12px; box-shadow: var(--shadow); - padding: 20px; + padding: 16px; transition: transform 0.2s, box-shadow 0.2s; display: flex; gap: 22px; @@ -169,7 +169,7 @@ posts.map((post) => { .tag { font-size: 12px; - color: var(--primary); + color: var(--tag-text); background: var(--tag-bg); padding: 3px 10px; border-radius: 999px; diff --git a/src/styles/global.css b/src/styles/global.css index bf078d2..0cf96e8 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -7,11 +7,12 @@ --shadow: 0 2px 8px rgba(0, 0, 0, 0.06); --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.10); --card-bg: #ffffff; - --tag-bg: #eef1fe; --text-color: #2b2f36; --text-secondary: #6b7280; --border: #e5e7eb; --primary: #4f6df5; + --tag-bg: #eef1fe; + --tag-text: #4f6df5; } .dark { @@ -21,7 +22,8 @@ --text-secondary: #e5e7eb; --border: #e5e7eb; --primary: #1e293b; - --tag-bg: #d4d4d8;; + --tag-bg: #27272a; + --tag-text: #f3f4f6; } html,