Skip to content

Commit a5906a0

Browse files
metonymjuanarbol
authored andcommitted
doc: apply scroll-margin-top to h2, h3 elements
PR-URL: #44414 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0e99139 commit a5906a0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

doc/api_assets/style.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,13 @@
4040
--color-text-secondary: var(--green2);
4141
}
4242

43+
h2 :target,
44+
h3 :target,
4345
h4 :target,
4446
h5 :target {
4547
scroll-margin-top: 55px;
4648
}
4749

48-
@supports not (content-visibility: auto) {
49-
h3 :target {
50-
scroll-margin-top: 55px;
51-
}
52-
}
53-
5450
.dark-mode {
5551
--background-color-highlight: var(--black2);
5652
--color-critical: var(--red4);

0 commit comments

Comments
 (0)