From ade9ea95987181690611f3852a267843ea2e7615 Mon Sep 17 00:00:00 2001 From: seaHi Date: Sun, 12 Jul 2026 13:33:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E6=A0=B7=E5=BC=8F=E5=B9=B6=E5=AE=9E=E7=8E=B0=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=A4=8D=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.css | 18 +++++--- src/routes/posts/[slug]/+page.svelte | 65 +++++++++++++++++++++++----- 2 files changed, 67 insertions(+), 16 deletions(-) diff --git a/src/app.css b/src/app.css index 03b0a32..84b9a24 100644 --- a/src/app.css +++ b/src/app.css @@ -316,25 +316,31 @@ body.single-col .post-list { margin: 1.5rem 0; border-radius: 4px; overflow: hidden; - background-color: var(--code-background-color, #f5f5f5); + background-color: #f5f5f5; } .code-block-header { display: flex; justify-content: space-between; align-items: center; - background-color: var(--code-header-bg, #e6e6e6); + background-color: #ededed; padding: 0.4rem 0.8rem; font-size: 0.85rem; - color: var(--text-muted); + color: var(--text-color); } .code-title { - font-family: var(--font-sans); - font-weight: 600; + font-family: "Source Code Pro", Menlo, Consolas, Monaco, monospace; + font-weight: 500; color: var(--text-color); } +.code-header-actions { + display: flex; + align-items: center; + gap: 1rem; +} + .copy-code-button { background: none; border: none; @@ -355,7 +361,7 @@ body.single-col .post-list { padding: 1rem; overflow: auto; -webkit-overflow-scrolling: touch; - line-height: 1.5; + line-height: 1.6; font-size: 0.875rem; font-family: "Source Code Pro", Menlo, Consolas, Monaco, monospace; background-color: transparent !important; diff --git a/src/routes/posts/[slug]/+page.svelte b/src/routes/posts/[slug]/+page.svelte index a714301..6f280e4 100644 --- a/src/routes/posts/[slug]/+page.svelte +++ b/src/routes/posts/[slug]/+page.svelte @@ -1,20 +1,46 @@