summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-05-25 00:57:16 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-05-25 00:57:16 +0200
commit065a159e5fb94733738c24664ea2bd222bebd203 (patch)
treeea10e05a4cb6f9fceb9d03e3252350ead081f718
parent5c17dc4d2057aaaa4279ae8c9adb9b49cc81bfd6 (diff)
Add fonts
-rw-r--r--.gitignore1
-rwxr-xr-xbuild1
-rw-r--r--src/style.css30
3 files changed, 31 insertions, 1 deletions
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%;
}