From 57b59e85356d86b2f504302753b72f63a2586d3b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 24 Jul 2023 16:28:32 -0700 Subject: [PATCH] Underline h2 headings and decrease the space around headings --- src/less/include/common.less | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/less/include/common.less b/src/less/include/common.less index f2fe9cb..1110f2b 100644 --- a/src/less/include/common.less +++ b/src/less/include/common.less @@ -61,7 +61,7 @@ figure { } h1, h2, h3, h4, h5, h6 { - margin: 3em 0 1em; + margin: 2rem 0 0.2rem; } h1 { @@ -70,6 +70,16 @@ h1 { h2 { font-size: 1.5rem; + border-bottom-width: 1px; + border-bottom-style: solid; + + @media (prefers-color-scheme: dark) { + border-bottom-color: @dark-foreground; + } + + @media (prefers-color-scheme: light) { + border-bottom-color: @light-foreground; + } } h3 {