提交 8bc2ee8c authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 5e791622
...@@ -86,9 +86,6 @@ function findMenu(path: string, menus: IMenuItem[]) { ...@@ -86,9 +86,6 @@ function findMenu(path: string, menus: IMenuItem[]) {
height: 100%; height: 100%;
background: #fff; background: #fff;
box-sizing: border-box; box-sizing: border-box;
> ul > li {
padding: 8px;
}
.menu-item { .menu-item {
height: 44px; height: 44px;
text-align: center; text-align: center;
...@@ -102,20 +99,24 @@ function findMenu(path: string, menus: IMenuItem[]) { ...@@ -102,20 +99,24 @@ function findMenu(path: string, menus: IMenuItem[]) {
fill: var(--main-color); fill: var(--main-color);
} }
} }
}
> ul > li {
padding: 8px;
&.is-active { &.is-active {
.menu-item {
background-color: var(--main-color); background-color: var(--main-color);
}
svg { svg {
fill: #fff; fill: #fff;
} }
} }
} &:hover {
> ul > li:hover {
.submenu { .submenu {
display: block; display: block;
} }
} }
} }
}
.submenu { .submenu {
display: none; display: none;
position: absolute; position: absolute;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论