diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index ffe6a40b369988d7a83558a558b722c6a1989669..eb0ef1cc5615c71f634332a1f333fa412a713b1d 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -509,6 +509,9 @@ h4 > code, h3 > code, .invisible > code {
top: -9px;
left: -13px;
}
+.methods > .stability {
+ margin-top: -8px;
+}
nav {
border-bottom: 1px solid;
diff --git a/src/librustdoc/html/static/themes/dark.css b/src/librustdoc/html/static/themes/dark.css
index 2ed7f7a926a4808a02843d7bbc87d6cff5073f7c..12d2208489368a52e7466c1f964990eebcdd2229 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 f7cb51163ecfc2153f861b1e61aa3e1ad0ef8369..043d7ae23c2e4aaa6876541d41ce131b68316844 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);
+}