diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-05-08 04:32:53 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-05-08 04:32:53 +0200 |
| commit | e12445c5e0299015a0055f268955751e0ee9ae2c (patch) | |
| tree | 997a0170603c8ea1aaf56860d49101f3f4936ef0 /app/base.styl | |
| parent | 61ed951278588bfaa83c777eb85621b0f8da4daa (diff) | |
Use local PT Sans when available the fallback to web font
Diffstat (limited to 'app/base.styl')
| -rw-r--r-- | app/base.styl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/base.styl b/app/base.styl index 4ce5d64..c9c3abe 100644 --- a/app/base.styl +++ b/app/base.styl @@ -5,7 +5,6 @@ secondaryColor = #DB0A16 color: #FFFFFF background-color: #181818 } - } @media (prefers-color-scheme: light) { @@ -16,23 +15,23 @@ secondaryColor = #DB0A16 } @font-face { - font-family: 'PT Sans'; - src: local('PT Sans'), url('PTS55F-webfont.woff') format('woff') + font-family: "PT Sans Web"; + src: url("PTS55F-webfont.woff") format('woff') font-weight: 400; - font-display: fallback; + font-display: swap; font-style: normal; } @font-face { - font-family: 'PT Sans'; - src: local('PT Sans'), url('PTS75F-webfont.woff') format('woff') + font-family: "PT Sans Web"; + src: url("PTS75F-webfont.woff") format('woff') font-weight: 700; - font-display: fallback; + font-display: swap; font-style: normal; } body { - font-family: "PT Sans", sans-serif + font-family: "PT Sans", "PT Sans Web", sans-serif max-width: 1024px min-width: 375px margin: 0 auto !important |
