From 96d323cda51cc484d2c401f9f7b2ac2dd1a86f19 Mon Sep 17 00:00:00 2001 From: Ad-closeNN <1709301095@qq.com> Date: Sun, 1 Mar 2026 16:54:13 +0800 Subject: [PATCH] =?UTF-8?q?style:=20Markdown=20=E9=93=BE=E6=8E=A5=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=95=88=E6=9E=9C=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/markdown.css | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/styles/markdown.css b/src/styles/markdown.css index df98ebf..1046ccd 100644 --- a/src/styles/markdown.css +++ b/src/styles/markdown.css @@ -41,16 +41,17 @@ } a:not(.no-styling) { - @apply relative bg-none transition rounded-md p-1 -m-1 font-medium text-[var(--primary)] before:ease-out before:transition active:bg-none hover:before:bg-[var(--btn-plain-bg-hover)] active:before:bg-[var(--btn-plain-bg-active)] z-0 before:absolute before:rounded-[inherit] before:inset-0 before:scale-[0.85] hover:before:scale-100 before:-z-10 underline decoration-[var(--link-underline)] decoration-1 decoration-dashed underline-offset-4; + @apply relative bg-none transition p-1 -m-1 font-medium text-[var(--primary)] z-0; box-decoration-break: clone; -webkit-box-decoration-break: clone; + + &::after { + content: ""; + @apply absolute bottom-0 left-0 w-full h-[2px] bg-[var(--primary)] transition-opacity duration-300 ease-in-out opacity-0; + } - &:hover, - &:active { - @apply decoration-transparent; - background: var(--btn-plain-bg-hover); - border-bottom: 1px dashed var(--link-hover); - text-decoration: none; + &:hover::after { + @apply opacity-100; } }