Skip to content

Commit 1ec13e7

Browse files
committed
Improve mobile-friendliness of API docs
Removes min-width rule from body so that the page does not scroll horizontally on mobile displays; hides out-of-band information.
1 parent d8d5e4d commit 1ec13e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/librustdoc/html/static/main.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464

6565
body {
6666
color: #333;
67-
min-width: 500px;
6867
font: 16px/1.4 "Source Serif Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
6968
margin: 0;
7069
position: relative;
@@ -592,6 +591,14 @@ pre.rust { position: relative; }
592591
margin-left: 0px;
593592
}
594593

594+
.content .in-band {
595+
width: 100%;
596+
}
597+
598+
.content .out-of-band {
599+
display: none;
600+
}
601+
595602
.toggle-wrapper > .collapse-toggle {
596603
left: 0px;
597604
}

0 commit comments

Comments
 (0)