mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 05:38:47 +02:00
doc: add scroll margin to links
PR-URL: https://github.com/nodejs/node/pull/58982 Reviewed-By: Claudio Wunder <cwunder@gnome.org> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
This commit is contained in:
parent
b7db89f491
commit
2b75c2dc70
1 changed files with 8 additions and 0 deletions
|
@ -373,6 +373,11 @@ p {
|
|||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* prevent the module-level sticky stability header from overlapping the section headers when clicked */
|
||||
#apicontent:has(> .api_stability) a {
|
||||
scroll-margin-top: 50px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
margin: 0 0 1.5rem;
|
||||
|
@ -837,6 +842,9 @@ kbd {
|
|||
.api_stability {
|
||||
top: 0;
|
||||
}
|
||||
#apicontent a {
|
||||
scroll-margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media not screen, (max-height: 1000px) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue