From ae382f7064974ff98493741c3624a9782fa09aa5 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Fri, 15 Jan 2021 16:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/sidebar.scss | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 94760cc..be2f76f 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -10,7 +10,8 @@ .sidebar-container { transition: width 0.28s; width: $sideBarWidth !important; - background-color: $menuBg; + // background-color: $menuBg; + background: -webkit-linear-gradient(bottom, #3d6df8, #5b8cff); height: 100%; position: fixed; font-size: 0px; @@ -27,6 +28,8 @@ .scrollbar-wrapper { overflow-x: hidden !important; + background: url('~@/assets/common/leftnavBg.png') no-repeat 0 100%; + // ~@ 表示相对于@的路径 } .el-scrollbar__bar.is-vertical { @@ -66,6 +69,29 @@ border: none; height: 100%; width: 100% !important; + a{ + li{ + .svg-icon{ + color: #fff; + font-size: 18px; + vertical-align: middle; + .icon{ + color:#fff; + } + } + span{ + color: #fff; + } + &:hover{ + .svg-icon{ + color: #43a7fe + } + span{ + color: #43a7fe; + } + } + } + } } // menu hover