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