diff options
author | BO41 <botbob@disroot.org> | 2019-07-25 20:17:14 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-26 09:07:59 +0200 |
commit | a1758df8a3c3f866460edd8f9bbc94e8dd41fd80 (patch) | |
tree | 0100688702985f5c26e877698337d723fa715922 /client/src | |
parent | 2b65c4e53511ccb85b17479cb1c62717afb8511c (diff) | |
download | PeerTube-a1758df8a3c3f866460edd8f9bbc94e8dd41fd80.tar.gz PeerTube-a1758df8a3c3f866460edd8f9bbc94e8dd41fd80.tar.zst PeerTube-a1758df8a3c3f866460edd8f9bbc94e8dd41fd80.zip |
Add font-display
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/sass/include/_fonts.scss | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/sass/include/_fonts.scss b/client/src/sass/include/_fonts.scss index d4694a747..46cd37971 100644 --- a/client/src/sass/include/_fonts.scss +++ b/client/src/sass/include/_fonts.scss | |||
@@ -5,6 +5,7 @@ $FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; | |||
5 | font-weight: 400; | 5 | font-weight: 400; |
6 | font-style: normal; | 6 | font-style: normal; |
7 | font-stretch: normal; | 7 | font-stretch: normal; |
8 | font-display: swap; | ||
8 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Regular.ttf.woff2') format('woff2'), | 9 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Regular.ttf.woff2') format('woff2'), |
9 | } | 10 | } |
10 | 11 | ||
@@ -13,6 +14,7 @@ $FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; | |||
13 | font-weight: 400; | 14 | font-weight: 400; |
14 | font-style: italic; | 15 | font-style: italic; |
15 | font-stretch: normal; | 16 | font-stretch: normal; |
17 | font-display: swap; | ||
16 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-It.ttf.woff2') format('woff2'), | 18 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-It.ttf.woff2') format('woff2'), |
17 | } | 19 | } |
18 | 20 | ||
@@ -21,6 +23,7 @@ $FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; | |||
21 | font-weight: 600; | 23 | font-weight: 600; |
22 | font-style: normal; | 24 | font-style: normal; |
23 | font-stretch: normal; | 25 | font-stretch: normal; |
26 | font-display: swap; | ||
24 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Semibold.ttf.woff2') format('woff2'), | 27 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Semibold.ttf.woff2') format('woff2'), |
25 | } | 28 | } |
26 | 29 | ||
@@ -29,6 +32,7 @@ $FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; | |||
29 | font-weight: 600; | 32 | font-weight: 600; |
30 | font-style: italic; | 33 | font-style: italic; |
31 | font-stretch: normal; | 34 | font-stretch: normal; |
35 | font-display: swap; | ||
32 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-SemiboldIt.ttf.woff2') format('woff2'), | 36 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-SemiboldIt.ttf.woff2') format('woff2'), |
33 | } | 37 | } |
34 | 38 | ||
@@ -37,5 +41,6 @@ $FontPathSourceSansPro: '~npm-font-source-sans-pro/fonts'; | |||
37 | font-weight: 700; | 41 | font-weight: 700; |
38 | font-style: normal; | 42 | font-style: normal; |
39 | font-stretch: normal; | 43 | font-stretch: normal; |
44 | font-display: swap; | ||
40 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Bold.ttf.woff2') format('woff2'), | 45 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Bold.ttf.woff2') format('woff2'), |
41 | } \ No newline at end of file | 46 | } \ No newline at end of file |