[improvement] Badge: info style (#718)

This commit is contained in:
neverland 2018-10-09 14:28:02 +08:00 committed by GitHub
parent 2e2879a6e3
commit 18befcb15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@
<demo-block title="样式定制"> <demo-block title="样式定制">
<van-progress custom-class="progress" pivot-text="橙色" color="#f2826a" percentage="25" /> <van-progress custom-class="progress" pivot-text="橙色" color="#f2826a" percentage="25" />
<van-progress custom-class="progress" pivot-text="红色" color="#f3594b" percentage="50" /> <van-progress custom-class="progress" pivot-text="红色" color="#f44" percentage="50" />
<van-progress <van-progress
custom-class="progress" custom-class="progress"
percentage="75" percentage="75"

View File

@ -13,6 +13,6 @@
steps="{{ steps }}" steps="{{ steps }}"
active="{{ active }}" active="{{ active }}"
direction="vertical" direction="vertical"
active-color="#f60" active-color="#f44"
/> />
</demo-block> </demo-block>

View File

@ -38,11 +38,11 @@
&__info { &__info {
position: absolute; position: absolute;
top: 2px; top: 4px;
right: 2px; right: 2px;
color: @white; color: @white;
font-size: 10px; font-size: 12px;
font-weight: normal; font-weight: 500;
transform: scale(0.8); transform: scale(0.8);
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;

View File

@ -19,10 +19,10 @@
&__message { &__message {
padding: 25px; padding: 25px;
font-size: 14px;
line-height: 1.5; line-height: 1.5;
&--has-title { &--has-title {
font-size: 14px;
padding-top: 12px; padding-top: 12px;
color: @gray-darker; color: @gray-darker;
} }

View File

@ -18,11 +18,11 @@
color: #fff; color: #fff;
left: 100%; left: 100%;
top: -.5em; top: -.5em;
font-size: .5em; font-size: .6em;
padding: 0 .3em; padding: 0 .25em;
text-align: center; text-align: center;
min-width: 1.2em; min-width: 1.4em;
line-height: 1.2; line-height: 1.4;
position: absolute; position: absolute;
border-radius: .6em; border-radius: .6em;
box-sizing: border-box; box-sizing: border-box;

View File

@ -38,7 +38,7 @@
<van-progress <van-progress
pivot-text="红色" pivot-text="红色"
color="#f3594b" color="#f44"
percentage="50" percentage="50"
/> />

View File

@ -53,7 +53,7 @@ Page({
steps="{{ steps }}" steps="{{ steps }}"
active="{{ active }}" active="{{ active }}"
direction="vertical" direction="vertical"
active-color="#f60" active-color="#f44"
/> />
``` ```