diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 14302edc061a1d..3ef9fdc9bb6628 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -60,9 +60,16 @@ } /*--------------------- Layout and Typography ----------------------------*/ +@media (prefers-reduced-motion: no-preference) { + html { + scroll-behavior: smooth; + } +} + html { font-size: 1rem; overflow-wrap: break-word; + scroll-padding-top: 4rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-font-variant-ligatures: none;