Skip to content

Commit 7398e5b

Browse files
omegahmst0012
andauthored
Add scroll-margin-top on all :target elements (#1174)
Co-authored-by: Stan Lo <[email protected]>
1 parent 716bc16 commit 7398e5b

File tree

1 file changed

+1
-0
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+1
-0
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ h5:target,
8585
h6:target {
8686
margin-left: -10px;
8787
border-left: 10px solid var(--source-code-background-color);
88+
scroll-margin-top: 1rem;
8889
}
8990

9091
/* 4. Links */

0 commit comments

Comments
 (0)