kroxylicious / kroxylicious.github.io

kroxylicious.io org page
0 stars 8 forks source link

Fix #31: Enable anchor links for kroxylicious.io #36

Closed k-wall closed 8 months ago

k-wall commented 8 months ago

It looks like this:

image
k-wall commented 8 months ago

@gracegrimwood thank you.

One issue, can we make the anchoring relative to the black title area? In this case I would expect the "What is Kroxylicious" to be displayed immediately beneath the black title area.

Do you know the right way to fix this?

image

gracegrimwood commented 8 months ago

Took some digging because the usual solution (having the anchor link to an invisible div offset vertically up the page from the heading) isn't available to us because of the way we're injecting these anchors into the page. Turns out we can do it with the scroll-margin-top property instead, so I've submitted a PR to fix that here.