]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/themes/dark.css
Auto merge of #73456 - tmiasko:musl-libdir, r=Mark-Simulacrum
[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 /* Improve the scrollbar display on firefox */
36 * {
37         scrollbar-color: rgb(64, 65, 67) #717171;
38 }
39 .sidebar {
40         scrollbar-color: rgba(32,34,37,.6) transparent;
41 }
42
43 /* Improve the scrollbar display on webkit-based browsers */
44 ::-webkit-scrollbar-track {
45         background-color: #717171;
46 }
47 ::-webkit-scrollbar-thumb {
48         background-color: rgba(32, 34, 37, .6);
49 }
50 .sidebar::-webkit-scrollbar-track {
51         background-color: #717171;
52 }
53 .sidebar::-webkit-scrollbar-thumb {
54         background-color: rgba(32, 34, 37, .6);
55 }
56
57 .sidebar .current {
58         background-color: #333;
59 }
60
61 .source .sidebar {
62         background-color: #353535;
63 }
64
65 .sidebar .location {
66         border-color: #fff;
67         background: #575757;
68         color: #DDD;
69 }
70
71 .sidebar .version {
72         border-bottom-color: #DDD;
73 }
74
75 .sidebar-title {
76         border-top-color: #777;
77         border-bottom-color: #777;
78 }
79
80 .block a:hover {
81         background: #444;
82 }
83
84 .line-numbers span { color: #3B91E2; }
85 .line-numbers .line-highlighted {
86         background-color: #0a042f !important;
87 }
88
89 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
90         border-bottom-color: #DDD;
91 }
92
93 .docblock table, .docblock table td, .docblock table th {
94         border-color: #ddd;
95 }
96
97 .content .method .where,
98 .content .fn .where,
99 .content .where.fmt-newline {
100         color: #ddd;
101 }
102
103 .content .highlighted {
104         color: #eee !important;
105         background-color: #616161;
106 }
107 .content .highlighted a, .content .highlighted span { color: #eee !important; }
108 .content .highlighted.trait { background-color: #013191; }
109 .content .highlighted.traitalias { background-color: #013191; }
110 .content .highlighted.mod,
111 .content .highlighted.externcrate { background-color: #afc6e4; }
112 .content .highlighted.mod { background-color: #803a1b; }
113 .content .highlighted.externcrate { background-color: #396bac; }
114 .content .highlighted.enum { background-color: #5b4e68; }
115 .content .highlighted.struct { background-color: #194e9f; }
116 .content .highlighted.union { background-color: #b7bd49; }
117 .content .highlighted.fn,
118 .content .highlighted.method,
119 .content .highlighted.tymethod { background-color: #4950ed; }
120 .content .highlighted.type { background-color: #38902c; }
121 .content .highlighted.foreigntype { background-color: #b200d6; }
122 .content .highlighted.attr,
123 .content .highlighted.derive,
124 .content .highlighted.macro { background-color: #217d1c; }
125 .content .highlighted.constant,
126 .content .highlighted.static { background-color: #0063cc; }
127 .content .highlighted.primitive { background-color: #00708a; }
128 .content .highlighted.keyword { background-color: #884719; }
129
130 .content .stability::before { color: #ccc; }
131
132 .content span.enum, .content a.enum, .block a.current.enum { color: #82b089; }
133 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
134 .content span.type, .content a.type, .block a.current.type { color: #ff7f00; }
135 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #dd7de8; }
136 .content span.attr, .content a.attr, .block a.current.attr,
137 .content span.derive, .content a.derive, .block a.current.derive,
138 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
139 .content span.union, .content a.union, .block a.current.union { color: #a6ae37; }
140 .content span.constant, .content a.constant, .block a.current.constant,
141 .content span.static, .content a.static, .block a.current.static { color: #82a5c9; }
142 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #43aec7; }
143 .content span.externcrate,
144 .content span.mod, .content a.mod, .block a.current.mod { color: #bda000; }
145 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
146 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b397da; }
147 .content span.fn, .content a.fn, .block a.current.fn,
148 .content span.method, .content a.method, .block a.current.method,
149 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
150 .content .fnname{ color: #2BAB63; }
151 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
152
153 pre.rust .comment { color: #8d8d8b; }
154 pre.rust .doccomment { color: #8ca375; }
155
156 nav:not(.sidebar) {
157         border-bottom-color: #4e4e4e;
158 }
159 nav.main .current {
160         border-top-color: #eee;
161         border-bottom-color: #eee;
162 }
163 nav.main .separator {
164         border-color: #eee;
165 }
166 a {
167         color: #ddd;
168 }
169
170 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
171 .docblock-short a:not(.srclink):not(.test-arrow), .stability a {
172         color: #D2991D;
173 }
174
175 .stab.internal a {
176         color: #304FFE;
177 }
178
179 a.test-arrow {
180         color: #dedede;
181 }
182
183 .collapse-toggle {
184         color: #999;
185 }
186
187 #crate-search {
188         color: #111;
189         background-color: #f0f0f0;
190         border-color: #000;
191         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
192 }
193
194 .search-input {
195         color: #111;
196         background-color: #f0f0f0;
197         box-shadow: 0 0 0 1px #000, 0 0 0 2px transparent;
198 }
199
200 .search-input:focus {
201         border-color: #008dfd;
202 }
203
204 .search-focus:disabled {
205         background-color: #c5c4c4;
206 }
207
208 #crate-search + .search-input:focus {
209         box-shadow: 0 0 8px 4px #078dd8;
210 }
211
212 .module-item .stab {
213         color: #ddd;
214 }
215
216 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
217 .stab.internal { background: #FFB9B3; border-color: #B71C1C; color: #2f2f2f; }
218 .stab.deprecated { background: #F3DFFF; border-color: #7F0087; color: #2f2f2f; }
219 .stab.portability { background: #C4ECFF; border-color: #7BA5DB; color: #2f2f2f; }
220
221 .stab.portability > code {
222         color: #ddd;
223 }
224
225 #help > div {
226         background: #4d4d4d;
227         border-color: #bfbfbf;
228 }
229
230 #help dt {
231         border-color: #bfbfbf;
232         background: rgba(0,0,0,0);
233         color: black;
234 }
235
236 .since {
237         color: grey;
238 }
239
240 tr.result span.primitive::after, tr.result span.keyword::after {
241         color: #ddd;
242 }
243
244 .line-numbers :target { background-color: transparent; }
245
246 /* Code highlighting */
247 pre.rust .kw { color: #ab8ac1; }
248 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
249 pre.rust .number, pre.rust .string { color: #83a300; }
250 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
251 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
252 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
253 pre.rust .lifetime { color: #d97f26; }
254 pre.rust .question-mark {
255         color: #ff9011;
256 }
257
258 .example-wrap > pre.line-number {
259         border-color: #4a4949;
260 }
261
262 a.test-arrow {
263         background-color: rgba(78, 139, 202, 0.2);
264 }
265
266 a.test-arrow:hover{
267         background-color: #4e8bca;
268 }
269
270 .toggle-label {
271         color: #999;
272 }
273
274 :target > code, :target > .in-band {
275         background-color: #494a3d;
276 }
277
278 pre.compile_fail {
279         border-left: 2px solid rgba(255,0,0,.8);
280 }
281
282 pre.compile_fail:hover, .information:hover + pre.compile_fail {
283         border-left: 2px solid #f00;
284 }
285
286 pre.should_panic {
287         border-left: 2px solid rgba(255,0,0,.8);
288 }
289
290 pre.should_panic:hover, .information:hover + pre.should_panic {
291         border-left: 2px solid #f00;
292 }
293
294 pre.ignore {
295         border-left: 2px solid rgba(255,142,0,.6);
296 }
297
298 pre.ignore:hover, .information:hover + pre.ignore {
299         border-left: 2px solid #ff9200;
300 }
301
302 .tooltip.compile_fail {
303         color: rgba(255,0,0,.8);
304 }
305
306 .information > .compile_fail:hover {
307         color: #f00;
308 }
309
310 .tooltip.should_panic {
311         color: rgba(255,0,0,.8);
312 }
313
314 .information > .should_panic:hover {
315         color: #f00;
316 }
317
318 .tooltip.ignore {
319         color: rgba(255,142,0,.6);
320 }
321
322 .information > .ignore:hover {
323         color: #ff9200;
324 }
325
326 .search-failed a {
327         color: #0089ff;
328 }
329
330 .tooltip .tooltiptext {
331         background-color: #000;
332         color: #fff;
333         border-color: #000;
334 }
335
336 .tooltip .tooltiptext::after {
337         border-color: transparent black transparent transparent;
338 }
339
340 #titles > div:not(.selected) {
341         background-color: #252525;
342         border-top-color: #252525;
343 }
344
345 #titles > div:hover, #titles > div.selected {
346         border-top-color: #0089ff;
347 }
348
349 #titles > div > div.count {
350         color: #888;
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 }
440 .setting-line > .title {
441         border-bottom-color: #ddd;
442 }