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