[Improvement] stylelint (#1280)

This commit is contained in:
neverland
2018-06-13 20:36:36 +08:00
committed by GitHub
parent 90bbfd2b12
commit 00351a564f
33 changed files with 905 additions and 174 deletions

View File

@@ -4,5 +4,6 @@ module.exports = (fontName, ttf) => {
font-weight: normal;
font-family: '${fontName}';
src: url('../icon/${ttf}') format('truetype');
}`;
}
`;
};

View File

@@ -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.