2 Based off of the Ayu theme
3 Original by Dempfi (https://github.com/dempfi/ayu)
6 /* General structure and fonts */
9 background-color: #0f1419;
17 border-bottom-color: #5c6773;
23 border-bottom-color: #5c6773;
30 background-color: #0f1419;
34 background: rgba(0, 0, 0, 0);
43 .docblock pre > code, pre > code {
50 color: #39AFD7 !important;
52 .docblock code, .docblock-short code {
53 background-color: #191f26;
55 pre, .rustdoc.source .example-wrap {
57 background-color: #191f26;
61 background-color: #14191f;
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);
71 /* Improve the scrollbar display on firefox */
73 scrollbar-color: #5c6773 #24292f;
77 scrollbar-color: #5c6773 #24292f;
80 /* Improve the scrollbar display on webkit-based browsers */
81 ::-webkit-scrollbar-track {
82 background-color: transparent;
84 ::-webkit-scrollbar-thumb {
85 background-color: #5c6773;
87 .sidebar::-webkit-scrollbar-track {
88 background-color: transparent;
90 .sidebar::-webkit-scrollbar-thumb {
91 background-color: #5c6773;
95 background-color: transparent;
100 background-color: #14191f;
105 background-color: #0f1419;
109 .sidebar-elems .location {
113 .sidebar-elems .location a {
118 border-bottom-color: #424c57;
122 border-top-color: #5c6773;
123 border-bottom-color: #5c6773;
127 background: transparent;
131 .line-numbers span { color: #5c6773; }
132 .line-numbers .line-highlighted {
134 background-color: rgba(255, 236, 164, 0.06);
136 border-right: 1px solid #ffb44c;
139 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
140 border-bottom-color: #5c6773;
143 .docblock table td, .docblock table th {
144 border-color: #5c6773;
147 .content .method .where,
149 .content .where.fmt-newline {
153 .search-results a:hover {
154 background-color: #777;
157 .search-results a:focus {
158 color: #000 !important;
159 background-color: #c6afb3;
164 .search-results a div.desc {
168 .content .item-info::before { color: #ccc; }
170 .content span.foreigntype, .content a.foreigntype { color: #ffa0a5; }
171 .content span.union, .content a.union { color: #ffa0a5; }
172 .content span.constant, .content a.constant,
173 .content span.static, .content a.static { color: #39AFD7; }
174 .content span.primitive, .content a.primitive { color: #ffa0a5; }
175 .content span.traitalias, .content a.traitalias { color: #39AFD7; }
176 .content span.keyword, .content a.keyword { color: #39AFD7; }
178 .content span.externcrate, .content span.mod, .content a.mod {
181 .content span.struct, .content a.struct {
184 .content span.enum, .content a.enum {
187 .content span.trait, .content a.trait {
190 .content span.type, .content a.type {
195 .block a.current.type { color: #39AFD7; }
196 .content span.associatedtype,
197 .content a.associatedtype,
198 .block a.current.associatedtype { color: #39AFD7; }
199 .content span.fn, .content a.fn, .content span.method,
200 .content a.method, .content span.tymethod,
201 .content a.tymethod, .content .fnname {
204 .content span.attr, .content a.attr, .content span.derive,
205 .content a.derive, .content span.macro, .content a.macro {
209 pre.rust .comment { color: #788797; }
210 pre.rust .doccomment { color: #a1ac88; }
213 border-bottom-color: #424c57;
216 border-top-color: #5c6773;
217 border-bottom-color: #5c6773;
219 nav.main .separator {
220 border: 1px solid #5c6773;
228 .small-section-header a,
238 body.source .example-wrap pre.rust a {
242 details.rustdoc-toggle > summary.hideme > span,
243 details.rustdoc-toggle > summary::before,
244 details.undocumented > summary::before {
248 details.rustdoc-toggle > summary::before,
249 details.undocumented > summary::before {
250 filter: invert(100%);
255 background-color: #141920;
256 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
257 border-color: #424c57;
262 background-color: #141920;
263 box-shadow: 0 0 0 1px #424c57,0 0 0 2px transparent;
264 transition: box-shadow 150ms ease-in-out;
267 #crate-search+.search-input:focus {
268 box-shadow: 0 0 0 1px #148099,0 0 0 2px transparent;
280 background: #314559 !important;
281 border-style: none !important;
283 padding: 3px 6px 3px 6px;
286 .stab.portability > code {
293 box-shadow: 0px 6px 20px 0px black;
298 #help span.bottom, #help span.top {
299 border-color: #5c6773;
306 .result-name .primitive > i, .result-name .keyword > i {
310 .line-numbers :target { background-color: transparent; }
312 /* Code highlighting */
313 pre.rust .number, pre.rust .string { color: #b8cc52; }
314 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
315 pre.rust .bool-val, pre.rust .prelude-val,
316 pre.rust .op, pre.rust .lifetime { color: #ff7733; }
317 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
318 pre.rust .question-mark {
325 pre.rust .attribute {
328 pre.rust .attribute .ident, pre.rust .attribute .op {
332 .example-wrap > pre.line-number {
341 background-color: rgba(57, 175, 215, 0.09);
345 background-color: rgba(57, 175, 215, 0.368);
354 :target, :target > * {
355 background: rgba(255, 236, 164, 0.06);
359 border-right: 3px solid rgba(255, 180, 76, 0.85);
363 border-left: 2px solid rgba(255,0,0,.4);
366 pre.compile_fail:hover, .information:hover + pre.compile_fail {
367 border-left: 2px solid #f00;
371 border-left: 2px solid rgba(255,0,0,.4);
374 pre.should_panic:hover, .information:hover + pre.should_panic {
375 border-left: 2px solid #f00;
379 border-left: 2px solid rgba(255,142,0,.6);
382 pre.ignore:hover, .information:hover + pre.ignore {
383 border-left: 2px solid #ff9200;
386 .tooltip.compile_fail {
387 color: rgba(255,0,0,.5);
390 .information > .compile_fail:hover {
394 .tooltip.should_panic {
395 color: rgba(255,0,0,.5);
398 .information > .should_panic:hover {
403 color: rgba(255,142,0,.6);
406 .information > .ignore:hover {
415 background-color: #314559;
417 border: 1px solid #5c6773;
421 border-color: transparent #314559 transparent transparent;
424 .notable-traits-tooltiptext {
425 background-color: #314559;
426 border-color: #5c6773;
429 .notable-traits-tooltiptext .notable {
430 border-bottom-color: #5c6773;
433 #titles > button.selected {
434 background-color: #141920 !important;
435 border-bottom: 1px solid #ffb44c !important;
439 #titles > button:not(.selected) {
440 background-color: transparent !important;
444 #titles > button:hover {
445 border-bottom: 1px solid rgba(242, 151, 24, 0.3);
448 #titles > button > div.count {
452 /* rules that this theme does not need to set, here to satisfy the rule checker */
453 /* note that a lot of these are partially set in some way (meaning they are set
454 individually rather than as a group) */
455 /* FIXME: these rules should be at the bottom of the file but currently must be
456 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
457 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
458 .search-input:focus {}
459 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
460 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
461 .content span.struct,.content a.struct,.block a.current.struct {}
462 #titles>button:hover,#titles>button.selected {}
463 .content span.typedef,.content a.typedef,.block a.current.typedef {}
464 .content span.union,.content a.union,.block a.current.union {}
465 pre.rust .lifetime {}
468 h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {}
469 .content span.enum,.content a.enum,.block a.current.enum {}
470 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
471 .content a.static, .block a.current.static {}
472 .content span.keyword,.content a.keyword,.block a.current.keyword {}
474 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
475 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
476 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
479 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute,
480 pre.rust .attribute .ident {}
481 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
482 pre.rust .doccomment {}
484 .content a.attr,.content a.derive,.content a.macro {}
486 .content span.primitive,.content a.primitive,.block a.current.primitive {}
487 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
488 pre.rust .kw-2,pre.rust .prelude-ty {}
489 .content span.trait,.content a.trait,.block a.current.trait {}
491 .search-results a:focus span {}
492 a.result-trait:focus {}
493 a.result-traitalias:focus {}
495 a.result-externcrate:focus {}
496 a.result-mod:focus {}
497 a.result-externcrate:focus {}
498 a.result-enum:focus {}
499 a.result-struct:focus {}
500 a.result-union:focus {}
502 a.result-method:focus,
503 a.result-tymethod:focus {}
504 a.result-type:focus {}
505 a.result-associatedtype:focus {}
506 a.result-foreigntype:focus {}
508 a.result-derive:focus,
509 a.result-macro:focus {}
510 a.result-constant:focus,
511 a.result-static:focus {}
512 a.result-primitive:focus {}
513 a.result-keyword:focus {}
515 @media (max-width: 700px) {
517 background-color: #14191f;
518 border-bottom-color: #5c6773;
519 border-right-color: #5c6773;
523 background-color: #14191f;
524 border-right-color: #5c6773;
528 background-color: #14191f;
529 border-bottom-color: #5c6773;
535 background-color: #314559;
536 border-color: #5c6773;
537 border-bottom-color: #5c6773;
538 box-shadow-color: #c6cbd1;
541 #theme-picker, #settings-menu, #help-button {
542 border-color: #5c6773;
543 background-color: #0f1419;
547 #theme-picker > img, #settings-menu > img {
557 #copy-path:hover > img {
558 filter: invert(100%);
561 #theme-picker:hover, #theme-picker:focus,
562 #settings-menu:hover, #settings-menu:focus,
563 #help-button:hover, #help-button:focus {
564 border-color: #e0e0e0;
568 border-color: #5c6773;
569 background-color: #0f1419;
572 #theme-choices > button:not(:first-child) {
573 border-top-color: #5c6773;
576 #theme-choices > button:hover, #theme-choices > button:focus {
577 background-color: rgba(110, 110, 110, 0.33);
580 @media (max-width: 700px) {
587 background-color: #14191f;
590 background-color: rgba(70, 70, 70, 0.33);
593 .search-results .result-name span.alias {
596 .search-results .result-name span.grey {
601 background-color: #14191f;
603 #sidebar-toggle:hover {
604 background-color: rgba(70, 70, 70, 0.33);
607 background-color: #14191f;
609 #source-sidebar > .title {
611 border-bottom-color: #5c6773;
613 div.files > a:hover, div.name:hover {
614 background-color: #14191f;
617 div.files > .selected {
618 background-color: #14191f;
621 .setting-line > .title {
622 border-bottom-color: #5c6773;
624 input:checked + .slider {
625 background-color: #ffb454 !important;
628 .scraped-example .example-wrap .rust span.highlight {
629 background: rgb(91, 59, 1);
631 .scraped-example .example-wrap .rust span.highlight.focus {
632 background: rgb(124, 75, 15);
634 .scraped-example:not(.expanded) .code-wrapper:before {
635 background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
637 .scraped-example:not(.expanded) .code-wrapper:after {
638 background: linear-gradient(to top, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
643 .toggle-line:hover .toggle-line-inner {
644 background: ##898989;