diff options
author | byronhe <lh2008999@gmail.com> | 2020-08-06 00:44:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 00:44:19 +0800 |
commit | 567fd466a139bdd5fc182bb60a5906993de28f91 (patch) | |
tree | db46d17535c193498d134a26d7a6f6f6537e8528 /assets/sass | |
parent | a652d0c0c6aeecf2b8bfbc0740fc97554b76b031 (diff) |
feat(scss): font-display: swap (#267)
Diffstat (limited to 'assets/sass')
-rw-r--r-- | assets/sass/_iconfont.scss | 1 | ||||
-rw-r--r-- | assets/sass/_variables.scss | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/assets/sass/_iconfont.scss b/assets/sass/_iconfont.scss index f4fa791..e56b0b6 100644 --- a/assets/sass/_iconfont.scss +++ b/assets/sass/_iconfont.scss @@ -10,6 +10,7 @@ url('../fonts/iconfont/iconfont.woff') format('woff'), url('../fonts/iconfont/iconfont.ttf') format('truetype'), url('../fonts/iconfont/iconfont.svg#iconfont') format('svg'); + font-display: swap; } %base-iconfont { diff --git a/assets/sass/_variables.scss b/assets/sass/_variables.scss index 8e1553b..ae97a8f 100644 --- a/assets/sass/_variables.scss +++ b/assets/sass/_variables.scss @@ -89,6 +89,7 @@ $header-padding: 20px 20px !default; url('../fonts/chancery/apple-chancery-webfont.svg#apple-chancery') format('svg'); font-weight: lighter; font-style: normal; + font-display: swap; } // Font size of the logo. |