]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/dark.css
Rollup merge of #85833 - willcrichton:example-analyzer, r=jyn514
[rust.git] / src / librustdoc / html / static / css / themes / dark.css
1 body {
2         background-color: #353535;
3         color: #ddd;
4 }
5
6 h1, h2, h3, h4 {
7         color: #ddd;
8 }
9 h1.fqn {
10         border-bottom-color: #d2d2d2;
11 }
12 h2, h3, h4 {
13         border-bottom-color: #d2d2d2;
14 }
15
16 .in-band {
17         background-color: #353535;
18 }
19
20 .invisible {
21         background: rgba(0, 0, 0, 0);
22 }
23
24 .docblock code, .docblock-short code {
25         background-color: #2A2A2A;
26 }
27 pre, .rustdoc.source .example-wrap {
28         background-color: #2A2A2A;
29 }
30
31 .sidebar {
32         background-color: #505050;
33 }
34
35 .logo-container.rust-logo > img {
36         filter: drop-shadow(1px 0 0px #fff)
37                 drop-shadow(0 1px 0 #fff)
38                 drop-shadow(-1px 0 0 #fff)
39                 drop-shadow(0 -1px 0 #fff)
40 }
41
42 /* Improve the scrollbar display on firefox */
43 * {
44         scrollbar-color: rgb(64, 65, 67) #717171;
45 }
46 .sidebar {
47         scrollbar-color: rgba(32,34,37,.6) transparent;
48 }
49
50 /* Improve the scrollbar display on webkit-based browsers */
51 ::-webkit-scrollbar-track {
52         background-color: #717171;
53 }
54 ::-webkit-scrollbar-thumb {
55         background-color: rgba(32, 34, 37, .6);
56 }
57 .sidebar::-webkit-scrollbar-track {
58         background-color: #717171;
59 }
60 .sidebar::-webkit-scrollbar-thumb {
61         background-color: rgba(32, 34, 37, .6);
62 }
63
64 .sidebar .current {
65         background-color: #333;
66 }
67
68 .source .sidebar {
69         background-color: #353535;
70 }
71
72 .sidebar .location {
73         border-color: #fff;
74         background: #575757;
75         color: #DDD;
76 }
77
78 .sidebar .version {
79         border-bottom-color: #DDD;
80 }
81
82 .sidebar-title {
83         border-top-color: #777;
84         border-bottom-color: #777;
85 }
86
87 .block a:hover {
88         background: #444;
89 }
90
91 .line-numbers span { color: #3B91E2; }
92 .line-numbers .line-highlighted {
93         background-color: #0a042f !important;
94 }
95
96 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
97         border-bottom-color: #DDD;
98 }
99
100 .docblock table td, .docblock table th {
101         border-color: #ddd;
102 }
103
104 .content .method .where,
105 .content .fn .where,
106 .content .where.fmt-newline {
107         color: #ddd;
108 }
109
110 .search-results a:hover {
111         background-color: #777;
112 }
113
114 .search-results a:focus {
115         color: #eee !important;
116         background-color: #616161;
117 }
118 .search-results a:focus span { color: #eee !important; }
119 a.result-trait:focus { background-color: #013191; }
120 a.result-traitalias:focus { background-color: #013191; }
121 a.result-mod:focus,
122 a.result-externcrate:focus { background-color: #afc6e4; }
123 a.result-mod:focus { background-color: #803a1b; }
124 a.result-externcrate:focus { background-color: #396bac; }
125 a.result-enum:focus { background-color: #5b4e68; }
126 a.result-struct:focus { background-color: #194e9f; }
127 a.result-union:focus { background-color: #b7bd49; }
128 a.result-fn:focus,
129 a.result-method:focus,
130 a.result-tymethod:focus { background-color: #4950ed; }
131 a.result-type:focus { background-color: #38902c; }
132 a.result-foreigntype:focus { background-color: #b200d6; }
133 a.result-attr:focus,
134 a.result-derive:focus,
135 a.result-macro:focus { background-color: #217d1c; }
136 a.result-constant:focus,
137 a.result-static:focus { background-color: #0063cc; }
138 a.result-primitive:focus { background-color: #00708a; }
139 a.result-keyword:focus { background-color: #884719; }
140
141 .content .item-info::before { color: #ccc; }
142
143 .content span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
144 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
145 .content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
146 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
147 .content span.attr, .content a.attr, .block a.current.attr,
148 .content span.derive, .content a.derive, .block a.current.derive,
149 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
150 .content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
151 .content span.constant, .content a.constant, .block a.current.constant,
152 .content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
153 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
154 .content span.externcrate,
155 .content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
156 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
157 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b397da; }
158 .content span.fn, .content a.fn, .block a.current.fn,
159 .content span.method, .content a.method, .block a.current.method,
160 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
161 .content .fnname{ color: #2BAB63; }
162 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
163
164 pre.rust .comment { color: #8d8d8b; }
165 pre.rust .doccomment { color: #8ca375; }
166
167 nav:not(.sidebar) {
168         border-bottom-color: #4e4e4e;
169 }
170 nav.main .current {
171         border-top-color: #eee;
172         border-bottom-color: #eee;
173 }
174 nav.main .separator {
175         border-color: #eee;
176 }
177 a {
178         color: #ddd;
179 }
180 body.source .example-wrap pre.rust a {
181         background: #333;
182 }
183
184 .docblock:not(.item-decl) a:not(.srclink):not(.test-arrow),
185 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
186 #help a {
187         color: #D2991D;
188 }
189
190 a.test-arrow {
191         color: #dedede;
192 }
193
194 details.rustdoc-toggle > summary.hideme > span,
195 details.rustdoc-toggle > summary::before,
196 details.undocumented > summary::before {
197         color: #999;
198 }
199
200 details.rustdoc-toggle > summary::before,
201 details.undocumented > summary::before {
202         filter: invert(100%);
203 }
204
205 #crate-search {
206         color: #111;
207         background-color: #f0f0f0;
208         border-color: #000;
209         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
210 }
211
212 .search-input {
213         color: #111;
214         background-color: #f0f0f0;
215         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
216 }
217
218 .search-input:focus {
219         border-color: #008dfd;
220 }
221
222 .search-input:disabled {
223         background-color: #c5c4c4;
224 }
225
226 #crate-search + .search-input:focus {
227         box-shadow: 0 0 8px 4px #078dd8;
228 }
229
230 .module-item .stab,
231 .import-item .stab {
232         color: #ddd;
233 }
234
235 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
236 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; color: #2f2f2f; }
237 .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; }
238 .stab.portability > code { background: none; }
239
240 #help > div {
241         background: #4d4d4d;
242         border-color: #bfbfbf;
243 }
244
245 #help span.bottom, #help span.top {
246         border-color: #bfbfbf;
247 }
248
249 #help dt {
250         border-color: #bfbfbf;
251         background: rgba(0,0,0,0);
252 }
253
254 .since {
255         color: grey;
256 }
257
258 .result-name .primitive > i, .result-name .keyword > i {
259         color: #ddd;
260 }
261
262 .line-numbers :target { background-color: transparent; }
263
264 /* Code highlighting */
265 pre.rust .kw { color: #ab8ac1; }
266 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
267 pre.rust .number, pre.rust .string { color: #83a300; }
268 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
269 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
270 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
271 pre.rust .lifetime { color: #d97f26; }
272 pre.rust .question-mark {
273         color: #ff9011;
274 }
275
276 .example-wrap > pre.line-number {
277         border-color: #4a4949;
278 }
279
280 a.test-arrow {
281         background-color: rgba(78, 139, 202, 0.2);
282 }
283
284 a.test-arrow:hover{
285         background-color: #4e8bca;
286 }
287
288 .toggle-label,
289 .code-attribute {
290         color: #999;
291 }
292
293 :target, :target > * {
294         background-color: #494a3d;
295 }
296
297 :target {
298         border-right: 3px solid #bb7410;
299 }
300
301 pre.compile_fail {
302         border-left: 2px solid rgba(255,0,0,.8);
303 }
304
305 pre.compile_fail:hover, .information:hover + pre.compile_fail {
306         border-left: 2px solid #f00;
307 }
308
309 pre.should_panic {
310         border-left: 2px solid rgba(255,0,0,.8);
311 }
312
313 pre.should_panic:hover, .information:hover + pre.should_panic {
314         border-left: 2px solid #f00;
315 }
316
317 pre.ignore {
318         border-left: 2px solid rgba(255,142,0,.6);
319 }
320
321 pre.ignore:hover, .information:hover + pre.ignore {
322         border-left: 2px solid #ff9200;
323 }
324
325 .tooltip.compile_fail {
326         color: rgba(255,0,0,.8);
327 }
328
329 .information > .compile_fail:hover {
330         color: #f00;
331 }
332
333 .tooltip.should_panic {
334         color: rgba(255,0,0,.8);
335 }
336
337 .information > .should_panic:hover {
338         color: #f00;
339 }
340
341 .tooltip.ignore {
342         color: rgba(255,142,0,.6);
343 }
344
345 .information > .ignore:hover {
346         color: #ff9200;
347 }
348
349 .search-failed a {
350         color: #0089ff;
351 }
352
353 .tooltip::after {
354         background-color: #000;
355         color: #fff;
356         border-color: #000;
357 }
358
359 .tooltip::before {
360         border-color: transparent black transparent transparent;
361 }
362
363 .notable-traits-tooltiptext {
364         background-color: #111;
365         border-color: #777;
366 }
367
368 .notable-traits-tooltiptext .notable {
369         border-bottom-color: #d2d2d2;
370 }
371
372 #titles > button:not(.selected) {
373         background-color: #252525;
374         border-top-color: #252525;
375 }
376
377 #titles > button:hover, #titles > button.selected {
378         border-top-color: #0089ff;
379         background-color: #353535;
380 }
381
382 #titles > button > div.count {
383         color: #888;
384 }
385
386 @media (max-width: 700px) {
387         .sidebar-menu {
388                 background-color: #505050;
389                 border-bottom-color: #e0e0e0;
390                 border-right-color: #e0e0e0;
391         }
392
393         .sidebar-elems {
394                 background-color: #505050;
395                 border-right-color: #000;
396         }
397
398         #sidebar-filler {
399                 background-color: #505050;
400                 border-bottom-color: #e0e0e0;
401         }
402 }
403
404 kbd {
405         color: #000;
406         background-color: #fafbfc;
407         border-color: #d1d5da;
408         border-bottom-color: #c6cbd1;
409         box-shadow-color: #c6cbd1;
410 }
411
412 #theme-picker, #settings-menu, #help-button {
413         border-color: #e0e0e0;
414         background: #f0f0f0;
415         color: #000;
416 }
417
418 #theme-picker:hover, #theme-picker:focus,
419 #settings-menu:hover, #settings-menu:focus,
420 #help-button:hover, #help-button:focus {
421         border-color: #ffb900;
422 }
423
424 #copy-path {
425         color: #999;
426 }
427 #copy-path > img {
428         filter: invert(50%);
429 }
430 #copy-path:hover > img {
431         filter: invert(65%);
432 }
433
434 #theme-choices {
435         border-color: #e0e0e0;
436         background-color: #353535;
437 }
438
439 #theme-choices > button:not(:first-child) {
440         border-top-color: #e0e0e0;
441 }
442
443 #theme-choices > button:hover, #theme-choices > button:focus {
444         background-color: #4e4e4e;
445 }
446
447 @media (max-width: 700px) {
448         #theme-picker {
449                 background: #f0f0f0;
450         }
451 }
452
453 #all-types {
454         background-color: #505050;
455 }
456 #all-types:hover {
457         background-color: #606060;
458 }
459
460 .search-results .result-name span.alias {
461         color: #fff;
462 }
463 .search-results .result-name span.grey {
464         color: #ccc;
465 }
466
467 #sidebar-toggle {
468         background-color: #565656;
469 }
470 #sidebar-toggle:hover {
471         background-color: #676767;
472 }
473 #source-sidebar {
474         background-color: #565656;
475 }
476 #source-sidebar > .title {
477         border-bottom-color: #ccc;
478 }
479 div.files > a:hover, div.name:hover {
480         background-color: #444;
481 }
482 div.files > .selected {
483         background-color: #333;
484 }
485 .setting-line > .title {
486         border-bottom-color: #ddd;
487 }
488
489 .scraped-example .example-wrap .rust span.highlight {
490         background: rgb(91, 59, 1);
491 }
492 .scraped-example .example-wrap .rust span.highlight.focus {
493         background: rgb(124, 75, 15);
494 }
495 .scraped-example:not(.expanded) .code-wrapper:before {
496         background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
497 }
498 .scraped-example:not(.expanded) .code-wrapper:after {
499         background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
500 }
501 .toggle-line-inner {
502         background: #616161;
503 }
504 .toggle-line:hover .toggle-line-inner {
505         background: ##898989;
506 }