diff --git a/base/templates/base/blocks/heading_block.html b/base/templates/base/blocks/heading_block.html index 08991d0..cffcf88 100644 --- a/base/templates/base/blocks/heading_block.html +++ b/base/templates/base/blocks/heading_block.html @@ -1,7 +1,7 @@ {% if self.size == 'h2' %} -

{{ self.heading_text }}

+

{{ self.heading_text }}

{% elif self.size == 'h3' %} -

{{ self.heading_text }}

+

{{ self.heading_text }}

{% elif self.size == 'h4' %} -

{{ self.heading_text }}

+

{{ self.heading_text }}

{% endif %} \ No newline at end of file diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css index 74f86ff..3a2011b 100644 --- a/theme/static_src/src/styles.css +++ b/theme/static_src/src/styles.css @@ -24,6 +24,18 @@ @apply border-klavender border-b-4; } + a[href^="#"]::before { + @apply hover:visible; + content: "#"; + display: inline-block; + font-size: 0.9em; + line-height: 1; + margin-left: -0.8em; + text-decoration: none; + visibility: hidden; + width: 0.8em; + } + h1 { @apply mt-8 mb-6 text-2xl sm:text-4xl lg:text-4xl leading-none font-extrabold tracking-tight text-black dark:text-white; }