From 7ebfa6054dd03111ad4ba32ef25c15a8c04b8a74 Mon Sep 17 00:00:00 2001 From: everywill Date: Thu, 5 Oct 2017 23:27:25 -0500 Subject: [PATCH] =?UTF-8?q?capsule=E6=94=AF=E6=8C=81=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=8F=8A=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=20(#34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style: badge上标大小改变更加灵活 * style: panel-title的行高跟随字号 * style: 绝对定位的元素width或height为auto,left,right,top,bottom不为auto时,auto的margin将计算为0,同初始值 * style: 修复作为组件使用时dialog的定位问题 * style: 修正示例 * style: add * style: capsule * style: modify readme * style: add noticebar * style: modify readme * style: noticebar优化 * style: add popup * style: remove * style: 左右反了... * style: 通告栏支持同一页面多个 * style: 独立管理不同noticebar的动画数据 * style: add * style: 删除多余文件 * style: capsule自定义颜色 --- dist/capsule/index.wxml | 12 +++++++++--- dist/capsule/index.wxss | 21 ++++++++++++++++----- dist/cell/index.wxss | 13 ++++++++++++- example/capsule/index.wxml | 9 +++++++++ example/cell/index.wxml | 18 ++++++++++++++++++ example/tab/index.wxss | 0 6 files changed, 64 insertions(+), 9 deletions(-) delete mode 100644 example/tab/index.wxss diff --git a/dist/capsule/index.wxml b/dist/capsule/index.wxml index b7ed859a..da86deba 100644 --- a/dist/capsule/index.wxml +++ b/dist/capsule/index.wxml @@ -1,6 +1,12 @@ \ No newline at end of file diff --git a/dist/capsule/index.wxss b/dist/capsule/index.wxss index 7fbf4c98..48be9a49 100644 --- a/dist/capsule/index.wxss +++ b/dist/capsule/index.wxss @@ -15,14 +15,25 @@ } .zan-capsule__left { padding: 0 2px; - color: #fff; - background: #F24544; + color: #FFF; + background: #999; border-radius: 2px 0 0 2px; - border: 1rpx solid #F24544; + border: 1rpx solid #999; } .zan-capsule__right { padding: 0 5px; - color: #F24544; + color: #999; border-radius: 0 2px 2px 0; - border: 1rpx solid #F24544; + border: 1rpx solid #999; +} + +.zan-capsule--danger .zan-capsule__left { + color: #FFF; + background: #F24544; + border-color: #F24544; +} + +.zan-capsule--danger .zan-capsule__right { + color: #F24544; + border-color: #F24544; } diff --git a/dist/cell/index.wxss b/dist/cell/index.wxss index 43ca13ed..e8cb1d3a 100644 --- a/dist/cell/index.wxss +++ b/dist/cell/index.wxss @@ -16,15 +16,26 @@ background: #e5e5e5; content: ' '; } +.zan-cell__icon { + margin-right: 5px; +} .zan-cell__bd { flex: 1; } +.zan-cell__text { + line-height: 24px; + font-size: 14px; +} +.zan-cell__desc { + line-height: 1.2; + font-size: 12px; + color: #666; +} .zan-cell__ft { position: relative; text-align: right; color: #666; } - .zan-cell__no-pading{ padding: 0; } diff --git a/example/capsule/index.wxml b/example/capsule/index.wxml index e8063549..d4041257 100644 --- a/example/capsule/index.wxml +++ b/example/capsule/index.wxml @@ -4,9 +4,18 @@ CAPSULE + 基本用法