1 body, #settings-menu #settings, #settings-menu #settings::before {
2 background-color: #353535;
6 .setting-line .radio-line input {
9 .setting-line .radio-line input:checked {
10 box-shadow: inset 0 0 0 3px #353535;
11 background-color: #2196f3;
13 .setting-line .radio-line input:focus {
14 box-shadow: 0 0 1px 1px #2196f3;
16 /* In here we combine both `:focus` and `:checked` properties. */
17 .setting-line .radio-line input:checked:focus {
18 box-shadow: inset 0 0 0 3px #353535,
21 .setting-line .radio-line input:hover {
22 border-color: #2196f3 !important;
26 background-color: #ccc;
29 background-color: white;
31 input:checked + .slider {
32 background-color: #2196F3;
34 input:focus + .slider {
35 box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3);
42 border-bottom-color: #d2d2d2;
45 border-bottom-color: #d2d2d2;
49 background-color: #353535;
53 background: rgba(0, 0, 0, 0);
56 .docblock code, .docblock-short code {
57 background-color: #2A2A2A;
59 pre, .rustdoc.source .example-wrap {
60 background-color: #2A2A2A;
63 .sidebar, .mobile-topbar, .sidebar-menu-toggle {
64 background-color: #505050;
68 filter: drop-shadow(1px 0 0px #fff)
69 drop-shadow(0 1px 0 #fff)
70 drop-shadow(-1px 0 0 #fff)
71 drop-shadow(0 -1px 0 #fff)
74 /* Improve the scrollbar display on firefox */
76 scrollbar-color: rgb(64, 65, 67) #717171;
79 scrollbar-color: rgba(32,34,37,.6) #5a5a5a;
82 /* Improve the scrollbar display on webkit-based browsers */
83 ::-webkit-scrollbar-track {
84 background-color: #717171;
86 ::-webkit-scrollbar-thumb {
87 background-color: rgba(32, 34, 37, .6);
89 .sidebar::-webkit-scrollbar-track {
90 background-color: #717171;
92 .sidebar::-webkit-scrollbar-thumb {
93 background-color: rgba(32, 34, 37, .6);
102 background-color: #565656;
105 .line-numbers span { color: #3B91E2; }
106 .line-numbers .line-highlighted {
107 background-color: #0a042f !important;
110 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
111 border-bottom-color: #DDD;
114 .docblock table td, .docblock table th {
118 .content .method .where,
120 .content .where.fmt-newline {
124 .search-results a:hover {
125 background-color: #777;
128 .search-results a:focus {
129 color: #eee !important;
130 background-color: #616161;
132 .search-results a:focus span { color: #eee !important; }
133 a.result-trait:focus { background-color: #013191; }
134 a.result-traitalias:focus { background-color: #013191; }
136 a.result-externcrate:focus { background-color: #884719; }
137 a.result-enum:focus { background-color: #194e9f; }
138 a.result-struct:focus { background-color: #194e9f; }
139 a.result-union:focus { background-color: #194e9f; }
141 a.result-method:focus,
142 a.result-tymethod:focus { background-color: #4950ed; }
143 a.result-type:focus { background-color: #194e9f; }
144 a.result-associatedtype:focus { background-color: #884719; }
145 a.result-foreigntype:focus { background-color: #194e9f; }
147 a.result-derive:focus,
148 a.result-macro:focus { background-color: #217d1c; }
149 a.result-constant:focus,
150 a.result-static:focus { background-color: #884719; }
151 a.result-primitive:focus { background-color: #194e9f; }
152 a.result-keyword:focus { background-color: #884719; }
154 .content .item-info::before { color: #ccc; }
156 .content span.enum, .content a.enum, .block a.current.enum { color: #2dbfb8; }
157 .content span.struct, .content a.struct, .block a.current.struct { color: #2dbfb8; }
158 .content span.type, .content a.type, .block a.current.type { color: #2dbfb8; }
159 .content span.associatedtype,
160 .content a.associatedtype,
161 .block a.current.associatedtype { color: #D2991D; }
162 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #2dbfb8; }
163 .content span.attr, .content a.attr, .block a.current.attr,
164 .content span.derive, .content a.derive, .block a.current.derive,
165 .content span.macro, .content a.macro, .block a.current.macro { color: #09bd00; }
166 .content span.union, .content a.union, .block a.current.union { color: #2dbfb8; }
167 .content span.constant, .content a.constant, .block a.current.constant,
168 .content span.static, .content a.static, .block a.current.static { color: #D2991D; }
169 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2dbfb8; }
170 .content span.externcrate,
171 .content span.mod, .content a.mod, .block a.current.mod { color: #D2991D; }
172 .content span.trait, .content a.trait, .block a.current.trait { color: #b78cf2; }
173 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #b78cf2; }
174 .content span.fn, .content a.fn, .block a.current.fn,
175 .content span.method, .content a.method, .block a.current.method,
176 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
177 .content .fnname{ color: #2BAB63; }
178 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #D2991D; }
180 .sidebar a { color: #fdbf35; }
181 .sidebar a.current.enum { color: #12ece2; }
182 .sidebar a.current.struct { color: #12ece2; }
183 .sidebar a.current.type { color: #12ece2; }
184 .sidebar a.current.associatedtype { color: #fdbf35; }
185 .sidebar a.current.foreigntype { color: #12ece2; }
186 .sidebar a.current.attr,
187 .sidebar a.current.derive,
188 .sidebar a.current.macro { color: #0be900; }
189 .sidebar a.current.union { color: #12ece2; }
190 .sidebar a.current.constant
191 .sidebar a.current.static { color: #fdbf35; }
192 .sidebar a.current.primitive { color: #12ece2; }
193 .sidebar a.current.externcrate
194 .sidebar a.current.mod { color: #fdbf35; }
195 .sidebar a.current.trait { color: #cca7ff; }
196 .sidebar a.current.traitalias { color: #cca7ff; }
197 .sidebar a.current.fn,
198 .sidebar a.current.method,
199 .sidebar a.current.tymethod { color: #32d479; }
200 .sidebar a.current.keyword { color: #fdbf35; }
202 pre.rust .comment { color: #8d8d8b; }
203 pre.rust .doccomment { color: #8ca375; }
206 border-top-color: #eee;
207 border-bottom-color: #eee;
209 nav.main .separator {
219 .small-section-header a,
234 body.source .example-wrap pre.rust a {
238 details.rustdoc-toggle > summary.hideme > span,
239 details.rustdoc-toggle > summary::before,
240 details.undocumented > summary::before {
244 details.rustdoc-toggle > summary::before,
245 details.undocumented > summary::before {
246 filter: invert(100%);
249 #crate-search, .search-input {
251 background-color: #f0f0f0;
252 /* Without the `!important`, the border-color is ignored for `<select>`... */
253 border-color: #f0f0f0 !important;
257 border-color: #e0e0e0;
260 .search-input:focus {
261 border-color: #008dfd;
269 .stab.empty-impl { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
270 .stab.unstable { background: #FFF5D6; border-color: #FFC600; color: #2f2f2f; }
271 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; color: #2f2f2f; }
272 .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; }
273 .stab.portability > code { background: none; }
277 border-color: #bfbfbf;
280 #help span.bottom, #help span.top {
281 border-color: #bfbfbf;
285 border-color: #bfbfbf;
286 background: rgba(0,0,0,0);
294 .result-name .primitive > i, .result-name .keyword > i {
298 .line-numbers :target { background-color: transparent; }
300 /* Code highlighting */
301 pre.rust .kw { color: #ab8ac1; }
302 pre.rust .kw-2, pre.rust .prelude-ty { color: #769acb; }
303 pre.rust .number, pre.rust .string { color: #83a300; }
304 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
305 pre.rust .attribute, pre.rust .attribute .ident { color: #ee6868; }
306 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
307 pre.rust .lifetime { color: #d97f26; }
308 pre.rust .question-mark {
312 .example-wrap > pre.line-number {
313 border-color: #4a4949;
317 background-color: rgba(78, 139, 202, 0.2);
321 background-color: #4e8bca;
330 background-color: #494a3d;
331 border-right: 3px solid #bb7410;
335 border-left: 2px solid rgba(255,0,0,.8);
338 pre.compile_fail:hover, .information:hover + pre.compile_fail {
339 border-left: 2px solid #f00;
343 border-left: 2px solid rgba(255,0,0,.8);
346 pre.should_panic:hover, .information:hover + pre.should_panic {
347 border-left: 2px solid #f00;
351 border-left: 2px solid rgba(255,142,0,.6);
354 pre.ignore:hover, .information:hover + pre.ignore {
355 border-left: 2px solid #ff9200;
358 .tooltip.compile_fail {
359 color: rgba(255,0,0,.8);
362 .information > .compile_fail:hover {
366 .tooltip.should_panic {
367 color: rgba(255,0,0,.8);
370 .information > .should_panic:hover {
375 color: rgba(255,142,0,.6);
378 .information > .ignore:hover {
387 background-color: #000;
393 border-color: transparent black transparent transparent;
396 .notable-traits-tooltiptext {
397 background-color: #111;
401 .notable-traits-tooltiptext .notable {
402 border-bottom-color: #d2d2d2;
405 #titles > button:not(.selected) {
406 background-color: #252525;
407 border-top-color: #252525;
410 #titles > button:hover, #titles > button.selected {
411 border-top-color: #0089ff;
412 background-color: #353535;
415 #titles > button > div.count {
419 @media (max-width: 700px) {
421 background-color: #505050;
422 border-bottom-color: #e0e0e0;
423 border-right-color: #e0e0e0;
427 background-color: #505050;
428 border-right-color: #000;
432 background-color: #505050;
433 border-bottom-color: #e0e0e0;
439 background-color: #fafbfc;
440 border-color: #d1d5da;
441 border-bottom-color: #c6cbd1;
442 box-shadow: inset 0 -1px 0 #c6cbd1;
445 #settings-menu > a, #help-button {
446 border-color: #e0e0e0;
451 #settings-menu > a:hover, #settings-menu > a:focus,
452 #help-button:hover, #help-button:focus {
453 border-color: #ffb900;
456 #settings-menu #settings, #settings-menu #settings::before {
457 border-color: #d2d2d2;
466 #copy-path:hover > img {
471 border-color: #e0e0e0;
472 background-color: #353535;
475 #theme-choices > button:not(:first-child) {
476 border-top-color: #e0e0e0;
479 #theme-choices > button:hover, #theme-choices > button:focus {
480 background-color: #4e4e4e;
483 .search-results .result-name span.alias {
486 .search-results .result-name span.grey {
491 background-color: #565656;
493 #sidebar-toggle:hover {
494 background-color: #676767;
497 background-color: #565656;
499 #source-sidebar > .title {
500 border-bottom-color: #ccc;
502 div.files > a:hover, div.name:hover {
503 background-color: #444;
505 div.files > .selected {
506 background-color: #333;
509 .scraped-example-list .scrape-help {
513 .scraped-example-list .scrape-help:hover {
517 .more-examples-toggle summary, .more-examples-toggle .hide-more {
520 .scraped-example .example-wrap .rust span.highlight {
521 background: rgb(91, 59, 1);
523 .scraped-example .example-wrap .rust span.highlight.focus {
524 background: rgb(124, 75, 15);
526 .scraped-example:not(.expanded) .code-wrapper:before {
527 background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
529 .scraped-example:not(.expanded) .code-wrapper:after {
530 background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
535 .toggle-line:hover .toggle-line-inner {