Skip to content

Commit

Permalink
rustdoc: remove unused CSS #main-content > table td
Browse files Browse the repository at this point in the history
This rule was added in 4e2c59a
to benefit the module items table. However, the module items table stopped
using table tags when 6020c79
switched us over to grid layout.

You can see when this one used to be triggered by visiting
<https://doc.rust-lang.org/1.54.0/alloc/slice/index.html#structs-1> in a
very narrow window, but it doesn't any more, because the module table is
now rendered using `<div>` tags.
  • Loading branch information
notriddle committed Sep 7, 2022
1 parent 78a891d commit 43681db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -2047,11 +2047,6 @@ in storage.js plus the media query with (min-width: 701px)
height: 73px;
}

#main-content > table td {
word-break: break-word;
width: 50%;
}

#crate-search {
border-radius: 4px;
}
Expand Down

0 comments on commit 43681db

Please sign in to comment.