From 0f0f269f40cf471a34b842ed9a24ab71aab9dd75 Mon Sep 17 00:00:00 2001 From: everywill Date: Thu, 2 Mar 2017 02:10:37 -0600 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E4=BC=98=E5=8C=96=20(#15)?= 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,同初始值 --- dist/badge/index.wxss | 10 +++++----- dist/card/index.wxss | 1 - dist/panel/index.wxss | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dist/badge/index.wxss b/dist/badge/index.wxss index a712f29f..eecdb63c 100644 --- a/dist/badge/index.wxss +++ b/dist/badge/index.wxss @@ -5,13 +5,13 @@ position: absolute; top: -8px; right: 0px; - height: 16px; - min-width: 16px; - line-height: 16px; - padding: 0 4px; + height: 1.6em; + min-width: 1.6em; + line-height: 1.6; + padding: 0 .4em; font-size: 10px; font-family: tahoma; - border-radius: 10px; + border-radius: .8em; background: #FF4444; color: #fff; text-align: center; diff --git a/dist/card/index.wxss b/dist/card/index.wxss index 5829a31d..27a4376c 100644 --- a/dist/card/index.wxss +++ b/dist/card/index.wxss @@ -20,7 +20,6 @@ .zan-card__img { position: absolute; - margin: auto; top: 0; left: 0; right: 0; diff --git a/dist/panel/index.wxss b/dist/panel/index.wxss index 51c0650a..02a85335 100644 --- a/dist/panel/index.wxss +++ b/dist/panel/index.wxss @@ -8,7 +8,7 @@ .zan-panel-title { font-size: 14px; - line-height: 14px; + line-height: 1; color: #999; padding: 20px 15px 0 15px; }