Skip to content

Commit

Permalink
Rollup merge of #102319 - notriddle:notriddle/td-th, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
rustdoc: merge CSS `table` rules into `.docblock`

This was added in 5101078, to fix the display of the module items and search results tables (see the discussion in #86725).

Those aren't tables any more. The only remaining table is in docblock, which has its own padding declarations.
  • Loading branch information
notriddle authored Sep 26, 2022
2 parents 2668a68 + 9990444 commit dc4fb6b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,6 @@ summary {

/* Fix some style changes due to normalize.css 8 */

td,
th {
padding: 0;
}

table {
border-collapse: collapse;
}

button,
input,
optgroup,
Expand Down Expand Up @@ -695,6 +686,7 @@ pre, .rustdoc.source .example-wrap {
width: calc(100% - 2px);
overflow-x: auto;
display: block;
border-collapse: collapse;
}

.docblock table td {
Expand Down

0 comments on commit dc4fb6b

Please sign in to comment.