]>
Commit | Line | Data |
---|---|---|
064997fb FG |
1 | :root { |
2 | --main-background-color: #353535; | |
3 | --main-color: #ddd; | |
4 | --settings-input-color: #2196f3; | |
5 | --sidebar-background-color: #505050; | |
6 | --sidebar-background-color-hover: #676767; | |
7 | --code-block-background-color: #2A2A2A; | |
8 | --scrollbar-track-background-color: #717171; | |
9 | --scrollbar-thumb-background-color: rgba(32, 34, 37, .6); | |
10 | --scrollbar-color: rgba(32,34,37,.6) #5a5a5a; | |
11 | --headings-border-bottom-color: #d2d2d2; | |
923072b8 FG |
12 | } |
13 | ||
14 | .slider { | |
15 | background-color: #ccc; | |
16 | } | |
17 | .slider:before { | |
18 | background-color: white; | |
19 | } | |
923072b8 FG |
20 | input:focus + .slider { |
21 | box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3); | |
22 | } | |
23 | ||
9e0c209e | 24 | .in-band { |
2c00a5a8 | 25 | background-color: #353535; |
a7813a04 | 26 | } |
92a42be0 | 27 | |
a2a8927a | 28 | .rust-logo { |
3dfed10e XL |
29 | filter: drop-shadow(1px 0 0px #fff) |
30 | drop-shadow(0 1px 0 #fff) | |
31 | drop-shadow(-1px 0 0 #fff) | |
32 | drop-shadow(0 -1px 0 #fff) | |
33 | } | |
34 | ||
5099ac24 FG |
35 | .sidebar .current, |
36 | .sidebar a:hover { | |
37 | background: #444; | |
8bb4bdeb XL |
38 | } |
39 | ||
2c00a5a8 | 40 | .line-numbers span { color: #3B91E2; } |
92a42be0 | 41 | .line-numbers .line-highlighted { |
2c00a5a8 | 42 | background-color: #0a042f !important; |
92a42be0 SL |
43 | } |
44 | ||
136023e0 | 45 | .docblock table td, .docblock table th { |
8bb4bdeb | 46 | border-color: #ddd; |
92a42be0 SL |
47 | } |
48 | ||
17df50a5 XL |
49 | .search-results a:hover { |
50 | background-color: #777; | |
51 | } | |
52 | ||
53 | .search-results a:focus { | |
2c00a5a8 | 54 | color: #eee !important; |
8faf50e0 | 55 | background-color: #616161; |
3b2f2976 | 56 | } |
17df50a5 XL |
57 | .search-results a:focus span { color: #eee !important; } |
58 | a.result-trait:focus { background-color: #013191; } | |
59 | a.result-traitalias:focus { background-color: #013191; } | |
60 | a.result-mod:focus, | |
a2a8927a XL |
61 | a.result-externcrate:focus { background-color: #884719; } |
62 | a.result-enum:focus { background-color: #194e9f; } | |
17df50a5 | 63 | a.result-struct:focus { background-color: #194e9f; } |
a2a8927a | 64 | a.result-union:focus { background-color: #194e9f; } |
17df50a5 XL |
65 | a.result-fn:focus, |
66 | a.result-method:focus, | |
67 | a.result-tymethod:focus { background-color: #4950ed; } | |
a2a8927a XL |
68 | a.result-type:focus { background-color: #194e9f; } |
69 | a.result-associatedtype:focus { background-color: #884719; } | |
70 | a.result-foreigntype:focus { background-color: #194e9f; } | |
17df50a5 XL |
71 | a.result-attr:focus, |
72 | a.result-derive:focus, | |
73 | a.result-macro:focus { background-color: #217d1c; } | |
74 | a.result-constant:focus, | |
a2a8927a XL |
75 | a.result-static:focus { background-color: #884719; } |
76 | a.result-primitive:focus { background-color: #194e9f; } | |
17df50a5 | 77 | a.result-keyword:focus { background-color: #884719; } |
2c00a5a8 | 78 | |
fc512014 | 79 | .content .item-info::before { color: #ccc; } |
dfeec247 | 80 | |
a2a8927a | 81 | .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; } |
0531ce1d | 82 | .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; } |
a2a8927a XL |
83 | .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; } |
84 | .content span.associatedtype, | |
85 | .content a.associatedtype, | |
86 | .block a.current.associatedtype { color: #D2991D; } | |
87 | .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; } | |
0bf4aa26 XL |
88 | .content span.attr, .content a.attr, .block a.current.attr, |
89 | .content span.derive, .content a.derive, .block a.current.derive, | |
2c00a5a8 | 90 | .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; } |
a2a8927a | 91 | .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; } |
3b2f2976 | 92 | .content span.constant, .content a.constant, .block a.current.constant, |
a2a8927a XL |
93 | .content span.static, .content a.static, .block a.current.static { color: #D2991D; } |
94 | .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; } | |
3157f602 | 95 | .content span.externcrate, |
a2a8927a | 96 | .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; } |
2c00a5a8 | 97 | .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; } |
a2a8927a | 98 | .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; } |
92a42be0 SL |
99 | .content span.fn, .content a.fn, .block a.current.fn, |
100 | .content span.method, .content a.method, .block a.current.method, | |
101 | .content span.tymethod, .content a.tymethod, .block a.current.tymethod, | |
2c00a5a8 | 102 | .content .fnname{ color: #2BAB63; } |
a2a8927a | 103 | .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; } |
92a42be0 | 104 | |
5099ac24 FG |
105 | .sidebar a { color: #fdbf35; } |
106 | .sidebar a.current.enum { color: #12ece2; } | |
107 | .sidebar a.current.struct { color: #12ece2; } | |
108 | .sidebar a.current.type { color: #12ece2; } | |
109 | .sidebar a.current.associatedtype { color: #fdbf35; } | |
110 | .sidebar a.current.foreigntype { color: #12ece2; } | |
111 | .sidebar a.current.attr, | |
112 | .sidebar a.current.derive, | |
113 | .sidebar a.current.macro { color: #0be900; } | |
114 | .sidebar a.current.union { color: #12ece2; } | |
115 | .sidebar a.current.constant | |
116 | .sidebar a.current.static { color: #fdbf35; } | |
117 | .sidebar a.current.primitive { color: #12ece2; } | |
118 | .sidebar a.current.externcrate | |
119 | .sidebar a.current.mod { color: #fdbf35; } | |
120 | .sidebar a.current.trait { color: #cca7ff; } | |
121 | .sidebar a.current.traitalias { color: #cca7ff; } | |
122 | .sidebar a.current.fn, | |
123 | .sidebar a.current.method, | |
124 | .sidebar a.current.tymethod { color: #32d479; } | |
125 | .sidebar a.current.keyword { color: #fdbf35; } | |
126 | ||
2c00a5a8 XL |
127 | pre.rust .comment { color: #8d8d8b; } |
128 | pre.rust .doccomment { color: #8ca375; } | |
92a42be0 | 129 | |
92a42be0 | 130 | nav.main .current { |
2c00a5a8 XL |
131 | border-top-color: #eee; |
132 | border-bottom-color: #eee; | |
92a42be0 SL |
133 | } |
134 | nav.main .separator { | |
2c00a5a8 | 135 | border-color: #eee; |
92a42be0 | 136 | } |
3c0e092e | 137 | |
92a42be0 | 138 | a { |
3c0e092e | 139 | color: #D2991D; |
92a42be0 | 140 | } |
5099ac24 | 141 | |
3c0e092e XL |
142 | body.source .example-wrap pre.rust a { |
143 | background: #333; | |
144 | } | |
92a42be0 | 145 | |
cdc7bbd5 | 146 | details.rustdoc-toggle > summary.hideme > span, |
064997fb | 147 | details.rustdoc-toggle > summary::before { |
ff7c6d11 XL |
148 | color: #999; |
149 | } | |
150 | ||
064997fb | 151 | details.rustdoc-toggle > summary::before { |
94222f64 XL |
152 | filter: invert(100%); |
153 | } | |
154 | ||
5099ac24 | 155 | #crate-search, .search-input { |
0731742a XL |
156 | color: #111; |
157 | background-color: #f0f0f0; | |
064997fb FG |
158 | border-color: #f0f0f0; |
159 | } | |
160 | ||
161 | #crate-search { | |
162 | /* Without the `!important`, the border-color is ignored for `<select>`... | |
163 | It cannot be in the group above because `.search-input` has a different border color on | |
164 | hover. */ | |
923072b8 | 165 | border-color: #f0f0f0 !important; |
0731742a XL |
166 | } |
167 | ||
92a42be0 | 168 | .search-input { |
5099ac24 | 169 | border-color: #e0e0e0; |
92a42be0 SL |
170 | } |
171 | ||
ff7c6d11 | 172 | .search-input:focus { |
2c00a5a8 | 173 | border-color: #008dfd; |
ff7c6d11 XL |
174 | } |
175 | ||
923072b8 | 176 | .stab.empty-impl { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; } |
48663c56 | 177 | .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; } |
cdc7bbd5 | 178 | .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; color: #2f2f2f; } |
064997fb | 179 | .stab.must_implement { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; } |
cdc7bbd5 | 180 | .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; } |
6a06907d | 181 | .stab.portability > code { background: none; } |
532ac7d7 | 182 | |
5099ac24 FG |
183 | .rightside, |
184 | .out-of-band { | |
8bb4bdeb XL |
185 | color: grey; |
186 | } | |
187 | ||
188 | .line-numbers :target { background-color: transparent; } | |
189 | ||
190 | /* Code highlighting */ | |
2c00a5a8 XL |
191 | pre.rust .kw { color: #ab8ac1; } |
192 | pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; } | |
193 | pre.rust .number, pre.rust .string { color: #83a300; } | |
8bb4bdeb | 194 | pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val, |
2c00a5a8 | 195 | pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; } |
8bb4bdeb | 196 | pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; } |
2c00a5a8 | 197 | pre.rust .lifetime { color: #d97f26; } |
8bb4bdeb XL |
198 | pre.rust .question-mark { |
199 | color: #ff9011; | |
200 | } | |
201 | ||
a1dfa0c6 XL |
202 | .example-wrap > pre.line-number { |
203 | border-color: #4a4949; | |
204 | } | |
205 | ||
8bb4bdeb | 206 | a.test-arrow { |
064997fb | 207 | color: #dedede; |
8bb4bdeb XL |
208 | background-color: rgba(78, 139, 202, 0.2); |
209 | } | |
210 | ||
211 | a.test-arrow:hover{ | |
212 | background-color: #4e8bca; | |
213 | } | |
214 | ||
cdc7bbd5 XL |
215 | .toggle-label, |
216 | .code-attribute { | |
8bb4bdeb XL |
217 | color: #999; |
218 | } | |
219 | ||
136023e0 | 220 | :target { |
a2a8927a | 221 | background-color: #494a3d; |
136023e0 XL |
222 | border-right: 3px solid #bb7410; |
223 | } | |
224 | ||
ea8adc8c | 225 | pre.compile_fail { |
ba9703b0 | 226 | border-left: 2px solid rgba(255,0,0,.8); |
ea8adc8c XL |
227 | } |
228 | ||
229 | pre.compile_fail:hover, .information:hover + pre.compile_fail { | |
230 | border-left: 2px solid #f00; | |
231 | } | |
232 | ||
f035d41b XL |
233 | pre.should_panic { |
234 | border-left: 2px solid rgba(255,0,0,.8); | |
235 | } | |
236 | ||
237 | pre.should_panic:hover, .information:hover + pre.should_panic { | |
238 | border-left: 2px solid #f00; | |
239 | } | |
240 | ||
ea8adc8c | 241 | pre.ignore { |
2c00a5a8 | 242 | border-left: 2px solid rgba(255,142,0,.6); |
ea8adc8c XL |
243 | } |
244 | ||
245 | pre.ignore:hover, .information:hover + pre.ignore { | |
246 | border-left: 2px solid #ff9200; | |
247 | } | |
248 | ||
249 | .tooltip.compile_fail { | |
ba9703b0 | 250 | color: rgba(255,0,0,.8); |
ea8adc8c XL |
251 | } |
252 | ||
253 | .information > .compile_fail:hover { | |
254 | color: #f00; | |
255 | } | |
256 | ||
f035d41b XL |
257 | .tooltip.should_panic { |
258 | color: rgba(255,0,0,.8); | |
259 | } | |
260 | ||
261 | .information > .should_panic:hover { | |
262 | color: #f00; | |
263 | } | |
264 | ||
ea8adc8c | 265 | .tooltip.ignore { |
2c00a5a8 | 266 | color: rgba(255,142,0,.6); |
ea8adc8c XL |
267 | } |
268 | ||
269 | .information > .ignore:hover { | |
ba9703b0 | 270 | color: #ff9200; |
ea8adc8c | 271 | } |
abe05a73 | 272 | |
0731742a | 273 | .search-failed a { |
abe05a73 XL |
274 | color: #0089ff; |
275 | } | |
ff7c6d11 | 276 | |
fc512014 | 277 | .tooltip::after { |
ba9703b0 | 278 | background-color: #000; |
ff7c6d11 | 279 | color: #fff; |
ba9703b0 | 280 | border-color: #000; |
ff7c6d11 XL |
281 | } |
282 | ||
fc512014 | 283 | .tooltip::before { |
ff7c6d11 XL |
284 | border-color: transparent black transparent transparent; |
285 | } | |
286 | ||
3dfed10e XL |
287 | .notable-traits-tooltiptext { |
288 | background-color: #111; | |
289 | border-color: #777; | |
290 | } | |
291 | ||
17df50a5 XL |
292 | .notable-traits-tooltiptext .notable { |
293 | border-bottom-color: #d2d2d2; | |
294 | } | |
295 | ||
fc512014 | 296 | #titles > button:not(.selected) { |
0bf4aa26 XL |
297 | background-color: #252525; |
298 | border-top-color: #252525; | |
ff7c6d11 XL |
299 | } |
300 | ||
fc512014 | 301 | #titles > button:hover, #titles > button.selected { |
0bf4aa26 | 302 | border-top-color: #0089ff; |
fc512014 | 303 | background-color: #353535; |
ff7c6d11 XL |
304 | } |
305 | ||
fc512014 | 306 | #titles > button > div.count { |
ff7c6d11 XL |
307 | color: #888; |
308 | } | |
309 | ||
ff7c6d11 | 310 | @media (max-width: 700px) { |
ff7c6d11 | 311 | .sidebar-elems { |
ff7c6d11 XL |
312 | border-right-color: #000; |
313 | } | |
ff7c6d11 | 314 | } |
2c00a5a8 XL |
315 | |
316 | kbd { | |
317 | color: #000; | |
318 | background-color: #fafbfc; | |
319 | border-color: #d1d5da; | |
320 | border-bottom-color: #c6cbd1; | |
5099ac24 | 321 | box-shadow: inset 0 -1px 0 #c6cbd1; |
2c00a5a8 XL |
322 | } |
323 | ||
064997fb | 324 | #settings-menu > a, #help-button > button { |
2c00a5a8 XL |
325 | border-color: #e0e0e0; |
326 | background: #f0f0f0; | |
1b1a35ee | 327 | color: #000; |
2c00a5a8 XL |
328 | } |
329 | ||
923072b8 | 330 | #settings-menu > a:hover, #settings-menu > a:focus, |
064997fb | 331 | #help-button > button:hover, #help-button > button:focus { |
2c00a5a8 XL |
332 | border-color: #ffb900; |
333 | } | |
334 | ||
064997fb FG |
335 | .popover, .popover::before, |
336 | #help-button span.top, #help-button span.bottom { | |
923072b8 FG |
337 | border-color: #d2d2d2; |
338 | } | |
339 | ||
17df50a5 XL |
340 | #copy-path { |
341 | color: #999; | |
342 | } | |
343 | #copy-path > img { | |
344 | filter: invert(50%); | |
345 | } | |
346 | #copy-path:hover > img { | |
347 | filter: invert(65%); | |
348 | } | |
349 | ||
2c00a5a8 XL |
350 | #theme-choices { |
351 | border-color: #e0e0e0; | |
352 | background-color: #353535; | |
353 | } | |
354 | ||
355 | #theme-choices > button:not(:first-child) { | |
356 | border-top-color: #e0e0e0; | |
357 | } | |
358 | ||
359 | #theme-choices > button:hover, #theme-choices > button:focus { | |
94b46f34 | 360 | background-color: #4e4e4e; |
2c00a5a8 XL |
361 | } |
362 | ||
17df50a5 | 363 | .search-results .result-name span.alias { |
94b46f34 XL |
364 | color: #fff; |
365 | } | |
17df50a5 | 366 | .search-results .result-name span.grey { |
94b46f34 | 367 | color: #ccc; |
8faf50e0 | 368 | } |
b7449926 | 369 | |
a1dfa0c6 XL |
370 | #source-sidebar > .title { |
371 | border-bottom-color: #ccc; | |
372 | } | |
064997fb FG |
373 | #source-sidebar div.files > a:hover, details.dir-entry summary:hover, |
374 | #source-sidebar div.files > a:focus, details.dir-entry summary:focus { | |
a1dfa0c6 XL |
375 | background-color: #444; |
376 | } | |
064997fb | 377 | #source-sidebar div.files > a.selected { |
a1dfa0c6 XL |
378 | background-color: #333; |
379 | } | |
3c0e092e | 380 | |
04454e1e FG |
381 | .scraped-example-list .scrape-help { |
382 | border-color: #aaa; | |
383 | color: #eee; | |
384 | } | |
385 | .scraped-example-list .scrape-help:hover { | |
386 | border-color: white; | |
387 | color: white; | |
388 | } | |
389 | .more-examples-toggle summary, .more-examples-toggle .hide-more { | |
390 | color: #999; | |
391 | } | |
3c0e092e XL |
392 | .scraped-example .example-wrap .rust span.highlight { |
393 | background: rgb(91, 59, 1); | |
394 | } | |
395 | .scraped-example .example-wrap .rust span.highlight.focus { | |
396 | background: rgb(124, 75, 15); | |
397 | } | |
398 | .scraped-example:not(.expanded) .code-wrapper:before { | |
399 | background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0)); | |
400 | } | |
401 | .scraped-example:not(.expanded) .code-wrapper:after { | |
402 | background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0)); | |
403 | } | |
404 | .toggle-line-inner { | |
04454e1e | 405 | background: #999; |
3c0e092e XL |
406 | } |
407 | .toggle-line:hover .toggle-line-inner { | |
04454e1e | 408 | background: #c5c5c5; |
3c0e092e | 409 | } |