1 /* General structure and fonts */
4 background-color: white
;
12 border-bottom-color: #DDDDDD;
15 border-bottom-color: #DDDDDD;
19 background-color: white
;
23 background: rgba
(0, 0, 0, 0);
26 .docblock code, .docblock-short code {
27 background-color: #F5F5F5;
29 pre
, .rustdoc
.source
.example-wrap
{
30 background-color: #F5F5F5;
33 .sidebar, .mobile-topbar, .sidebar-menu-toggle {
34 background-color: #F5F5F5;
37 /* Improve the scrollbar display on firefox */
39 scrollbar-color: rgba
(36, 37, 39, 0.6) #e6e6e6;
43 scrollbar-color: rgba
(36, 37, 39, 0.6) #d9d9d9;
47 /* This rule exists to force other themes to explicitly style the logo.
48 * Rustdoc has a custom linter for this purpose.
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);
68 background-color: #fff;
72 background-color: #f1f1f1;
75 .line-numbers span { color: #c67e2d; }
76 .line-numbers .line-highlighted {
77 background-color: #FDFFD3 !important
;
80 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
81 border-bottom-color: #ddd;
84 .docblock table td, .docblock table th {
88 .content
.method
.where
,
90 .content .where.fmt-newline {
94 .search-results a:hover {
95 background-color: #ddd;
98 .search-results a:focus {
99 color: #000 !important
;
100 background-color: #ccc;
102 .search-results a:focus span { color: #000 !important
; }
103 a
.result-trait:focus
{ background-color: #c7b6ff; }
104 a
.result-traitalias:focus
{ background-color: #c7b6ff; }
106 a
.result-externcrate:focus
{ background-color: #afc6e4; }
107 a
.result-enum:focus
{ background-color: #e7b1a0; }
108 a
.result-struct:focus
{ background-color: #e7b1a0; }
109 a
.result-union:focus
{ background-color: #e7b1a0; }
111 a
.result-method:focus
,
112 a
.result-tymethod:focus
{ background-color: #c6afb3; }
113 a
.result-type:focus
{ background-color: #e7b1a0; }
114 a
.result-associatedtype:focus
{ background-color: #afc6e4; }
115 a
.result-foreigntype:focus
{ background-color: #e7b1a0; }
117 a
.result-derive:focus
,
118 a
.result-macro:focus
{ background-color: #8ce488; }
119 a
.result-constant:focus
,
120 a
.result-static:focus
{ background-color: #afc6e4; }
121 a
.result-primitive:focus
{ background-color: #e7b1a0; }
122 a
.result-keyword:focus
{ background-color: #afc6e4; }
124 .content .item-info::before { color: #ccc; }
126 .content span.enum, .content a.enum, .block a.current.enum { color: #AD378A; }
127 .content span.struct, .content a.struct, .block a.current.struct { color: #AD378A; }
128 .content span.type, .content a.type, .block a.current.type { color: #AD378A; }
129 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #3873AD; }
130 .content span
.associatedtype
,
131 .content a
.associatedtype
,
132 .block a.current.associatedtype { color: #3873AD; }
133 .content span
.attr
, .content a
.attr
, .block a
.current
.attr
,
134 .content span
.derive
, .content a
.derive
, .block a
.current
.derive
,
135 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
136 .content span.union, .content a.union, .block a.current.union { color: #AD378A; }
137 .content span
.constant
, .content a
.constant
, .block a
.current
.constant
,
138 .content span.static, .content a.static, .block a.current.static { color: #3873AD; }
139 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #AD378A; }
140 .content span
.externcrate
,
141 .content span.mod, .content a.mod, .block a.current.mod { color: #3873AD; }
142 .content span.trait, .content a.trait, .block a.current.trait { color: #6E4FC9; }
143 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #5137AD; }
144 .content span
.fn
, .content a
.fn
, .block a
.current
.fn
,
145 .content span
.method
, .content a
.method
, .block a
.current
.method
,
146 .content span
.tymethod
, .content a
.tymethod
, .block a
.current
.tymethod
,
147 .content .fnname { color: #AD7C37; }
148 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #3873AD; }
150 .sidebar a { color: #356da4; }
151 .sidebar a.current.enum { color: #a63283; }
152 .sidebar a.current.struct { color: #a63283; }
153 .sidebar a.current.type { color: #a63283; }
154 .sidebar a.current.associatedtype { color: #356da4; }
155 .sidebar a.current.foreigntype { color: #356da4; }
156 .sidebar a
.current
.attr
,
157 .sidebar a
.current
.derive
,
158 .sidebar a.current.macro { color: #067901; }
159 .sidebar a.current.union { color: #a63283; }
160 .sidebar a
.current
.constant
161 .sidebar a.current.static { color: #356da4; }
162 .sidebar a.current.primitive { color: #a63283; }
163 .sidebar a
.current
.externcrate
164 .sidebar a.current.mod { color: #356da4; }
165 .sidebar a.current.trait { color: #6849c3; }
166 .sidebar a.current.traitalias { color: #4b349e; }
167 .sidebar a
.current
.fn
,
168 .sidebar a
.current
.method
,
169 .sidebar a.current.tymethod { color: #a67736; }
170 .sidebar a.current.keyword { color: #356da4; }
173 border-top-color: #000;
174 border-bottom-color: #000;
176 nav
.main
.separator
{
177 border: 1px solid
#000;
186 .small-section-header a
,
201 body
.source
.example-wrap pre
.rust a
{
205 details
.rustdoc-toggle
> summary
.hideme
> span
,
206 details
.rustdoc-toggle
> summary::before
,
207 details
.undocumented
> summary::before
{
211 #crate-search, .search-input
{
213 background-color: white
;
214 border-color: #e0e0e0;
217 .search-input:focus {
218 border-color: #66afe9;
226 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
227 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; }
228 .stab.portability { background: #F3DFFF; border-color: #b07bdb; }
229 .stab.portability > code { background: none
; }
233 border-color: #bfbfbf;
236 #help span
.bottom
, #help span
.top
{
237 border-color: #bfbfbf;
245 .result-name .primitive > i, .result-name .keyword > i {
249 .line-numbers :target { background-color: transparent
; }
251 /* Code highlighting */
252 pre
.rust
.kw
{ color: #8959A8; }
253 pre
.rust
.kw-2
, pre
.rust
.prelude-ty
{ color: #4271AE; }
254 pre
.rust
.number
, pre
.rust
.string
{ color: #718C00; }
255 pre
.rust
.self
, pre
.rust
.bool-val
, pre
.rust
.prelude-val
,
256 pre
.rust
.attribute
, pre
.rust
.attribute
.ident
{ color: #C82829; }
257 pre
.rust
.comment
{ color: #8E908C; }
258 pre
.rust
.doccomment
{ color: #4D4D4C; }
259 pre
.rust
.macro
, pre
.rust
.macro-nonterminal
{ color: #3E999F; }
260 pre
.rust
.lifetime
{ color: #B76514; }
261 pre
.rust
.question-mark
{
265 .example-wrap > pre.line-number {
266 border-color: #c7c7c7;
270 background-color: rgb
(78, 139, 202, 0.2);
274 background-color: #4e8bca;
284 border-right: 3px solid
#AD7C37;
288 border-left: 2px solid rgba
(255,0,0,.5);
291 pre
.compile_fail:hover
, .information:hover
+ pre
.compile_fail
{
292 border-left: 2px solid
#f00;
296 border-left: 2px solid rgba
(255,0,0,.5);
299 pre
.should_panic:hover
, .information:hover
+ pre
.should_panic
{
300 border-left: 2px solid
#f00;
304 border-left: 2px solid rgba
(255,142,0,.6);
307 pre
.ignore:hover
, .information:hover
+ pre
.ignore
{
308 border-left: 2px solid
#ff9200;
311 .tooltip.compile_fail {
312 color: rgba
(255,0,0,.5);
315 .information > .compile_fail:hover {
319 .tooltip.should_panic {
320 color: rgba
(255,0,0,.5);
323 .information > .should_panic:hover {
328 color: rgba
(255,142,0,.6);
331 .information > .ignore:hover {
340 background-color: #000;
345 border-color: transparent black transparent transparent
;
348 .notable-traits-tooltiptext {
349 background-color: #eee;
353 .notable-traits-tooltiptext .notable {
354 border-bottom-color: #DDDDDD;
357 #titles > button:not
(.selected
) {
358 background-color: #e6e6e6;
359 border-top-color: #e6e6e6;
362 #titles > button:hover
, #titles
> button
.selected
{
363 background-color: #ffffff;
364 border-top-color: #0089ff;
367 #titles > button
> div
.count
{
371 @media (max-width: 700px) {
373 background-color: #F5F5F5;
374 border-bottom-color: #e0e0e0;
375 border-right-color: #e0e0e0;
379 background-color: #F5F5F5;
380 border-right-color: #000;
384 background-color: #F5F5F5;
385 border-bottom-color: #e0e0e0;
391 background-color: #fafbfc;
392 border-color: #d1d5da;
393 border-bottom-color: #c6cbd1;
394 box-shadow: inset
0 -1px 0 #c6cbd1;
397 #theme-picker, #settings-menu
, #help-button
{
398 border-color: #e0e0e0;
399 background-color: #fff;
402 #theme-picker:hover
, #
theme-picker:focus
,
403 #settings-menu:hover
, #
settings-menu:focus
,
404 #help-button:hover
, #
help-button:focus
{
405 border-color: #717171;
414 #copy-path:hover
> img
{
420 background-color: #fff;
423 #theme-choices > button:not
(:first-child
) {
424 border-top-color: #e0e0e0;
427 #theme-choices > button:hover
, #theme-choices
> button:focus
{
428 background-color: #eee;
431 @media (max-width: 700px) {
437 .search-results .result-name span.alias {
440 .search-results .result-name span.grey {
445 background-color: #F5F5F5;
447 #sidebar-toggle:hover
{
448 background-color: #E0E0E0;
451 background-color: #F5F5F5;
453 #source-sidebar > .title
{
454 border-bottom-color: #ccc;
456 div
.files
> a:hover
, div
.name:hover
{
457 background-color: #E0E0E0;
459 div
.files
> .selected
{
460 background-color: #fff;
462 .setting-line > .title {
463 border-bottom-color: #D5D5D5;
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 {
480 .scraped-example .example-wrap .rust span.highlight.focus {
483 .scraped-example:not(.expanded) .code-wrapper:before {
484 background: linear-gradient
(to bottom
, rgba
(255, 255, 255, 1), rgba
(255, 255, 255, 0));
486 .scraped-example:not(.expanded) .code-wrapper:after {
487 background: linear-gradient
(to top
, rgba
(255, 255, 255, 1), rgba
(255, 255, 255, 0));
492 .toggle-line:hover .toggle-line-inner {