mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 01:50:27 +08:00
管理系统增加两种背景风格
This commit is contained in:
@@ -15,7 +15,7 @@ type ThemeAction struct {
|
|||||||
func (this *ThemeAction) RunPost(params struct{}) {
|
func (this *ThemeAction) RunPost(params struct{}) {
|
||||||
theme := configloaders.FindAdminTheme(this.AdminId())
|
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"
|
var nextTheme = "theme1"
|
||||||
if len(theme) == 0 {
|
if len(theme) == 0 {
|
||||||
nextTheme = "theme2"
|
nextTheme = "theme2"
|
||||||
|
|||||||
@@ -405,6 +405,12 @@ body.expanded .main {
|
|||||||
.top-nav.theme5 {
|
.top-nav.theme5 {
|
||||||
background: #1C7947 !important;
|
background: #1C7947 !important;
|
||||||
}
|
}
|
||||||
|
.top-nav.theme6 {
|
||||||
|
background: #1D365D !important;
|
||||||
|
}
|
||||||
|
.top-nav.theme7 {
|
||||||
|
background: black !important;
|
||||||
|
}
|
||||||
.top-nav::-webkit-scrollbar {
|
.top-nav::-webkit-scrollbar {
|
||||||
height: 2px;
|
height: 2px;
|
||||||
}
|
}
|
||||||
@@ -563,6 +569,18 @@ body.expanded .main {
|
|||||||
.main-menu.theme5 .menu {
|
.main-menu.theme5 .menu {
|
||||||
background: #1C7947 !important;
|
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 {
|
.main-menu::-webkit-scrollbar {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -338,11 +338,18 @@ body.expanded .main {
|
|||||||
background: #1C7947 !important;
|
background: #1C7947 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-nav.theme6 {
|
||||||
|
background: #1D365D !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-nav.theme7 {
|
||||||
|
background: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
.top-nav::-webkit-scrollbar {
|
.top-nav::-webkit-scrollbar {
|
||||||
height: 2px;
|
height: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** 顶部菜单 **/
|
/** 顶部菜单 **/
|
||||||
.top-secondary-menu {
|
.top-secondary-menu {
|
||||||
position: fixed;
|
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 {
|
.main-menu::-webkit-scrollbar {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user