Skip to content

Commit a1d4ebe

Browse files
Fix regression in item-decl highlighting
1 parent 84365ff commit a1d4ebe

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

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

+20-20
Original file line numberDiff line numberDiff line change
@@ -229,44 +229,44 @@ h1 a,
229229
color: var(--main-color);
230230
}
231231

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

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

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

252-
span.fn, a.fn,
253-
.fnname,
254-
span.method, a.method,
255-
span.tymethod, a.tymethod {
252+
.content span.fn, .content a.fn,
253+
.content .fnname,
254+
.content span.method, .content a.method,
255+
.content span.tymethod, .content a.tymethod {
256256
color: var(--function-link-color);
257257
}
258258

259-
span.attr, a.attr,
260-
span.derive, a.derive,
261-
span.macro, a.macro {
259+
.content span.attr, .content a.attr,
260+
.content span.derive, .content a.derive,
261+
.content span.macro, .content a.macro {
262262
color: var(--macro-link-color);
263263
}
264264

265-
span.mod, a.mod {
265+
.content span.mod, .content a.mod {
266266
color: var(--mod-link-color);
267267
}
268268

269-
span.keyword, a.keyword {
269+
.content span.keyword, .content a.keyword {
270270
color: var(--keyword-link-color);
271271
}
272272

0 commit comments

Comments
 (0)