Skip to content

Commit cb95e18

Browse files
silverwindtargos
authored andcommitted
doc: add scroll margin to links
PR-URL: #58982 Reviewed-By: Claudio Wunder <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Tierney Cyren <[email protected]>
1 parent 85d6a28 commit cb95e18

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎doc/api_assets/style.css‎

Lines changed: 8 additions & 0 deletions
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:001.5rem;
@@ -837,6 +842,9 @@ kbd{
837842
.api_stability{
838843
top:0;
839844
}
845+
#apicontenta{
846+
scroll-margin-top:0;
847+
}
840848
}
841849

842850
@medianot screen, (max-height:1000px){

0 commit comments

Comments
(0)