菜单样式更新

This commit is contained in:
robin
2026-02-16 10:32:35 +08:00
parent 7d83a9f7f4
commit 6d6462c65a
4 changed files with 64 additions and 14 deletions

View File

@@ -78,8 +78,8 @@ body.swal2-shown {
border-radius: 3px;
}
:root {
--admin-top-nav-bg: #0a1f3f;
--admin-side-menu-bg: #1a4674;
--admin-top-nav-bg: #0a1f3f;
--admin-side-menu-bg: #0f2c54;
}
.top-nav.theme1,
.top-nav.theme2,
@@ -96,7 +96,9 @@ body.swal2-shown {
.main-menu.theme4,
.main-menu.theme5,
.main-menu.theme6,
.main-menu.theme7,
.main-menu.theme7 {
background: var(--admin-side-menu-bg) !important;
}
.main-menu.theme1 .menu,
.main-menu.theme2 .menu,
.main-menu.theme3 .menu,
@@ -104,7 +106,8 @@ body.swal2-shown {
.main-menu.theme5 .menu,
.main-menu.theme6 .menu,
.main-menu.theme7 .menu {
background: var(--admin-side-menu-bg) !important;
background: transparent !important;
background-image: none !important;
}
.main-menu .ui.menu .item.separator,
.main-menu .ui.menu .sub-items .item.separator {
@@ -117,6 +120,11 @@ body.swal2-shown {
}
.main-menu {
top: 2.6em !important;
background: var(--admin-side-menu-bg) !important;
}
.main-menu .ui.menu {
min-height: 100% !important;
margin: 0 !important;
}
.main-menu > .ui.menu > .item:first-child:empty {
display: none !important;

View File

@@ -110,7 +110,7 @@ body.swal2-shown {
// Menu background colors only
:root {
--admin-top-nav-bg: #0a1f3f;
--admin-side-menu-bg: #1a4674;
--admin-side-menu-bg: #0f2c54;
}
.top-nav.theme1,
@@ -129,7 +129,10 @@ body.swal2-shown {
.main-menu.theme4,
.main-menu.theme5,
.main-menu.theme6,
.main-menu.theme7,
.main-menu.theme7 {
background: var(--admin-side-menu-bg) !important;
}
.main-menu.theme1 .menu,
.main-menu.theme2 .menu,
.main-menu.theme3 .menu,
@@ -137,7 +140,8 @@ body.swal2-shown {
.main-menu.theme5 .menu,
.main-menu.theme6 .menu,
.main-menu.theme7 .menu {
background: var(--admin-side-menu-bg) !important;
background: transparent !important;
background-image: none !important;
}
// Hide menu separators
@@ -154,6 +158,12 @@ body.swal2-shown {
// Align left menu with top nav and remove leading spacer item
.main-menu {
top: 2.6em !important;
background: var(--admin-side-menu-bg) !important;
}
.main-menu .ui.menu {
min-height: 100% !important;
margin: 0 !important;
}
.main-menu > .ui.menu > .item:first-child:empty {