diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index f0d6f46184a65..72db61839d89a 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -773,17 +773,19 @@ span.since {
}
.sidebar {
- height: 40px;
+ height: 45px;
min-height: 40px;
- width: 100%;
- margin: 0px;
- padding: 0px;
+ width: calc(100% + 30px);
+ margin: 0;
+ margin-left: -15px;
+ padding: 0 15px;
position: static;
}
.sidebar .location {
float: right;
margin: 0px;
+ margin-top: 2px;
padding: 3px 10px 1px 10px;
min-height: 39px;
background: inherit;
@@ -798,7 +800,7 @@ span.since {
.sidebar img {
width: 35px;
margin-top: 5px;
- margin-bottom: 0px;
+ margin-bottom: 5px;
float: left;
}