1 /* General structure and fonts */
4 background-color: white
;
12 border-bottom-color: #D5D5D5;
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;
34 background-color: #F1F1F1;
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;
46 .logo-container.rust-logo > img {
47 /* No need for a border in here! */
50 /* Improve the scrollbar display on webkit-based browsers */
51 ::-webkit-scrollbar-track
{
52 background-color: #ecebeb;
54 ::-webkit-scrollbar-thumb
{
55 background-color: rgba
(36, 37, 39, 0.6);
57 .sidebar::-webkit-scrollbar-track {
58 background-color: #dcdcdc;
60 .sidebar::-webkit-scrollbar-thumb {
61 background-color: rgba
(36, 37, 39, 0.6);
65 background-color: #fff;
69 background-color: #fff;
74 background-color: #fff;
79 border-bottom-color: #DDD;
83 border-top-color: #777;
84 border-bottom-color: #777;
91 .line-numbers span { color: #c67e2d; }
92 .line-numbers .line-highlighted {
93 background-color: #f6fdb0 !important
;
96 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5, .docblock h6 {
97 border-bottom-color: #ddd;
100 .docblock table td, .docblock table th {
104 .content
.method
.where
,
106 .content .where.fmt-newline {
110 .search-results a:hover {
111 background-color: #ddd;
114 .search-results a:focus {
115 color: #000 !important
;
116 background-color: #ccc;
118 .search-results a:focus span { color: #000 !important
; }
119 a
.result-trait:focus
{ background-color: #c7b6ff; }
120 a
.result-traitalias:focus
{ background-color: #c7b6ff; }
122 a
.result-externcrate:focus
{ background-color: #afc6e4; }
123 a
.result-enum:focus
{ background-color: #b4d1b9; }
124 a
.result-struct:focus
{ background-color: #e7b1a0; }
125 a
.result-union:focus
{ background-color: #b7bd49; }
127 a
.result-method:focus
,
128 a
.result-tymethod:focus
{ background-color: #c6afb3; }
129 a
.result-type:focus
{ background-color: #ffc891; }
130 a
.result-foreigntype:focus
{ background-color: #f5c4ff; }
132 a
.result-derive:focus
,
133 a
.result-macro:focus
{ background-color: #8ce488; }
134 a
.result-constant:focus
,
135 a
.result-static:focus
{ background-color: #c3e0ff; }
136 a
.result-primitive:focus
{ background-color: #9aecff; }
137 a
.result-keyword:focus
{ background-color: #f99650; }
139 .content .item-info::before { color: #ccc; }
141 .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
142 .content span.struct, .content a.struct, .block a.current.struct { color: #ad448e; }
143 .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
144 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
145 .content span
.attr
, .content a
.attr
, .block a
.current
.attr
,
146 .content span
.derive
, .content a
.derive
, .block a
.current
.derive
,
147 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
148 .content span.union, .content a.union, .block a.current.union { color: #767b27; }
149 .content span
.constant
, .content a
.constant
, .block a
.current
.constant
,
150 .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
151 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
152 .content span
.externcrate
,
153 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
154 .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
155 .content span.traitalias, .content a.traitalias, .block a.current.traitalias { color: #6841f1; }
156 .content span
.fn
, .content a
.fn
, .block a
.current
.fn
,
157 .content span
.method
, .content a
.method
, .block a
.current
.method
,
158 .content span
.tymethod
, .content a
.tymethod
, .block a
.current
.tymethod
,
159 .content .fnname { color: #9a6e31; }
160 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
163 border-bottom-color: #e0e0e0;
166 border-top-color: #000;
167 border-bottom-color: #000;
169 nav
.main
.separator
{
170 border: 1px solid
#000;
179 .small-section-header a
,
192 body
.source
.example-wrap pre
.rust a
{
196 details
.rustdoc-toggle
> summary
.hideme
> span
,
197 details
.rustdoc-toggle
> summary::before
,
198 details
.undocumented
> summary::before
{
204 background-color: white
;
205 border-color: #e0e0e0;
206 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent
;
211 background-color: white
;
212 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent
;
215 .search-input:focus {
216 border-color: #66afe9;
219 #crate-search + .search-input:focus
{
220 box-shadow: 0 0 8px #078dd8;
228 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
229 .stab.deprecated { background: #ffc4c4; border-color: #db7b7b; }
230 .stab.portability { background: #F3DFFF; border-color: #b07bdb; }
231 .stab.portability > code { background: none
; }
235 border-color: #bfbfbf;
238 #help span
.bottom
, #help span
.top
{
239 border-color: #bfbfbf;
246 .result-name .primitive > i, .result-name .keyword > i {
250 .line-numbers :target { background-color: transparent
; }
252 /* Code highlighting */
253 pre
.rust
.kw
{ color: #8959A8; }
254 pre
.rust
.kw-2
, pre
.rust
.prelude-ty
{ color: #4271AE; }
255 pre
.rust
.number
, pre
.rust
.string
{ color: #718C00; }
256 pre
.rust
.self
, pre
.rust
.bool-val
, pre
.rust
.prelude-val
,
257 pre
.rust
.attribute
, pre
.rust
.attribute
.ident
{ color: #C82829; }
258 pre
.rust
.comment
{ color: #8E908C; }
259 pre
.rust
.doccomment
{ color: #4D4D4C; }
260 pre
.rust
.macro
, pre
.rust
.macro-nonterminal
{ color: #3E999F; }
261 pre
.rust
.lifetime
{ color: #B76514; }
262 pre
.rust
.question-mark
{
266 .example-wrap > pre.line-number {
267 border-color: #c7c7c7;
271 background-color: rgba
(78, 139, 202, 0.2);
275 background-color: #4e8bca;
283 :target
, :target
> * {
288 border-right: 3px solid
#ffb44c;
292 border-left: 2px solid rgba
(255,0,0,.5);
295 pre
.compile_fail:hover
, .information:hover
+ pre
.compile_fail
{
296 border-left: 2px solid
#f00;
300 border-left: 2px solid rgba
(255,0,0,.5);
303 pre
.should_panic:hover
, .information:hover
+ pre
.should_panic
{
304 border-left: 2px solid
#f00;
308 border-left: 2px solid rgba
(255,142,0,.6);
311 pre
.ignore:hover
, .information:hover
+ pre
.ignore
{
312 border-left: 2px solid
#ff9200;
315 .tooltip.compile_fail {
316 color: rgba
(255,0,0,.5);
319 .information > .compile_fail:hover {
323 .tooltip.should_panic {
324 color: rgba
(255,0,0,.5);
327 .information > .should_panic:hover {
332 color: rgba
(255,142,0,.6);
335 .information > .ignore:hover {
344 background-color: #000;
349 border-color: transparent black transparent transparent
;
352 .notable-traits-tooltiptext {
353 background-color: #eee;
357 .notable-traits-tooltiptext .notable {
358 border-bottom-color: #DDDDDD;
361 #titles > button:not
(.selected
) {
362 background-color: #e6e6e6;
363 border-top-color: #e6e6e6;
366 #titles > button:hover
, #titles
> button
.selected
{
367 background-color: #ffffff;
368 border-top-color: #0089ff;
371 #titles > button
> div
.count
{
375 @media (max-width: 700px) {
377 background-color: #F1F1F1;
378 border-bottom-color: #e0e0e0;
379 border-right-color: #e0e0e0;
383 background-color: #F1F1F1;
384 border-right-color: #000;
388 background-color: #F1F1F1;
389 border-bottom-color: #e0e0e0;
395 background-color: #fafbfc;
396 border-color: #d1d5da;
397 border-bottom-color: #c6cbd1;
398 box-shadow-color: #c6cbd1;
401 #theme-picker, #settings-menu
, #help-button
{
402 border-color: #e0e0e0;
403 background-color: #fff;
406 #theme-picker:hover
, #
theme-picker:focus
,
407 #settings-menu:hover
, #
settings-menu:focus
,
408 #help-button:hover
, #
help-button:focus
{
409 border-color: #717171;
418 #copy-path:hover
> img
{
424 background-color: #fff;
427 #theme-choices > button:not
(:first-child
) {
428 border-top-color: #e0e0e0;
431 #theme-choices > button:hover
, #theme-choices
> button:focus
{
432 background-color: #eee;
435 @media (max-width: 700px) {
442 background-color: #fff;
445 background-color: #f9f9f9;
448 .search-results .result-name span.alias {
451 .search-results .result-name span.grey {
456 background-color: #F1F1F1;
458 #sidebar-toggle:hover
{
459 background-color: #E0E0E0;
462 background-color: #F1F1F1;
464 #source-sidebar > .title
{
465 border-bottom-color: #ccc;
467 div
.files
> a:hover
, div
.name:hover
{
468 background-color: #E0E0E0;
470 div
.files
> .selected
{
471 background-color: #fff;
473 .setting-line > .title {
474 border-bottom-color: #D5D5D5;