Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavus

Fix tables display

Fixes #58134.

cc @lzutao

r? @QuietMisdreavus
This commit is contained in:
kennytm 2019-02-20 01:13:18 +08:00
commit 07b6d17416
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C
3 changed files with 6 additions and 25 deletions

View File

@ -424,7 +424,8 @@ h4 > code, h3 > code, .invisible > code {
.docblock table { .docblock table {
margin: .5em 0; margin: .5em 0;
width: 100%; width: calc(100% - 2px);
border: 1px dashed;
} }
.docblock table td { .docblock table td {
@ -657,7 +658,7 @@ a {
transition: border-color 300ms ease; transition: border-color 300ms ease;
transition: border-radius 300ms ease-in-out; transition: border-radius 300ms ease-in-out;
transition: box-shadow 300ms ease-in-out; transition: box-shadow 300ms ease-in-out;
width: 100%; width: calc(100% - 32px);
} }
#crate-search + .search-input { #crate-search + .search-input {

View File

@ -68,20 +68,10 @@ pre {
border-bottom-color: #DDD; border-bottom-color: #DDD;
} }
.docblock table { .docblock table, .docblock table td, .docblock table th {
border-color: #ddd; 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 .method .where,
.content .fn .where, .content .fn .where,
.content .where.fmt-newline { .content .where.fmt-newline {

View File

@ -67,23 +67,13 @@ pre {
} }
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 { .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
border-bottom-color: #DDD; border-bottom-color: #ddd;
} }
.docblock table { .docblock table, .docblock table td, .docblock table th {
border-color: #ddd; 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 .method .where,
.content .fn .where, .content .fn .where,
.content .where.fmt-newline { .content .where.fmt-newline {