refactor: change the theme color scheme

This commit is contained in:
2025-10-28 20:26:10 +08:00
parent bd817279db
commit a05bd23766
12 changed files with 158 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
/* 侧边菜单组件局部样式 */
.sider-header { border-bottom: 1px solid rgba(255,255,255,0.08); }
.sider-header { border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--text-invert); }
/* 收起时图标水平居中(仅 PC 端 Sider 使用) */
.sider-header.collapsed { justify-content: center; }
@@ -14,6 +14,42 @@
/* 移动端 Drawer 背景与滚动 */
.mobile-menu-drawer .ant-drawer-body {
background: #0f172a; /* 与页面暗色一致 */
background: linear-gradient(180deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.22) 100%), var(--bg-sider);
padding: 0;
height: 100%;
}
/* Dark 菜单项:选中与悬停采用薄荷主色的柔和高亮 */
.ant-menu-dark .ant-menu-item-selected {
background-color: rgba(167, 243, 208, 0.16) !important;
color: var(--text-invert) !important;
}
.ant-menu-dark .ant-menu-item:hover {
background-color: rgba(255, 255, 255, 0.08) !important;
}
/* 移动端菜单背景透明以露出侧栏渐变 */
.mobile-menu-drawer .ant-menu { background: transparent !important; }
/* 统一 Sider 背景为薄荷风格的深色渐变 */
.ant-layout-sider {
background: linear-gradient(180deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.22) 100%), var(--bg-sider) !important;
}
.ant-layout-sider .ant-menu { background: transparent !important; }
/* Sider 触发按钮(折叠/展开)样式 */
.ant-layout-sider-trigger {
background: linear-gradient(180deg, rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.28) 100%) !important;
color: var(--text-invert) !important;
border-top: 1px solid rgba(167, 243, 208, 0.25);
}
/* 移动端汉堡按钮风格 */
.mobile-menu-trigger {
border: 1px solid rgba(255,255,255,0.16);
background: linear-gradient(180deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.24) 100%);
color: var(--text-invert);
}
.mobile-menu-trigger:hover {
background: rgba(16,185,129,0.35);
}