From 0c230c92da4d663c448cfed15bb0d2d86e4ff3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=99=93=E4=BA=91?= Date: Fri, 29 Apr 2022 16:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/layout/pro/styles/app/_menu.less | 40 +++++++++++++++++++++--- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/src/app/layout/pro/styles/app/_menu.less b/src/app/layout/pro/styles/app/_menu.less index 4f548617..ccb5da67 100644 --- a/src/app/layout/pro/styles/app/_menu.less +++ b/src/app/layout/pro/styles/app/_menu.less @@ -1,26 +1,33 @@ @{alain-pro-prefix} { &__menu { display: block; + &-item { &--disabled { pointer-events: none; } } + &-only-icon { @{alain-pro-prefix}__menu-item { padding-right: 8px !important; padding-left: 8px !important; + &:first-child { padding-left: 0; } } + @{alain-pro-prefix}__menu-icon { margin-right: 0; font-size: @alain-pro-top-nav-only-icon-fs; + min-width: 14px; } } + &-title { position: relative; + &-badge { display: flex; justify-content: center; @@ -31,27 +38,34 @@ line-height: 18px; background: @alain-pro-header-title-badge-bg; border-radius: 50%; - > em { + + >em { color: @alain-pro-header-title-badge-color; font-style: normal; } } } + &-img { - width: @alain-pro-sider-menu-img-wh !important; - height: @alain-pro-sider-menu-img-wh !important; + width: @alain-pro-sider-menu-img-wh !important; + height: @alain-pro-sider-menu-img-wh !important; } + } + &__side-nav { @{alain-pro-prefix}__menu { &-title { display: flex; align-items: center; + &-text { flex: 1; + // opacity: 0; } } } + .@{ant-prefix}-menu-inline-collapsed { @{alain-pro-prefix}__menu-title-badge { position: absolute; @@ -59,10 +73,28 @@ right: -16px; width: 8px; height: 8px; - > em { + + >em { display: none; } } } } } + +@{aside-collapsed-prefix} { + @{alain-pro-prefix} { + &__menu { + &-icon { + overflow: inherit; + } + + &-title { + &-text { + opacity: 0; + } + } + } + } + +}