chiark / gitweb /
Slightly nicer web page typography.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 2 Jul 2017 17:36:54 +0000 (18:36 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 2 Jul 2017 17:36:54 +0000 (18:36 +0100)
bedstead.css

index f968d80c4fcf832c043cdab2028698448923345f..35a6569d1aae397138a6b13a3f9f12347d0954f7 100644 (file)
@@ -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");
+}