From e440c562deb868e5ac6c74b1f2710d7ccdd0cf64 Mon Sep 17 00:00:00 2001 From: Nino Date: Mon, 26 Dec 2016 16:36:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=A2=AB=20button[disabled]=20=E7=9A=84=E8=A7=84=E5=88=99?= =?UTF-8?q?=E8=A6=86=E7=9B=96=EF=BC=8C=E6=89=80=E4=BB=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BA=86important?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/btn/index.wxss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dist/btn/index.wxss b/dist/btn/index.wxss index 312b9c3f..0d3e4060 100644 --- a/dist/btn/index.wxss +++ b/dist/btn/index.wxss @@ -125,11 +125,12 @@ /* disabled */ .zui-btn.zui-btn--disabled { - color: #999; - background: #f8f8f8; - border-color: #e5e5e5; - cursor: not-allowed; - opacity: 1; + /* 防止样式被 button[disabled] 的规则覆盖,所以使用了important */ + color: #999 ! important; + background: #f8f8f8 ! important; + border-color: #e5e5e5 ! important; + cursor: not-allowed ! important; + opacity: 1 ! important; } /* ::last-child */ From 29eb1276acf9261d300c2ecf189fa15267619d0e Mon Sep 17 00:00:00 2001 From: Nino Date: Mon, 26 Dec 2016 16:38:47 +0800 Subject: [PATCH 2/3] rename zui-btn--big to zui-btn--large --- dist/btn/index.wxss | 2 +- example/btn/index.wxml | 6 +++--- example/dialog/index.wxml | 2 +- example/toast/index.wxml | 2 +- example/toptips/index.wxml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/btn/index.wxss b/dist/btn/index.wxss index 0d3e4060..04a9d145 100644 --- a/dist/btn/index.wxss +++ b/dist/btn/index.wxss @@ -60,7 +60,7 @@ padding-left: 5px; padding-right: 5px; } -.zui-btn--big { +.zui-btn--large { border-radius: 0; margin-bottom: 0; border: none; diff --git a/example/btn/index.wxml b/example/btn/index.wxml index ac3dd5d7..2d659adb 100644 --- a/example/btn/index.wxml +++ b/example/btn/index.wxml @@ -8,9 +8,9 @@ - - - + + + diff --git a/example/dialog/index.wxml b/example/dialog/index.wxml index 7faacbf8..b0335096 100644 --- a/example/dialog/index.wxml +++ b/example/dialog/index.wxml @@ -2,7 +2,7 @@