Scroll-snap CSS override is unnecessary and incompatible with older browsers #755
Labels
design/style
Front-end site design / styling
e0-minutes
Effort: < 60 min
e1-hours
Effort: < 8 hrs
ux
Consider the following CSS override (relative to the Docsy base CSS):
opentelemetry.io/assets/scss/_styles_project.scss
Lines 84 to 91 in 8f745be
The original problem (#348) wasn't due to Docy's scroll-snap CSS, it was because of the use of
flex
displays in non-documentation pages. Whilescroll-margin-top
works wonderfully well, but it's support isn't that great -- see SO and scroll-margin-top. For example, it's been supported in iOS Safari only recently.I see top options: fix the non-doc pages and fall back to Docy's CSS, or (assess &) consider the alternative solution proposed in SO.
The text was updated successfully, but these errors were encountered: