]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: simplify mobile item-table CSS
authorMichael Howell <michael@notriddle.com>
Tue, 1 Nov 2022 23:27:00 +0000 (16:27 -0700)
committerMichael Howell <michael@notriddle.com>
Tue, 1 Nov 2022 23:28:58 +0000 (16:28 -0700)
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.

src/librustdoc/html/static/css/rustdoc.css

index 219d1b4ed53ffadea6aba8645bbf244cbdaecc63..360b6b9832a5505d4ae0f74cfeb17dd2a03d1ba5 100644 (file)
@@ -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 {