Skip to content

Commit

Permalink
Greatly improve display for small mobile devices screens
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 18, 2020
1 parent 98e1688 commit 4e2c59a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,41 @@ h4 > .notable-traits {
#titles, #titles > div {
height: 73px;
}

#main > table:not(.table-display) td {
word-break: break-word;
min-width: 10%;
}

.search-container > div {
display: block;
width: calc(100% - 37px);
}

#crate-search {
width: 100%;
border-radius: 4px;
border: 0;
}

#crate-search + .search-input {
width: calc(100% + 71px);
margin-left: -36px;
}

#theme-picker, #settings-menu {
padding: 5px;
width: 31px;
height: 31px;
}

#theme-picker {
margin-top: -2px;
}

#settings-menu {
top: 7px;
}
}

h3.notable {
Expand Down

0 comments on commit 4e2c59a

Please sign in to comment.