菜单样式更新

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

@@ -79,10 +79,10 @@ select.dropdown {
height: auto !important;
}
// Menu background colors and separator cleanup
// Menu background colors only
:root {
--admin-top-nav-bg: #0a1f3f;
--admin-side-menu-bg: #1a4674;
--admin-side-menu-bg: #0f2c54;
}
.top-nav,
@@ -103,7 +103,10 @@ select.dropdown {
.main-menu.theme4,
.main-menu.theme5,
.main-menu.theme6,
.main-menu.theme7,
.main-menu.theme7 {
background: var(--admin-side-menu-bg) !important;
}
.main-menu .menu,
.main-menu.theme1 .menu,
.main-menu.theme2 .menu,
@@ -112,9 +115,18 @@ select.dropdown {
.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;
}
// Keep menu items transparent for unified menu background
.main-menu .ui.menu .item,
.main-menu .ui.menu .sub-items,
.main-menu .ui.menu .sub-items .item {
background: transparent !important;
}
// Hide menu separators
.main-menu .ui.menu .item.separator,
.main-menu .ui.menu .sub-items .item.separator {
display: none !important;
@@ -128,6 +140,12 @@ select.dropdown {
// 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 {