From e3a0903e2256ed993dd0fa6a78cb2928a5659e78 Mon Sep 17 00:00:00 2001 From: liushuang Date: Fri, 9 Aug 2024 14:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 14 +++++++------- src/template/markdown/ten.js | 7 ++++--- src/template/markdown/wgh.js | 7 ++++--- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/public/index.html b/public/index.html index d385be7..c70fc4c 100644 --- a/public/index.html +++ b/public/index.html @@ -41,13 +41,13 @@ To create a production bundle, use `npm run build` or `yarn build`. --> diff --git a/src/template/markdown/ten.js b/src/template/markdown/ten.js index 37aeea6..a5fa710 100644 --- a/src/template/markdown/ten.js +++ b/src/template/markdown/ten.js @@ -56,6 +56,7 @@ export default `/*自定义样式,实时生效*/ #nice h2 { margin: 10px auto; height: 40px; + color: #fff; // background-color: rgb(251, 251, 251); // border-bottom: 1px solid rgb(246, 246, 246); overflow: hidden; @@ -64,15 +65,15 @@ export default `/*自定义样式,实时生效*/ /* 二级标题内容 */ #nice h2 .content { - margin-left: -10px; + // margin-left: -10px; display: inline-block; width: auto; height: 40px; background-color: rgb(33, 33, 34); // border-bottom-right-radius:100px; color: rgb(255, 255, 255); - padding-right: 30px; - padding-left: 30px; + padding-right: 20px; + padding-left: 20px; line-height: 40px; font-size: 16px; } diff --git a/src/template/markdown/wgh.js b/src/template/markdown/wgh.js index 95bc046..f0171c8 100644 --- a/src/template/markdown/wgh.js +++ b/src/template/markdown/wgh.js @@ -59,6 +59,7 @@ export default `/*自定义样式,实时生效*/ #nice h2 { margin: 10px auto; height: 40px; + color: #fff; // background-color: rgb(251, 251, 251); // border-bottom: 1px solid rgb(246, 246, 246); overflow: hidden; @@ -67,15 +68,15 @@ export default `/*自定义样式,实时生效*/ /* 二级标题内容 */ #nice h2 .content { - margin-left: -10px; + // margin-left: -10px; display: inline-block; width: auto; height: 40px; background-color: rgb(33, 33, 34); // border-bottom-right-radius:100px; color: rgb(255, 255, 255); - padding-right: 30px; - padding-left: 30px; + padding-right: 20px; + padding-left: 20px; line-height: 40px; font-size: 16px; }