diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 27574e67bc87b..813531c095499 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -764,17 +764,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;
@@ -789,7 +791,7 @@ span.since {
.sidebar img {
width: 35px;
margin-top: 5px;
- margin-bottom: 0px;
+ margin-bottom: 5px;
float: left;
}