Move custom anchor CSS to our file
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
3325ec90ad
commit
2d992d34bf
|
@ -65,3 +65,7 @@ div.tag-container {
|
|||
display: inline-block;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.heading-anchor {
|
||||
color: inherit;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
{{- with .Content -}}
|
||||
{{ . | replaceRE "(<h[1-2] id=\"([^\"]+)\".+)(</h[1-9]+>)" `<a href="#${2}" class="hanchor" ariaLabel="Anchor"> ${1}</a> ${3}` | safeHTML }}
|
||||
{{ . | replaceRE "(<h[1-2] id=\"([^\"]+)\".+)(</h[1-9]+>)" `<a href="#${2}" class="heading-anchor" ariaLabel="Anchor"> ${1}</a> ${3}` | safeHTML }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -71,10 +71,6 @@ a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hanchor {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* `:focus` is linked to `:hover` for basic accessibility */
|
||||
a:hover,
|
||||
a:focus {
|
||||
|
|
Loading…
Reference in New Issue