summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/main.css4
-rw-r--r--layouts/_default/_markup/render-heading.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 6e57bcf..7ba5181 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -38,7 +38,7 @@ h6 {
}
.heading {
- a {
+ .anchor {
text-decoration: none;
font-weight: normal;
color: var(--content-secondary);
@@ -47,7 +47,7 @@ h6 {
font-family: var(--font-mono);
}
- &:hover a {
+ &:hover .anchor {
visibility: visible;
}
}
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 44430d6..2699634 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,4 +1,4 @@
<h{{ .Level }} class="heading" id="{{ .Anchor }}">
{{ .Text }}
- <a href="#{{ .Anchor }}">#</a>
+ <a class="anchor" href="#{{ .Anchor }}">#</a>
</h{{ .Level }}>