Skip to content

Commit

Permalink
Rollup merge of rust-lang#43795 - GuillaumeGomez:improve-variants-doc…
Browse files Browse the repository at this point in the history
…-style, r=QuietMisdreavus

Improve enum variants display

r? @rust-lang/docs

Before:

<img width="1440" alt="screen shot 2017-08-11 at 00 22 54" src="https://user-images.githubusercontent.com/3050060/29194776-728ce0e2-7e2b-11e7-8299-8300cc0c168b.png">

After:

<img width="1440" alt="screen shot 2017-08-11 at 00 22 57" src="https://user-images.githubusercontent.com/3050060/29194783-78867558-7e2b-11e7-9226-1327fd20163a.png">

(The doc of the variant is more aligned with the "[-]" now).
  • Loading branch information
GuillaumeGomez authored Aug 11, 2017
2 parents 77904aa + b617200 commit 742bba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
@@ -687,6 +687,10 @@ span.since {
left: 0;
}

.variant + .toggle-wrapper + .docblock > p {
margin-top: 5px;
}

.variant + .toggle-wrapper > a {
margin-top: 5px;
}

0 comments on commit 742bba0

Please # to comment.