Skip to content

Commit

Permalink
rustdoc: Tweak css of function where clauses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrik Sverdrup committed May 31, 2015
1 parent ee1ba33 commit 0ac24d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/static/main.css
Expand Up @@ -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; }

Expand Down

0 comments on commit 0ac24d6

Please sign in to comment.