动态后台主题

This commit is contained in:
Anyon 2022-01-19 17:46:11 +08:00
parent 00acd1799c
commit 5a63c4cbe4
5 changed files with 12 additions and 2 deletions

View File

@ -51,6 +51,7 @@ class Index extends Controller
} else { } else {
$this->title = '系统管理后台'; $this->title = '系统管理后台';
$this->isSuper = AdminService::instance()->isSuper(); $this->isSuper = AdminService::instance()->isSuper();
$this->theme = sysconf('base.site_theme') ?: 'default';
$this->fetch('layout'); $this->fetch('layout');
} }
} }

View File

@ -22,7 +22,7 @@
<body class="layui-layout-body"> <body class="layui-layout-body">
{block name='body'} {block name='body'}
<div class="layui-layout layui-layout-admin layui-layout-left-hide layui-layout-theme-white"> <div class="layui-layout layui-layout-admin layui-layout-left-hide layui-layout-theme-{$theme|default=''}">
<!-- 顶部菜单 开始 --> <!-- 顶部菜单 开始 -->
{include file='index/layout-top'} {include file='index/layout-top'}

View File

@ -386,6 +386,7 @@
display: block; display: block;
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
margin-top: -25px;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
border-top-left-radius: 100%; border-top-left-radius: 100%;
border-bottom-left-radius: 100%; border-bottom-left-radius: 100%;
@ -516,7 +517,9 @@
.nav-icon { .nav-icon {
padding: 0 !important; padding: 0 !important;
font-size: 16px !important;
display: inline-block !important; display: inline-block !important;
#defaTransition();
} }
.layui-nav-child { .layui-nav-child {

View File

@ -1706,6 +1706,7 @@ label.think-checkbox {
display: block; display: block;
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
margin-top: -25px;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.4);
border-top-left-radius: 100%; border-top-left-radius: 100%;
border-bottom-left-radius: 100%; border-bottom-left-radius: 100%;
@ -1832,7 +1833,12 @@ label.think-checkbox {
} }
.layui-layout-left-mini > .layui-side .layui-nav-item .nav-icon { .layui-layout-left-mini > .layui-side .layui-nav-item .nav-icon {
padding: 0 !important; padding: 0 !important;
font-size: 16px !important;
display: inline-block !important; display: inline-block !important;
transition: all 0.2s linear;
-o-transition: all 0.2s linear;
-moz-transition: all 0.2s linear;
-webkit-transition: all 0.2s linear;
} }
.layui-layout-left-mini > .layui-side .layui-nav-item .layui-nav-child { .layui-layout-left-mini > .layui-side .layui-nav-item .layui-nav-child {
padding: 0; padding: 0;

File diff suppressed because one or more lines are too long