[improvement] Icon: add star & star-o (#2092)

This commit is contained in:
neverland 2018-11-15 17:57:23 +08:00 committed by GitHub
parent 09d53714a0
commit c02ed75e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 13 deletions

Binary file not shown.

View File

@ -382,8 +382,16 @@ module.exports = {
css: 'cart-o'
},
{
src: '答疑2.svg',
src: 'question2.svg',
css: 'question2'
},
{
src: 'star.svg',
css: 'star'
},
{
src: 'star-o.svg',
css: 'star-o'
}
]
};

View File

@ -4,7 +4,7 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('https://img.yzcdn.cn/vant/vant-icon-872dd0.ttf') format('truetype');
src: url('https://img.yzcdn.cn/vant/vant-icon-1ef3b9.ttf') format('truetype');
}
.van-icon {
@ -363,42 +363,50 @@
content: "\F055";
}
.van-icon-stop::before {
.van-icon-star-o::before {
content: "\F056";
}
.van-icon-success::before {
.van-icon-star::before {
content: "\F057";
}
.van-icon-tosend::before {
.van-icon-stop::before {
content: "\F058";
}
.van-icon-underway::before {
.van-icon-success::before {
content: "\F059";
}
.van-icon-upgrade::before {
.van-icon-tosend::before {
content: "\F05A";
}
.van-icon-value-card::before {
.van-icon-underway::before {
content: "\F05B";
}
.van-icon-wap-home::before {
.van-icon-upgrade::before {
content: "\F05C";
}
.van-icon-wap-nav::before {
.van-icon-value-card::before {
content: "\F05D";
}
.van-icon-warn::before {
.van-icon-wap-home::before {
content: "\F05E";
}
.van-icon-wechat::before {
.van-icon-wap-nav::before {
content: "\F05F";
}
.van-icon-warn::before {
content: "\F060";
}
.van-icon-wechat::before {
content: "\F061";
}

View File

@ -2,5 +2,5 @@
font-style: normal;
font-weight: normal;
font-family: 'vant-icon';
src: url('./vant-icon-872dd0.ttf') format('truetype');
src: url('./vant-icon-1ef3b9.ttf') format('truetype');
}

View File

@ -387,6 +387,14 @@ exports[`renders demo correctly 1`] = `
<i class="van-icon van-icon-question2" style="color:undefined;font-size:undefined;">
<!---->
</i> <span>question2</span></div>
<div class="van-col van-col--8">
<i class="van-icon van-icon-star" style="color:undefined;font-size:undefined;">
<!---->
</i> <span>star</span></div>
<div class="van-col van-col--8">
<i class="van-icon van-icon-star-o" style="color:undefined;font-size:undefined;">
<!---->
</i> <span>star-o</span></div>
</div>
</div>
`;