From 4ce0cb75920464f6fd49af13faaa1e0710a5099f Mon Sep 17 00:00:00 2001 From: hezhendong Date: Mon, 17 Mar 2025 22:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9A=90=E8=97=8F=E5=A4=A7?= =?UTF-8?q?=E7=BA=B2=E4=B8=8B=E7=9A=84=E8=99=9A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/theme.css b/theme.css index 67faafb..419cbf0 100644 --- a/theme.css +++ b/theme.css @@ -45,6 +45,13 @@ settings: description: Hide the h1...h2... and other small title prompts in front of headings at all levels. description.zh: 隐藏各级标题前面的 h1...h2...等小标题提示 type: class-toggle + - + id: heading-bottom-line-off + title: Hide the Heading bottom line in the editor. + title.zh: 隐藏编辑器中各级标题下的虚线 + description: Hide the h1...h2... and other small title bottom line in headings at all levels. + description.zh: 隐藏各级标题前面的 h1...h2...等小标题下的线虚 + type: class-toggle - id: window-font-size title: Adjust the font of the Window. @@ -645,6 +652,9 @@ hr { padding-inline-start: 0 !important; padding-top: 5px !important; /* padding-bottom: 5px !important; */ +} + +body:not(.heading-bottom-line-off) .cm-s-obsidian .HyperMD-header { border-bottom: dashed 0.5px; } @@ -1033,6 +1043,14 @@ li { .markdown-rendered h6 { margin: 5px 0 !important; padding: 5px 0; +} + +body:not(.heading-bottom-line-off) .markdown-rendered h1, +body:not(.heading-bottom-line-off) .markdown-rendered h2, +body:not(.heading-bottom-line-off) .markdown-rendered h3, +body:not(.heading-bottom-line-off) .markdown-rendered h4, +body:not(.heading-bottom-line-off) .markdown-rendered h5, +body:not(.heading-bottom-line-off) .markdown-rendered h6 { border-bottom: dashed 0.5px; }