mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] Badge: info style (#718)
This commit is contained in:
parent
2e2879a6e3
commit
18befcb15d
@ -8,7 +8,7 @@
|
||||
|
||||
<demo-block title="样式定制">
|
||||
<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
|
||||
custom-class="progress"
|
||||
percentage="75"
|
||||
|
@ -13,6 +13,6 @@
|
||||
steps="{{ steps }}"
|
||||
active="{{ active }}"
|
||||
direction="vertical"
|
||||
active-color="#f60"
|
||||
active-color="#f44"
|
||||
/>
|
||||
</demo-block>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<van-progress
|
||||
pivot-text="红色"
|
||||
color="#f3594b"
|
||||
color="#f44"
|
||||
percentage="50"
|
||||
/>
|
||||
|
||||
|
@ -53,7 +53,7 @@ Page({
|
||||
steps="{{ steps }}"
|
||||
active="{{ active }}"
|
||||
direction="vertical"
|
||||
active-color="#f60"
|
||||
active-color="#f44"
|
||||
/>
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user