diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-06-10 23:33:37 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-06-13 21:11:08 +0200 |
| commit | de974645e1a7ae7567ec9eacfd57513f802cd4d3 (patch) | |
| tree | 2c1ca61363d6dba75e2c9b1dfc49ac60becb7edf /src/librustdoc/html/static | |
| parent | b4d836c98bf9fec7ab3bddd559bab1240240a9d7 (diff) | |
| download | rust-de974645e1a7ae7567ec9eacfd57513f802cd4d3.tar.gz rust-de974645e1a7ae7567ec9eacfd57513f802cd4d3.zip | |
Greatly improve tables display in docs
Diffstat (limited to 'src/librustdoc/html/static')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index d684db152df..575a7ea2792 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -407,31 +407,27 @@ h4 > code, h3 > code, .invisible > code { .content table:not(.table-display) { border-spacing: 0 5px; - border-collapse: separate; } .content td { vertical-align: top; } .content td:first-child { padding-right: 20px; } .content td p:first-child { margin-top: 0; } .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; } +.content tr:first-child td { border-top: 0; } .docblock table { - border: 1px solid; margin: .5em 0; - border-collapse: collapse; width: 100%; } .docblock table td { padding: .5em; - border-top: 1px dashed; - border-bottom: 1px dashed; + border: 1px dashed; } .docblock table th { padding: .5em; text-align: left; - border-top: 1px solid; - border-bottom: 1px solid; + border: 1px solid; } .fields + table { |
