From b897efe4f21bba77f78455f0ce67cb8d96986472 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Sat, 10 Oct 2020 12:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20asidenav=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scss/layout/_aside.scss | 10 ++++++---- scss/layout/_layout.scss | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scss/layout/_aside.scss b/scss/layout/_aside.scss index 1c11874ff..692b196f3 100644 --- a/scss/layout/_aside.scss +++ b/scss/layout/_aside.scss @@ -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 { diff --git a/scss/layout/_layout.scss b/scss/layout/_layout.scss index 903450ebf..d797009d8 100644 --- a/scss/layout/_layout.scss +++ b/scss/layout/_layout.scss @@ -378,8 +378,8 @@ body { .#{$ns}Layout-asideWrap { overflow: visible; - position: relative; - top: 0; + // position: relative; + // top: 0; z-index: 15; }