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