From 67a2fe350dce3b35961c267678686bebb6d96665 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Sun, 5 Feb 2023 20:05:54 +0000 Subject: [PATCH] Add hash symbols to headings --- src/css/globals.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/css/globals.css b/src/css/globals.css index 87d5cd4..0637c94 100644 --- a/src/css/globals.css +++ b/src/css/globals.css @@ -7,7 +7,9 @@ body { } h1, h2, h3, h4, h5 { + display: flex; font-weight: bold; + gap: 1ch; line-height: 1.2; margin: 0; } @@ -17,14 +19,29 @@ h1 { word-wrap: normal; } +h1::before { + content: "#"; + margin-inline-start: -2ch; +} + h2 { font-size: var(--text-size-xl); } +h2::before { + content: "##"; + margin-inline-start: -3ch; +} + h3 { font-size: var(--text-size-l); } +h3::before { + content: "###"; + margin-inline-start: -4ch; +} + a { color: inherit; text-decoration: underline;