]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: Tweak css of function where clauses
authorUlrik Sverdrup <root@localhost>
Sun, 31 May 2015 20:46:19 +0000 (22:46 +0200)
committerUlrik Sverdrup <root@localhost>
Sun, 31 May 2015 20:46:19 +0000 (22:46 +0200)
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.

src/librustdoc/html/static/main.css

index 575322e63526d531b10611eb3cd6b1aeb0f93759..aaebdc34cd464729ca782eea957780be535fbbc6 100644 (file)
@@ -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; }