mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -06:00
Merge pull request #1076 from nunocoracao/959-heading-first-child-styling-not-working
🐛 Heading first-child styling not working
This commit is contained in:
commit
be435940ac
1 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
<div id="{{ .Anchor | safeURL }}" class="anchor"></div>
|
|
||||||
<h{{ .Level }} class="relative group">{{ .Text | safeHTML }}
|
<h{{ .Level }} class="relative group">{{ .Text | safeHTML }}
|
||||||
{{ if.Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}<span
|
<div id="{{ .Anchor | safeURL }}" class="anchor"></div>
|
||||||
|
{{ if.Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}
|
||||||
|
<span
|
||||||
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
|
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
|
||||||
<a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700"
|
<a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700"
|
||||||
style="text-decoration-line: none !important;" href="#{{ .Anchor | safeURL }}" aria-label="{{ i18n "article.anchor_label" }}">#</a></span>
|
style="text-decoration-line: none !important;" href="#{{ .Anchor | safeURL }}" aria-label="{{ i18n "article.anchor_label" }}">#</a>
|
||||||
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h{{ .Level }}>
|
</h{{ .Level }}>
|
||||||
|
|
Loading…
Reference in a new issue