From 52a71698fe87c82e0f5dfb2b39ec68c4e5026b07 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 29 Sep 2022 10:08:12 -0700 Subject: [PATCH] rustdoc: remove unneeded CSS `.rust-example-rendered { position }` The Run button isn't inside the `
` any more. It's instead nested below
the example wrapper.

The class name can't be removed from the DOM, because `main.js` uses it.
---
 src/librustdoc/html/static/css/rustdoc.css | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 7bc8fbb1ea7..aa0fea96557 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1316,11 +1316,6 @@ h3.variant {
 	font-size: 1.25rem;
 }
 
-/* Example code has the "Run" button that needs to be positioned relative to the pre */
-pre.rust.rust-example-rendered {
-	position: relative;
-}
-
 pre.rust {
 	tab-size: 4;
 	-moz-tab-size: 4;