Skip to content

Commit becd45b

Browse files
Fix title heading overlap in rust doc
1 parent b6055cb commit becd45b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+10-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ a {
529529
.content .search-results td:first-child { padding-right: 0; }
530530
.content .search-results td:first-child a { padding-right: 10px; }
531531

532-
tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
532+
tr.result span.primitive::after {
533+
content: ' (primitive type)'; font-style: italic; color: black;
533534
}
534535

535536
body.blur > :not(#help) {
@@ -745,6 +746,14 @@ span.since {
745746
margin-top: 5px;
746747
}
747748

749+
.docblock > .section-header:first-child {
750+
margin-left: 15px;
751+
}
752+
753+
.docblock > .section-header:first-child:hover > a:before {
754+
left: -10px;
755+
}
756+
748757
.enum > .collapsed, .struct > .collapsed {
749758
margin-bottom: 25px;
750759
}

0 commit comments

Comments
 (0)