diff --git a/src/theme/prose/h2.ts b/src/theme/prose/h2.ts index 39f93184d1..1e06d77bd9 100644 --- a/src/theme/prose/h2.ts +++ b/src/theme/prose/h2.ts @@ -2,7 +2,7 @@ import type { ModuleOptions } from '../../module' export default (options: Required) => ({ slots: { - base: ['relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-xl/7 [&>a>code]:font-bold', options.theme.transitions && '[&>a>code]:transition-colors'], + base: ['relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&_code]:text-xl/7 [&_code]:font-bold', options.theme.transitions && '[&>a>code]:transition-colors'], leading: ['absolute -ms-8 top-1 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted', options.theme.transitions && 'transition'], leadingIcon: 'size-4 shrink-0', link: 'group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2' diff --git a/src/theme/prose/h3.ts b/src/theme/prose/h3.ts index 6b1d1ba659..62079f415a 100644 --- a/src/theme/prose/h3.ts +++ b/src/theme/prose/h3.ts @@ -2,7 +2,7 @@ import type { ModuleOptions } from '../../module' export default (options: Required) => ({ slots: { - base: ['relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-lg/6 [&>a>code]:font-bold', options.theme.transitions && '[&>a>code]:transition-colors'], + base: ['relative text-xl text-highlighted font-bold mt-8 mb-3 scroll-mt-[calc(32px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(32px+var(--ui-header-height))] [&>a]:rounded-sm [&>a]:outline-primary/25 [&>a]:focus-visible:outline-3 [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&_code]:text-lg/6 [&_code]:font-bold', options.theme.transitions && '[&>a>code]:transition-colors'], leading: ['absolute -ms-8 top-0.5 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated group-hover:text-primary group-focus:text-primary rounded-md hidden lg:flex text-muted', options.theme.transitions && 'transition'], leadingIcon: 'size-4 shrink-0', link: 'group lg:after:absolute lg:after:inset-y-0 lg:after:-inset-s-2 lg:after:w-2'