diff --git a/web/src/index.css b/web/src/index.css index 10b7e49..a638fd6 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -1314,6 +1314,19 @@ button.pn-note-back:hover { width: 15px; height: 15px; } +/* 选中项沿用侧栏 token 的黑底反白(colorPrimary 近黑/近白,antd 默认的 + primary 淡色底在明暗模式下都与侧栏底色拉不开) */ +.pn-admin-menu li.ant-menu-item-selected { + background: var(--sidebar-primary); + color: var(--sidebar-primary-foreground); +} +.pn-admin-menu li.ant-menu-item-selected svg { + color: var(--sidebar-primary-foreground); +} +.pn-admin-menu li.ant-menu-item:hover:not(.ant-menu-item-selected) { + background: var(--sidebar-accent); + color: var(--sidebar-accent-foreground); +} .pn-admin-foot { display: flex; flex-direction: column;