diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-05-08 04:15:05 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-05-08 04:21:31 +0200 |
| commit | 61ed951278588bfaa83c777eb85621b0f8da4daa (patch) | |
| tree | b7b0f0ce2dbf128621b67ca17230dc3bbc24f9d6 | |
| parent | 55bf1585c583190b2e2d8de69c4b2e4e4376dc1e (diff) | |
Fix CDN not allowed on SRHT
| -rw-r--r-- | app/assets/PTS55F-webfont.woff | bin | 0 -> 25388 bytes | |||
| -rw-r--r-- | app/assets/PTS75F-webfont.woff | bin | 0 -> 25784 bytes | |||
| -rw-r--r-- | app/assets/index.html | 2 | ||||
| -rw-r--r-- | app/base.styl | 16 |
4 files changed, 16 insertions, 2 deletions
diff --git a/app/assets/PTS55F-webfont.woff b/app/assets/PTS55F-webfont.woff Binary files differnew file mode 100644 index 0000000..b619ce8 --- /dev/null +++ b/app/assets/PTS55F-webfont.woff diff --git a/app/assets/PTS75F-webfont.woff b/app/assets/PTS75F-webfont.woff Binary files differnew file mode 100644 index 0000000..b47cb12 --- /dev/null +++ b/app/assets/PTS75F-webfont.woff diff --git a/app/assets/index.html b/app/assets/index.html index 885808f..1b4f5da 100644 --- a/app/assets/index.html +++ b/app/assets/index.html @@ -3,7 +3,6 @@ <head> <meta charset="utf-8" /> <title>A14M</title> - <link href="https://unpkg.com/sanitize.css" rel="stylesheet" /> <link href="/base.css" rel="stylesheet" media="all" /> <link href="/print.css" rel="stylesheet" media="print" /> <link rel="shortcut icon" href="/favicon.ico" /> @@ -251,5 +250,4 @@ <footer> </footer> </body> - <link href="http://fonts.cdnfonts.com/css/pt-sans-narrow" rel="stylesheet"> </html> diff --git a/app/base.styl b/app/base.styl index c44f477..4ce5d64 100644 --- a/app/base.styl +++ b/app/base.styl @@ -15,6 +15,22 @@ secondaryColor = #DB0A16 } } +@font-face { + font-family: 'PT Sans'; + src: local('PT Sans'), url('PTS55F-webfont.woff') format('woff') + font-weight: 400; + font-display: fallback; + font-style: normal; +} + +@font-face { + font-family: 'PT Sans'; + src: local('PT Sans'), url('PTS75F-webfont.woff') format('woff') + font-weight: 700; + font-display: fallback; + font-style: normal; +} + body { font-family: "PT Sans", sans-serif max-width: 1024px |
