]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/themes/dark.css
Fix invalid background color
[rust.git] / src / librustdoc / html / static / themes / dark.css
1 /**
2  * Copyright 2015 The Rust Project Developers. See the COPYRIGHT
3  * file at the top-level directory of this distribution and at
4  * http://rust-lang.org/COPYRIGHT.
5  *
6  * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7  * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8  * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9  * option. This file may not be copied, modified, or distributed
10  * except according to those terms.
11  */
12
13 body {
14         background-color: #353535;
15         color: #ddd;
16 }
17
18 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
19         color: #ddd;
20 }
21 h1.fqn {
22         border-bottom-color: #d2d2d2;
23 }
24 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
25         border-bottom-color: #d2d2d2;
26 }
27
28 .in-band {
29         background-color: #353535;
30 }
31
32 .invisible {
33         background: rgba(0, 0, 0, 0);
34 }
35
36 .docblock code, .docblock-short code {
37         background-color: #2A2A2A;
38 }
39 pre {
40         background-color: #2A2A2A;
41 }
42
43 .sidebar {
44         background-color: #505050;
45 }
46
47 .sidebar .current {
48         background-color: #333;
49 }
50
51 .source .sidebar {
52         background-color: #353535;
53 }
54
55 .sidebar .location {
56         border-color: #fff;
57         background: #575757;
58         color: #DDD;
59 }
60
61 .sidebar .version {
62         border-bottom-color: #DDD;
63 }
64
65 .sidebar-title {
66         border-top-color: #777;
67         border-bottom-color: #777;
68 }
69
70 .block a:hover {
71         background: #444;
72 }
73
74 .line-numbers span { color: #3B91E2; }
75 .line-numbers .line-highlighted {
76         background-color: #0a042f !important;
77 }
78
79 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
80         border-bottom-color: #DDD;
81 }
82
83 .docblock table {
84         border-color: #ddd;
85 }
86
87 .docblock table td {
88         border-top-color: #ddd;
89         border-bottom-color: #ddd;
90 }
91
92 .docblock table th {
93         border-top-color: #ddd;
94         border-bottom-color: #ddd;
95 }
96
97 :target { background: #494a3d; }
98
99 :target > .in-band {
100         background: #494a3d;
101 }
102
103 .content .method .where,
104 .content .fn .where,
105 .content .where.fmt-newline {
106         color: #ddd;
107 }
108
109 .content .highlighted {
110         color: #eee !important;
111         background-color: #616161;
112 }
113 .content .highlighted a, .content .highlighted span { color: #eee !important; }
114 .content .highlighted.trait { background-color: #013191; }
115 .content .highlighted.mod,
116 .content .highlighted.externcrate { background-color: #afc6e4; }
117 .content .highlighted.mod { background-color: #803a1b; }
118 .content .highlighted.externcrate { background-color: #396bac; }
119 .content .highlighted.enum { background-color: #5b4e68; }
120 .content .highlighted.struct { background-color: #194e9f; }
121 .content .highlighted.union { background-color: #b7bd49; }
122 .content .highlighted.fn,
123 .content .highlighted.method,
124 .content .highlighted.tymethod { background-color: #4950ed; }
125 .content .highlighted.type { background-color: #38902c; }
126 .content .highlighted.foreigntype { background-color: #b200d6; }
127 .content .highlighted.attr,
128 .content .highlighted.derive,
129 .content .highlighted.macro { background-color: #217d1c; }
130 .content .highlighted.constant,
131 .content .highlighted.static { background-color: #0063cc; }
132 .content .highlighted.primitive { background-color: #00708a; }
133 .content .highlighted.keyword { background-color: #884719; }
134
135 .content span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
136 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
137 .content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
138 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
139 .content span.attr, .content a.attr, .block a.current.attr,
140 .content span.derive, .content a.derive, .block a.current.derive,
141 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
142 .content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
143 .content span.constant, .content a.constant, .block a.current.constant,
144 .content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
145 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
146 .content span.externcrate,
147 .content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
148 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
149 .content span.fn, .content a.fn, .block a.current.fn,
150 .content span.method, .content a.method, .block a.current.method,
151 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
152 .content .fnname{ color: #2BAB63; }
153 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
154
155 pre.rust .comment { color: #8d8d8b; }
156 pre.rust .doccomment { color: #8ca375; }
157
158 nav {
159         border-bottom-color: #4e4e4e;
160 }
161 nav.main .current {
162         border-top-color: #eee;
163         border-bottom-color: #eee;
164 }
165 nav.main .separator {
166         border-color: #eee;
167 }
168 a {
169         color: #ddd;
170 }
171
172 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
173 .docblock-short a:not(.srclink):not(.test-arrow), .stability a {
174         color: #D2991D;
175 }
176
177 a.test-arrow {
178         color: #dedede;
179 }
180
181 .collapse-toggle {
182         color: #999;
183 }
184
185 #crate-search {
186         color: #111;
187         background-color: #f0f0f0;
188         border-color: #000;
189 }
190
191 .search-input {
192         color: #111;
193         box-shadow: 1px 0 0 1px #000, 0 0 0 2px transparent;
194         background-color: #f0f0f0;
195 }
196
197 .search-input:focus {
198         border-color: #008dfd;
199 }
200
201 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #404040; }
202 .stab.deprecated { background: #F3DFFF; border-color: #7F0087;  color: #404040; }
203 .stab.portability { background: #C4ECFF; border-color: #7BA5DB;  color: #404040; }
204
205 .module-item .stab {
206         color: #ddd;
207 }
208
209 #help > div {
210         background: #4d4d4d;
211         border-color: #bfbfbf;
212 }
213
214 #help dt {
215         border-color: #bfbfbf;
216         background: rgba(0,0,0,0);
217         color: black;
218 }
219
220 .since {
221         color: grey;
222 }
223
224 tr.result span.primitive::after, tr.result span.keyword::after {
225         color: #ddd;
226 }
227
228 .line-numbers :target { background-color: transparent; }
229
230 /* Code highlighting */
231 pre.rust .kw { color: #ab8ac1; }
232 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
233 pre.rust .number, pre.rust .string { color: #83a300; }
234 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
235 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
236 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
237 pre.rust .lifetime { color: #d97f26; }
238 pre.rust .question-mark {
239         color: #ff9011;
240 }
241
242 .example-wrap > pre.line-number {
243         border-color: #4a4949;
244 }
245
246 a.test-arrow {
247         background-color: rgba(78, 139, 202, 0.2);
248 }
249
250 a.test-arrow:hover{
251         background-color: #4e8bca;
252 }
253
254 .toggle-label {
255         color: #999;
256 }
257
258 :target > code {
259         background-color: #494a3d;
260 }
261
262 pre.compile_fail {
263         border-left: 2px solid rgba(255,0,0,.6);
264 }
265
266 pre.compile_fail:hover, .information:hover + pre.compile_fail {
267         border-left: 2px solid #f00;
268 }
269
270 pre.ignore {
271         border-left: 2px solid rgba(255,142,0,.6);
272 }
273
274 pre.ignore:hover, .information:hover + pre.ignore {
275         border-left: 2px solid #ff9200;
276 }
277
278 .tooltip.compile_fail {
279         color: rgba(255,0,0,.6);
280 }
281
282 .information > .compile_fail:hover {
283         color: #f00;
284 }
285
286 .tooltip.ignore {
287         color: rgba(255,142,0,.6);
288 }
289
290 .information > .ignore:hover {
291         color: rgba(255,142,0,1);
292 }
293
294 .search-failed a {
295         color: #0089ff;
296 }
297
298 .tooltip .tooltiptext {
299         background-color: black;
300         color: #fff;
301 }
302
303 .tooltip .tooltiptext::after {
304         border-color: transparent black transparent transparent;
305 }
306
307 .important-traits .tooltip .tooltiptext {
308         background-color: white;
309         color: black;
310         border-color: black;
311 }
312
313 #titles > div:not(.selected) {
314         background-color: #252525;
315         border-top-color: #252525;
316 }
317
318 #titles > div:hover, #titles > div.selected {
319         border-top-color: #0089ff;
320 }
321
322 #titles > div > div.count {
323         color: #888;
324 }
325
326 .modal {
327         background-color: rgba(0,0,0,0.3);
328 }
329
330 .modal-content {
331         background-color: #272727;
332         border-color: #999;
333 }
334
335 .modal-content > .close {
336         background-color: #272727;
337         border-color: #999;
338 }
339
340 .modal-content > .close:hover {
341         background-color: #ff1f1f;
342         color: white;
343 }
344
345 .modal-content > .whiter {
346         background-color: #272727;
347 }
348
349 .modal-content > .close:hover + .whiter {
350         background-color: #ff1f1f;
351 }
352
353 @media (max-width: 700px) {
354         .sidebar-menu {
355                 background-color: #505050;
356                 border-bottom-color: #e0e0e0;
357                 border-right-color: #e0e0e0;
358         }
359
360         .sidebar-elems {
361                 background-color: #505050;
362                 border-right-color: #000;
363         }
364
365         #sidebar-filler {
366                 background-color: #505050;
367                 border-bottom-color: #e0e0e0;
368         }
369 }
370
371 kbd {
372         color: #000;
373         background-color: #fafbfc;
374         border-color: #d1d5da;
375         border-bottom-color: #c6cbd1;
376         box-shadow-color: #c6cbd1;
377 }
378
379 #theme-picker, #settings-menu {
380         border-color: #e0e0e0;
381         background: #f0f0f0;
382 }
383
384 #theme-picker:hover, #theme-picker:focus,
385 #settings-menu:hover, #settings-menu:focus {
386         border-color: #ffb900;
387 }
388
389 #theme-choices {
390         border-color: #e0e0e0;
391         background-color: #353535;
392 }
393
394 #theme-choices > button:not(:first-child) {
395         border-top-color: #e0e0e0;
396 }
397
398 #theme-choices > button:hover, #theme-choices > button:focus {
399         background-color: #4e4e4e;
400 }
401
402 @media (max-width: 700px) {
403         #theme-picker {
404                 background: #f0f0f0;
405         }
406 }
407
408 #all-types {
409         background-color: #505050;
410 }
411 #all-types:hover {
412         background-color: #606060;
413 }
414
415 .search-results td span.alias {
416         color: #fff;
417 }
418 .search-results td span.grey {
419         color: #ccc;
420 }
421
422 #sidebar-toggle {
423         background-color: #565656;
424 }
425 #sidebar-toggle:hover {
426         background-color: #676767;
427 }
428 #source-sidebar {
429         background-color: #565656;
430 }
431 #source-sidebar > .title {
432         border-bottom-color: #ccc;
433 }
434 div.files > a:hover, div.name:hover {
435         background-color: #444;
436 }
437 div.files > .selected {
438         background-color: #333;
439 }