diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-17 18:38:47 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-17 18:42:00 +0800 |
commit | 6eb8256555ad276c374d9cf4410db1f19141e884 (patch) | |
tree | 9c6e2b68c9bde5e2082bbc0479c6aa7d288744d5 /packages/website/public | |
parent | 240e3558fa4accd920d43bc8971d49fed5b965a6 (diff) | |
download | dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar.gz dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar.bz2 dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar.lz dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar.xz dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.tar.zst dexon-sol-tools-6eb8256555ad276c374d9cf4410db1f19141e884.zip |
Resolves font flicker on route change
- Adds formular css to globally linked css
Diffstat (limited to 'packages/website/public')
-rw-r--r-- | packages/website/public/css/formular.css | 8 | ||||
-rw-r--r-- | packages/website/public/index.html | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/website/public/css/formular.css b/packages/website/public/css/formular.css index 84f68584c..85549f8c8 100644 --- a/packages/website/public/css/formular.css +++ b/packages/website/public/css/formular.css @@ -30,8 +30,8 @@ @font-face { font-family: 'Formular'; font-weight: 300; - src: url('/fonts/formular/3822A0_0_0.eot'); - src: url('/fonts/formular/3822A0_0_0.eot?#iefix') format('embedded-opentype'), url('/fonts/formular/3822A0_0_0.woff2') format('woff2'), url('/fonts/formular/3822A0_0_0.woff') format('woff'), url('/fonts/formular/3822A0_0_0.ttf') format('truetype'); + src: url('../fonts/Formular-Light.woff2'); + src: url('../fonts/Formular-Light.woff2') format('woff2'), url('../fonts/Formular-Light.woff') format('woff'); font-display: swap; } @@ -39,7 +39,7 @@ @font-face { font-family: 'Formular'; font-weight: 400; - src: url('/fonts/formular/3822A0_1_0.eot'); - src: url('/fonts/formular/3822A0_1_0.eot?#iefix') format('embedded-opentype'), url('/fonts/formular/3822A0_1_0.woff2') format('woff2'), url('/fonts/formular/3822A0_1_0.woff') format('woff'), url('/fonts/formular/3822A0_1_0.ttf') format('truetype'); + src: url('../fonts/Formular-Regular.woff2'); + src: url('../fonts/Formular-Regular.woff2') format('woff2'), url('../fonts/Formular-Regular.woff') format('woff'); font-display: swap; } diff --git a/packages/website/public/index.html b/packages/website/public/index.html index 585838a64..26ebcdec8 100644 --- a/packages/website/public/index.html +++ b/packages/website/public/index.html @@ -17,6 +17,7 @@ <link rel="stylesheet" href="/css/material-design-iconic-font.min.css" /> <link rel="stylesheet" href="/css/roboto.css" /> <link rel="stylesheet" href="/css/roboto_mono.css" /> + <link rel="stylesheet" href="/css/formular.css" /> <link rel="stylesheet" href="/css/basscss_responsive_custom.css" /> <link rel="stylesheet" href="/css/basscss_responsive_padding.css" /> <link rel="stylesheet" href="/css/basscss_responsive_margin.css" /> |