Skip to content

Commit 1ec306e

Browse files
author
Jonathan Turner
authored
Rollup merge of rust-lang#36676 - bluss:rustdoc-where-css, r=steveklabnik
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.
2 parents ae77889 + e82d13e commit 1ec306e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ h4 > code, h3 > code, .invisible > code {
378378
font-size: 90%;
379379
}
380380

381+
/* Shift where in trait listing down a line */
382+
pre.trait .where::before {
383+
content: '\a ';
384+
}
385+
381386
nav {
382387
border-bottom: 1px solid;
383388
padding-bottom: 10px;

0 commit comments

Comments
 (0)