]> git.lizzy.rs Git - rust.git/commitdiff
Greatly improve tables display in docs
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 10 Jun 2018 21:33:37 +0000 (23:33 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 13 Jun 2018 19:11:08 +0000 (21:11 +0200)
src/librustdoc/html/static/rustdoc.css

index d684db152df0129aff972b2570da44eb8a0555fd..575a7ea27921f0e9581e4276f30ce6ec2311a1ae 100644 (file)
@@ -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 {