From 3867a7f6cc31281be1285bc3b6edce70941a44c8 Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Sun, 16 Aug 2026 15:49:40 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=A3=E7=A0=81=E5=9D=97=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/github-markdown-reset.css | 7 ++++--- src/styles/global.css | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/styles/github-markdown-reset.css b/src/styles/github-markdown-reset.css index f06004f..c4c36e4 100644 --- a/src/styles/github-markdown-reset.css +++ b/src/styles/github-markdown-reset.css @@ -1,5 +1,6 @@ .markdown-body pre code { - font-size: 1.15em; + font-size: 1.1em; + line-height: 1.6; } .markdown-body h1, @@ -31,7 +32,7 @@ .code-header { height: 36px; - background: #f4f4f5; + background: var(--code-block-header-bg); display: flex; justify-content: space-between; color: var(--text-primary); @@ -79,5 +80,5 @@ } .code-copy-btn:hover { - color: #1d4ed8; + color: var(--code-block-copy-btn-hover-color); } diff --git a/src/styles/global.css b/src/styles/global.css index caebe55..5b925d1 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -15,6 +15,9 @@ --text-meta: #71717a; --article-text-color: #404040; --text-title-hover: #000; + + --code-block-header-bg: #f5f5f4; + --code-block-copy-btn-hover-color: #6b7280; } .dark { @@ -28,6 +31,9 @@ --text-meta: #d4d4d8; --article-text-color: #d4d4d8; --text-title-hover: #fff; + + --code-block-header-bg: #374151; + --code-block-copy-btn-hover-color: #9ca3af; } html,