From 2a6e5ae9e77040e93ff18dbc6d204c5775c6cd29 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 1 Dec 2022 01:45:51 +0000 Subject: [PATCH] CSS vertical spacing tweaks. Signed-off-by: Daira Hopwood --- css/style.css | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/css/style.css b/css/style.css index b6319d6e..f730ee31 100644 --- a/css/style.css +++ b/css/style.css @@ -103,10 +103,12 @@ h5, h6, h7, h8 { h1 { font-size: 2.5rem; + margin-bottom: 1.5rem; } h2 { font-size: 2.125rem; + margin-bottom: 1.125rem; } h3 { @@ -131,17 +133,14 @@ h5 { h6 { font-size: 1.3rem; - bottom-padding: 2rem; } h7 { font-size: 1.25rem; - bottom-padding: 2rem; } h8 { font-size: 1.2rem; - bottom-padding: 2rem; } blockquote { @@ -150,24 +149,32 @@ blockquote { overflow-x: auto; } -p, ul, ol, li, table { - margin-top: 0; -} - p { - margin-bottom: 1rem; + margin-top: 0; + margin-bottom: calc( 1rem + 1ex ); } -li { - margin-bottom: 0.2rem; +table { + margin-top: 0.5rem; + margin-bottom: calc( 1rem + 1ex ); +} + +ul, ol { + margin-top: -0.4rem; + margin-bottom: calc( 0.5rem + 1ex ); +} + +li ol { + margin-top: 0.25ex; } li ul { - margin-top: 0.625rem; + margin-top: 0.25ex; } -ul, ol, table { - margin-bottom: calc( 0.5rem + 0.5ex ); +li { + margin-top: 0.5ex; + margin-bottom: 0.5rem; } p, ul, ol, dl, table {