about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-26 15:40:53 -0700
committerGitHub <noreply@github.com>2022-09-26 15:40:53 -0700
commitdc4fb6b5728a535845bcbc12f0758e9382586d1b (patch)
tree2183515ebf36a3d0e4b0d4bb365d9ccde442d705
parent2668a6839a15342dc40a20de610ece2c33ec06d6 (diff)
parent99904445b8d8e37f27ae7ababd5f3fb48b0d8813 (diff)
downloadrust-dc4fb6b5728a535845bcbc12f0758e9382586d1b.tar.gz
rust-dc4fb6b5728a535845bcbc12f0758e9382586d1b.zip
Rollup merge of #102319 - notriddle:notriddle/td-th, r=GuillaumeGomez
rustdoc: merge CSS `table` rules into `.docblock`

This was added in 510107815fe888319028c5e96001cdee70e7a931, to fix the display of the module items and search results tables (see the discussion in https://github.com/rust-lang/rust/pull/86725).

Those aren't tables any more. The only remaining table is in docblock, which has its own padding declarations.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 28dc4bf3010..679aea411d1 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -299,15 +299,6 @@ summary {
 
 /* Fix some style changes due to normalize.css 8 */
 
-td,
-th {
-	padding: 0;
-}
-
-table {
-	border-collapse: collapse;
-}
-
 button,
 input,
 optgroup,
@@ -695,6 +686,7 @@ pre, .rustdoc.source .example-wrap {
 	width: calc(100% - 2px);
 	overflow-x: auto;
 	display: block;
+	border-collapse: collapse;
 }
 
 .docblock table td {