Skip to content

Commit

Permalink
Rollup merge of rust-lang#45450 - GuillaumeGomez:overlap-link, r=Quie…
Browse files Browse the repository at this point in the history
…tMisdreavus

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
  • Loading branch information
kennytm authored Nov 1, 2017
2 parents fc3e12a + 237ad82 commit 07df45d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ a {
.content .search-results td:first-child { padding-right: 0; }
.content .search-results td:first-child a { padding-right: 10px; }

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

body.blur > :not(#help) {
Expand Down Expand Up @@ -761,6 +762,15 @@ span.since {
margin-top: 5px;
}

.docblock > .section-header:first-child {
margin-left: 15px;
margin-top: 0;
}

.docblock > .section-header:first-child:hover > a:before {
left: -10px;
}

.enum > .collapsed, .struct > .collapsed {
margin-bottom: 25px;
}
Expand Down

0 comments on commit 07df45d

Please sign in to comment.