Skip to content

Commit

Permalink
Rollup merge of rust-lang#36676 - bluss:rustdoc-where-css, r=stevekla…
Browse files Browse the repository at this point in the history
…bnik

rustdoc css: Put `where` in trait listings on a new line

This is about the gray area at the top of a trait's documentation page,
that lists all methods and their signatures. A big trait page like
Iterator is very crowded without this tweak.
  • Loading branch information
Jonathan Turner authored Sep 26, 2016
2 parents ae77889 + e82d13e commit 1ec306e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,11 @@ 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;
Expand Down

0 comments on commit 1ec306e

Please sign in to comment.