diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-30 20:35:46 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-05-30 20:35:46 +0530 |
| commit | 653ce3e52575ef716390b93a180d3db0728a67a0 (patch) | |
| tree | 90fff5b0c616293f1d430a642b8af4ca96e00899 /src/librustdoc/html/static/rustdoc.css | |
| parent | 5da602bda3f30a8943dd4d10383bae6d8a77575c (diff) | |
| parent | b0c703304204f21ab6964d4b37776e7e5015cf7b (diff) | |
| download | rust-653ce3e52575ef716390b93a180d3db0728a67a0.tar.gz rust-653ce3e52575ef716390b93a180d3db0728a67a0.zip | |
Rollup merge of #33867 - oli-obk:rustdoc_variant_types, r=GuillaumeGomez
print enum variant fields in docs Right now we are repeating enum variants at the top, because the fields aren't shown with the actual docs. It's very annoying to have to scroll up and down to have both docs and field info. For struct variants we already list the fields. enum docs look like this after this PR:  There are degenerate cases for enum tuple variants with lots of fields:  I was thinking that we could move the docs below the variant (slightly indented) or list the variant fields vertically instead of horizontally r? @steveklabnik
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 8e4245d4ebf..bfe3f7b8dd6 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -265,6 +265,10 @@ nav.sub { .docblock h2 { font-size: 1.15em; } .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; } +.docblock { + margin-left: 24px; +} + .content .out-of-band { font-size: 23px; margin: 0px; @@ -640,6 +644,21 @@ span.since { margin-right: 5px; } +.enum > .toggle-wrapper > .collapse-toggle, .struct > .toggle-wrapper > .collapse-toggle { + left: 0; + margin-top: 5px; +} + +.enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock { + margin-left: 30px; + margin-bottom: 20px; + margin-top: 5px; +} + +.enum > .collapsed, .struct > .collapsed { + margin-bottom: 25px; +} + :target > code { background: #FDFFD3; } |
