优化 asidenav 样式

This commit is contained in:
2betop 2020-10-10 12:50:53 +08:00
parent aa2508542c
commit b897efe4f2
2 changed files with 8 additions and 6 deletions

View File

@ -99,7 +99,13 @@
transition: all 0.2s ease-in-out 0s;
background-color: $Layout-aside-subList-bg;
.#{$ns}Layout--folded .#{$ns}AsideNav-item > & {
display: block;
overflow: hidden;
}
.is-open > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item .#{$ns}AsideNav-item.is-open > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:hover > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:focus > &,
.#{$ns}Layout--folded .#{$ns}AsideNav-item:active > & {
@ -108,10 +114,6 @@
height: auto !important;
overflow: visible;
}
.#{$ns}Layout--folded .#{$ns}AsideNav-item.is-open > & {
overflow: hidden;
}
}
&-item {

View File

@ -378,8 +378,8 @@ body {
.#{$ns}Layout-asideWrap {
overflow: visible;
position: relative;
top: 0;
// position: relative;
// top: 0;
z-index: 15;
}