Skip to content

Commit 012fce7

Browse files
committed
fix(css): wrong hover border on image links
fix #295 Helped-by: Kirill Bobyrev
1 parent e0a3e23 commit 012fce7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ a {
4646
text-decoration: underline var(--accent-color);
4747
}
4848

49+
/* Ensure that the hover border is sized correctly for <a><img…></a>. #295 */
50+
a:has(> img) {
51+
display: block;
52+
}
53+
4954
a:focus,
5055
a:hover {
5156
color: var(--accent-color);

0 commit comments

Comments
 (0)