Skip to content

Commit 46ebed5

Browse files
committed
Rollup merge of rust-lang#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.
2 parents 04abc05 + 0ac24d6 commit 46ebed5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/static/main.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ nav.sub {
338338
font-size: 1em;
339339
position: relative;
340340
}
341-
/* Shift "where ..." part of method definition down a line */
342-
.content .method .where { display: block; }
341+
/* Shift "where ..." part of method or fn definition down a line */
342+
.content .method .where, .content .fn .where { display: block; }
343343
/* Bit of whitespace to indent it */
344-
.content .method .where::before { content: ' '; }
344+
.content .method .where::before, .content .fn .where::before { content: ' '; }
345345

346346
.content .methods > div { margin-left: 40px; }
347347

0 commit comments

Comments
 (0)