Skip to content

Commit 99c0071

Browse files
Remove some unused CSS rules
1 parent 0ee5a1a commit 99c0071

File tree

3 files changed

+18
-62
lines changed

3 files changed

+18
-62
lines changed

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

+13-35
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ pre, .rustdoc.source .example-wrap {
119119
.content span.traitalias, .content a.traitalias { color: #39AFD7; }
120120
.content span.keyword, .content a.keyword { color: #39AFD7; }
121121

122-
.content span.externcrate, .content span.mod, .content a.mod {
123-
color: #39AFD7;
124-
}
125122
.content span.struct, .content a.struct {
126123
color: #ffa0a5;
127124
}
@@ -131,28 +128,19 @@ pre, .rustdoc.source .example-wrap {
131128
.content span.trait, .content a.trait {
132129
color: #39AFD7;
133130
}
134-
.content span.type, .content a.type {
135-
color: #39AFD7;
136-
}
137131
.content span.type,
138132
.content a.type,
139133
.block a.current.type { color: #39AFD7; }
140-
.content span.associatedtype,
141-
.content a.associatedtype,
142-
.block a.current.associatedtype { color: #39AFD7; }
143-
.content span.fn, .content a.fn, .content span.method,
144-
.content a.method, .content span.tymethod,
145-
.content a.tymethod, .content .fnname {
146-
color: #fdd687;
147-
}
134+
.content span.associatedtype, .content a.associatedtype { color: #39AFD7; }
135+
.content span.fn, .content a.fn,
136+
.content .fnname { color: #fdd687; }
148137
.content span.attr, .content a.attr, .content span.derive,
149138
.content a.derive, .content span.macro, .content a.macro {
150139
color: #a37acc;
151140
}
152141

153142
.sidebar a { color: #53b1db; }
154143
.sidebar a.current.type { color: #53b1db; }
155-
.sidebar a.current.associatedtype { color: #53b1db; }
156144

157145
pre.rust .comment { color: #788797; }
158146
pre.rust .doccomment { color: #a1ac88; }
@@ -290,32 +278,26 @@ individually rather than as a group) */
290278
/* FIXME: these rules should be at the bottom of the file but currently must be
291279
above the `@media (max-width: 700px)` rules due to a bug in the css checker */
292280
/* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
293-
.content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
294-
.block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
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 {}
295284
.content span.struct,.content a.struct,.block a.current.struct {}
296-
#titles>button:hover,#titles>button.selected {}
297-
.content span.typedef,.content a.typedef,.block a.current.typedef {}
298-
.content span.union,.content a.union,.block a.current.union {}
285+
#titles > button:hover, #titles > button.selected {}
286+
.content span.union, .content a.union, .block a.current.union {}
299287
pre.rust .lifetime {}
300-
.stab.unstable {}
301-
h2,
302-
h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {}
303-
.content span.enum,.content a.enum,.block a.current.enum {}
304-
.content span.constant,.content a.constant,.block a.current.constant,.content span.static,
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,
305290
.content a.static, .block a.current.static {}
306-
.content span.keyword,.content a.keyword,.block a.current.keyword {}
291+
.content span.keyword, .content a.keyword, .block a.current.keyword {}
307292
.content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
308-
.content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
309-
.block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
310-
.content .fnname {}
293+
.content span.fn,.content a.fn,.block a.current.fn, .content .fnname {}
311294
pre.rust .kw {}
312295
pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute {}
313296
.content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
314297
.stab.deprecated {}
315298
.content a.attr,.content a.derive,.content a.macro {}
316299
.stab.portability {}
317300
.content span.primitive,.content a.primitive,.block a.current.primitive {}
318-
.content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
319301
pre.rust .kw-2,pre.rust .prelude-ty {}
320302
.content span.trait,.content a.trait,.block a.current.trait {}
321303

@@ -353,13 +335,9 @@ a.result-keyword:focus {}
353335
.sidebar a.current.constant
354336
.sidebar a.current.static {}
355337
.sidebar a.current.primitive {}
356-
.sidebar a.current.externcrate
357-
.sidebar a.current.mod {}
358338
.sidebar a.current.trait {}
359339
.sidebar a.current.traitalias {}
360-
.sidebar a.current.fn,
361-
.sidebar a.current.method,
362-
.sidebar a.current.tymethod {}
340+
.sidebar a.current.fn {}
363341
.sidebar a.current.keyword {}
364342

365343
kbd {

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

+3-14
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ a.result-keyword:focus { background-color: #884719; }
8686
.content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
8787
.content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
8888
.content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
89-
.content span.associatedtype,
90-
.content a.associatedtype,
91-
.block a.current.associatedtype { color: #D2991D; }
89+
.content span.associatedtype, .content a.associatedtype { color: #D2991D; }
9290
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
9391
.content span.attr, .content a.attr, .block a.current.attr,
9492
.content span.derive, .content a.derive, .block a.current.derive,
@@ -97,21 +95,16 @@ a.result-keyword:focus { background-color: #884719; }
9795
.content span.constant, .content a.constant, .block a.current.constant,
9896
.content span.static, .content a.static, .block a.current.static { color: #D2991D; }
9997
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
100-
.content span.externcrate,
101-
.content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
10298
.content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
10399
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
104100
.content span.fn, .content a.fn, .block a.current.fn,
105-
.content span.method, .content a.method, .block a.current.method,
106-
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,
107-
.content .fnname{ color: #2BAB63; }
101+
.content .fnname { color: #2BAB63; }
108102
.content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
109103

110104
.sidebar a { color: #fdbf35; }
111105
.sidebar a.current.enum { color: #12ece2; }
112106
.sidebar a.current.struct { color: #12ece2; }
113107
.sidebar a.current.type { color: #12ece2; }
114-
.sidebar a.current.associatedtype { color: #fdbf35; }
115108
.sidebar a.current.foreigntype { color: #12ece2; }
116109
.sidebar a.current.attr,
117110
.sidebar a.current.derive,
@@ -120,13 +113,9 @@ a.result-keyword:focus { background-color: #884719; }
120113
.sidebar a.current.constant
121114
.sidebar a.current.static { color: #fdbf35; }
122115
.sidebar a.current.primitive { color: #12ece2; }
123-
.sidebar a.current.externcrate
124-
.sidebar a.current.mod { color: #fdbf35; }
125116
.sidebar a.current.trait { color: #cca7ff; }
126117
.sidebar a.current.traitalias { color: #cca7ff; }
127-
.sidebar a.current.fn,
128-
.sidebar a.current.method,
129-
.sidebar a.current.tymethod { color: #32d479; }
118+
.sidebar a.current.fn { color: #32d479; }
130119
.sidebar a.current.keyword { color: #fdbf35; }
131120

132121
pre.rust .comment { color: #8d8d8b; }

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

+2-13
Original file line numberDiff line numberDiff line change
@@ -85,32 +85,25 @@ a.result-keyword:focus { background-color: #afc6e4; }
8585
.content span.enum, .content a.enum, .block a.current.enum { color: #AD378A; }
8686
.content span.struct, .content a.struct, .block a.current.struct { color: #AD378A; }
8787
.content span.type, .content a.type, .block a.current.type { color: #AD378A; }
88+
.content span.associatedtype, .content a.associatedtype { color: #3873AD; }
8889
.content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #3873AD; }
89-
.content span.associatedtype,
90-
.content a.associatedtype,
91-
.block a.current.associatedtype { color: #3873AD; }
9290
.content span.attr, .content a.attr, .block a.current.attr,
9391
.content span.derive, .content a.derive, .block a.current.derive,
9492
.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
9593
.content span.union, .content a.union, .block a.current.union { color: #AD378A; }
9694
.content span.constant, .content a.constant, .block a.current.constant,
9795
.content span.static, .content a.static, .block a.current.static { color: #3873AD; }
9896
.content span.primitive, .content a.primitive, .block a.current.primitive { color: #AD378A; }
99-
.content span.externcrate,
100-
.content span.mod, .content a.mod, .block a.current.mod { color: #3873AD; }
10197
.content span.trait, .content a.trait, .block a.current.trait { color: #6E4FC9; }
10298
.content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #5137AD; }
10399
.content span.fn, .content a.fn, .block a.current.fn,
104-
.content span.method, .content a.method, .block a.current.method,
105-
.content span.tymethod, .content a.tymethod, .block a.current.tymethod,
106100
.content .fnname { color: #AD7C37; }
107101
.content span.keyword, .content a.keyword, .block a.current.keyword { color: #3873AD; }
108102

109103
.sidebar a { color: #356da4; }
110104
.sidebar a.current.enum { color: #a63283; }
111105
.sidebar a.current.struct { color: #a63283; }
112106
.sidebar a.current.type { color: #a63283; }
113-
.sidebar a.current.associatedtype { color: #356da4; }
114107
.sidebar a.current.foreigntype { color: #356da4; }
115108
.sidebar a.current.attr,
116109
.sidebar a.current.derive,
@@ -119,13 +112,9 @@ a.result-keyword:focus { background-color: #afc6e4; }
119112
.sidebar a.current.constant
120113
.sidebar a.current.static { color: #356da4; }
121114
.sidebar a.current.primitive { color: #a63283; }
122-
.sidebar a.current.externcrate
123-
.sidebar a.current.mod { color: #356da4; }
124115
.sidebar a.current.trait { color: #6849c3; }
125116
.sidebar a.current.traitalias { color: #4b349e; }
126-
.sidebar a.current.fn,
127-
.sidebar a.current.method,
128-
.sidebar a.current.tymethod { color: #a67736; }
117+
.sidebar a.current.fn { color: #a67736; }
129118
.sidebar a.current.keyword { color: #356da4; }
130119

131120
a {

0 commit comments

Comments
 (0)