Skip to content

Commit 4333182

Browse files
made the heading links only show when hovering over them (#360)
* made the heading links only show when hovering over them * formatting fixes
1 parent 8616a93 commit 4333182

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

assets/custom.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,17 @@ ul.projects {
135135
}
136136
}
137137

138-
.heading-link {
138+
.heading-link,
139+
.heading-link:hover {
140+
color: var(--bs-body-color);
139141
border-bottom: none;
140-
&::before {
142+
}
143+
144+
.heading-link:hover {
145+
&::after {
141146
font-size: 1rem;
142147
content: "🔗";
148+
padding-left: 10px;
143149
}
144150
}
145151

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a class="heading-link" href="#{{ .Anchor | safeURL }}"></a></h{{ .Level }}>
2+
<a class="heading-link d-flex flex-col" href="#{{ .Anchor | safeURL }}"><h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}</h{{ .Level }}></a>

0 commit comments

Comments
 (0)