mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(vant-icons): fix stylelint
This commit is contained in:
parent
2bc72c064b
commit
edc0bbc073
@ -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');
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -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
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user