管理系统增加两种背景风格

This commit is contained in:
刘祥超
2023-03-15 15:35:11 +08:00
parent 9d8cbf87dc
commit c0a13305ad
4 changed files with 44 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ type ThemeAction struct {
func (this *ThemeAction) RunPost(params struct{}) {
theme := configloaders.FindAdminTheme(this.AdminId())
var themes = []string{"theme1", "theme2", "theme3", "theme4", "theme5"}
var themes = []string{"theme1", "theme2", "theme3", "theme4", "theme5", "theme6", "theme7"}
var nextTheme = "theme1"
if len(theme) == 0 {
nextTheme = "theme2"

View File

@@ -405,6 +405,12 @@ body.expanded .main {
.top-nav.theme5 {
background: #1C7947 !important;
}
.top-nav.theme6 {
background: #1D365D !important;
}
.top-nav.theme7 {
background: black !important;
}
.top-nav::-webkit-scrollbar {
height: 2px;
}
@@ -563,6 +569,18 @@ body.expanded .main {
.main-menu.theme5 .menu {
background: #1C7947 !important;
}
.main-menu.theme6 {
background: #1D365D !important;
}
.main-menu.theme6 .menu {
background: #1D365D !important;
}
.main-menu.theme7 {
background: black !important;
}
.main-menu.theme7 .menu {
background: black !important;
}
.main-menu::-webkit-scrollbar {
width: 2px;
}

File diff suppressed because one or more lines are too long

View File

@@ -338,11 +338,18 @@ body.expanded .main {
background: #1C7947 !important;
}
.top-nav.theme6 {
background: #1D365D !important;
}
.top-nav.theme7 {
background: black !important;
}
.top-nav::-webkit-scrollbar {
height: 2px;
}
/** 顶部菜单 **/
.top-secondary-menu {
position: fixed;
@@ -544,6 +551,22 @@ body.expanded .main {
}
}
.main-menu.theme6 {
background: #1D365D !important;
.menu {
background: #1D365D !important;
}
}
.main-menu.theme7 {
background: black !important;
.menu {
background: black !important;
}
}
.main-menu::-webkit-scrollbar {
width: 2px;
}