Skip to content

Commit 4e2c59a

Browse files
Greatly improve display for small mobile devices screens
1 parent 98e1688 commit 4e2c59a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+35
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,41 @@ h4 > .notable-traits {
15601560
#titles, #titles > div {
15611561
height: 73px;
15621562
}
1563+
1564+
#main > table:not(.table-display) td {
1565+
word-break: break-word;
1566+
min-width: 10%;
1567+
}
1568+
1569+
.search-container > div {
1570+
display: block;
1571+
width: calc(100% - 37px);
1572+
}
1573+
1574+
#crate-search {
1575+
width: 100%;
1576+
border-radius: 4px;
1577+
border: 0;
1578+
}
1579+
1580+
#crate-search + .search-input {
1581+
width: calc(100% + 71px);
1582+
margin-left: -36px;
1583+
}
1584+
1585+
#theme-picker, #settings-menu {
1586+
padding: 5px;
1587+
width: 31px;
1588+
height: 31px;
1589+
}
1590+
1591+
#theme-picker {
1592+
margin-top: -2px;
1593+
}
1594+
1595+
#settings-menu {
1596+
top: 7px;
1597+
}
15631598
}
15641599

15651600
h3.notable {

0 commit comments

Comments
 (0)