style(mdx): Add subheading anchor style, underline on hover

- Added `subheading-anchor` style to control subheading anchor display.
- Removed default underline and added underline on hover for improved user experience.
This commit is contained in:
cfngc4594 2025-02-23 15:02:55 +08:00
parent f7e94564be
commit 269f41525b

View File

@ -33,3 +33,7 @@
[data-rehype-pretty-code-figure] [data-chars-id] { [data-rehype-pretty-code-figure] [data-chars-id] {
@apply border-b-2 p-1 shadow-none; @apply border-b-2 p-1 shadow-none;
} }
.subheading-anchor {
@apply no-underline hover:underline;
}