mrcrmn / docc

A starter documentation theme for Gridsome. Featuring instant search, great navigation and a dark mode!
https://docc-theme.netlify.com
MIT License
126 stars 32 forks source link

Anchor links not accessible in mobile mode #1

Open HZooly opened 4 years ago

HZooly commented 4 years ago

Capture d’écran 2020-03-05 à 11 37 35

As you can see on the left of h1 tag, the anchor link is not very accessible in mobile view. Maybe add more horizontal padding in small views.

mrcrmn commented 4 years ago

Thanks for the issue!

What do you think about this solution?

image

Keeping the anchor always visible for small viewports (since there is no real hover state on mobile anyways) and indenting the headline a little.

I would prefer this over adding more padding to the left.

Thoughts?

HZooly commented 4 years ago

I think it is the easier solution!