about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-07 21:48:18 +0200
committerGitHub <noreply@github.com>2022-09-07 21:48:18 +0200
commitfbae06e75fe2604dd1e7c3539c4d54320948d13e (patch)
treea59ef7d763d19c51fb44f882580b1c4c6d21de62
parent46fe72b3598caabc9ca645bfedcf51dafd626ac4 (diff)
parent43681db48df8ada9e213e7e6512f2dc1f5774e97 (diff)
downloadrust-fbae06e75fe2604dd1e7c3539c4d54320948d13e.tar.gz
rust-fbae06e75fe2604dd1e7c3539c4d54320948d13e.zip
Rollup merge of #101507 - notriddle:notriddle/main-content-table-td, r=GuillaumeGomez
rustdoc: remove unused CSS `#main-content > table td`

This rule was added in 4e2c59a970695b2809a0f68f2ffe415ebdb04913 to benefit the module items table. However, the module items table stopped using table tags when 6020c79ddeafe8d9760b27c14c39da81bac9b4a6 switched us over to grid layout.

You can see when this one used to be triggered by visiting <https://doc.rust-lang.org/1.54.0/alloc/slice/index.html#structs-1> in a very narrow window, but it doesn't any more, because the module table is now rendered using `<div>` tags.
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 02c49b9a849..9f7023d5fa6 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -2035,11 +2035,6 @@ in storage.js plus the media query with (min-width: 701px)
 		height: 73px;
 	}
 
-	#main-content > table td {
-		word-break: break-word;
-		width: 50%;
-	}
-
 	#crate-search {
 		border-radius: 4px;
 	}