From 84e6d8da9ef875154a1ac0916cc72c5d149cd50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 26 Nov 2021 21:48:05 +0800 Subject: [PATCH] Update layout.vue --- static/template/layout.vue | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/static/template/layout.vue b/static/template/layout.vue index d1adb90e5..2ad57de79 100644 --- a/static/template/layout.vue +++ b/static/template/layout.vue @@ -2,12 +2,9 @@ ThinkAdmin For HTML @@ -137,6 +134,32 @@ body > .el-container { text-align: center; } +.el-menu { + .el-menu-item:not(.is-disabled) { + &:hover { + color: #FFF !important; + background: rgba(54, 25, 88, 0.9) !important; + } + + &.is-active { + color: #FFF !important; + background: rgba(0, 0, 0, 0.4); + } + } + + .el-sub-menu { + .el-sub-menu__title { + color: #FFF !important; + background: none !important; + } + + &.is-opened { + .el-sub-menu__title { + background: rgba(0, 0, 0, 0.1) !important; + } + } + } +}