2 * Copyright 2015 The Rust Project Developers. See the COPYRIGHT
3 * file at the top-level directory of this distribution and at
4 * http://rust-lang.org/COPYRIGHT.
6 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9 * option. This file may not be copied, modified, or distributed
10 * except according to those terms.
13 /* General structure and fonts */
16 background-color: white
;
20 h1
, h2
, h3:not
(.impl
):not
(.method
):not
(.type
):not
(.tymethod
), h4:not
(.method
):not
(.type
):not
(.tymethod
) {
24 border-bottom-color: #D5D5D5;
26 h2
, h3:not
(.impl
):not
(.method
):not
(.type
):not
(.tymethod
), h4:not
(.method
):not
(.type
):not
(.tymethod
) {
27 border-bottom-color: #DDDDDD;
31 background-color: white
;
35 background: rgba
(0, 0, 0, 0);
38 .docblock p > code, .docblock-short p > code {
39 background-color: #F5F5F5;
42 background-color: #F5F5F5;
46 background-color: #F1F1F1;
50 background-color: #fff;
54 background-color: #fff;
59 background-color: #fff;
64 border-bottom-color: #DDD;
68 border-top-color: #777;
69 border-bottom-color: #777;
76 .line-numbers span { color: #c67e2d; }
77 .line-numbers .line-highlighted {
78 background-color: #f6fdb0 !important
;
81 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
82 border-bottom-color: #DDD;
90 border-top-color: #ddd;
91 border-bottom-color: #ddd;
95 border-top-color: #ddd;
96 border-bottom-color: #ddd;
99 :target
{ background: #FDFFD3; }
105 .content
.method
.where
,
107 .content .where.fmt-newline {
111 .content .highlighted {
112 color: #000 !important
;
113 background-color: #ccc;
115 .content .highlighted a, .content .highlighted span { color: #000 !important
; }
116 .content .highlighted.trait { background-color: #c7b6ff; }
117 .content
.highlighted
.mod
,
118 .content .highlighted.externcrate { background-color: #afc6e4; }
119 .content .highlighted.enum { background-color: #b4d1b9; }
120 .content .highlighted.struct { background-color: #e7b1a0; }
121 .content .highlighted.union { background-color: #b7bd49; }
122 .content
.highlighted
.fn
,
123 .content
.highlighted
.method
,
124 .content .highlighted.tymethod { background-color: #c6afb3; }
125 .content .highlighted.type { background-color: #ffc891; }
126 .content .highlighted.foreigntype { background-color: #f5c4ff; }
127 .content .highlighted.macro { background-color: #8ce488; }
128 .content
.highlighted
.constant
,
129 .content .highlighted.static { background-color: #c3e0ff; }
130 .content .highlighted.primitive { background-color: #9aecff; }
131 .content .highlighted.keyword { background-color: #f99650; }
133 .content span.enum, .content a.enum, .block a.current.enum { color: #508157; }
134 .content span.struct, .content a.struct, .block a.current.struct { color: #ad448e; }
135 .content span.type, .content a.type, .block a.current.type { color: #ba5d00; }
136 .content span.foreigntype, .content a.foreigntype, .block a.current.foreigntype { color: #cd00e2; }
137 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
138 .content span.union, .content a.union, .block a.current.union { color: #767b27; }
139 .content span
.constant
, .content a
.constant
, .block a
.current
.constant
,
140 .content span.static, .content a.static, .block a.current.static { color: #546e8a; }
141 .content span.primitive, .content a.primitive, .block a.current.primitive { color: #2c8093; }
142 .content span
.externcrate
,
143 .content span.mod, .content a.mod, .block a.current.mod { color: #4d76ae; }
144 .content span.trait, .content a.trait, .block a.current.trait { color: #7c5af3; }
145 .content span
.fn
, .content a
.fn
, .block a
.current
.fn
,
146 .content span
.method
, .content a
.method
, .block a
.current
.method
,
147 .content span
.tymethod
, .content a
.tymethod
, .block a
.current
.tymethod
,
148 .content .fnname { color: #9a6e31; }
149 .content span.keyword, .content a.keyword, .block a.current.keyword { color: #de5249; }
151 pre
.rust
.comment
{ color: #8E908C; }
152 pre
.rust
.doccomment
{ color: #4D4D4C; }
155 border-bottom-color: #e0e0e0;
158 border-top-color: #000;
159 border-bottom-color: #000;
161 nav
.main
.separator
{
162 border: 1px solid
#000;
168 .docblock
a:not
(.srclink
):not
(.test-arrow
), .docblock-short
a:not
(.srclink
):not
(.test-arrow
),
183 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent
;
184 background-color: white
;
187 .search-input:focus {
188 border-color: #66afe9;
191 .stab.unstable { background: #FFF5D6; border-color: #FFC600; }
192 .stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
193 .stab.portability { background: #C4ECFF; border-color: #7BA5DB; }
201 border-color: #bfbfbf;
208 tr
.result span
.primitive::after
, tr
.result span
.keyword::after
{
212 .line-numbers :target { background-color: transparent
; }
214 /* Code highlighting */
215 pre
.rust
.kw
{ color: #8959A8; }
216 pre
.rust
.kw-2
, pre
.rust
.prelude-ty
{ color: #4271AE; }
217 pre
.rust
.number
, pre
.rust
.string
{ color: #718C00; }
218 pre
.rust
.self
, pre
.rust
.bool-val
, pre
.rust
.prelude-val
,
219 pre
.rust
.attribute
, pre
.rust
.attribute
.ident
{ color: #C82829; }
220 pre
.rust
.macro
, pre
.rust
.macro-nonterminal
{ color: #3E999F; }
221 pre
.rust
.lifetime
{ color: #B76514; }
222 pre
.rust
.question-mark
{
227 background-color: rgba
(78, 139, 202, 0.2);
231 background-color: #4e8bca;
243 border-left: 2px solid rgba
(255,0,0,.4);
246 pre
.compile_fail:hover
, .information:hover
+ pre
.compile_fail
{
247 border-left: 2px solid
#f00;
251 border-left: 2px solid rgba
(255,142,0,.4);
254 pre
.ignore:hover
, .information:hover
+ pre
.ignore
{
255 border-left: 2px solid
#ff9200;
258 .tooltip.compile_fail {
259 color: rgba
(255,0,0,.3);
262 .information > .compile_fail:hover {
267 color: rgba
(255,142,0,.3);
270 .information > .ignore:hover {
271 color: rgba
(255,142,0,1);
278 .tooltip .tooltiptext {
279 background-color: black
;
283 .tooltip .tooltiptext::after {
284 border-color: transparent black transparent transparent
;
287 .important-traits .tooltip .tooltiptext {
288 background-color: white
;
294 border-bottom-color: #ccc;
297 #titles > div
.selected
{
298 border-bottom-color: #0078ee;
301 #titles > div:hover
{
302 border-bottom-color: #0089ff;
305 #titles > div
> div
.count
{
310 background-color: rgba
(0,0,0,0.3);
314 background-color: #eee;
318 .modal-content > .close {
319 background-color: #eee;
323 .modal-content > .close:hover {
324 background-color: #ff1f1f;
328 .modal-content > .whiter {
329 background-color: #eee;
332 .modal-content > .close:hover + .whiter {
333 background-color: #ff1f1f;
336 @media (max-width: 700px) {
338 background-color: #F1F1F1;
339 border-bottom-color: #e0e0e0;
340 border-right-color: #e0e0e0;
344 background-color: #F1F1F1;
345 border-right-color: #000;
349 background-color: #F1F1F1;
350 border-bottom-color: #e0e0e0;
356 background-color: #fafbfc;
357 border-color: #d1d5da;
358 border-bottom-color: #c6cbd1;
359 box-shadow-color: #c6cbd1;
362 #theme-picker, #settings-menu
{
363 border-color: #e0e0e0;
364 background-color: #fff;
367 #theme-picker:hover
, #
theme-picker:focus
,
368 #settings-menu:hover
, #
settings-menu:focus
{
369 border-color: #717171;
374 background-color: #fff;
377 #theme-choices > button:not
(:first-child
) {
378 border-top-color: #e0e0e0;
381 #theme-choices > button:hover
, #theme-choices
> button:focus
{
382 background-color: #eee;
385 @media (max-width: 700px) {
392 background-color: #fff;
395 background-color: #f9f9f9;
398 .search-results td span.alias {
401 .search-results td span.grey {