chore: add vant-icons package

This commit is contained in:
陈嘉涵
2019-08-21 15:28:14 +08:00
parent 00299c9790
commit 2bc72c064b
17 changed files with 5165 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
@font-face {
font-style: normal;
font-weight: normal;
font-family: '<%= fontName %>';
src: url('https://img.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
url('https://img.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
}
.van-icon {
position: relative;
display: inline-block;
font: normal normal normal 14px/1 "<%= fontName %>";
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
&::before {
display: inline-block;
}
}
<% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>:before {
content: "\<%= glyph.codePoint %>";
}
<% }); %>