From 1d7694696881e47cffb7fdec478f2458be056aab Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Mon, 28 Nov 2022 00:35:12 +0800 Subject: [PATCH] style: update message --- src/style/dark.scss | 7 +++++++ src/style/element-plus.scss | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/style/dark.scss b/src/style/dark.scss index 348575631..59f7ec34f 100644 --- a/src/style/dark.scss +++ b/src/style/dark.scss @@ -199,5 +199,12 @@ html.dark { pointer-events: all !important; background-image: initial !important; } + + & .el-message__closeBtn { + &:hover { + color: rgba(255, 255, 255, 0.85); + background-color: rgba(255, 255, 255, 0.12); + } + } } } diff --git a/src/style/element-plus.scss b/src/style/element-plus.scss index aa357b95c..e21a46413 100644 --- a/src/style/element-plus.scss +++ b/src/style/element-plus.scss @@ -86,6 +86,13 @@ } & .el-message__closeBtn { + outline: none; + border-radius: 4px; right: 9px !important; + transition: background-color 0.2s, color 0.2s; + + &:hover { + background-color: rgba(0, 0, 0, 0.06); + } } }