diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-02 11:14:08 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-02 11:14:08 +0530 |
| commit | 46ebed55a675f86552e72bef52a84c7e03c7bf4e (patch) | |
| tree | 43f361e6a4b9bead1e82b60b9f15c9d5651867cd /src | |
| parent | 04abc050944857d82f9aaa897369c58a82230d87 (diff) | |
| parent | 0ac24d6bffd2381358c164969f002b2c9f3c1316 (diff) | |
| download | rust-46ebed55a675f86552e72bef52a84c7e03c7bf4e.tar.gz rust-46ebed55a675f86552e72bef52a84c7e03c7bf4e.zip | |
Rollup merge of #25933 - bluss:rustdoc-fn-css, r=alexcrichton
rustdoc: Tweak css of function where clauses Method where clauses are put indented on a new line, do the same tweak to free functions, which makes it cleaner and easier to read.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/main.css | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 575322e6352..aaebdc34cd4 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -338,10 +338,10 @@ nav.sub { font-size: 1em; position: relative; } -/* Shift "where ..." part of method definition down a line */ -.content .method .where { display: block; } +/* Shift "where ..." part of method or fn definition down a line */ +.content .method .where, .content .fn .where { display: block; } /* Bit of whitespace to indent it */ -.content .method .where::before { content: ' '; } +.content .method .where::before, .content .fn .where::before { content: ' '; } .content .methods > div { margin-left: 40px; } |
