Skip to content

Commit e82d13e

Browse files
committed
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.
1 parent a5dbf8a commit e82d13e

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)