From 2ccfb5ca9f30c065e290558a5cf0f388ee570147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A4=E5=8F=8C=E7=AD=B7=E5=AD=90?= <44014601+dbkuaizi@users.noreply.github.com> Date: Sun, 30 Apr 2023 21:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E9=A2=98=E5=B1=82?= =?UTF-8?q?=E7=BA=A7=E6=98=BE=E7=A4=BA=E5=8A=9F=E8=83=BD=20(#2381)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/extra/themes/vue-light/web.css | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/data/extra/themes/vue-light/web.css b/src/data/extra/themes/vue-light/web.css index 3f9b12b2..f5ff4aa0 100644 --- a/src/data/extra/themes/vue-light/web.css +++ b/src/data/extra/themes/vue-light/web.css @@ -404,4 +404,22 @@ div.vx-plantuml-graph { .alert-dark:before{ background-color: #484848; -} \ No newline at end of file +} + +/* 标题层级展示 CSS */ +.vx-header-anchor::after{background-color: #eee;padding: 0 5px;border-radius: 3px;} +.vx-header-anchor{color: #999;display: inline-block;margin-left: 10px;} + +h1 .vx-header-anchor::after { content: 'H1';} +h2 .vx-header-anchor::after { content: 'H2';} +h3 .vx-header-anchor::after { content: 'H3';} +h4 .vx-header-anchor::after { content: 'H4';} +h5 .vx-header-anchor::after { content: 'H5';} +h6 .vx-header-anchor::after { content: 'H6';} + + +h1 .vx-header-anchor{margin-top: -5px;} +h2 .vx-header-anchor{margin-top: -4px;} +h3 .vx-header-anchor{margin-top: -3px;} +h4 .vx-header-anchor{margin-top: -2px;} +h5 .vx-header-anchor{margin-top: -1px;} \ No newline at end of file