diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-05-25 00:57:16 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-05-25 00:57:16 +0200 |
commit | 065a159e5fb94733738c24664ea2bd222bebd203 (patch) | |
tree | ea10e05a4cb6f9fceb9d03e3252350ead081f718 | |
parent | 5c17dc4d2057aaaa4279ae8c9adb9b49cc81bfd6 (diff) |
Add fonts
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | build | 1 | ||||
-rw-r--r-- | src/style.css | 30 |
3 files changed, 31 insertions, 1 deletions
@@ -1,2 +1,3 @@ +fonts/ out/ server @@ -10,6 +10,7 @@ PATH="$PATH:scripts" rm -rf out/* mkdir -p out cp -r src/* out +[ -d fonts ] && cp -r fonts out compile_for_lang() { sd=src/$1 diff --git a/src/style.css b/src/style.css index d271c3b..0bc6172 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,31 @@ +@font-face { + font-family: 'Ysabeau'; + src: url('/fonts/Ysabeau-Medium.otf') format('opentype'); + font-weight: 500; + font-style: normal; +} + +@font-face { + font-family: 'Ysabeau'; + src: url('/fonts/Ysabeau-MediumItalic.otf') format('opentype'); + font-weight: 500; + font-style: italic; +} + +@font-face { + font-family: 'Ysabeau'; + src: url('/fonts/Ysabeau-Bold.otf') format('opentype'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'Ysabeau'; + src: url('/fonts/Ysabeau-BoldItalic.otf') format('opentype'); + font-weight: bold; + font-style: italic; +} + :root { --background-color: #121212; --secondary-darker-color: #1B1B1B; @@ -398,7 +426,7 @@ main section { } .coin-table th { - font-style: bold; + font-weight: bold; width: 12.5%; } |