Skip to content

Commit

Permalink
rustdoc: simplify mobile item-table CSS
Browse files Browse the repository at this point in the history
Using flexbox in column direction is needlessly complicated, since no
special flex powers are being used here. Just use regular block layout.

This should result in no visible changes.
  • Loading branch information
notriddle committed Nov 1, 2022
1 parent ab5a2bc commit 82c68ca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1870,16 +1870,9 @@ in storage.js
}

/* Display an alternating layout on tablets and phones */
.item-table {
.item-table, .item-row, .item-left, .item-right {
display: block;
}
.item-row {
display: flex;
flex-flow: column wrap;
}
.item-left, .item-right {
width: 100%;
}

/* Display an alternating layout on tablets and phones */
.search-results > a {
Expand Down

0 comments on commit 82c68ca

Please sign in to comment.