aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-06-04 13:36:05 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-06-04 13:36:05 +0200
commitffef41df1db4a7e7c00a2cb493b733738a43b28e (patch)
tree448bdf3e96a50439673820790615ea12dc0e6aac
parentc23df38c61c6bf73c14cb4722362e612d4403df2 (diff)
downloadrgoncalves.se-ffef41df1db4a7e7c00a2cb493b733738a43b28e.tar.gz
feat(styles): add ibm plex fontface
-rw-r--r--src/styles/cgit.css34
-rw-r--r--src/styles/main.css2
2 files changed, 35 insertions, 1 deletions
diff --git a/src/styles/cgit.css b/src/styles/cgit.css
index 7156ca4..720cefa 100644
--- a/src/styles/cgit.css
+++ b/src/styles/cgit.css
@@ -1,5 +1,37 @@
+/* fontface */
+
+@font-face {
+ font-family: "IBM Plex Mono";
+ src: url("https://rgoncalves.se/static/fonts/ibm-plex-mono-medium-normal.woff2") format("woff2");
+ font-style: normal;
+ font-weight: 400;
+}
+
+@font-face {
+ font-family: "IBM Plex Mono";
+ src: url("https://rgoncalves.se/static/fonts/ibm-plex-mono-medium-italic.woff2") format("woff2");
+ font-style: italic;
+ font-weight: 400;
+}
+
+@font-face {
+ font-family: "IBM Plex Mono";
+ src: url("https://rgoncalves.se/static/fonts/ibm-plex-mono-bold-normal.woff2") format("woff2");
+ font-style: normal;
+ font-weight: 600;
+}
+
+@font-face {
+ font-family: "IBM Plex Mono";
+ src: url("https://rgoncalves.se/static/fonts/ibm-plex-mono-bold-italic.woff2") format("woff2");
+ font-style: italic;
+ font-weight: 600;
+}
+
+/* page */
+
* {
- font-family: monospace, monospace;
+ font-family: "IBM Plex Mono", monospace;
}
div#cgit {
diff --git a/src/styles/main.css b/src/styles/main.css
index ae9a561..bd03168 100644
--- a/src/styles/main.css
+++ b/src/styles/main.css
@@ -1,3 +1,5 @@
+/* fontface */
+
@font-face {
font-family: "IBM Plex Mono";
src: url("/static/fonts/ibm-plex-mono-medium-normal.woff2") format("woff2");
remember that computers suck.