◐ Shell
clean mode source ↗

doc: add scroll margin to links · nodejs/node@cb95e18

Original file line numberDiff line numberDiff line change

@@ -373,6 +373,11 @@ p {

373373

padding-bottom: 2rem;

374374

}

375375
376+

/* prevent the module-level sticky stability header from overlapping the section headers when clicked */

377+

#apicontent:has(> .api_stability) a {

378+

scroll-margin-top: 50px;

379+

}

380+
376381

table {

377382

border-collapse: collapse;

378383

margin: 0 0 1.5rem;

@@ -837,6 +842,9 @@ kbd {

837842

.api_stability {

838843

top: 0;

839844

}

845+

#apicontent a {

846+

scroll-margin-top: 0;

847+

}

840848

}

841849
842850

@media not screen, (max-height: 1000px) {