mirror of https://github.com/ElemeFE/element
Icon: Adding font-display to @font-face declaration (#16805)
parent
54887e5b61
commit
f4df252253
|
@ -104,6 +104,7 @@ $--fill-base: $--color-white !default;
|
||||||
/* Typography
|
/* Typography
|
||||||
-------------------------- */
|
-------------------------- */
|
||||||
$--font-path: 'fonts' !default;
|
$--font-path: 'fonts' !default;
|
||||||
|
$--font-display: 'auto' !default;
|
||||||
/// fontSize|1|Font Size|0
|
/// fontSize|1|Font Size|0
|
||||||
$--font-size-extra-large: 20px !default;
|
$--font-size-extra-large: 20px !default;
|
||||||
/// fontSize|1|Font Size|0
|
/// fontSize|1|Font Size|0
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
src: url('#{$--font-path}/element-icons.woff') format('woff'), /* chrome, firefox */
|
src: url('#{$--font-path}/element-icons.woff') format('woff'), /* chrome, firefox */
|
||||||
url('#{$--font-path}/element-icons.ttf') format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
url('#{$--font-path}/element-icons.ttf') format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal
|
font-display: $--font-display;
|
||||||
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class^="el-icon-"], [class*=" el-icon-"] {
|
[class^="el-icon-"], [class*=" el-icon-"] {
|
||||||
|
|
Loading…
Reference in New Issue