diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 870b024a3ba00..5145e9f449b17 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -510,6 +510,9 @@ h4 > code, h3 > code, .invisible > code {
top: -9px;
left: -13px;
}
+.methods > .stability {
+ margin-top: -8px;
+}
#main > .stability {
margin-top: 0;
diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css
index 2ed7f7a926a48..12d2208489368 100644
--- a/src/librustdoc/html/static/themes/dark.css
+++ b/src/librustdoc/html/static/themes/dark.css
@@ -407,3 +407,7 @@ kbd {
.search-results td span.grey {
color: #ccc;
}
+
+.impl-items code {
+ background-color: rgba(0, 0, 0, 0);
+}
diff --git a/src/librustdoc/html/static/themes/light.css b/src/librustdoc/html/static/themes/light.css
index f7cb51163ecfc..043d7ae23c2e4 100644
--- a/src/librustdoc/html/static/themes/light.css
+++ b/src/librustdoc/html/static/themes/light.css
@@ -401,3 +401,7 @@ kbd {
.search-results td span.grey {
color: #999;
}
+
+.impl-items code {
+ background-color: rgba(0, 0, 0, 0);
+}