From d2ece65692116b759005d2b7c4bff330c75e9986 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Wed, 8 Sep 2021 22:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=BB=91=E5=9D=97=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=84=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/libs/pear/css/module/menu.css | 27 +++++++++++++++++-- .../wwwroot/libs/pear/module/theme.js | 1 + 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/css/module/menu.css b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/css/module/menu.css index 96e4638..15c5984 100644 --- a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/css/module/menu.css +++ b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/css/module/menu.css @@ -41,6 +41,26 @@ background-color: #5FB878; } +.pear-nav-tree .layui-nav-tree > .layui-nav-item > a:before { + background-color: #5FB878; +} + +.layui-nav-tree > .layui-nav-item:hover > a:before { + bottom: 0; +} + +.layui-nav-tree > .layui-nav-item > a:before { + content: ""; + position: absolute; + top: 0; + left: 0; + bottom: 100%; + width: 4px; + background-color: #009688; + -webkit-transition: all .3s ease; + transition: all .3s ease; +} + .pear-nav-tree .toast { font-size: 14px; margin: 5px; @@ -195,8 +215,11 @@ } .light-theme .pear-nav-tree .layui-nav-bar{ - display: none; - + display: none; +} + +.light-theme .pear-nav-tree .layui-nav-tree > .layui-nav-item > a:before { + background-color: #5FB878; } /** 下 拉 图 标 */ diff --git a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/theme.js b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/theme.js index ab114b9..c1de380 100644 --- a/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/theme.js +++ b/src/PearAdmin.AbpTemplate.Admin/wwwroot/libs/pear/module/theme.js @@ -25,6 +25,7 @@ layui.define(["jquery","layer"], function (exports) { let style = ''; style += '.light-theme .pear-nav-tree .layui-this a:hover,.light-theme .pear-nav-tree .layui-this,.light-theme .pear-nav-tree .layui-this a,.pear-nav-tree .layui-this a,.pear-nav-tree .layui-this{background-color: ' +color + '!important;}'; + style += '.light-theme .layui-nav-tree>.layui-nav-item>a:before, .layui-nav-tree>.layui-nav-item>a:before{background-color: ' + color + '!important;}'; style += '.pear-admin .layui-logo .title{color:' + color + '!important;}'; style += '.pear-frame-title .dot,.pear-tab .layui-this .pear-tab-active{background-color: ' + color +'!important;}'; style += '.bottom-nav li a:hover{background-color:' + color + '!important;}'; -- Gitee