diff options
| author | bors <bors@rust-lang.org> | 2017-04-09 17:51:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-04-09 17:51:32 +0000 |
| commit | d616f47cd03a65fed13be2ee5527f24f6a4f7f92 (patch) | |
| tree | a3af2cda894abde784d405b75e4f8f0db4996a71 /src/librustdoc/html/static | |
| parent | fa332c901575da70ac7a612609a26b752b1adc65 (diff) | |
| parent | 8dd4c44ef6c851afcc9651c9b32df005e35d0d1d (diff) | |
| download | rust-d616f47cd03a65fed13be2ee5527f24f6a4f7f92.tar.gz rust-d616f47cd03a65fed13be2ee5527f24f6a4f7f92.zip | |
Auto merge of #41084 - QuietMisdreavus:rustdoc-format-redux, r=frewsxcxv,GuillaumeGomez
rustdoc: update formatting of fn signatures and where clauses to match style rfcs Recent updates to style RFCs ([where clauses](https://github.com/rust-lang-nursery/fmt-rfcs/issues/38), [function definitions](https://github.com/rust-lang-nursery/fmt-rfcs/issues/39)) changed the "canonical" style for these items, so this is a rustdoc update to make it emit that style where necessary. This is mainly a conversion from visual indent to block indent, which helps out in situations where there was excessive indent causing lines to wrap regardless. Samples:        fixes #41025 and #40687 r? @rust-lang/docs
Diffstat (limited to 'src/librustdoc/html/static')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 4edf6309346..ddaa00aa4fb 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -379,12 +379,6 @@ h4 > code, h3 > code, .invisible > code { .content .where.fmt-newline { display: block; } -/* Bit of whitespace to indent it */ -.content .method .where::before, -.content .fn .where::before, -.content .where.fmt-newline::before { - content: ' '; -} .content .methods > div { margin-left: 40px; } @@ -399,11 +393,6 @@ h4 > code, h3 > code, .invisible > code { font-size: 90%; } -/* Shift where in trait listing down a line */ -pre.trait .where::before { - content: '\a '; -} - nav { border-bottom: 1px solid; padding-bottom: 10px; @@ -772,4 +761,4 @@ span.since { nav.sub, .content .out-of-band, .collapse-toggle { display: none; } -} \ No newline at end of file +} |
