Skip to content

Commit

Permalink
Rollup merge of #103855 - notriddle:notriddle/mobile-item-table, r=Gu…
Browse files Browse the repository at this point in the history
…illaumeGomez

rustdoc: simplify mobile item-table CSS

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
Dylan-DPC authored Nov 2, 2022
2 parents 68db106 + 82c68ca commit cd9173e
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 cd9173e

Please sign in to comment.