aboutsummaryrefslogtreecommitdiff
path: root/assets/sass
diff options
context:
space:
mode:
authorbyronhe <lh2008999@gmail.com>2020-08-06 00:44:19 +0800
committerGitHub <noreply@github.com>2020-08-06 00:44:19 +0800
commit567fd466a139bdd5fc182bb60a5906993de28f91 (patch)
treedb46d17535c193498d134a26d7a6f6f6537e8528 /assets/sass
parenta652d0c0c6aeecf2b8bfbc0740fc97554b76b031 (diff)
feat(scss): font-display: swap (#267)
Diffstat (limited to 'assets/sass')
-rw-r--r--assets/sass/_iconfont.scss1
-rw-r--r--assets/sass/_variables.scss1
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.