Skip to content

Commit b95df60

Browse files
committed
fix: Text is now clickable
1 parent d343eb5 commit b95df60

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

assets/css/v2/style.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,8 @@ h3:target,
10121012
h4:target,
10131013
h5:target,
10141014
h6:target {
1015+
color: var(--color-brand);
1016+
10151017
.headerlink::before {
10161018
display: block !important;
10171019
}
@@ -1032,6 +1034,10 @@ h2:has(a):hover {
10321034
.headerlink::before {
10331035
display: block;
10341036
}
1037+
1038+
.headerlink {
1039+
text-decoration-color: oklch(var(--color-brand) / 0.3);
1040+
}
10351041
}
10361042

10371043
h3:has(a):hover {
@@ -1058,13 +1064,17 @@ h6:has(a):hover {
10581064
}
10591065
}
10601066

1067+
.headerlink {
1068+
text-decoration-color: transparent;
1069+
}
1070+
10611071
.headerlink::before {
10621072
position: absolute;
10631073
content: "#";
10641074
margin-left: -1.5rem;
10651075
opacity: 20%;
10661076
display: none;
1067-
top: 0;
1077+
bottom: 0;
10681078
}
10691079

10701080
/* MARK: Tables
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
<h{{ .Level }}
2-
id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a class="headerlink float-right" href="#{{ .Anchor | safeURL }}" title="{{ .Text | safeHTML }}"><i class="fas fa-link fa-xs"></i></a>
2+
id="{{ .Anchor | safeURL }}">
3+
<div data-mf="false">
4+
{{ .Text | safeHTML }}
5+
<a class="headerlink float-right" href="#{{ .Anchor | safeURL }}" title="{{ .Text | safeHTML }}">
6+
<i class="fas fa-link fa-xs"></i>
7+
</a>
8+
</div>
9+
10+
<a class="headerlink float-right" data-mf="true" style="display: none;" href="#{{ .Anchor | safeURL }}" title="{{ .Text | safeHTML }}">
11+
{{ .Text | safeHTML }}
12+
</a>
313
</h{{ .Level }}>

0 commit comments

Comments
 (0)