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