Skip to content

Commit 58c88e6

Browse files
Fix source code pages in rustdoc
1 parent d586d5d commit 58c88e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustdoc/html/static/rustdoc.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,11 @@ nav.sub {
282282
padding-left: 0;
283283
}
284284

285-
.example-wrap {
285+
body:not(.source) .example-wrap {
286286
display: inline-flex;
287+
}
288+
289+
.example-wrap {
287290
width: 100%;
288291
}
289292

@@ -296,7 +299,7 @@ nav.sub {
296299
text-align: right;
297300
}
298301

299-
.example-wrap > pre.rust {
302+
body:not(.source) .example-wrap > pre.rust {
300303
width: 100%;
301304
}
302305

0 commit comments

Comments
 (0)