From fe8046cf586aa7b82375c98d2f5c59b42a5035fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 22 Apr 2021 18:20:04 +0200 Subject: [PATCH] anchors correspond to headline depth --- templates/main.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/main.css b/templates/main.css index d4f080f..251b941 100644 --- a/templates/main.css +++ b/templates/main.css @@ -58,6 +58,23 @@ li p { .anchor:after { content: "#"; margin-right: .15em; + font-size: 80%; +} + +h2 .anchor:after { + content: "##"; +} + +h3 .anchor:after { + content: "###"; +} + +h4 .anchor:after { + content: "####"; +} + +h5 .anchor:after { + content: "#####"; } .anchor:visited {