Skip to content

Commit

Permalink
Fix tables display
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 19, 2019
1 parent 618f5a0 commit b53305d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
5 changes: 3 additions & 2 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ h4 > code, h3 > code, .invisible > code {

.docblock table {
margin: .5em 0;
width: 100%;
width: calc(100% - 2px);
border: 1px dashed;
}

.docblock table td {
Expand Down Expand Up @@ -657,7 +658,7 @@ a {
transition: border-color 300ms ease;
transition: border-radius 300ms ease-in-out;
transition: box-shadow 300ms ease-in-out;
width: 100%;
width: calc(100% - 32px);
}

#crate-search + .search-input {
Expand Down
12 changes: 1 addition & 11 deletions src/librustdoc/html/static/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,10 @@ pre {
border-bottom-color: #DDD;
}

.docblock table {
.docblock table, .docblock table td, .docblock table th {
border-color: #ddd;
}

.docblock table td {
border-top-color: #ddd;
border-bottom-color: #ddd;
}

.docblock table th {
border-top-color: #ddd;
border-bottom-color: #ddd;
}

.content .method .where,
.content .fn .where,
.content .where.fmt-newline {
Expand Down
14 changes: 2 additions & 12 deletions src/librustdoc/html/static/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,11 @@ pre {
}

.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
border-bottom-color: #DDD;
}

.docblock table {
border-color: #ddd;
}

.docblock table td {
border-top-color: #ddd;
border-bottom-color: #ddd;
}

.docblock table th {
border-top-color: #ddd;
border-bottom-color: #ddd;
.docblock table, .docblock table td, .docblock table th {
border-color: #ddd;
}

.content .method .where,
Expand Down

0 comments on commit b53305d

Please sign in to comment.