mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: apply scroll-margin-top to h2, h3 elements
PR-URL: https://github.com/nodejs/node/pull/44414 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
8db2e66d3a
commit
92046e8027
1 file changed
+2
-6
@@ -40,17 +40,13 @@
|
||||
--color-text-secondary: var(--green2);
|
||||
}
|
||||
|
||||
h2 :target,
|
||||
h3 :target,
|
||||
h4 :target,
|
||||
h5 :target {
|
||||
scroll-margin-top: 55px;
|
||||
}
|
||||
|
||||
@supports not (content-visibility: auto) {
|
||||
h3 :target {
|
||||
scroll-margin-top: 55px;
|
||||
}
|
||||
}
|
||||
|
||||
.dark-mode {
|
||||
--background-color-highlight: var(--black2);
|
||||
--color-critical: var(--red4);
|
||||
|
||||
Reference in new issue
Block a user