From 065a159e5fb94733738c24664ea2bd222bebd203 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 25 May 2023 00:57:16 +0200 Subject: Add fonts --- .gitignore | 1 + build | 1 + src/style.css | 30 +++++++++++++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 53a9baa..1994ebc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +fonts/ out/ server diff --git a/build b/build index 884e52c..4b8b923 100755 --- a/build +++ b/build @@ -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%; } -- cgit v1.2.3