From 0fe29c7aaee8d3bd11f73825890c50670c47535b Mon Sep 17 00:00:00 2001 From: Katsuyuki Karasawa <4ranci0ne@gmail.com> Date: Tue, 22 Apr 2025 23:25:58 +0900 Subject: [PATCH] fix: enhance link styling on hover and active states (#413) --- src/styles/markdown.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/styles/markdown.css b/src/styles/markdown.css index 815324f8..23bdad17 100644 --- a/src/styles/markdown.css +++ b/src/styles/markdown.css @@ -22,9 +22,14 @@ a:not(.no-styling) { @apply relative bg-none link font-medium text-[var(--primary)] underline decoration-[var(--link-underline)] decoration-1 decoration-dashed underline-offset-4; - + box-decoration-break: clone; + -webkit-box-decoration-break: clone; + &:hover, &:active { @apply decoration-transparent; + background: var(--btn-plain-bg-hover); + border-bottom: 1px dashed var(--link-hover); + text-decoration: none; } }