diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css
index 4654d8e47d26a..c292a8a7ef70b 100644
--- a/src/librustdoc/html/static/css/themes/ayu.css
+++ b/src/librustdoc/html/static/css/themes/ayu.css
@@ -278,29 +278,11 @@ individually rather than as a group) */
/* FIXME: these rules should be at the bottom of the file but currently must be
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
-.content span.attr, .content a.attr,
-.content span.derive,.content a.derive,
-.content span.macro,.content a.macro {}
-.content span.struct,.content a.struct {}
-#titles > button:hover, #titles > button.selected {}
-.content span.union, .content a.union {}
pre.rust .lifetime {}
-.content span.enum, .content a.enum {}
-.content span.constant, .content a.constant,
-.content span.static, .content a.static {}
-.content span.keyword, .content a.keyword {}
-.content span.traitalias,.content a.traitalias {}
-.content span.fn,.content a.fn,
-.content .fnname {}
pre.rust .kw {}
-pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute {}
-.content span.foreigntype,.content a.foreigntype {}
-.stab.deprecated {}
-.content a.attr,.content a.derive,.content a.macro {}
-.stab.portability {}
-.content span.primitive,.content a.primitive {}
-pre.rust .kw-2,pre.rust .prelude-ty {}
-.content span.trait,.content a.trait {}
+#titles > button:hover, #titles > button.selected {}
+pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val, pre.rust .attribute {}
+pre.rust .kw-2, pre.rust .prelude-ty {}
.search-results a:focus span {}
a.result-trait:focus {}