From 62a9565f86f2cb380e142d185c1bedddf24a9c2a Mon Sep 17 00:00:00 2001 From: xVirus <123161769@qq.com> Date: Wed, 2 May 2018 10:27:48 +0800 Subject: [PATCH] siderbar.css add namespace (#622) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 原来的普通导航栏样式会使用 siderbar 的样式,背景黑底。 2. 修改后,sidebar 样式不变,普通导航栏可以正常使用。 --- src/styles/sidebar.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss index 36410770..6f1d9df0 100644 --- a/src/styles/sidebar.scss +++ b/src/styles/sidebar.scss @@ -62,8 +62,8 @@ } } } - .nest-menu .el-submenu>.el-submenu__title, - .el-submenu .el-menu-item { + .sidebar-container .nest-menu .el-submenu > .el-submenu__title, + .sidebar-container .nest-menu .el-submenu .el-menu-item { min-width: 180px !important; background-color: $subMenuBg !important; &:hover {