Skip to content

Commit 07df45d

Browse files
authored
Rollup merge of rust-lang#45450 - GuillaumeGomez:overlap-link, r=QuietMisdreavus
Fix title heading overlap in rust doc Fixes rust-lang#45158. To be noted that this margin only appears when a title is the first element. <img width="1440" alt="screen shot 2017-10-22 at 16 08 44" src="https://user-images.githubusercontent.com/3050060/31862746-6411070e-b743-11e7-9a75-4159e1f7f1d6.png"> r? @rust-lang/docs
2 parents fc3e12a + 237ad82 commit 07df45d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+11-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ a {
545545
.content .search-results td:first-child { padding-right: 0; }
546546
.content .search-results td:first-child a { padding-right: 10px; }
547547

548-
tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
548+
tr.result span.primitive::after {
549+
content: ' (primitive type)'; font-style: italic; color: black;
549550
}
550551

551552
body.blur > :not(#help) {
@@ -761,6 +762,15 @@ span.since {
761762
margin-top: 5px;
762763
}
763764

765+
.docblock > .section-header:first-child {
766+
margin-left: 15px;
767+
margin-top: 0;
768+
}
769+
770+
.docblock > .section-header:first-child:hover > a:before {
771+
left: -10px;
772+
}
773+
764774
.enum > .collapsed, .struct > .collapsed {
765775
margin-bottom: 25px;
766776
}

0 commit comments

Comments
 (0)