Skip to content

Commit 18befcb

Browse files
authored
[improvement] Badge: info style (youzan#718)
1 parent 2e2879a commit 18befcb

7 files changed

Lines changed: 12 additions & 12 deletions

File tree

example/pages/progress/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<demo-block title="样式定制">
1010
<van-progress custom-class="progress" pivot-text="橙色" color="#f2826a" percentage="25" />
11-
<van-progress custom-class="progress" pivot-text="红色" color="#f3594b" percentage="50" />
11+
<van-progress custom-class="progress" pivot-text="红色" color="#f44" percentage="50" />
1212
<van-progress
1313
custom-class="progress"
1414
percentage="75"

example/pages/steps/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
steps="{{ steps }}"
1414
active="{{ active }}"
1515
direction="vertical"
16-
active-color="#f60"
16+
active-color="#f44"
1717
/>
1818
</demo-block>

packages/badge/index.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838

3939
&__info {
4040
position: absolute;
41-
top: 2px;
41+
top: 4px;
4242
right: 2px;
4343
color: @white;
44-
font-size: 10px;
45-
font-weight: normal;
44+
font-size: 12px;
45+
font-weight: 500;
4646
transform: scale(0.8);
4747
text-align: center;
4848
box-sizing: border-box;

packages/dialog/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
&__message {
2121
padding: 25px;
22+
font-size: 14px;
2223
line-height: 1.5;
2324

2425
&--has-title {
25-
font-size: 14px;
2626
padding-top: 12px;
2727
color: @gray-darker;
2828
}

packages/icon/index.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
color: #fff;
1919
left: 100%;
2020
top: -.5em;
21-
font-size: .5em;
22-
padding: 0 .3em;
21+
font-size: .6em;
22+
padding: 0 .25em;
2323
text-align: center;
24-
min-width: 1.2em;
25-
line-height: 1.2;
24+
min-width: 1.4em;
25+
line-height: 1.4;
2626
position: absolute;
2727
border-radius: .6em;
2828
box-sizing: border-box;

packages/progress/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
<van-progress
4040
pivot-text="红色"
41-
color="#f3594b"
41+
color="#f44"
4242
percentage="50"
4343
/>
4444

packages/steps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Page({
5353
steps="{{ steps }}"
5454
active="{{ active }}"
5555
direction="vertical"
56-
active-color="#f60"
56+
active-color="#f44"
5757
/>
5858
```
5959

0 commit comments

Comments
 (0)