mirror of
https://github.com/youzan/vant.git
synced 2025-12-18 02:06:02 +08:00
[Improvement] stylelint (#1280)
This commit is contained in:
@@ -4,5 +4,6 @@ module.exports = (fontName, ttf) => {
|
||||
font-weight: normal;
|
||||
font-family: '${fontName}';
|
||||
src: url('../icon/${ttf}') format('truetype');
|
||||
}`;
|
||||
}
|
||||
`;
|
||||
};
|
||||
|
||||
@@ -31,12 +31,13 @@
|
||||
font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
||||
}
|
||||
|
||||
&:before {
|
||||
&::before {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
<% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>:before {
|
||||
<% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>::before {
|
||||
content: "\<%= glyph.codePoint %>";
|
||||
}
|
||||
|
||||
<% }); %>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user