Skip to content

Commit 9852980

Browse files
committed
rustdoc: remove redundant .content prefix from span/a colors
Reverts a1d4ebe, as well as fixing the problem it solved with links losing their color.
1 parent 77d50a8 commit 9852980

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/librustdoc/html/static/css/rustdoc.css

+21-21
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ ul.all-items {
217217
a.anchor,
218218
.small-section-header a,
219219
#source-sidebar a,
220-
pre.rust a,
220+
.rust a,
221221
.sidebar h2 a,
222222
.sidebar h3 a,
223223
.mobile-topbar h2 a,
@@ -228,43 +228,43 @@ h1 a,
228228
color: var(--main-color);
229229
}
230230

231-
.content span.enum, .content a.enum,
232-
.content span.struct, .content a.struct,
233-
.content span.union, .content a.union,
234-
.content span.primitive, .content a.primitive,
235-
.content span.type, .content a.type,
236-
.content span.foreigntype, .content a.foreigntype {
231+
span.enum, a.enum,
232+
span.struct, a.struct,
233+
span.union, a.union,
234+
span.primitive, a.primitive,
235+
span.type, a.type,
236+
span.foreigntype, a.foreigntype {
237237
color: var(--type-link-color);
238238
}
239239

240-
.content span.trait, .content a.trait,
241-
.content span.traitalias, .content a.traitalias {
240+
span.trait, a.trait,
241+
span.traitalias, a.traitalias {
242242
color: var(--trait-link-color);
243243
}
244244

245-
.content span.associatedtype, .content a.associatedtype,
246-
.content span.constant, .content a.constant,
247-
.content span.static, .content a.static {
245+
span.associatedtype, a.associatedtype,
246+
span.constant, a.constant,
247+
span.static, a.static {
248248
color: var(--assoc-item-link-color);
249249
}
250250

251-
.content span.fn, .content a.fn,
252-
.content span.method, .content a.method,
253-
.content span.tymethod, .content a.tymethod {
251+
span.fn, a.fn,
252+
span.method, a.method,
253+
span.tymethod, a.tymethod {
254254
color: var(--function-link-color);
255255
}
256256

257-
.content span.attr, .content a.attr,
258-
.content span.derive, .content a.derive,
259-
.content span.macro, .content a.macro {
257+
span.attr, a.attr,
258+
span.derive, a.derive,
259+
span.macro, a.macro {
260260
color: var(--macro-link-color);
261261
}
262262

263-
.content span.mod, .content a.mod {
263+
span.mod, a.mod {
264264
color: var(--mod-link-color);
265265
}
266266

267-
.content span.keyword, .content a.keyword {
267+
span.keyword, a.keyword {
268268
color: var(--keyword-link-color);
269269
}
270270

@@ -713,7 +713,7 @@ h2.small-section-header > .anchor {
713713
}
714714

715715
.main-heading a:hover,
716-
.example-wrap > pre.rust a:hover,
716+
.example-wrap > .rust a:hover,
717717
.all-items a:hover,
718718
.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,
719719
.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,

0 commit comments

Comments
 (0)