From 699609ff259a614b4d95d9b349e482e5ec416bd3 Mon Sep 17 00:00:00 2001 From: bearyan Date: Sun, 26 Jan 2020 14:40:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8D=E5=86=8D=E5=AF=B9`weui-btn=5F?= =?UTF-8?q?plain`=E8=BF=9B=E8=A1=8C=E6=94=AF=E6=8C=81=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BD=BF=E7=94=A8`weui-btn`=E4=BB=A3=E6=9B=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style/base/variable/weui-button.less | 6 --- .../widget/weui-button/weui-btn_plain.less | 43 ------------------- src/style/widget/weui-button/weui-button.less | 5 --- 3 files changed, 54 deletions(-) delete mode 100644 src/style/widget/weui-button/weui-btn_plain.less diff --git a/src/style/base/variable/weui-button.less b/src/style/base/variable/weui-button.less index d4e136be..bdc251f5 100644 --- a/src/style/base/variable/weui-button.less +++ b/src/style/base/variable/weui-button.less @@ -59,9 +59,3 @@ @weuiBtnWarnBg: @weuiBtnDefaultBg; @weuiBtnWarnActiveBg: @weuiBtnDefaultActiveBg; @weuiBtnwarnDisabledBg: @weuiBtnDefaultDisabledBg; - -// plain-btn -@weuiBtnPlainPrimaryColor: var(--weui-BRAND); -@weuiBtnPlainPrimaryBorderColor: var(--weui-BRAND); -@weuiBtnPlainDefaultColor: var(--weui-BTN-DEFAULT-BG); -@weuiBtnPlainDefaultBorderColor: var(--weui-BTN-DEFAULT-BG); diff --git a/src/style/widget/weui-button/weui-btn_plain.less b/src/style/widget/weui-button/weui-btn_plain.less deleted file mode 100644 index d5173856..00000000 --- a/src/style/widget/weui-button/weui-btn_plain.less +++ /dev/null @@ -1,43 +0,0 @@ -/* -* Tencent is pleased to support the open source community by making WeUI available. -* -* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. -* -* Licensed under the MIT License (the "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://opensource.org/licenses/MIT -* -* Unless required by applicable law or agreed to in writing, software distributed under the License is -* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, -* either express or implied. See the License for the specific language governing permissions and -* limitations under the License. -*/ - -@import "../../base/fn"; - -.weui-btn_plain-primary { - color: @weuiBtnPlainPrimaryColor; - border: 1px solid @weuiBtnPlainPrimaryBorderColor; - &:not(.weui-btn_plain-disabled):active { - background-color:rgba(0,0,0,.1); - } - &:after { - border-width: 0; - } -} - -.weui-btn_plain-default { - color: @weuiBtnPlainDefaultColor; - border: 1px solid @weuiBtnPlainDefaultBorderColor; - &:not(.weui-btn_plain-disabled):active { - background-color:rgba(0,0,0,.1); - } - &:after { - border-width: 0; - } -} -.weui-btn_plain-disabled{ - color:rgba(0,0,0,.2); - border-color:rgba(0,0,0,.2); -} diff --git a/src/style/widget/weui-button/weui-button.less b/src/style/widget/weui-button/weui-button.less index 0def32aa..fc0a4cdb 100644 --- a/src/style/widget/weui-button/weui-button.less +++ b/src/style/widget/weui-button/weui-button.less @@ -21,7 +21,6 @@ @import "weui-btn_warn"; @import "weui-btn_disabled"; @import "weui-btn_loading"; -@import "weui-btn_plain"; @import "weui-btn_cell"; button, input { @@ -36,10 +35,6 @@ button, input { &.weui-btn_inline,&.weui-btn_mini { width: auto; } - &.weui-btn_plain-primary,&.weui-btn_plain-default{ - border-width: 1px; - background-color: transparent; - } } .weui-btn_mini {