]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/static/themes/ayu.css
Rollup merge of #85256 - GuillaumeGomez:fix-implementors-display, r=notriddle
[rust.git] / src / librustdoc / html / static / themes / ayu.css
1 /*
2 Based off of the Ayu theme
3 Original by Dempfi (https://github.com/dempfi/ayu)
4 */
5
6 /* General structure and fonts */
7
8 body {
9         background-color: #0f1419;
10         color: #c5c5c5;
11 }
12
13 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
14 h4:not(.method):not(.type):not(.tymethod) {
15         color: white;
16 }
17 h1.fqn {
18         border-bottom-color: #5c6773;
19 }
20 h1.fqn  a {
21         color: #fff;
22 }
23 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod) {
24         border-bottom-color: #5c6773;
25 }
26 h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
27         border: none;
28 }
29
30 .in-band {
31         background-color: #0f1419;
32 }
33
34 .invisible {
35         background: rgba(0, 0, 0, 0);
36 }
37
38 code {
39         color: #ffb454;
40 }
41 h3 > code, h4 > code, h5 > code {
42         color: #e6e1cf;
43 }
44 pre > code {
45         color: #e6e1cf;
46 }
47 span code {
48         color: #e6e1cf;
49 }
50 .docblock a > code {
51         color: #39AFD7 !important;
52 }
53 .docblock code, .docblock-short code {
54         background-color: #191f26;
55 }
56 pre, .rustdoc.source .example-wrap {
57         color: #e6e1cf;
58         background-color: #191f26;
59 }
60
61 .sidebar {
62         background-color: #14191f;
63 }
64
65 .logo-container.rust-logo > img {
66         filter: drop-shadow(1px 0 0px #fff)
67                 drop-shadow(0 1px 0 #fff)
68                 drop-shadow(-1px 0 0 #fff)
69                 drop-shadow(0 -1px 0 #fff);
70 }
71
72 /* Improve the scrollbar display on firefox */
73 * {
74         scrollbar-color: #5c6773 transparent;
75 }
76
77 .sidebar {
78         scrollbar-color: #5c6773 transparent;
79 }
80
81 /* Improve the scrollbar display on webkit-based browsers */
82 ::-webkit-scrollbar-track {
83         background-color: transparent;
84 }
85 ::-webkit-scrollbar-thumb {
86         background-color: #5c6773;
87 }
88 .sidebar::-webkit-scrollbar-track {
89         background-color: transparent;
90 }
91 .sidebar::-webkit-scrollbar-thumb {
92         background-color: #5c6773;
93 }
94
95 .sidebar .current {
96         background-color: transparent;
97         color: #ffb44c;
98 }
99
100 .source .sidebar {
101         background-color: #0f1419;
102 }
103
104 .sidebar .location {
105         border-color: #000;
106         background-color: #0f1419;
107         color: #fff;
108 }
109
110 .sidebar-elems .location {
111         color: #ff7733;
112 }
113
114 .sidebar-elems .location a {
115         color: #fff;
116 }
117
118 .sidebar .version {
119         border-bottom-color: #424c57;
120 }
121
122 .sidebar-title {
123         border-top-color: #5c6773;
124         border-bottom-color: #5c6773;
125 }
126
127 .block a:hover {
128         background: transparent;
129         color: #ffb44c;
130 }
131
132 .line-numbers span { color: #5c6773; }
133 .line-numbers .line-highlighted {
134         color: #708090;
135         background-color: rgba(255, 236, 164, 0.06);
136         padding-right: 4px;
137         border-right: 1px solid #ffb44c;
138 }
139
140 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
141         border-bottom-color: #5c6773;
142 }
143
144 .docblock table, .docblock table td, .docblock table th {
145         border-color: #5c6773;
146 }
147
148 .content .method .where,
149 .content .fn .where,
150 .content .where.fmt-newline {
151         color: #c5c5c5;
152 }
153
154 .content .highlighted {
155         color: #000 !important;
156         background-color: #c6afb3;
157 }
158 .content .highlighted a, .content .highlighted span { color: #000 !important; }
159 .content .highlighted {
160         background-color: #c6afb3;
161 }
162 .search-results a {
163         color: #0096cf;
164 }
165 .search-results a span.desc {
166         color: #c5c5c5;
167 }
168
169 .content .item-info::before { color: #ccc; }
170
171 .content span.foreigntype, .content a.foreigntype { color: #ef57ff; }
172 .content span.union, .content a.union { color: #98a01c; }
173 .content span.constant, .content a.constant,
174 .content span.static, .content a.static { color: #6380a0; }
175 .content span.primitive, .content a.primitive { color: #32889b; }
176 .content span.traitalias, .content a.traitalias { color: #57d399; }
177 .content span.keyword, .content a.keyword { color: #de5249; }
178
179 .content span.externcrate, .content span.mod, .content a.mod {
180         color: #acccf9;
181 }
182 .content span.struct, .content a.struct {
183         color: #ffa0a5;
184 }
185 .content span.enum, .content a.enum {
186         color: #99e0c9;
187 }
188 .content span.trait, .content a.trait {
189         color: #39AFD7;
190 }
191 .content span.type, .content a.type {
192         color: #cfbcf5;
193 }
194 .content span.fn, .content a.fn, .content span.method,
195 .content a.method, .content span.tymethod,
196 .content a.tymethod, .content .fnname {
197         color: #fdd687;
198 }
199 .content span.attr, .content a.attr, .content span.derive,
200 .content a.derive, .content span.macro, .content a.macro {
201         color: #a37acc;
202 }
203
204 pre.rust .comment { color: #788797; }
205 pre.rust .doccomment { color: #a1ac88; }
206
207 nav:not(.sidebar) {
208         border-bottom-color: #424c57;
209 }
210 nav.main .current {
211         border-top-color: #5c6773;
212         border-bottom-color: #5c6773;
213 }
214 nav.main .separator {
215         border: 1px solid #5c6773;
216 }
217 a {
218         color: #c5c5c5;
219 }
220
221 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
222 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
223 #help a {
224         color: #39AFD7;
225 }
226
227 details.rustdoc-toggle > summary.hideme > span,
228 details.rustdoc-toggle > summary::before,
229 details.undocumented > summary::before {
230         color: #999;
231 }
232
233 #crate-search {
234         color: #c5c5c5;
235         background-color: #141920;
236         box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
237         border-color: #424c57;
238 }
239
240 .search-input {
241         color: #ffffff;
242         background-color: #141920;
243         box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
244         transition: box-shadow 150ms ease-in-out;
245 }
246
247 #crate-search+.search-input:focus {
248         box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
249 }
250
251 .search-focus:disabled {
252         color: #929292;
253 }
254
255 .module-item .stab,
256 .import-item .stab {
257         color: #000;
258 }
259
260 .stab.unstable,
261 .stab.deprecated,
262 .stab.portability {
263         color: #c5c5c5;
264         background: #314559 !important;
265         border-style: none !important;
266         border-radius: 4px;
267         padding: 3px 6px 3px 6px;
268 }
269
270 .stab.portability > code {
271         color: #e6e1cf;
272         background: none;
273 }
274
275 #help > div {
276         background: #14191f;
277         box-shadow: 0px 6px 20px 0px black;
278         border: none;
279         border-radius: 4px;
280 }
281
282 #help > div > span {
283         border-bottom-color: #5c6773;
284 }
285
286 .since {
287         color: grey;
288 }
289
290 tr.result span.primitive::after, tr.result span.keyword::after {
291         color: #788797;
292 }
293
294 .line-numbers :target { background-color: transparent; }
295
296 /* Code highlighting */
297 pre.rust .number, pre.rust .string { color: #b8cc52; }
298 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
299 pre.rust .bool-val, pre.rust .prelude-val,
300 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
301 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
302 pre.rust .question-mark {
303         color: #ff9011;
304 }
305 pre.rust .self {
306         color: #36a3d9;
307         font-style: italic;
308 }
309 pre.rust .attribute {
310         color: #e6e1cf;
311 }
312 pre.rust .attribute .ident, pre.rust .attribute .op {
313         color: #e6e1cf;
314 }
315
316 .example-wrap > pre.line-number {
317         color: #5c67736e;
318         border: none;
319 }
320
321 a.test-arrow {
322         font-size: 100%;
323         color: #788797;
324         border-radius: 4px;
325         background-color: rgba(57, 175, 215, 0.09);
326 }
327
328 a.test-arrow:hover {
329         background-color: rgba(57, 175, 215, 0.368);
330         color: #c5c5c5;
331 }
332
333 .toggle-label,
334 .code-attribute {
335         color: #999;
336 }
337
338 :target > code, :target > .in-band {
339         background: rgba(255, 236, 164, 0.06);
340         border-right: 3px solid rgba(255, 180, 76, 0.85);
341 }
342
343 pre.compile_fail {
344         border-left: 2px solid rgba(255,0,0,.4);
345 }
346
347 pre.compile_fail:hover, .information:hover + pre.compile_fail {
348         border-left: 2px solid #f00;
349 }
350
351 pre.should_panic {
352         border-left: 2px solid rgba(255,0,0,.4);
353 }
354
355 pre.should_panic:hover, .information:hover + pre.should_panic {
356         border-left: 2px solid #f00;
357 }
358
359 pre.ignore {
360         border-left: 2px solid rgba(255,142,0,.6);
361 }
362
363 pre.ignore:hover, .information:hover + pre.ignore {
364         border-left: 2px solid #ff9200;
365 }
366
367 .tooltip.compile_fail {
368         color: rgba(255,0,0,.5);
369 }
370
371 .information > .compile_fail:hover {
372         color: #f00;
373 }
374
375 .tooltip.should_panic {
376         color: rgba(255,0,0,.5);
377 }
378
379 .information > .should_panic:hover {
380         color: #f00;
381 }
382
383 .tooltip.ignore {
384         color: rgba(255,142,0,.6);
385 }
386
387 .information > .ignore:hover {
388         color: #ff9200;
389 }
390
391 .search-failed a {
392         color: #39AFD7;
393 }
394
395 .tooltip::after {
396         background-color: #314559;
397         color: #c5c5c5;
398         border: 1px solid #5c6773;
399 }
400
401 .tooltip::before {
402         border-color: transparent #314559 transparent transparent;
403 }
404
405 .notable-traits-tooltiptext {
406         background-color: #314559;
407         border-color: #5c6773;
408 }
409
410 #titles > button.selected {
411         background-color: #141920 !important;
412         border-bottom: 1px solid #ffb44c !important;
413         border-top: none;
414 }
415
416 #titles > button:not(.selected) {
417         background-color: transparent !important;
418         border: none;
419 }
420
421 #titles > button:hover {
422         border-bottom: 1px solid rgba(242, 151, 24, 0.3);
423 }
424
425 #titles > button > div.count {
426         color: #888;
427 }
428
429 /* rules that this theme does not need to set, here to satisfy the rule checker */
430 /* note that a lot of these are partially set in some way (meaning they are set
431 individually rather than as a group) */
432 /* FIXME: these rules should be at the bottom of the file but currently must be
433 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
434 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
435 .content .highlighted.mod, .content .highlighted.externcrate {}
436 .search-input:focus {}
437 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
438 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
439 .content .highlighted.trait {}
440 .content span.struct,.content a.struct,.block a.current.struct {}
441 #titles>button:hover,#titles>button.selected {}
442 .content .highlighted.traitalias {}
443 .content span.type,.content a.type,.block a.current.type {}
444 .content span.union,.content a.union,.block a.current.union {}
445 .content .highlighted.foreigntype {}
446 pre.rust .lifetime {}
447 .content .highlighted.primitive {}
448 .content .highlighted.constant,.content .highlighted.static {}
449 .stab.unstable {}
450 .content .highlighted.fn,.content .highlighted.method,.content .highlighted.tymethod {}
451 h2,h3:not(.impl):not(.method):not(.type):not(.tymethod),h4:not(.method):not(.type):not(.tymethod) {}
452 .content span.enum,.content a.enum,.block a.current.enum {}
453 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
454 .content a.static,.block a.current.static {}
455 .content span.keyword,.content a.keyword,.block a.current.keyword {}
456 pre.rust .comment {}
457 .content .highlighted.enum {}
458 .content .highlighted.struct {}
459 .content .highlighted.keyword {}
460 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
461 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
462 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
463 .content .fnname {}
464 pre.rust .kw {}
465 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
466 pre.rust .attribute .ident {}
467 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
468 pre.rust .doccomment {}
469 .stab.deprecated {}
470 .content .highlighted.attr,.content .highlighted.derive,.content .highlighted.macro {}
471 .stab.portability {}
472 .content .highlighted.union {}
473 .content span.primitive,.content a.primitive,.block a.current.primitive {}
474 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
475 .content .highlighted.type {}
476 pre.rust .kw-2,pre.rust .prelude-ty {}
477 .content span.trait,.content a.trait,.block a.current.trait {}
478
479 @media (max-width: 700px) {
480         .sidebar-menu {
481                 background-color: #14191f;
482                 border-bottom-color: #5c6773;
483                 border-right-color: #5c6773;
484         }
485
486         .sidebar-elems {
487                 background-color: #14191f;
488                 border-right-color: #5c6773;
489         }
490
491         #sidebar-filler {
492                 background-color: #14191f;
493                 border-bottom-color: #5c6773;
494         }
495 }
496
497 kbd {
498         color: #c5c5c5;
499         background-color: #314559;
500         border-color: #5c6773;
501         border-bottom-color: #5c6773;
502         box-shadow-color: #c6cbd1;
503 }
504
505 #theme-picker, #settings-menu, #help-button, #copy-path {
506         border-color: #5c6773;
507         background-color: #0f1419;
508         color: #fff;
509 }
510
511 #theme-picker > img, #settings-menu > img, #copy-path > img {
512         filter: invert(100);
513 }
514
515 #theme-picker:hover, #theme-picker:focus,
516 #settings-menu:hover, #settings-menu:focus,
517 #help-button:hover, #help-button:focus,
518 #copy-path:hover, #copy-path:focus {
519         border-color: #e0e0e0;
520 }
521
522 #theme-choices {
523         border-color: #5c6773;
524         background-color: #0f1419;
525 }
526
527 #theme-choices > button:not(:first-child) {
528         border-top-color: #5c6773;
529 }
530
531 #theme-choices > button:hover, #theme-choices > button:focus {
532         background-color: rgba(110, 110, 110, 0.33);
533 }
534
535 @media (max-width: 700px) {
536         #theme-picker {
537                 background: #0f1419;
538         }
539 }
540
541 #all-types {
542         background-color: #14191f;
543 }
544 #all-types:hover {
545         background-color: rgba(70, 70, 70, 0.33);
546 }
547
548 .search-results td span.alias {
549         color: #c5c5c5;
550 }
551 .search-results td span.grey {
552         color: #999;
553 }
554
555 #sidebar-toggle {
556         background-color: #14191f;
557 }
558 #sidebar-toggle:hover {
559         background-color: rgba(70, 70, 70, 0.33);
560 }
561 #source-sidebar {
562         background-color: #14191f;
563 }
564 #source-sidebar > .title {
565         color: #fff;
566         border-bottom-color: #5c6773;
567 }
568 div.files > a:hover, div.name:hover {
569         background-color: #14191f;
570         color: #ffb44c;
571 }
572 div.files > .selected {
573         background-color: #14191f;
574         color: #ffb44c;
575 }
576 .setting-line > .title {
577         border-bottom-color: #5c6773;
578 }
579 input:checked + .slider {
580         background-color: #ffb454 !important;
581 }