From 740c2a73fab593a26a1e61ecbb4767bc31c773a1 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Wed, 20 Sep 2023 15:36:48 +0800 Subject: [PATCH] =?UTF-8?q?style(editor):=20=E6=82=AC=E5=81=9C=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=8F=9C=E5=8D=95=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/theme/content-menu.scss | 46 +++++++++++---------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/packages/editor/src/theme/content-menu.scss b/packages/editor/src/theme/content-menu.scss index 93b8243b..cac484b4 100644 --- a/packages/editor/src/theme/content-menu.scss +++ b/packages/editor/src/theme/content-menu.scss @@ -44,30 +44,32 @@ } } - &.active { - background-color: $--theme-color; - .tmagic-design-button, - .tmagic-design-button:active, - .tmagic-design-button:focus { - color: #fff; + &.button { + &:hover { + background-color: $--hover-color; + .tmagic-design-button, + .tmagic-design-button:active, + .tmagic-design-button:focus { + color: $--font-color; + } + + &.menu-item i { + color: $--font-color; + } + } + + &.active { background-color: $--theme-color; - } + .tmagic-design-button, + .tmagic-design-button:active, + .tmagic-design-button:focus { + color: #fff; + background-color: transparent; + } - &.menu-item i { - color: #fff; - } - } - - &:hover { - background-color: $--hover-color; - .tmagic-design-button, - .tmagic-design-button:active, - .tmagic-design-button:focus { - color: $--font-color; - } - - &.menu-item i { - color: $--font-color; + &.menu-item i { + color: #fff; + } } } }