Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tables display #58384

Merged
merged 1 commit into from
Feb 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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