Fix anchor scroll offset with scroll-padding-top for sticky nav
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user