Skip to content

Commit 29887b1

Browse files
committed
Improve the backlink
1 parent 344114c commit 29887b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/conf/2025/schedule/_components/back-link.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export function BackLink({
1111
return (
1212
<NextLink
1313
href={`/conf/${year}/${kind}`}
14-
className="group cursor-pointer !no-underline transition-all typography-link"
14+
className="group cursor-pointer transition-all typography-menu hover:underline hover:underline-offset-4"
1515
>
16-
<span className="flex items-center gap-2">
17-
<div className="group-hover:animate-arrow-left group-focus:animate-arrow-left">
18-
<ArrowDownIcon className="inline-block size-8 rotate-90" />
16+
<span className="-m-2 flex items-center gap-2 p-2">
17+
<div className="group-hover:animate-arrow-left group-focus:animate-arrow-left [--arrow-left-x:-1px]">
18+
<ArrowDownIcon className="inline-block size-4 rotate-90" />
1919
</div>
2020
Back to {capitalize(kind)}
2121
</span>

tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const config: Config = {
8989
transform: "translateX(0)",
9090
},
9191
"50%": {
92-
transform: "translateX(-1.5px)",
92+
transform: "translateX(var(--arrow-left-x,-1.5px))",
9393
},
9494
},
9595
"show-overflow": {

0 commit comments

Comments
 (0)