From de974645e1a7ae7567ec9eacfd57513f802cd4d3 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 10 Jun 2018 23:33:37 +0200 Subject: [PATCH] Greatly improve tables display in docs --- src/librustdoc/html/static/rustdoc.css | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index d684db152df0..575a7ea27921 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 {