Skip to content

Commit

Permalink
doc: avoid hiding by navigation bar in anchor jumping
Browse files Browse the repository at this point in the history
PR-URL: #45131
Fixes: #42286
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
cloydlau authored and targos committed May 21, 2024
1 parent 63fcbcf commit 4c65c52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c65c52

Please sign in to comment.