[breaking change] rebuild style struct (#2021)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@import '../style/var';
|
||||
|
||||
@font-face {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-family: '<%= fontName %>';
|
||||
src: url('https://img.yzcdn.cn/vant/<%= cssClass %>') format('truetype');
|
||||
}
|
||||
|
||||
.van-icon {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
font: normal normal normal 14px/1 "<%= fontName %>";
|
||||
font-size: inherit;
|
||||
text-rendering: auto;
|
||||
|
||||
&::before {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
<% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>::before {
|
||||
content: "\<%= glyph.codePoint %>";
|
||||
}
|
||||
|
||||
<% }); %>
|
||||
Reference in New Issue
Block a user