Skip to content

Commit 03638cc

Browse files
committed
Make the navbar hitboxes larger
1 parent d2089e6 commit 03638cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/navbar/navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface NavBarProps {
2525
}
2626

2727
const linkClasses =
28-
"typography-menu flex items-center text-neu-900 px-3 py-1 nextra-focus [text-box:trim-both_cap_alphabetic] leading-none hover:underline underline-offset-2"
28+
"typography-menu flex items-center text-neu-900 px-3 py-1 nextra-focus [text-box:trim-both_cap_alphabetic] leading-none hover:underline underline-offset-2 md:py-5"
2929

3030
function NavbarMenu({
3131
menu,
@@ -171,7 +171,7 @@ export function Navbar({ items }: NavBarProps): ReactElement {
171171
<NavigationMenu.Positioner
172172
side="bottom"
173173
align="start"
174-
sideOffset={21}
174+
sideOffset={4}
175175
alignOffset={-8}
176176
>
177177
<NavigationMenu.Popup className="data-[closed]:animate-fade-out data-[open]:animate-fade-in">

src/pages/_meta.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696

9797
function Emphasis({ children }: { children: React.ReactNode }) {
9898
return (
99-
<span className="[a:has(>&)]:[a:has(>&)]:border [a:has(>&)]:border [a:has(>&)]:border-current [a:has(>&)]:text-pri-base dark:[a:has(>&)]:text-pri-light [a:hover:has(>&)]:border-transparent [a:hover:has(>&)]:no-underline">
99+
<span className="relative block before:absolute before:-inset-x-3 before:-inset-y-1 before:border before:border-current [a:has(>&)]:text-pri-base dark:[a:has(>&)]:text-pri-light [a:hover:has(>&)]:no-underline [a:hover_&]:before:border-transparent">
100100
{children}
101101
</span>
102102
)

0 commit comments

Comments
 (0)