From 8c38eeb5e9298cc25e1ccb7722328c70acadf571 Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Fri, 10 Feb 2023 02:37:23 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=BB=84=E4=BB=B6=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 Signed-off-by: Dong Xia --- src/assets/common.scss | 82 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/src/assets/common.scss b/src/assets/common.scss index 0d93fb5..bfe006d 100644 --- a/src/assets/common.scss +++ b/src/assets/common.scss @@ -151,4 +151,84 @@ body{ } } } - } \ No newline at end of file + } + + .side-menu{ + .ant-menu-item{ + span{ + transition: all .5s; + position: relative; + &::after{ + content: ''; + height: 1px; + width: 0px; + transition: all .75s; + background: #fff; + left: -15px; + top: 50%; + position: absolute; + } + } + &:hover{ + span{ + margin-left: 12px; + &::after{ + width: 8px; + } + } + } + color: #e0e0e0; + margin: 0; + display: flex; + align-items: center; + span{ + font-size: 15px; + height: 40px; + line-height: 41px; + } + &.ant-menu-item-selected{ + position: relative; + &::after{ + content: ''; + height: 0px; + border-radius: 50%; + width: 5px; + position: absolute; + left: 10px; + top: 50%; + transform: translateY(-50%); + filter: drop-shadow(0 0 15px #000); + } + } + } + .ant-menu-submenu { + color: #eee; + span{ + span{ + transition: all 0.5s; + position: relative; + &::after{ + content: ''; + height: 1px; + width: 0px; + background: #fff; + left: -15px; + top: 50%; + position: absolute; + transition: all 0.75s; + } + } + } + &:hover{ + span{ + span{ + margin-left: 12px; + &::after{ + width: 8px; + } + } + } + } + + } +} \ No newline at end of file -- Gitee From 999a1b4f78f7dc0c732fb7e4d0a1c16d3a395bcf Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Fri, 10 Feb 2023 02:39:14 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=BB=84=E4=BB=B6=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 Signed-off-by: Dong Xia --- src/assets/common.scss | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/assets/common.scss b/src/assets/common.scss index bfe006d..e4d1cf3 100644 --- a/src/assets/common.scss +++ b/src/assets/common.scss @@ -229,6 +229,24 @@ body{ } } } - + &.ant-menu-submenu-open{ + &:hover{ + span{ + span{ + margin-left: 0; + &::after{ + width: 0px; + } + } + } + } + } + .ant-menu-submenu-title{ + span{ + display: flex; + align-items: center; + font-size: 15px; + } + } } } \ No newline at end of file -- Gitee