From f2431323739d6be5cb21ffd993b10b24e3e46c91 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Thu, 29 Dec 2022 17:22:43 -0700 Subject: [PATCH] rustdoc: remove redundant CSS `.code-wrapper { position: relative }` This line, added in 4b3f82ad0321b8f2e2630b74bbc526ffb8fa5bda, was part of how the expand/prev/next buttons were aligned. Now that 6ccd14a782420d27aef9d9fcd9196949a3276427 made the outer wrapper has relative position, though, it doesn't matter any more, because those buttons will get the same position when they're made relative to that. --- src/librustdoc/html/static/css/rustdoc.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 1b29baa3665a5..e656d1ba713d5 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1871,12 +1871,11 @@ in storage.js } .scraped-example { - /* So .scraped-example-title can be positioned absolutely */ + /* So .scraped-example-title, .prev, .next, and .expand can be positioned absolutely */ position: relative; } .scraped-example .code-wrapper { - position: relative; display: flex; flex-direction: row; flex-wrap: wrap;