diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css
index 2f0755ecb898..21b7de9ff7c8 100644
--- a/src/librustdoc/html/static/main.css
+++ b/src/librustdoc/html/static/main.css
@@ -374,8 +374,14 @@ a {
color: #000;
background: transparent;
}
-.docblock a { color: #4e8bca; }
-.docblock a:hover { text-decoration: underline; }
+
+.docblock a {
+ color: #4e8bca;
+}
+
+.docblock a:hover {
+ text-decoration: underline;
+}
.content span.trait, .content a.trait, .block a.current.trait { color: #ed9603; }
.content span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
@@ -529,10 +535,19 @@ pre.rust { position: relative; }
margin: 0 0 -5px;
padding: 0;
}
+
.section-header:hover a:after {
content: '\2002\00a7\2002';
}
+.section-header:hover a {
+ text-decoration: none;
+}
+
+.section-header a {
+ color: inherit;
+}
+
.collapse-toggle {
font-weight: 300;
position: absolute;