From ce5559a57e9aee2338ba362dd99f165e24ce8c3c Mon Sep 17 00:00:00 2001 From: Yao Date: Sat, 23 Dec 2017 14:25:41 +0800 Subject: [PATCH] =?UTF-8?q?[improvement]=20=E9=83=A8=E5=88=86=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E8=BE=B9=E6=A1=86=E5=AE=9E=E7=8E=B0=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20(#87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 使用超细边框 * 部分组件切换为 hairline * 文档 边框替换 --- example/app.wxss | 8 +-- example/pages/badge/index.wxml | 2 +- example/pages/btn/index.wxml | 2 +- example/pages/capsule/index.wxml | 2 +- example/pages/card/index.wxml | 2 +- example/pages/cell/index.wxml | 2 +- example/pages/dialog/index.wxml | 2 +- example/pages/field/index.wxml | 2 +- example/pages/icon/index.wxml | 2 +- example/pages/layout/index.wxml | 2 +- example/pages/loadmore/index.wxml | 2 +- example/pages/noticebar/index.wxml | 2 +- example/pages/panel/index.wxml | 2 +- example/pages/popup/index.wxml | 2 +- example/pages/select/index.wxml | 2 +- example/pages/stepper/index.wxml | 2 +- example/pages/steps/index.wxml | 2 +- example/pages/switch/index.wxml | 2 +- example/pages/tab/index.wxml | 2 +- example/pages/tag/index.wxml | 2 +- example/pages/toast/index.wxml | 2 +- example/pages/toptips/index.wxml | 2 +- packages/btn/index.pcss | 26 ++++++-- packages/cell/index.pcss | 10 +-- packages/color/index.pcss | 16 +++-- packages/common/_mixins.pcss | 15 +++++ packages/common/_var.pcss | 35 ++++++++++ packages/{utils/index.js => common/helper.js} | 0 packages/dialog/index.pcss | 38 ++++++++--- packages/field/index.js | 2 +- packages/field/index.pcss | 19 +++--- packages/helper/index.pcss | 43 ++++++++++++ packages/loadmore/index.pcss | 10 ++- packages/noticebar/index.js | 21 +++--- packages/panel/index.pcss | 11 +++- packages/select/index.js | 15 ++--- packages/tab/index.js | 10 +-- packages/tag/index.pcss | 65 +++++++++++++------ postcss.config.js | 2 +- scripts/utils/build-css.js | 8 +-- 40 files changed, 283 insertions(+), 113 deletions(-) create mode 100644 packages/common/_mixins.pcss create mode 100644 packages/common/_var.pcss rename packages/{utils/index.js => common/helper.js} (100%) diff --git a/example/app.wxss b/example/app.wxss index d9905dc5..4437ab26 100644 --- a/example/app.wxss +++ b/example/app.wxss @@ -18,12 +18,12 @@ z-index: 5; } .doc-title { - font-size: 25px; - line-height: 25px; - color: #666; + position: relative; padding: 15px 0; margin: 10px 15px; - border-bottom: 1rpx solid #e5e5e5; + line-height: 25px; + font-size: 25px; + color: #666; } .doc-description { margin: 14px 0; diff --git a/example/pages/badge/index.wxml b/example/pages/badge/index.wxml index 997b3556..cae30010 100644 --- a/example/pages/badge/index.wxml +++ b/example/pages/badge/index.wxml @@ -1,6 +1,6 @@ - BADGE + BADGE diff --git a/example/pages/btn/index.wxml b/example/pages/btn/index.wxml index 4967a4d2..7eb0aa96 100644 --- a/example/pages/btn/index.wxml +++ b/example/pages/btn/index.wxml @@ -1,6 +1,6 @@ - BUTTON + BUTTON 普通按钮 diff --git a/example/pages/capsule/index.wxml b/example/pages/capsule/index.wxml index d4041257..c32e76c3 100644 --- a/example/pages/capsule/index.wxml +++ b/example/pages/capsule/index.wxml @@ -2,7 +2,7 @@ - CAPSULE + CAPSULE 基本用法 diff --git a/example/pages/card/index.wxml b/example/pages/card/index.wxml index cc796b29..938cb936 100644 --- a/example/pages/card/index.wxml +++ b/example/pages/card/index.wxml @@ -1,6 +1,6 @@ - CARD + CARD diff --git a/example/pages/cell/index.wxml b/example/pages/cell/index.wxml index 0e0f6d53..3cfb2e84 100644 --- a/example/pages/cell/index.wxml +++ b/example/pages/cell/index.wxml @@ -2,7 +2,7 @@ - CELL + CELL diff --git a/example/pages/dialog/index.wxml b/example/pages/dialog/index.wxml index ac334ac7..ac1c1431 100644 --- a/example/pages/dialog/index.wxml +++ b/example/pages/dialog/index.wxml @@ -2,7 +2,7 @@ - DIALOG + DIALOG