Created by: MartijnCuppens
I recently discovered the scroll-margin-top
property and it turned out this was exactly what we needed instead of the hack we have. Some side notes:
- This doesn't work for IE, but since sticky itself doesn't work, this is a non-issue.
- This doesn't work for the old Edge, I'm not sure if that's really an issue since it's just for our own docs.
I've also wrapped it in a media query since the stick menu is only present above the md
breakpoint.