mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-02 14:20:21 +08:00
style: 修改菜单选中样式
This commit is contained in:
@@ -59,14 +59,19 @@ function handleMenuSelect(key, item) {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.side-menu:not(.n-menu--collapsed) {
|
||||
.n-menu-item-content {
|
||||
&::before {
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
}
|
||||
&.n-menu-item-content--selected::before {
|
||||
border-left: 4px solid var(--primary-color);
|
||||
.side-menu {
|
||||
.n-menu-item-content__icon {
|
||||
border: 1px solid rgb(229, 231, 235);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.n-menu-item-content--child-active,
|
||||
.n-menu-item-content--selected {
|
||||
.n-menu-item-content__icon {
|
||||
border-color: var(--primary-color);
|
||||
background-color: var(--primary-color);
|
||||
i {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user