From b6a8fc399fedabea3a5028ac06f5dbf693e4805c Mon Sep 17 00:00:00 2001 From: dongsk Date: Fri, 16 Oct 2026 17:43:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor(guide):=20=E8=B0=83=E6=95=B4=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E7=AB=A0=E7=AB=A0=E8=8A=82=E7=BB=93=E6=9E=84=E4=B8=8E?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/theme/custom.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 967d18f..e91564d 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -38,6 +38,24 @@ font-size: 1.18rem; } +/* ---- 章节引导标题(如 2.2 / 2.2.1):与 h1 同款样式,并去掉上分隔线 ---- */ +.gb-chapter-lead .vp-doc h2 { + margin-top: 2.4rem; + padding-top: 0; + border-top: none; + font-size: 1.9rem; + line-height: 1.3; +} + +.gb-chapter-lead .vp-doc h2:first-of-type { + margin-top: 0; +} + +/* ---- 该页 Step 标题:与其它页 h2 级 Step 保持一致的视觉尺寸 ---- */ +.gb-chapter-lead .vp-doc h3[id^='step-'] { + font-size: 1.42rem; +} + /* ---- 正文图片:统一卡片化,响应式 ---- */ .vp-doc img { display: block; @@ -127,6 +145,12 @@ /* ---- 移动端 ---- */ @media (max-width: 640px) { + .gb-chapter-lead .vp-doc h2 { + font-size: 1.5rem; + } + .gb-chapter-lead .vp-doc h3[id^='step-'] { + font-size: 1.22rem; + } .vp-doc h1 { font-size: 1.5rem; }