rustdoc: remove redundant .content prefix from span/a colors

Reverts a1d4ebe4961c107272f9764d1908227a3cd04092, as well as
fixing the problem it solved with links losing their color.
This commit is contained in:
Michael Howell 2023-03-21 15:28:22 -07:00
parent 77d50a8870
commit 9852980594

View File

@ -217,7 +217,7 @@ ul.all-items {
a.anchor, a.anchor,
.small-section-header a, .small-section-header a,
#source-sidebar a, #source-sidebar a,
pre.rust a, .rust a,
.sidebar h2 a, .sidebar h2 a,
.sidebar h3 a, .sidebar h3 a,
.mobile-topbar h2 a, .mobile-topbar h2 a,
@ -228,43 +228,43 @@ h1 a,
color: var(--main-color); color: var(--main-color);
} }
.content span.enum, .content a.enum, span.enum, a.enum,
.content span.struct, .content a.struct, span.struct, a.struct,
.content span.union, .content a.union, span.union, a.union,
.content span.primitive, .content a.primitive, span.primitive, a.primitive,
.content span.type, .content a.type, span.type, a.type,
.content span.foreigntype, .content a.foreigntype { span.foreigntype, a.foreigntype {
color: var(--type-link-color); color: var(--type-link-color);
} }
.content span.trait, .content a.trait, span.trait, a.trait,
.content span.traitalias, .content a.traitalias { span.traitalias, a.traitalias {
color: var(--trait-link-color); color: var(--trait-link-color);
} }
.content span.associatedtype, .content a.associatedtype, span.associatedtype, a.associatedtype,
.content span.constant, .content a.constant, span.constant, a.constant,
.content span.static, .content a.static { span.static, a.static {
color: var(--assoc-item-link-color); color: var(--assoc-item-link-color);
} }
.content span.fn, .content a.fn, span.fn, a.fn,
.content span.method, .content a.method, span.method, a.method,
.content span.tymethod, .content a.tymethod { span.tymethod, a.tymethod {
color: var(--function-link-color); color: var(--function-link-color);
} }
.content span.attr, .content a.attr, span.attr, a.attr,
.content span.derive, .content a.derive, span.derive, a.derive,
.content span.macro, .content a.macro { span.macro, a.macro {
color: var(--macro-link-color); color: var(--macro-link-color);
} }
.content span.mod, .content a.mod { span.mod, a.mod {
color: var(--mod-link-color); color: var(--mod-link-color);
} }
.content span.keyword, .content a.keyword { span.keyword, a.keyword {
color: var(--keyword-link-color); color: var(--keyword-link-color);
} }
@ -713,7 +713,7 @@ h2.small-section-header > .anchor {
} }
.main-heading a:hover, .main-heading a:hover,
.example-wrap > pre.rust a:hover, .example-wrap > .rust a:hover,
.all-items a:hover, .all-items a:hover,
.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover, .docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,
.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover, .docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,