Skip to content

Commit bf5966e

Browse files
authored
Rollup merge of rust-lang#43795 - GuillaumeGomez:improve-variants-doc-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).
2 parents 84d6b0d + b617200 commit bf5966e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+4
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,10 @@ span.since {
687687
left: 0;
688688
}
689689

690+
.variant + .toggle-wrapper + .docblock > p {
691+
margin-top: 5px;
692+
}
693+
690694
.variant + .toggle-wrapper > a {
691695
margin-top: 5px;
692696
}

0 commit comments

Comments
 (0)