pear.config.yml add autoHead property 顶部通栏自动配色

develop 3.4.0.RELEASE
就眠仪式 2021-01-01 20:32:54 +08:00
parent 0eb4cba1d1
commit 4773e9cf5a
3 changed files with 13 additions and 3 deletions

View File

@ -142,6 +142,10 @@
display: none;
}
.pear-admin .layui-header .layui-nav-more{
display: none;
}
.pear-collasped-pe {
display: none;
width: 50px;

View File

@ -233,7 +233,9 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame
style += '.pear-social-entrance {background-color:' + color + '!important}';
style += '.pear-admin .pe-collaspe {background-color:' + color + '!important}';
if(config.other.autoHead){
style += '.pear-admin .layui-header{background-color:' + color + '!important;}.pear-admin .layui-header .layui-nav .layui-nav-item>a{color:white!important;}';
}
$("#pearadmin-bg-color").html(style);
}
};

View File

@ -48,6 +48,8 @@ colors:
color: "#f6ad55"
- id: "4"
color: "#f56c6c"
- id: "5"
color: "darkgray"
## 主题面板的链接列表配置
links:
- icon: "layui-icon layui-icon-website"
@ -64,5 +66,7 @@ links:
href: "http://forum.pearadmin.com/"
## 其他配置
other:
## 主页默认加载动画时长
keepLoad: "1200"
## 主页动画时长
keepLoad: "1200"
## 布局顶部主题
autoHead: false