From babf111121bce1afa5a141636720e154a640217b Mon Sep 17 00:00:00 2001 From: wynn Date: Wed, 24 Apr 2019 15:47:58 +0800 Subject: [PATCH] 将直接填写颜色的地方修改成变量,修改hover bug --- src/styles/components/button.less | 16 ++++++++-------- src/styles/mixins/button.less | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/styles/components/button.less b/src/styles/components/button.less index 3292f37..6bb53a3 100644 --- a/src/styles/components/button.less +++ b/src/styles/components/button.less @@ -162,8 +162,8 @@ color: #333; border-color: @border-color-base; &:hover { - color: #3fcdc0; - border-color: #3fcdc0; + color: #333; + border-color: @search-hover-color; } } &-ghost&-primary{ @@ -206,7 +206,7 @@ color: #fff; &:hover{ color: #fff; - background: #15bcad; + background: @search-hover-color; } } @@ -214,7 +214,7 @@ color: #fff; &:hover { color: #fff; - background: #ff903a; + background: @confirm-hover-color; } } @@ -222,8 +222,8 @@ color: #333; border-color: @border-color-base; &:hover { - color: #ff9a4c; - border-color: #ff903a; + color: #fff; + border-color: @confirm-hover-color; } } @@ -231,8 +231,8 @@ color: #333; border-color: @border-color-base; &:hover { - color: #15bcad; - border-color: #15bcad; + color: #fff; + border-color: @reset-hover-color; } } diff --git a/src/styles/mixins/button.less b/src/styles/mixins/button.less index 9618f9d..2f96c8d 100644 --- a/src/styles/mixins/button.less +++ b/src/styles/mixins/button.less @@ -206,7 +206,7 @@ &:hover //&:focus { - .button-color(tint(@search-color, 20%); white; tint(@search-color, 20%)); + .button-color(tint(@search-hover-color, 20%); white; tint(@search-hover-color, 20%)); } &:active, &.active { -- libgit2 0.21.4