diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 0f9104f91b4c0..b2473dd9b236d 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -961,7 +961,7 @@ span.since {
padding-top: 0px;
}
- body > .sidebar {
+ .rustdoc > .sidebar {
height: 45px;
min-height: 40px;
margin: 0;