From b53305df7fab08aac7255fc4fa44eebbcfe222ac Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 11 Feb 2019 22:22:56 +0100 Subject: [PATCH] Fix tables display --- src/librustdoc/html/static/rustdoc.css | 5 +++-- src/librustdoc/html/static/themes/dark.css | 12 +----------- src/librustdoc/html/static/themes/light.css | 14 ++------------ 3 files changed, 6 insertions(+), 25 deletions(-) diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 4ec8637cc71..787f3c7f480 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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 { @@ -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 { diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css index 6935ecde791..19281df5d3a 100644 --- a/src/librustdoc/html/static/themes/dark.css +++ b/src/librustdoc/html/static/themes/dark.css @@ -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 { diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css index 306e8dc15d8..a64be87d01a 100644 --- a/src/librustdoc/html/static/themes/light.css +++ b/src/librustdoc/html/static/themes/light.css @@ -67,23 +67,13 @@ pre { } .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; } -.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 {