chore(vant-icons): fix stylelint

This commit is contained in:
陈嘉涵 2019-08-21 16:43:13 +08:00
parent 2bc72c064b
commit edc0bbc073
4 changed files with 11 additions and 9 deletions

View File

@ -4,9 +4,9 @@ const config = require('../src/config');
function template(fontName, ttf) { function template(fontName, ttf) {
return `@font-face { return `@font-face {
font-style: normal;
font-weight: normal; font-weight: normal;
font-family: '${fontName}'; font-family: '${fontName}';
font-style: normal;
src: url('${ttf}') format('truetype'); src: url('${ttf}') format('truetype');
} }
`; `;

View File

@ -1,10 +1,11 @@
/* stylelint-disable selector-pseudo-element-colon-notation */
@font-face { @font-face {
font-style: normal;
font-weight: normal; font-weight: normal;
font-family: '<%= fontName %>'; font-family: '<%= fontName %>';
font-style: normal;
src: url('https://img.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'), 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 %>.woff') format('woff'),
url('https://img.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype'); url('https://img.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
} }
.van-icon { .van-icon {

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,11 @@
/* stylelint-disable selector-pseudo-element-colon-notation */
@font-face { @font-face {
font-style: normal;
font-weight: normal; font-weight: normal;
font-family: 'vant-icon'; font-family: 'vant-icon';
font-style: normal;
src: url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.woff2') format('woff2'), src: url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.woff2') format('woff2'),
url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.woff') format('woff'), url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.woff') format('woff'),
url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.ttf') format('truetype'); url('https://img.yzcdn.cn/vant/vant-icon-3a7dc2.ttf') format('truetype');
} }
.van-icon { .van-icon {