From 97721e536237f155f693977401a1e166ca346516 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 2 Jul 2017 18:36:54 +0100 Subject: [PATCH] Slightly nicer web page typography. --- bedstead.css | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/bedstead.css b/bedstead.css index f968d80..35a6569 100644 --- a/bedstead.css +++ b/bedstead.css @@ -1,10 +1,10 @@ -/* Trivial stylesheet to use Bedstead everywhere. */ - /* Use Bedstead with proportional spacing for everything. */ body { font-family: Bedstead; + font-size: 20px; font-feature-settings: "palt"; font-synthesis: none; + margin-left: 24px; } /* Except where it's conventional to use a monospaced version. */ @@ -13,7 +13,25 @@ kbd, code, tt, pre { font-feature-settings: normal; } +h2 { + font-size: 2em; + font-stretch: condensed; + font-weight: inherit; + margin-top: 0.5em; + margin-bottom: 0.5em; +} + +h1, h2 { + margin-left: -24px; +} + @font-face { font-family: Bedstead; src: url(bedstead.otf) format("opentype"); } + +@font-face { + font-family: Bedstead; + font-stretch: condensed; + src: url(bedstead-con.otf) format("opentype"); +} -- 2.30.2