From 25c04ddf9dc18ffcec2aeb8d031dc0085e323057 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 20 Mar 2022 18:50:08 +0530 Subject: website: Use Charter as main body font. * Makefile (fonts): New variable. (website/fonts): New target. (website): Depend on website/fonts. (clean): Clean website/fonts. * website/style.css (@font-face: Charter): New font face. (body): Set font-family to Charter. Set font-size to 20px. * .gitignore: Add website/fonts. --- website/style.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'website') diff --git a/website/style.css b/website/style.css index 01c655e..5d8415c 100644 --- a/website/style.css +++ b/website/style.css @@ -1,8 +1,16 @@ +@font-face { + font-family: 'Charter'; + src: url('/fonts/charter_regular.woff2') format('woff2'); + font-weight: normal; + font-style: normal; +} + body { margin: 40px auto; max-width: 900px; line-height: 1.6; - font-size: 18px; + font-family: 'Charter'; + font-size: 20px; padding: 0 10px; } -- cgit v1.2.3