Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a5906a0

Browse filesBrowse files
metonymjuanarbol
authored andcommitted
doc: apply scroll-margin-top to h2, h3 elements
PR-URL: #44414 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0e99139 commit a5906a0
Copy full SHA for a5906a0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Open diff view settings
Collapse file

‎doc/api_assets/style.css‎

Copy file name to clipboardExpand all lines: doc/api_assets/style.css
+2-6Lines changed: 2 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.