diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-06 19:21:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-06 19:21:02 +0200 |
commit | fa40cbc3b26e2a7b01a6273def62fa8bb552c7b6 (patch) | |
tree | e7d039b7eae9fd540b7bede06c0e20dea8a80652 /client/src/sass/include | |
parent | 96bb360d9f4ad410ad753cb0c4d8d0a7bfd033f4 (diff) | |
download | PeerTube-fa40cbc3b26e2a7b01a6273def62fa8bb552c7b6.tar.gz PeerTube-fa40cbc3b26e2a7b01a6273def62fa8bb552c7b6.tar.zst PeerTube-fa40cbc3b26e2a7b01a6273def62fa8bb552c7b6.zip |
Only use woff2 for fonts
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_fonts.scss | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/client/src/sass/include/_fonts.scss b/client/src/sass/include/_fonts.scss new file mode 100644 index 000000000..61717e6f5 --- /dev/null +++ b/client/src/sass/include/_fonts.scss | |||
@@ -0,0 +1,41 @@ | |||
1 | $FontPathSourceSansPro: '../../node_modules/npm-font-source-sans-pro/fonts'; | ||
2 | |||
3 | @font-face { | ||
4 | font-family: 'Source Sans Pro'; | ||
5 | font-weight: 400; | ||
6 | font-style: normal; | ||
7 | font-stretch: normal; | ||
8 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Regular.ttf.woff2') format('woff2'), | ||
9 | } | ||
10 | |||
11 | @font-face { | ||
12 | font-family: 'Source Sans Pro'; | ||
13 | font-weight: 400; | ||
14 | font-style: italic; | ||
15 | font-stretch: normal; | ||
16 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-It.ttf.woff2') format('woff2'), | ||
17 | } | ||
18 | |||
19 | @font-face { | ||
20 | font-family: 'Source Sans Pro'; | ||
21 | font-weight: 600; | ||
22 | font-style: normal; | ||
23 | font-stretch: normal; | ||
24 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Semibold.ttf.woff2') format('woff2'), | ||
25 | } | ||
26 | |||
27 | @font-face { | ||
28 | font-family: 'Source Sans Pro'; | ||
29 | font-weight: 600; | ||
30 | font-style: italic; | ||
31 | font-stretch: normal; | ||
32 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-SemiboldIt.ttf.woff2') format('woff2'), | ||
33 | } | ||
34 | |||
35 | @font-face { | ||
36 | font-family: 'Source Sans Pro'; | ||
37 | font-weight: 700; | ||
38 | font-style: normal; | ||
39 | font-stretch: normal; | ||
40 | src: url('#{$FontPathSourceSansPro}/WOFF2/TTF/SourceSansPro-Bold.ttf.woff2') format('woff2'), | ||
41 | } \ No newline at end of file | ||