From 856f1779ceeb3fca157b80725f3e00adcb3fd9b4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 13 Nov 2022 23:51:04 -0800 Subject: [PATCH] =?UTF-8?q?Apply=20=E2=80=9C58=20bytes=20of=20CSS=20to=20l?= =?UTF-8?q?ook=20great=20nearly=20everywhere=E2=80=9D[1]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [1]: https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41 --- src/less/include/common.less | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/less/include/common.less b/src/less/include/common.less index 75866bf..fb19879 100644 --- a/src/less/include/common.less +++ b/src/less/include/common.less @@ -1,5 +1,13 @@ @import 'colors'; +html { + max-width: 70ch; + padding: 3em 1em; + margin: auto; + line-height: 1.75; + font-size: 1.25em; +} + a { text-decoration: underline; @@ -31,10 +39,6 @@ a { body { border: 0; font-family: "PT Sans", "Liberation Sans", "DejaVu Sans", "Tahoma", "Verdana", "Arial", sans-serif; - font-size: 15pt; - margin: 0; - padding: 0; - line-height: 160%; @media (prefers-color-scheme: dark) { background-color: @dark-background; @@ -47,6 +51,10 @@ body { } } +h1, h2, h3, h4, h5, h6 { + margin: 3em 0 1em; +} + h1 { font-size: 1.6rem; } @@ -81,3 +89,7 @@ pre { } p { margin: 0; } + +p, ul, ol, dl { + margin-bottom: 2em; +}