Skip to content

Commit 7cf67bf

Browse files
Remove unused .block a.current* rules
1 parent 99c0071 commit 7cf67bf

File tree

3 files changed

+51
-48
lines changed

3 files changed

+51
-48
lines changed

src/librustdoc/html/static/css/themes/ayu.css

+19-18
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ pre, .rustdoc.source .example-wrap {
118118
.content span.primitive, .content a.primitive { color: #ffa0a5; }
119119
.content span.traitalias, .content a.traitalias { color: #39AFD7; }
120120
.content span.keyword, .content a.keyword { color: #39AFD7; }
121-
121+
.content span.mod, .content a.mod {
122+
color: #39AFD7;
123+
}
122124
.content span.struct, .content a.struct {
123125
color: #ffa0a5;
124126
}
@@ -128,9 +130,7 @@ pre, .rustdoc.source .example-wrap {
128130
.content span.trait, .content a.trait {
129131
color: #39AFD7;
130132
}
131-
.content span.type,
132-
.content a.type,
133-
.block a.current.type { color: #39AFD7; }
133+
.content span.type, .content a.type { color: #39AFD7; }
134134
.content span.associatedtype, .content a.associatedtype { color: #39AFD7; }
135135
.content span.fn, .content a.fn,
136136
.content .fnname { color: #fdd687; }
@@ -278,28 +278,29 @@ individually rather than as a group) */
278278
/* FIXME: these rules should be at the bottom of the file but currently must be
279279
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
280280
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
281-
.content span.attr, .content a.attr, .block a.current.attr,
282-
.content span.derive,.content a.derive, .block a.current.derive,
283-
.content span.macro,.content a.macro,.block a.current.macro {}
284-
.content span.struct,.content a.struct,.block a.current.struct {}
281+
.content span.attr, .content a.attr,
282+
.content span.derive,.content a.derive,
283+
.content span.macro,.content a.macro {}
284+
.content span.struct,.content a.struct {}
285285
#titles > button:hover, #titles > button.selected {}
286-
.content span.union, .content a.union, .block a.current.union {}
286+
.content span.union, .content a.union {}
287287
pre.rust .lifetime {}
288-
.content span.enum, .content a.enum, .block a.current.enum {}
289-
.content span.constant, .content a.constant, .block a.current.constant, .content span.static,
290-
.content a.static, .block a.current.static {}
291-
.content span.keyword, .content a.keyword, .block a.current.keyword {}
292-
.content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
293-
.content span.fn,.content a.fn,.block a.current.fn, .content .fnname {}
288+
.content span.enum, .content a.enum {}
289+
.content span.constant, .content a.constant,
290+
.content span.static, .content a.static {}
291+
.content span.keyword, .content a.keyword {}
292+
.content span.traitalias,.content a.traitalias {}
293+
.content span.fn,.content a.fn,
294+
.content .fnname {}
294295
pre.rust .kw {}
295296
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute {}
296-
.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
297+
.content span.foreigntype,.content a.foreigntype {}
297298
.stab.deprecated {}
298299
.content a.attr,.content a.derive,.content a.macro {}
299300
.stab.portability {}
300-
.content span.primitive,.content a.primitive,.block a.current.primitive {}
301+
.content span.primitive,.content a.primitive {}
301302
pre.rust .kw-2,pre.rust .prelude-ty {}
302-
.content span.trait,.content a.trait,.block a.current.trait {}
303+
.content span.trait,.content a.trait {}
303304

304305
.search-results a:focus span {}
305306
a.result-trait:focus {}

src/librustdoc/html/static/css/themes/dark.css

+16-15
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,24 @@ a.result-keyword:focus { background-color: #884719; }
8383

8484
.content .item-info::before { color: #ccc; }
8585

86-
.content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
87-
.content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
88-
.content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
86+
.content span.enum, .content a.enum { color: #2dbfb8; }
87+
.content span.struct, .content a.struct { color: #2dbfb8; }
88+
.content span.type, .content a.type { color: #2dbfb8; }
8989
.content span.associatedtype, .content a.associatedtype { color: #D2991D; }
90-
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
91-
.content span.attr, .content a.attr, .block a.current.attr,
92-
.content span.derive, .content a.derive, .block a.current.derive,
93-
.content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
94-
.content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
95-
.content span.constant, .content a.constant, .block a.current.constant,
96-
.content span.static, .content a.static, .block a.current.static { color: #D2991D; }
97-
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
98-
.content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
99-
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
100-
.content span.fn, .content a.fn, .block a.current.fn,
90+
.content span.foreigntype, .content a.foreigntype { color: #2dbfb8; }
91+
.content span.attr, .content a.attr,
92+
.content span.derive, .content a.derive,
93+
.content span.macro, .content a.macro { color: #09bd00; }
94+
.content span.union, .content a.union { color: #2dbfb8; }
95+
.content span.constant, .content a.constant,
96+
.content span.static, .content a.static { color: #D2991D; }
97+
.content span.primitive, .content a.primitive { color: #2dbfb8; }
98+
.content span.mod, .content a.mod { color: #D2991D; }
99+
.content span.trait, .content a.trait { color: #b78cf2; }
100+
.content span.traitalias, .content a.traitalias { color: #b78cf2; }
101+
.content span.fn, .content a.fn,
101102
.content .fnname { color: #2BAB63; }
102-
.content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
103+
.content span.keyword, .content a.keyword { color: #D2991D; }
103104

104105
.sidebar a { color: #fdbf35; }
105106
.sidebar a.current.enum { color: #12ece2; }

src/librustdoc/html/static/css/themes/light.css

+16-15
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,24 @@ a.result-keyword:focus { background-color: #afc6e4; }
8282

8383
.content .item-info::before { color: #ccc; }
8484

85-
.content span.enum, .content a.enum, .block a.current.enum { color: #AD378A; }
86-
.content span.struct, .content a.struct, .block a.current.struct { color: #AD378A; }
87-
.content span.type, .content a.type, .block a.current.type { color: #AD378A; }
85+
.content span.enum, .content a.enum { color: #AD378A; }
86+
.content span.struct, .content a.struct { color: #AD378A; }
87+
.content span.type, .content a.type { color: #AD378A; }
8888
.content span.associatedtype, .content a.associatedtype { color: #3873AD; }
89-
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #3873AD; }
90-
.content span.attr, .content a.attr, .block a.current.attr,
91-
.content span.derive, .content a.derive, .block a.current.derive,
92-
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
93-
.content span.union, .content a.union, .block a.current.union { color: #AD378A; }
94-
.content span.constant, .content a.constant, .block a.current.constant,
95-
.content span.static, .content a.static, .block a.current.static { color: #3873AD; }
96-
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #AD378A; }
97-
.content span.trait, .content a.trait, .block a.current.trait { color: #6E4FC9; }
98-
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #5137AD; }
99-
.content span.fn, .content a.fn, .block a.current.fn,
89+
.content span.foreigntype, .content a.foreigntype { color: #3873AD; }
90+
.content span.attr, .content a.attr,
91+
.content span.derive, .content a.derive,
92+
.content span.macro, .content a.macro { color: #068000; }
93+
.content span.union, .content a.union { color: #AD378A; }
94+
.content span.constant, .content a.constant,
95+
.content span.static, .content a.static { color: #3873AD; }
96+
.content span.primitive, .content a.primitive { color: #AD378A; }
97+
.content span.mod, .content a.mod { color: #3873AD; }
98+
.content span.trait, .content a.trait { color: #6E4FC9; }
99+
.content span.traitalias, .content a.traitalias { color: #5137AD; }
100+
.content span.fn, .content a.fn,
100101
.content .fnname { color: #AD7C37; }
101-
.content span.keyword, .content a.keyword, .block a.current.keyword { color: #3873AD; }
102+
.content span.keyword, .content a.keyword { color: #3873AD; }
102103

103104
.sidebar a { color: #356da4; }
104105
.sidebar a.current.enum { color: #a63283; }

0 commit comments

Comments
 (0)