Skip to content

Commit b49ad2f

Browse files
committed
style: Update scroll-to-top button appearance and positioning
1 parent 700cf93 commit b49ad2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/scroll/bottom-to-top.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export default function ScrollBottomToTop() {
3030
showButton && (
3131
<button
3232
onClick={scrollToTop}
33-
className="fixed right-5 bottom-20 z-50 cursor-pointer rounded-lg border-none bg-blue-600 p-2.5 text-white opacity-80 shadow-md transition-opacity duration-300 hover:bg-blue-700 hover:opacity-100"
33+
className="fixed right-5 bottom-5 z-50 cursor-pointer rounded-full border-none bg-gray-700 p-3 text-white shadow-lg transition-all duration-300 hover:scale-110 hover:bg-gray-800 dark:bg-gray-600 dark:hover:bg-gray-700"
34+
style={{ backgroundColor: "var(--ifm-color-primary)" }}
3435
>
3536
<FaArrowUp />
3637
</button>

0 commit comments

Comments
 (0)