Fix anchor scroll offset with scroll-padding-top for sticky nav

This commit is contained in:
Davide Scaini
2026-05-17 08:55:34 +02:00
parent 48c824981b
commit 64d16dbbdf
+1 -1
View File
@@ -114,7 +114,7 @@ const activityUrl = import.meta.env.PUBLIC_ACTIVITY_URL ?? 'https://activity.bin
/* ── Base reset ──────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; overflow-x: hidden; }
[data-auth-pending] { visibility: hidden; }
</style>