1 /* General structure and fonts */
4 background-color: white;
8 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
9 h4:not(.method):not(.type):not(.tymethod) {
13 border-bottom-color: #D5D5D5;
15 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
16 h4:not(.method):not(.type):not(.tymethod) {
17 border-bottom-color: #DDDDDD;
21 background-color: white;
25 background: rgba(0, 0, 0, 0);
28 .docblock code, .docblock-short code {
29 background-color: #F5F5F5;
32 background-color: #F5F5F5;
36 background-color: #F1F1F1;
39 /* Improve the scrollbar display on firefox */
41 scrollbar-color: rgba(36, 37, 39, 0.6) #e6e6e6;
45 scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
48 .logo-container.rust-logo > img {
49 /* No need for a border in here! */
52 /* Improve the scrollbar display on webkit-based browsers */
53 ::-webkit-scrollbar-track {
54 background-color: #ecebeb;
56 ::-webkit-scrollbar-thumb {
57 background-color: rgba(36, 37, 39, 0.6);
59 .sidebar::-webkit-scrollbar-track {
60 background-color: #dcdcdc;
62 .sidebar::-webkit-scrollbar-thumb {
63 background-color: rgba(36, 37, 39, 0.6);
67 background-color: #fff;
71 background-color: #fff;
76 background-color: #fff;
81 border-bottom-color: #DDD;
85 border-top-color: #777;
86 border-bottom-color: #777;
93 .line-numbers span { color: #c67e2d; }
94 .line-numbers .line-highlighted {
95 background-color: #f6fdb0 !important;
98 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
99 border-bottom-color: #ddd;
102 .docblock table, .docblock table td, .docblock table th {
106 .content .method .where,
108 .content .where.fmt-newline {
112 .content .highlighted {
113 color: #000 !important;
114 background-color: #ccc;
116 .content .highlighted a, .content .highlighted span { color: #000 !important; }
117 .content .highlighted.trait { background-color: #c7b6ff; }
118 .content .highlighted.traitalias { background-color: #c7b6ff; }
119 .content .highlighted.mod,
120 .content .highlighted.externcrate { background-color: #afc6e4; }
121 .content .highlighted.enum { background-color: #b4d1b9; }
122 .content .highlighted.struct { background-color: #e7b1a0; }
123 .content .highlighted.union { background-color: #b7bd49; }
124 .content .highlighted.fn,
125 .content .highlighted.method,
126 .content .highlighted.tymethod { background-color: #c6afb3; }
127 .content .highlighted.type { background-color: #ffc891; }
128 .content .highlighted.foreigntype { background-color: #f5c4ff; }
129 .content .highlighted.attr,
130 .content .highlighted.derive,
131 .content .highlighted.macro { background-color: #8ce488; }
132 .content .highlighted.constant,
133 .content .highlighted.static { background-color: #c3e0ff; }
134 .content .highlighted.primitive { background-color: #9aecff; }
135 .content .highlighted.keyword { background-color: #f99650; }
137 .content .item-info::before { color: #ccc; }
139 .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
140 .content span.struct, .content a.struct, .block a.current.struct { color: #ad448e; }
141 .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
142 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
143 .content span.attr, .content a.attr, .block a.current.attr,
144 .content span.derive, .content a.derive, .block a.current.derive,
145 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
146 .content span.union, .content a.union, .block a.current.union { color: #767b27; }
147 .content span.constant, .content a.constant, .block a.current.constant,
148 .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
149 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
150 .content span.externcrate,
151 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
152 .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
153 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #6841f1; }
154 .content span.fn, .content a.fn, .block a.current.fn,
155 .content span.method, .content a.method, .block a.current.method,
156 .content span.tymethod, .content a.tymethod, .block a.current.tymethod,
157 .content .fnname { color: #9a6e31; }
158 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
160 pre.rust .comment { color: #8E908C; }
161 pre.rust .doccomment { color: #4D4D4C; }
164 border-bottom-color: #e0e0e0;
167 border-top-color: #000;
168 border-bottom-color: #000;
170 nav.main .separator {
171 border: 1px solid #000;
177 .docblock:not(.type-decl) a:not(.srclink):not(.test-arrow),
178 .docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
188 details.rustdoc-toggle > summary.hideme > span,
189 details.rustdoc-toggle > summary::before {
195 background-color: white;
196 border-color: #e0e0e0;
197 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
202 background-color: white;
203 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
206 .search-input:focus {
207 border-color: #66afe9;
210 .search-focus:disabled {
211 background-color: #e6e6e6;
214 #crate-search + .search-input:focus {
215 box-shadow: 0 0 8px #078dd8;
223 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
224 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; }
225 .stab.portability { background: #F3DFFF; border-color: #b07bdb; }
226 .stab.portability > code { background: none; }
230 border-color: #bfbfbf;
234 border-bottom-color: #bfbfbf;
241 tr.result span.primitive::after, tr.result span.keyword::after {
245 .line-numbers :target { background-color: transparent; }
247 /* Code highlighting */
248 pre.rust .kw { color: #8959A8; }
249 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
250 pre.rust .number, pre.rust .string { color: #718C00; }
251 pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val,
252 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
253 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
254 pre.rust .lifetime { color: #B76514; }
255 pre.rust .question-mark {
259 .example-wrap > pre.line-number {
260 border-color: #c7c7c7;
264 background-color: rgba(78, 139, 202, 0.2);
268 background-color: #4e8bca;
276 :target > code, :target > .in-band {
278 border-right: 3px solid #ffb44c;
282 border-left: 2px solid rgba(255,0,0,.5);
285 pre.compile_fail:hover, .information:hover + pre.compile_fail {
286 border-left: 2px solid #f00;
290 border-left: 2px solid rgba(255,0,0,.5);
293 pre.should_panic:hover, .information:hover + pre.should_panic {
294 border-left: 2px solid #f00;
298 border-left: 2px solid rgba(255,142,0,.6);
301 pre.ignore:hover, .information:hover + pre.ignore {
302 border-left: 2px solid #ff9200;
305 .tooltip.compile_fail {
306 color: rgba(255,0,0,.5);
309 .information > .compile_fail:hover {
313 .tooltip.should_panic {
314 color: rgba(255,0,0,.5);
317 .information > .should_panic:hover {
322 color: rgba(255,142,0,.6);
325 .information > .ignore:hover {
334 background-color: #000;
339 border-color: transparent black transparent transparent;
342 .notable-traits-tooltiptext {
343 background-color: #eee;
347 #titles > button:not(.selected) {
348 background-color: #e6e6e6;
349 border-top-color: #e6e6e6;
352 #titles > button:hover, #titles > button.selected {
353 background-color: #ffffff;
354 border-top-color: #0089ff;
357 #titles > button > div.count {
361 @media (max-width: 700px) {
363 background-color: #F1F1F1;
364 border-bottom-color: #e0e0e0;
365 border-right-color: #e0e0e0;
369 background-color: #F1F1F1;
370 border-right-color: #000;
374 background-color: #F1F1F1;
375 border-bottom-color: #e0e0e0;
381 background-color: #fafbfc;
382 border-color: #d1d5da;
383 border-bottom-color: #c6cbd1;
384 box-shadow-color: #c6cbd1;
387 #theme-picker, #settings-menu, .help-button, #copy-path {
388 border-color: #e0e0e0;
389 background-color: #fff;
392 #theme-picker:hover, #theme-picker:focus,
393 #settings-menu:hover, #settings-menu:focus,
394 .help-button:hover, .help-button:focus,
395 #copy-path:hover, #copy-path:focus {
396 border-color: #717171;
401 background-color: #fff;
404 #theme-choices > button:not(:first-child) {
405 border-top-color: #e0e0e0;
408 #theme-choices > button:hover, #theme-choices > button:focus {
409 background-color: #eee;
412 @media (max-width: 700px) {
419 background-color: #fff;
422 background-color: #f9f9f9;
425 .search-results td span.alias {
428 .search-results td span.grey {
433 background-color: #F1F1F1;
435 #sidebar-toggle:hover {
436 background-color: #E0E0E0;
439 background-color: #F1F1F1;
441 #source-sidebar > .title {
442 border-bottom-color: #ccc;
444 div.files > a:hover, div.name:hover {
445 background-color: #E0E0E0;
447 div.files > .selected {
448 background-color: #fff;
450 .setting-line > .title {
451 border-bottom-color: #D5D5D5;