From: Ben Harris Date: Sun, 2 Jul 2017 17:36:54 +0000 (+0100) Subject: Slightly nicer web page typography. X-Git-Tag: bedstead-001.003~22 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=97721e536237f155f693977401a1e166ca346516;p=bedstead.git Slightly nicer web page typography. --- 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"); +}