From 4819522a1edb11a4b1c407bd1b3664a26deffb1c Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 13 Jan 2022 14:11:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20button=E6=A0=B7=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/button/button.less | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/less/base/single/button/button.less b/src/less/base/single/button/button.less index df681fc31..facc79f8b 100644 --- a/src/less/base/single/button/button.less +++ b/src/less/base/single/button/button.less @@ -58,16 +58,29 @@ body .bi-button, #body .bi-button { } &.button-ignore { & { + background-color: transparent; + &:not(.clear, .ghost) { + border-color: @color-bi-border-ignore-button; + } + } + &:not(.clear, .ghost) { &, & .b-font:before { color: @color-bi-text-ignore-button; } - background-color: transparent; - border-color: @color-bi-border-ignore-button; } &.clear { background-color: transparent; border-width: 0; } + &.ghost { + &:hover { + &, & .b-font:before { + color: @color-bi-text-ignore-button; + } + } + background-color: transparent; + border-color: @color-bi-border-dark-gray-line; + } } &.button-success { & { @@ -298,8 +311,10 @@ body .bi-button, #body .bi-button { .opacity(0.1); .transition(@activeStopVal) } - &:hover{ - background-color: @color-bi-background-hover-ignore-button-mask; + &:hover { + &:not(.clear, .ghost) { + background-color: @color-bi-background-hover-ignore-button-mask; + } .transition(@hoverVal); } }