From 4587f3197341d918cd0251755668edcf9c8f9162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20code=20=E6=B7=B1=E8=89=B2?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=B8=8E=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E4=B8=BB=E9=A2=98=E7=9A=84=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/modules/code.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/css/modules/code.css b/src/css/modules/code.css index 53dfa2ee..a7ba047c 100644 --- a/src/css/modules/code.css +++ b/src/css/modules/code.css @@ -38,7 +38,7 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;} .layui-code-view:hover > .layui-code-fixbar .layui-code-lang-marker{display: none;} /* 深色主题 */ -.layui-code-theme-dark{border: 1px solid #2a2a2a; border-left-color: #2a2a2a; background-color: #1f1f1f; color: #ccc;} +.layui-code-theme-dark{border-width: 1px; border-color: rgb(126 122 122 / 15%); background-color: #1f1f1f; color: #ccc;} .layui-code-theme-dark > .layui-code-ln-side{border-right-color: #2a2a2a; background: none; color: #6e7681;} @@ -46,7 +46,8 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;} .layui-code textarea{display: none;} .layui-code-preview > .layui-code, .layui-code-preview > .layui-code-view{margin: 0;} -.layui-code-preview > .layui-tab{position: relative; z-index: 1; margin-bottom: -1px;} +.layui-code-preview > .layui-tab{position: relative; z-index: 1; margin-bottom: 0;} +.layui-code-preview > .layui-tab > .layui-tab-title{border-width: 0;} .layui-code-preview > .layui-code-view > .layui-code-header{display: none;} .layui-code-preview .layui-code-item{display: none;} .layui-code-preview .layui-code-view > .layui-code-lines > .layui-code-line{} @@ -69,3 +70,5 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;} /* 代码高亮重置 */ .layui-code-view.layui-code-hl{line-height: 20px !important; border-left-width: 1px;} .layui-code-view.layui-code-hl > .layui-code-ln-side{background-color: transparent;} +.layui-code-theme-dark.layui-code-hl, +.layui-code-theme-dark.layui-code-hl > .layui-code-ln-side{border-color: rgb(126 122 122 / 15%);}