Skip to content

Commit

Permalink
Icon: Adding font-display to @font-face declaration (ElemeFE#16805)
Browse files Browse the repository at this point in the history
  • Loading branch information
logustra authored and oleksiikhr committed Jan 13, 2020
1 parent 3741785 commit 5bfb82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/theme-chalk/src/common/var.scss
Expand Up @@ -104,6 +104,7 @@ $--fill-base: $--color-white !default;
/* Typography
-------------------------- */
$--font-path: 'fonts' !default;
$--font-display: 'auto' !default;
/// fontSize|1|Font Size|0
$--font-size-extra-large: 20px !default;
/// fontSize|1|Font Size|0
Expand Down
3 changes: 2 additions & 1 deletion packages/theme-chalk/src/icon.scss
Expand Up @@ -5,7 +5,8 @@
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+*/
font-weight: normal;
font-style: normal
font-display: $--font-display;
font-style: normal;
}

[class^="el-icon-"], [class*=" el-icon-"] {
Expand Down

0 comments on commit 5bfb82e

Please sign in to comment.