From e4e18b4df99f4f9d5587a56dae1caf41d17db658 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 5 Dec 2021 14:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86=EF=BC=9Aac?= =?UTF-8?q?tive=E7=9A=84=E6=A0=B7=E5=BC=8F=E4=B9=8Bswitch=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/button/switch.less | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/less/base/single/button/switch.less b/src/less/base/single/button/switch.less index 9093c84d7..7a65f2889 100644 --- a/src/less/base/single/button/switch.less +++ b/src/less/base/single/button/switch.less @@ -3,7 +3,7 @@ .bi-switch{ .border-radius(40px 40px 40px 40px); background-color: @color-bi-background-dark-gray; - &:active, &.active { + &.active { background-color: @color-bi-background-highlight; } & .circle-button{ @@ -11,23 +11,17 @@ } &.disabled { background-color: @color-bi-background-disabled; - &:active { - background-color: @color-bi-background-disabled; - } } } .bi-theme-dark { .bi-switch{ background-color: @color-bi-background-dark-gray-theme-dark; - &:active, &.active { + &.active { background-color: @color-bi-background-highlight; } &.disabled { background-color: @color-bi-background-disabled-theme-dark; - &:active { - background-color: @color-bi-background-disabled-theme-dark; - } } } } \ No newline at end of file