Skip to content

Commit b0bd534

Browse files
authored
doc: avoid hiding by navigation bar in anchor jumping
PR-URL: #45131 Fixes: #42286 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 2693f09 commit b0bd534

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/api_assets/style.css

+7
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,16 @@ h5 :target {
6767
}
6868

6969
/*--------------------- Layout and Typography ----------------------------*/
70+
@media (prefers-reduced-motion: no-preference) {
71+
html {
72+
scroll-behavior: smooth;
73+
}
74+
}
75+
7076
html {
7177
font-size: 1rem;
7278
overflow-wrap: break-word;
79+
scroll-padding-top: 50vh;
7380
-webkit-font-smoothing: antialiased;
7481
-moz-osx-font-smoothing: grayscale;
7582
-webkit-font-variant-ligatures: none;

0 commit comments

Comments
 (0)