Skip to content

Commit 57a3ef3

Browse files
committed
Use CSS whitespace rather than padding to indent
1 parent 4477c7c commit 57a3ef3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustdoc/html/static/main.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ nav.sub {
306306
font-size: 1em;
307307
position: relative;
308308
}
309-
/* Shift "where ..." part of method definition down a line and indent it */
310-
.content .method .where { display: block; padding-left: 3.75em; }
309+
/* Shift "where ..." part of method definition down a line */
310+
.content .method .where { display: block; }
311+
/* Bit of whitespace to indent it */
312+
.content .method .where::before { content: ' '; }
311313

312314
.content .methods .docblock { margin-left: 40px; }
313315

0 commit comments

Comments
 (0)