2 Based off of the Ayu theme
3 Original by Dempfi (https://github.com/dempfi/ayu)
7 --main-background-color: #0f1419;
9 --settings-input-color: #ffb454;
10 --sidebar-background-color: #14191f;
11 --sidebar-background-color-hover: rgba(70, 70, 70, 0.33);
12 --code-block-background-color: #191f26;
13 --scrollbar-track-background-color: transparent;
14 --scrollbar-thumb-background-color: #5c6773;
15 --scrollbar-color: #5c6773 #24292f;
16 --headings-border-bottom-color: #5c6773;
17 --border-color: #5c6773;
18 --button-background-color: #141920;
22 background-color: #ccc;
25 background-color: white;
27 input:focus + .slider {
28 box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
47 .docblock pre > code, pre > code {
54 color: #39AFD7 !important;
56 pre, .rustdoc.source .example-wrap {
61 filter: drop-shadow(1px 0 0px #fff)
62 drop-shadow(0 1px 0 #fff)
63 drop-shadow(-1px 0 0 #fff)
64 drop-shadow(0 -1px 0 #fff);
69 background-color: transparent;
73 .sidebar-elems .location {
77 .line-numbers span { color: #5c6773; }
78 .line-numbers .line-highlighted {
80 background-color: rgba(255, 236, 164, 0.06);
82 border-right: 1px solid #ffb44c;
85 .search-results a:hover {
86 color: #fff !important;
87 background-color: #3c3c3c;
90 .search-results a:focus {
91 color: #fff !important;
92 background-color: #3c3c3c;
97 .search-results a div.desc {
101 .content .item-info::before { color: #ccc; }
103 .content span.foreigntype, .content a.foreigntype { color: #ffa0a5; }
104 .content span.union, .content a.union { color: #ffa0a5; }
105 .content span.constant, .content a.constant,
106 .content span.static, .content a.static { color: #39AFD7; }
107 .content span.primitive, .content a.primitive { color: #ffa0a5; }
108 .content span.traitalias, .content a.traitalias { color: #39AFD7; }
109 .content span.keyword, .content a.keyword { color: #39AFD7; }
111 .content span.externcrate, .content span.mod, .content a.mod {
114 .content span.struct, .content a.struct {
117 .content span.enum, .content a.enum {
120 .content span.trait, .content a.trait {
123 .content span.type, .content a.type {
128 .block a.current.type { color: #39AFD7; }
129 .content span.associatedtype,
130 .content a.associatedtype,
131 .block a.current.associatedtype { color: #39AFD7; }
132 .content span.fn, .content a.fn, .content span.method,
133 .content a.method, .content span.tymethod,
134 .content a.tymethod, .content .fnname {
137 .content span.attr, .content a.attr, .content span.derive,
138 .content a.derive, .content span.macro, .content a.macro {
142 .sidebar a { color: #53b1db; }
143 .sidebar a.current.type { color: #53b1db; }
144 .sidebar a.current.associatedtype { color: #53b1db; }
146 pre.rust .comment { color: #788797; }
147 pre.rust .doccomment { color: #a1ac88; }
157 body.source .example-wrap pre.rust a {
161 details.rustdoc-toggle > summary.hideme > span,
162 details.rustdoc-toggle > summary::before {
166 details.rustdoc-toggle > summary::before {
167 filter: invert(100%);
170 #crate-search-div::after {
171 /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */
172 filter: invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);
174 #crate-search:hover, #crate-search:focus {
175 border-color: #e0e0e0 !important;
177 #crate-search-div:hover::after, #crate-search-div:focus-within::after {
178 filter: invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);
192 background: #314559 !important;
195 .stab.portability > code {
205 .result-name .primitive > i, .result-name .keyword > i {
209 .line-numbers :target { background-color: transparent; }
211 /* Code highlighting */
212 pre.rust .number, pre.rust .string { color: #b8cc52; }
213 pre.rust .kw, pre.rust .kw-2, pre.rust .prelude-ty,
214 pre.rust .bool-val, pre.rust .prelude-val,
215 pre.rust .lifetime { color: #ff7733; }
216 pre.rust .macro, pre.rust .macro-nonterminal { color: #a37acc; }
217 pre.rust .question-mark {
224 pre.rust .attribute {
228 .example-wrap > pre.line-number {
237 background-color: rgba(57, 175, 215, 0.09);
241 background-color: rgba(57, 175, 215, 0.368);
250 background: rgba(255, 236, 164, 0.06);
251 border-right: 3px solid rgba(255, 180, 76, 0.85);
255 border-left: 2px solid rgba(255,0,0,.4);
258 pre.compile_fail:hover, .information:hover + pre.compile_fail {
259 border-left: 2px solid #f00;
263 border-left: 2px solid rgba(255,0,0,.4);
266 pre.should_panic:hover, .information:hover + pre.should_panic {
267 border-left: 2px solid #f00;
271 border-left: 2px solid rgba(255,142,0,.6);
274 pre.ignore:hover, .information:hover + pre.ignore {
275 border-left: 2px solid #ff9200;
278 .tooltip.compile_fail {
279 color: rgba(255,0,0,.5);
282 .information > .compile_fail:hover {
286 .tooltip.should_panic {
287 color: rgba(255,0,0,.5);
290 .information > .should_panic:hover {
295 color: rgba(255,142,0,.6);
298 .information > .ignore:hover {
307 background-color: #314559;
312 border-color: transparent #314559 transparent transparent;
315 .notable-traits-tooltiptext {
316 background-color: #314559;
319 #titles > button.selected {
320 background-color: #141920 !important;
321 border-bottom: 1px solid #ffb44c !important;
325 #titles > button:not(.selected) {
326 background-color: transparent !important;
330 #titles > button:hover {
331 border-bottom: 1px solid rgba(242, 151, 24, 0.3);
334 #titles > button > div.count {
338 /* rules that this theme does not need to set, here to satisfy the rule checker */
339 /* note that a lot of these are partially set in some way (meaning they are set
340 individually rather than as a group) */
341 /* FIXME: these rules should be at the bottom of the file but currently must be
342 above the `@media (max-width: 700px)` rules due to a bug in the css checker */
343 /* see https://github.com/rust-lang/rust/pull/71237#issuecomment-618170143 */
344 .search-input:focus {}
345 .content span.attr,.content a.attr,.block a.current.attr,.content span.derive,.content a.derive,
346 .block a.current.derive,.content span.macro,.content a.macro,.block a.current.macro {}
347 .content span.struct,.content a.struct,.block a.current.struct {}
348 #titles>button:hover,#titles>button.selected {}
349 .content span.typedef,.content a.typedef,.block a.current.typedef {}
350 .content span.union,.content a.union,.block a.current.union {}
351 pre.rust .lifetime {}
354 h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {}
355 .content span.enum,.content a.enum,.block a.current.enum {}
356 .content span.constant,.content a.constant,.block a.current.constant,.content span.static,
357 .content a.static, .block a.current.static {}
358 .content span.keyword,.content a.keyword,.block a.current.keyword {}
359 .content span.traitalias,.content a.traitalias,.block a.current.traitalias {}
360 .content span.fn,.content a.fn,.block a.current.fn,.content span.method,.content a.method,
361 .block a.current.method,.content span.tymethod,.content a.tymethod,.block a.current.tymethod,
364 pre.rust .self,pre.rust .bool-val,pre.rust .prelude-val,pre.rust .attribute {}
365 .content span.foreigntype,.content a.foreigntype,.block a.current.foreigntype {}
367 .content a.attr,.content a.derive,.content a.macro {}
369 .content span.primitive,.content a.primitive,.block a.current.primitive {}
370 .content span.externcrate,.content span.mod,.content a.mod,.block a.current.mod {}
371 pre.rust .kw-2,pre.rust .prelude-ty {}
372 .content span.trait,.content a.trait,.block a.current.trait {}
374 .search-results a:focus span {}
375 a.result-trait:focus {}
376 a.result-traitalias:focus {}
378 a.result-externcrate:focus {}
379 a.result-mod:focus {}
380 a.result-externcrate:focus {}
381 a.result-enum:focus {}
382 a.result-struct:focus {}
383 a.result-union:focus {}
385 a.result-method:focus,
386 a.result-tymethod:focus {}
387 a.result-type:focus {}
388 a.result-associatedtype:focus {}
389 a.result-foreigntype:focus {}
391 a.result-derive:focus,
392 a.result-macro:focus {}
393 a.result-constant:focus,
394 a.result-static:focus {}
395 a.result-primitive:focus {}
396 a.result-keyword:focus {}
398 .sidebar a.current.enum {}
399 .sidebar a.current.struct {}
400 .sidebar a.current.foreigntype {}
401 .sidebar a.current.attr,
402 .sidebar a.current.derive,
403 .sidebar a.current.macro {}
404 .sidebar a.current.union {}
405 .sidebar a.current.constant
406 .sidebar a.current.static {}
407 .sidebar a.current.primitive {}
408 .sidebar a.current.externcrate
409 .sidebar a.current.mod {}
410 .sidebar a.current.trait {}
411 .sidebar a.current.traitalias {}
412 .sidebar a.current.fn,
413 .sidebar a.current.method,
414 .sidebar a.current.tymethod {}
415 .sidebar a.current.keyword {}
419 background-color: #314559;
420 box-shadow: inset 0 -1px 0 #5c6773;
423 #settings-menu > a, #help-button > button {
427 #settings-menu > a img {
437 #copy-path:hover > img {
438 filter: invert(100%);
441 #settings-menu > a:hover, #settings-menu > a:focus,
442 #help-button > button:hover, #help-button > button:focus {
443 border-color: #e0e0e0;
446 .search-results .result-name span.alias {
449 .search-results .result-name span.grey {
453 #source-sidebar > .title {
456 #source-sidebar div.files > a:hover, details.dir-entry summary:hover,
457 #source-sidebar div.files > a:focus, details.dir-entry summary:focus {
458 background-color: #14191f;
461 #source-sidebar div.files > a.selected {
462 background-color: #14191f;
466 .scraped-example-list .scrape-help {
470 .scraped-example-list .scrape-help:hover {
474 .more-examples-toggle summary, .more-examples-toggle .hide-more {
477 .scraped-example .example-wrap .rust span.highlight {
478 background: rgb(91, 59, 1);
480 .scraped-example .example-wrap .rust span.highlight.focus {
481 background: rgb(124, 75, 15);
483 .scraped-example:not(.expanded) .code-wrapper:before {
484 background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
486 .scraped-example:not(.expanded) .code-wrapper:after {
487 background: linear-gradient(to top, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
492 .toggle-line:hover .toggle-line-inner {