]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/css/themes/dark.css
Rename force-warns to force-warn
[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 {
97         border-bottom-color: #DDD;
98 }
99
100 .docblock table, .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
181 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
182 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
183 #help a {
184         color: #D2991D;
185 }
186
187 a.test-arrow {
188         color: #dedede;
189 }
190
191 details.rustdoc-toggle > summary.hideme > span,
192 details.rustdoc-toggle > summary::before,
193 details.undocumented > summary::before {
194         color: #999;
195 }
196
197 #crate-search {
198         color: #111;
199         background-color: #f0f0f0;
200         border-color: #000;
201         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
202 }
203
204 .search-input {
205         color: #111;
206         background-color: #f0f0f0;
207         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
208 }
209
210 .search-input:focus {
211         border-color: #008dfd;
212 }
213
214 .search-input:disabled {
215         background-color: #c5c4c4;
216 }
217
218 #crate-search + .search-input:focus {
219         box-shadow: 0 0 8px 4px #078dd8;
220 }
221
222 .module-item .stab,
223 .import-item .stab {
224         color: #ddd;
225 }
226
227 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
228 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; color: #2f2f2f; }
229 .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; }
230 .stab.portability > code { background: none; }
231
232 #help > div {
233         background: #4d4d4d;
234         border-color: #bfbfbf;
235 }
236
237 #help > div > span {
238         border-bottom-color: #bfbfbf;
239 }
240
241 #help dt {
242         border-color: #bfbfbf;
243         background: rgba(0,0,0,0);
244 }
245
246 .since {
247         color: grey;
248 }
249
250 .result-name .primitive > i, .result-name .keyword > i {
251         color: #ddd;
252 }
253
254 .line-numbers :target { background-color: transparent; }
255
256 /* Code highlighting */
257 pre.rust .kw { color: #ab8ac1; }
258 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
259 pre.rust .number, pre.rust .string { color: #83a300; }
260 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
261 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
262 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
263 pre.rust .lifetime { color: #d97f26; }
264 pre.rust .question-mark {
265         color: #ff9011;
266 }
267
268 .example-wrap > pre.line-number {
269         border-color: #4a4949;
270 }
271
272 a.test-arrow {
273         background-color: rgba(78, 139, 202, 0.2);
274 }
275
276 a.test-arrow:hover{
277         background-color: #4e8bca;
278 }
279
280 .toggle-label,
281 .code-attribute {
282         color: #999;
283 }
284
285 :target, :target * {
286         background-color: #494a3d;
287 }
288
289 :target {
290         border-right: 3px solid #bb7410;
291 }
292
293 pre.compile_fail {
294         border-left: 2px solid rgba(255,0,0,.8);
295 }
296
297 pre.compile_fail:hover, .information:hover + pre.compile_fail {
298         border-left: 2px solid #f00;
299 }
300
301 pre.should_panic {
302         border-left: 2px solid rgba(255,0,0,.8);
303 }
304
305 pre.should_panic:hover, .information:hover + pre.should_panic {
306         border-left: 2px solid #f00;
307 }
308
309 pre.ignore {
310         border-left: 2px solid rgba(255,142,0,.6);
311 }
312
313 pre.ignore:hover, .information:hover + pre.ignore {
314         border-left: 2px solid #ff9200;
315 }
316
317 .tooltip.compile_fail {
318         color: rgba(255,0,0,.8);
319 }
320
321 .information > .compile_fail:hover {
322         color: #f00;
323 }
324
325 .tooltip.should_panic {
326         color: rgba(255,0,0,.8);
327 }
328
329 .information > .should_panic:hover {
330         color: #f00;
331 }
332
333 .tooltip.ignore {
334         color: rgba(255,142,0,.6);
335 }
336
337 .information > .ignore:hover {
338         color: #ff9200;
339 }
340
341 .search-failed a {
342         color: #0089ff;
343 }
344
345 .tooltip::after {
346         background-color: #000;
347         color: #fff;
348         border-color: #000;
349 }
350
351 .tooltip::before {
352         border-color: transparent black transparent transparent;
353 }
354
355 .notable-traits-tooltiptext {
356         background-color: #111;
357         border-color: #777;
358 }
359
360 .notable-traits-tooltiptext .notable {
361         border-bottom-color: #d2d2d2;
362 }
363
364 #titles > button:not(.selected) {
365         background-color: #252525;
366         border-top-color: #252525;
367 }
368
369 #titles > button:hover, #titles > button.selected {
370         border-top-color: #0089ff;
371         background-color: #353535;
372 }
373
374 #titles > button > div.count {
375         color: #888;
376 }
377
378 @media (max-width: 700px) {
379         .sidebar-menu {
380                 background-color: #505050;
381                 border-bottom-color: #e0e0e0;
382                 border-right-color: #e0e0e0;
383         }
384
385         .sidebar-elems {
386                 background-color: #505050;
387                 border-right-color: #000;
388         }
389
390         #sidebar-filler {
391                 background-color: #505050;
392                 border-bottom-color: #e0e0e0;
393         }
394 }
395
396 kbd {
397         color: #000;
398         background-color: #fafbfc;
399         border-color: #d1d5da;
400         border-bottom-color: #c6cbd1;
401         box-shadow-color: #c6cbd1;
402 }
403
404 #theme-picker, #settings-menu, #help-button {
405         border-color: #e0e0e0;
406         background: #f0f0f0;
407         color: #000;
408 }
409
410 #theme-picker:hover, #theme-picker:focus,
411 #settings-menu:hover, #settings-menu:focus,
412 #help-button:hover, #help-button:focus {
413         border-color: #ffb900;
414 }
415
416 #copy-path {
417         color: #999;
418 }
419 #copy-path > img {
420         filter: invert(50%);
421 }
422 #copy-path:hover > img {
423         filter: invert(65%);
424 }
425
426 #theme-choices {
427         border-color: #e0e0e0;
428         background-color: #353535;
429 }
430
431 #theme-choices > button:not(:first-child) {
432         border-top-color: #e0e0e0;
433 }
434
435 #theme-choices > button:hover, #theme-choices > button:focus {
436         background-color: #4e4e4e;
437 }
438
439 @media (max-width: 700px) {
440         #theme-picker {
441                 background: #f0f0f0;
442         }
443 }
444
445 #all-types {
446         background-color: #505050;
447 }
448 #all-types:hover {
449         background-color: #606060;
450 }
451
452 .search-results .result-name span.alias {
453         color: #fff;
454 }
455 .search-results .result-name span.grey {
456         color: #ccc;
457 }
458
459 #sidebar-toggle {
460         background-color: #565656;
461 }
462 #sidebar-toggle:hover {
463         background-color: #676767;
464 }
465 #source-sidebar {
466         background-color: #565656;
467 }
468 #source-sidebar > .title {
469         border-bottom-color: #ccc;
470 }
471 div.files > a:hover, div.name:hover {
472         background-color: #444;
473 }
474 div.files > .selected {
475         background-color: #333;
476 }
477 .setting-line > .title {
478         border-bottom-color: #ddd;
479 }