From ffef41df1db4a7e7c00a2cb493b733738a43b28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 4 Jun 2024 13:36:05 +0200 Subject: feat(styles): add ibm plex fontface --- src/styles/cgit.css | 34 +++++++++++++++++++++++++++++++++- src/styles/main.css | 2 ++ 2 files changed, 35 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3