Skip to content

Commit 5cd1326

Browse files
committed
Show anchor icons when links are focuses as well as hovered
1 parent 99e8cc1 commit 5cd1326

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/assets/style.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,14 @@ body {
188188
left: -0.8em;
189189
opacity: 0;
190190
}
191+
191192
h1:hover .anchor-icon,
193+
h1 a:focus .anchor-icon,
192194
h2:hover .anchor-icon,
195+
h2 a:focus .anchor-icon,
193196
h3:hover .anchor-icon,
194-
h4:hover .anchor-icon {
197+
h3 a:focus .anchor-icon,
198+
h4:hover .anchor-icon,
199+
h4 a:focus .anchor-icon {
195200
opacity: 0.5;
196201
}

0 commit comments

Comments
 (0)