From 4d12cfe3fa497f24a374f6f9029d654b3889d6bb Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Sat, 28 Oct 2023 16:01:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20fix(style):=20proper=20nested=20?= =?UTF-8?q?lists=20spacing=20(#218)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/main.scss | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sass/main.scss b/sass/main.scss index 713fdf6..81abd62 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -50,6 +50,7 @@ --normal-layout-width: 600px; --medium-layout-width: 400px; --small-layout-width: 200px; + --paragraph-spacing: max(2.3vmin, 24px); --sans-serif-font: 'Inter', Helvetica, Arial, sans-serif; --serif-font: 'Source Serif', 'Georgia', serif; @@ -150,6 +151,16 @@ article { margin-left: -$base-margin; max-width: calc(100% + 2*$base-margin); } + + li { + p:not(:last-child) { + margin-bottom: 0; + } + + p + :last-child { + margin-bottom: var(--paragraph-spacing); + } + } } .section-title { @@ -227,7 +238,7 @@ h5 { p { margin-top: 0.4rem; - margin-bottom: max(2.3vmin, 24px); + margin-bottom: var(--paragraph-spacing); font-size: 1em; line-height: 2rem; }