From 18befcb15dd3dbd0b7939f2de5edf73b9c61aefa Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 9 Oct 2018 14:28:02 +0800 Subject: [PATCH] [improvement] Badge: info style (#718) --- example/pages/progress/index.wxml | 2 +- example/pages/steps/index.wxml | 2 +- packages/badge/index.less | 6 +++--- packages/dialog/index.less | 2 +- packages/icon/index.less | 8 ++++---- packages/progress/README.md | 2 +- packages/steps/README.md | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/pages/progress/index.wxml b/example/pages/progress/index.wxml index 30130b91..50356331 100644 --- a/example/pages/progress/index.wxml +++ b/example/pages/progress/index.wxml @@ -8,7 +8,7 @@ - + diff --git a/packages/badge/index.less b/packages/badge/index.less index 4f9a93c8..7d7b233f 100644 --- a/packages/badge/index.less +++ b/packages/badge/index.less @@ -38,11 +38,11 @@ &__info { position: absolute; - top: 2px; + top: 4px; right: 2px; color: @white; - font-size: 10px; - font-weight: normal; + font-size: 12px; + font-weight: 500; transform: scale(0.8); text-align: center; box-sizing: border-box; diff --git a/packages/dialog/index.less b/packages/dialog/index.less index 4379e108..7d87c355 100644 --- a/packages/dialog/index.less +++ b/packages/dialog/index.less @@ -19,10 +19,10 @@ &__message { padding: 25px; + font-size: 14px; line-height: 1.5; &--has-title { - font-size: 14px; padding-top: 12px; color: @gray-darker; } diff --git a/packages/icon/index.less b/packages/icon/index.less index 52c077dc..ac9a8bdc 100644 --- a/packages/icon/index.less +++ b/packages/icon/index.less @@ -18,11 +18,11 @@ color: #fff; left: 100%; top: -.5em; - font-size: .5em; - padding: 0 .3em; + font-size: .6em; + padding: 0 .25em; text-align: center; - min-width: 1.2em; - line-height: 1.2; + min-width: 1.4em; + line-height: 1.4; position: absolute; border-radius: .6em; box-sizing: border-box; diff --git a/packages/progress/README.md b/packages/progress/README.md index 7566b4aa..f5cda745 100644 --- a/packages/progress/README.md +++ b/packages/progress/README.md @@ -38,7 +38,7 @@ diff --git a/packages/steps/README.md b/packages/steps/README.md index 994e8722..bbbfb2ca 100644 --- a/packages/steps/README.md +++ b/packages/steps/README.md @@ -53,7 +53,7 @@ Page({ steps="{{ steps }}" active="{{ active }}" direction="vertical" - active-color="#f60" + active-color="#f44" /> ```