From 1652a188d1dbf66a878168fe9a5d1cb084ef3591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mino=20Rem?= <29999+remino@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:27:59 +0900 Subject: [PATCH] Adjust margins for headings in header & footer --- assets/css/_sections.sass | 7 +++++-- source/_header.html.slim | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/_sections.sass b/assets/css/_sections.sass index a537966..3e5b37b 100644 --- a/assets/css/_sections.sass +++ b/assets/css/_sections.sass @@ -23,8 +23,11 @@ footer, header h1, h2, h3, h4, h5, h6 --sc-m-t: 0 - h2, h3 - line-height: calc(var(--sc-lh) * 2rem) + h1 + --sc-m-b: 0 + + h2, h3, h4, h5, h6 + --sc-m-b: calc(var(--sc-m-v) * 0.5) figure margin-inline: 0 diff --git a/source/_header.html.slim b/source/_header.html.slim index 5f82265..6f2b14c 100644 --- a/source/_header.html.slim +++ b/source/_header.html.slim @@ -1,5 +1,6 @@ header h1= data.site.title + nav menu - top_level_pages.each do |page|