From f77f8d13d15badd1352208303c377ff6eb03b39e Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Sat, 18 Jul 2026 21:03:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BaseFooter.astro | 2 +- src/components/BaseHeader.astro | 2 +- src/components/PostList.astro | 5 +- src/pages/posts/[...slug].astro | 95 +++++++++++++++++---------------- src/styles/github-markdown.css | 2 +- src/styles/global.css | 5 +- 6 files changed, 58 insertions(+), 53 deletions(-) diff --git a/src/components/BaseFooter.astro b/src/components/BaseFooter.astro index ad9f3c7..46bdaca 100644 --- a/src/components/BaseFooter.astro +++ b/src/components/BaseFooter.astro @@ -32,7 +32,7 @@ :global(.dark) footer { background: var(--background); - box-shadow: rgba(255, 255, 255, .3) 0px -1px 3px 0px; + box-shadow: none; } :global(.dark) .content { diff --git a/src/components/BaseHeader.astro b/src/components/BaseHeader.astro index 472e16d..aa9e6ac 100644 --- a/src/components/BaseHeader.astro +++ b/src/components/BaseHeader.astro @@ -84,7 +84,7 @@ import ThemeIcon from './ThemeIcon.astro' :global(.dark) header { background: var(--background); - box-shadow: rgba(255, 255, 255, .3) 0px 1px 2px 0px; + box-shadow: none; } :global(.dark) .main-nav h1 { diff --git a/src/components/PostList.astro b/src/components/PostList.astro index a57e4da..daae167 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -151,7 +151,7 @@ posts.map((post) => { } :global(.dark) .post { - background: #1f2937; + background: #171717; } :global(.dark) .published-at { @@ -159,6 +159,7 @@ posts.map((post) => { } :global(.dark) .category-name { - background: #374151; + background: #e5e5e5; + color: #0a0a0a; } diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index e71701c..f745169 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -26,49 +26,60 @@ const published_at = formatDatetime(data.published_at, 'YYYY 年 M 月 D 日') --- -

{data.title}

+
+

{data.title}

-