用户管理
This commit is contained in:
108
public/catch-admin/assets/module/authtree/tree_themes/auth-skin-default.css
Executable file
108
public/catch-admin/assets/module/authtree/tree_themes/auth-skin-default.css
Executable file
@@ -0,0 +1,108 @@
|
||||
/**
|
||||
Author: Jeffrey Wang
|
||||
Email: admin@wj2015.com
|
||||
Name: auth-skin-default
|
||||
Comment: 默认主题,感谢lipengfei886@qq.com提供的基础样式
|
||||
Version: v1.0.0
|
||||
*/
|
||||
|
||||
/*请在js中的.auth-status前的div加一个class属性auth-skin*/
|
||||
.auth-skin-default .auth-status {
|
||||
margin-top: -12px;
|
||||
}
|
||||
.auth-skin-default .auth-status > i.layui-icon {
|
||||
width: 18px;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
}
|
||||
.auth-skin-default .auth-status > div {
|
||||
position: relative;
|
||||
top: 6px;
|
||||
padding-left: 17px;
|
||||
}
|
||||
.auth-skin-default .auth-status > div.layui-form-radio {
|
||||
padding-left: 5px;
|
||||
}
|
||||
/*美化的多选框/单选框DOM*/
|
||||
.auth-skin-default .auth-status > div > span {
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
text-decoration: none;
|
||||
|
||||
position: relative;
|
||||
top: -3px;
|
||||
}
|
||||
|
||||
.auth-skin-default .auth-skin {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 13px 5px 0 5px;
|
||||
position: relative;
|
||||
color: #009688;
|
||||
}
|
||||
|
||||
.auth-skin-default .auth-skin::before, .auth-skin-default .auth-skin::after {
|
||||
content: '';
|
||||
left: -10px;
|
||||
position: absolute;
|
||||
right: auto
|
||||
}
|
||||
|
||||
.auth-skin-default .auth-skin::before {
|
||||
border-left: 1px dashed #009688;
|
||||
bottom: 50px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
width: 1px
|
||||
}
|
||||
|
||||
.auth-skin-default .auth-skin::after {
|
||||
border-top: 1px dashed #009688;
|
||||
height: 20px;
|
||||
top: 25px;
|
||||
width: 25px
|
||||
}
|
||||
/*解决多层数据中,auth-child缩进长度的问题*/
|
||||
.auth-skin-default > .auth-single .auth-single {
|
||||
margin-left: 36px;
|
||||
}
|
||||
.auth-skin-default > .auth-single > .auth-skin > .auth-child .auth-child {
|
||||
margin-left: 18px;
|
||||
}
|
||||
.auth-skin-default > .auth-single > .auth-skin {
|
||||
}
|
||||
|
||||
.auth-skin-default > .auth-single > .auth-skin::before, .auth-skin-default > .auth-single > .auth-skin::after {
|
||||
border: 0
|
||||
}
|
||||
|
||||
.auth-skin-default > .auth-single > .auth-skin:last-child::before {
|
||||
height: 30px
|
||||
}
|
||||
/*隐藏左侧操作的特殊样式*/
|
||||
.auth-skin-default.auth-tree-hidechoose .auth-status > span {
|
||||
display: none;
|
||||
}
|
||||
.auth-skin-default.auth-tree-hidechoose .auth-status > div > span {
|
||||
padding-left: 3px;
|
||||
}
|
||||
.auth-skin-default.auth-tree-hidechoose .auth-status > i {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
/*放于同一行的样式*/
|
||||
.auth-skin-default .auth-row {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.auth-skin-default > .auth-single .auth-child .auth-row {
|
||||
margin-left: -22px;
|
||||
}
|
||||
.auth-skin-default .auth-row.auth-skin::before, .auth-skin-default .auth-row.auth-skin::after {
|
||||
content: '';
|
||||
border: 0;
|
||||
}
|
127
public/catch-admin/assets/module/authtree/tree_themes/auth-skin-universal.css
Executable file
127
public/catch-admin/assets/module/authtree/tree_themes/auth-skin-universal.css
Executable file
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
Author: lipengfei886
|
||||
Email: lipengfei886@qq.com
|
||||
Name: auth-skin-universal
|
||||
Comment: lipengfei886@qq.com提供的绿色背景样式
|
||||
Version: v1.0.0
|
||||
*/
|
||||
|
||||
/*请在js中的.auth-status前的div加一个class属性auth-skin*/
|
||||
.auth-skin-universal .auth-status {
|
||||
margin-top: -12px;
|
||||
}
|
||||
.auth-skin-universal .auth-status > div {
|
||||
position: relative;
|
||||
top: 6px;
|
||||
padding-left: 17px;
|
||||
}
|
||||
.auth-skin-universal .auth-status > div.layui-form-radio {
|
||||
padding-left: 5px;
|
||||
}
|
||||
/*美化的多选框/单选框DOM*/
|
||||
.auth-skin-universal .auth-status > div > span {
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
text-decoration: none;
|
||||
|
||||
position: relative;
|
||||
top: -3px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.auth-skin-universal .auth-status >.layui-form-checkbox > span{
|
||||
display:inline-block;
|
||||
padding:3px 8px;
|
||||
text-decoration:none;
|
||||
color: #FFFFFF;
|
||||
background-color: #009688 !important;
|
||||
|
||||
}
|
||||
.auth-skin-universal .auth-status >.layui-form-radio > div{
|
||||
display:inline-block;
|
||||
border-radius: 5px;
|
||||
padding:3px 8px;
|
||||
text-decoration:none;
|
||||
color: #FFFFFF;
|
||||
background-color: #009688 !important;
|
||||
|
||||
}
|
||||
.auth-skin-universal .auth-status >.layui-form-radio{
|
||||
line-height: normal!important;
|
||||
}
|
||||
|
||||
|
||||
.auth-skin-universal .auth-skin {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 13px 5px 0 5px;
|
||||
position: relative;
|
||||
color: #009688;
|
||||
}
|
||||
|
||||
.auth-skin-universal .auth-skin::before, .auth-skin-universal .auth-skin::after {
|
||||
content: '';
|
||||
left: -32.5px;
|
||||
position: absolute;
|
||||
right: auto
|
||||
}
|
||||
|
||||
.auth-skin-universal .auth-skin::before {
|
||||
border-left: 1px dashed #009688;
|
||||
bottom: 50px;
|
||||
height: 100%;
|
||||
top: -4px;
|
||||
width: 1px
|
||||
}
|
||||
|
||||
.auth-skin-universal .auth-skin::after {
|
||||
border-top: 1px dashed #009688;
|
||||
height: 20px;
|
||||
top: 24px; /*radio时 改为24px checkbox时改为27px*/
|
||||
width: 40px
|
||||
}
|
||||
|
||||
/*解决多层数据中,auth-child缩进长度的问题*/
|
||||
.auth-skin-universal > .auth-single .auth-single {
|
||||
margin-left: 58px;
|
||||
}
|
||||
.auth-skin-universal > .auth-single > .auth-skin > .auth-child .auth-child {
|
||||
margin-left: 18px;
|
||||
}
|
||||
.auth-skin-universal > .auth-single > .auth-skin {
|
||||
}
|
||||
|
||||
.auth-skin-universal > .auth-single > .auth-skin::before, .auth-skin-universal > .auth-single > .auth-skin::after {
|
||||
border: 0
|
||||
}
|
||||
|
||||
.auth-skin-universal > .auth-single > .auth-skin:last-child::before {
|
||||
height: 30px
|
||||
}
|
||||
/*隐藏左侧操作的特殊样式*/
|
||||
.auth-skin-universal.auth-tree-hidechoose .auth-status > span {
|
||||
display: none;
|
||||
}
|
||||
.auth-skin-universal.auth-tree-hidechoose .auth-status > div > span {
|
||||
padding-left: 3px;
|
||||
}
|
||||
.auth-skin-universal.auth-tree-hidechoose .auth-status > i {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
/*放于同一行的样式*/
|
||||
.auth-skin-universal .auth-row {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.auth-skin-universal > .auth-single .auth-child .auth-row {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.auth-skin-universal .auth-row.auth-skin::before, .auth-skin-universal .auth-row.auth-skin::after {
|
||||
content: '';
|
||||
border: 0;
|
||||
}
|
16
public/catch-admin/assets/module/authtree/tree_themes/template.css
Executable file
16
public/catch-admin/assets/module/authtree/tree_themes/template.css
Executable file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
Author: Jeffrey Wang
|
||||
Email: admin@wj2015.com
|
||||
Name: authtree主题模板
|
||||
Comment: 备注,用于该主题的描述
|
||||
Version: v1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
主题开发规范:
|
||||
- 主题的名称均按照 auth-skin-自定义名称 的规则进行,禁止中文,因为会造成部分服务器加载失败,比如 auth-skin-bob、auth-skin-shark、auth-skin-deepblue
|
||||
- 主题的文件均放在 layui_exts/tree_themes/ 目录下,主题的名称与CSS的名称需要完全一致,否则主题文件自动加载会失效,比如名称叫做 auth-skin-bob,样式文件路径为 layui_exts/tree_themes/auth-skin-bob
|
||||
- 每个主题样式必须指定作用域,作用域均为 .auth-skin-自定义名称,比如 auth-skin-bob主题需要改造字体颜色为 #666 即可写为 .auth-skin-bob .auth-status > div > span {color: #666;}
|
||||
- 每个主题需要适配左侧有单选/多选框以及隐藏的情况,两者的区别在于顶级作用域多了一个 .auth-tree-hidechoose 类,比如 .auth-skin-bob.auth-tree-hidechoose .auth-status {color: #666}
|
||||
- 主题开发完毕后可以在GitHub上提 Pull Request,或者私聊 admin@wj2015.com,我会更新到文档中以供用户选择
|
||||
*/
|
Reference in New Issue
Block a user