2 * Copyright 2013 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 font-family: 'Fira Sans';
16 src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
19 font-family: 'Fira Sans';
22 src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
25 font-family: 'Source Serif Pro';
28 src: local('Source Serif Pro'), url("SourceSerifPro-Regular.woff") format('woff');
31 font-family: 'Source Serif Pro';
34 src: url("Heuristica-Italic.woff") format('woff');
37 font-family: 'Source Serif Pro';
40 src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.woff") format('woff');
43 font-family: 'Source Code Pro';
46 src: local('Source Code Pro'), url("SourceCodePro-Regular.woff") format('woff');
49 font-family: 'Source Code Pro';
52 src: local('Source Code Pro Semibold'), url("SourceCodePro-Semibold.woff") format('woff');
55 @import "normalize.css";
58 -webkit-box-sizing: border-box;
59 -moz-box-sizing: border-box;
60 box-sizing: border-box;
63 /* General structure and fonts */
68 font: 16px/1.4 "Source Serif Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
71 padding: 10px 15px 20px 15px;
73 -webkit-font-feature-settings: "kern", "liga";
74 -moz-font-feature-settings: "kern", "liga";
75 font-feature-settings: "kern", "liga";
87 h1, h2, h3:not(.impl):not(.method):not(.type), h4:not(.method):not(.type) {
90 margin: 20px 0 15px 0;
94 border-bottom: 1px dashed #D5D5D5;
97 h2, h3:not(.impl):not(.method):not(.type), h4:not(.method):not(.type) {
98 border-bottom: 1px solid #DDDDDD;
100 h3.impl, h3.method, h4.method, h3.type, h4.type {
105 h3.impl, h3.method, h3.type {
108 h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
109 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
115 ul ul, ol ul, ul ol, ol ol {
124 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
125 white-space: pre-wrap;
128 background-color: #F5F5F5;
133 background-color: #F5F5F5;
151 text-transform: uppercase;
162 .content, nav { max-width: 960px; }
164 /* Everything else */
166 .js-only, .hidden { display: none; }
178 margin: 30px 0 20px 0;
184 .location a:first-child { font-weight: 500; }
198 text-overflow: ellipsis;
204 transition: border 500ms ease-out;
215 .content.source pre.rust {
220 .content pre.line-numbers { float: left; border: none; }
221 .line-numbers span { color: #c67e2d; }
222 .line-numbers .line-highlighted {
223 background-color: #f6fdb0;
226 .content .highlighted {
227 color: #000 !important;
228 background-color: #ccc;
230 .content .highlighted a, .content .highlighted span { color: #000 !important; }
231 .content .highlighted.trait { background-color: #fece7e; }
232 .content .highlighted.mod { background-color: #afc6e4; }
233 .content .highlighted.enum { background-color: #b4d1b9; }
234 .content .highlighted.struct { background-color: #e7b1a0; }
235 .content .highlighted.fn { background-color: #c6afb3; }
236 .content .highlighted.method { background-color: #c6afb3; }
237 .content .highlighted.tymethod { background-color: #c6afb3; }
238 .content .highlighted.type { background-color: #c6afb3; }
239 .content .highlighted.ffi { background-color: #c6afb3; }
241 .docblock.short.nowrap {
245 text-overflow: ellipsis;
250 text-overflow: ellipsis;
253 .docblock.short code { white-space: nowrap; }
255 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
256 border-bottom: 1px solid #DDD;
259 .docblock h1 { font-size: 1.3em; }
260 .docblock h2 { font-size: 1.15em; }
261 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
263 .content .out-of-band {
269 display: inline-block;
276 display: inline-block;
280 border-spacing: 0 5px;
281 border-collapse: separate;
283 .content td { vertical-align: top; }
284 .content td:first-child { padding-right: 20px; }
285 .content td p:first-child { margin-top: 0; }
286 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
288 .content .item-list {
289 list-style-type: none;
293 .content .item-list li { margin-bottom: 3px; }
295 .content .multi-column {
296 -moz-column-count: 5;
297 -moz-column-gap: 2.5em;
298 -webkit-column-count: 5;
299 -webkit-column-gap: 2.5em;
303 .content .multi-column li { width: 100%; display: inline-block; }
309 /* Shift "where ..." part of method definition down a line */
310 .content .method .where { display: block; }
311 /* Bit of whitespace to indent it */
312 .content .method .where::before { content: ' '; }
314 .content .methods .docblock { margin-left: 40px; }
316 .content .impl-items .docblock { margin-left: 40px; }
319 border-bottom: 1px solid #e0e0e0;
320 padding-bottom: 10px;
328 border-top: 1px solid #000;
329 border-bottom: 1px solid #000;
331 nav.main .separator {
332 border: 1px solid #000;
333 display: inline-block;
337 nav.sum { text-align: right; }
338 nav.sub form { display: inline; }
345 text-decoration: none;
347 background: transparent;
349 p a { color: #4e8bca; }
350 p a:hover { text-decoration: underline; }
352 .content span.trait, .content a.trait, .block a.current.trait { color: #ed9603; }
353 .content span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
354 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
355 .content span.struct, .content a.struct, .block a.current.struct { color: #e53700; }
356 .content span.fn, .content a.fn, .block a.current.fn { color: #8c6067; }
357 .content span.method, .content a.method, .block a.current.method { color: #8c6067; }
358 .content span.tymethod, .content a.tymethod, .block a.current.tymethod { color: #8c6067; }
359 .content span.ffi, .content a.ffi, .block a.current.ffi { color: #8c6067; }
360 .content .fnname { color: #8c6067; }
364 /* Override Normalize.css: we have margins and do
365 not want to overflow - the `moz` attribute is necessary
366 until Firefox 29, too early to drop at this point */
367 -moz-box-sizing: border-box !important;
368 box-sizing: border-box !important;
376 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
377 transition: border-color 300ms ease;
378 transition: border-radius 300ms ease-in-out;
379 transition: box-shadow 300ms ease-in-out;
382 .search-input:focus {
383 border-color: #66afe9;
387 box-shadow: 0 0 8px #078dd8;
390 .search-results .desc {
392 text-overflow: ellipsis;
401 .content .search-results td:first-child { padding-right: 0; }
402 .content .search-results td:first-child a { padding-right: 10px; }
407 box-shadow: 0 0 6px rgba(0,0,0,.2);
415 border: 1px solid #bfbfbf;
421 border: 1px solid #bfbfbf;
429 #help dd { margin: 5px 33px; }
430 #help .infos { padding-left: 0; }
431 #help h1 { margin-top: 0; }
439 border-left: 6px solid;
445 text-transform: lowercase;
451 .impl-items .stability, .methods .stability {
455 .stability.Deprecated { border-color: #A071A8; color: #82478C; }
456 .stability.Experimental { border-color: #D46D6A; color: #AA3C39; }
457 .stability.Unstable { border-color: #D4B16A; color: #AA8439; }
458 .stability.Stable { border-color: #54A759; color: #2D8632; }
459 .stability.Frozen { border-color: #009431; color: #007726; }
460 .stability.Locked { border-color: #0084B6; color: #00668c; }
461 .stability.Unmarked { border-color: #BBBBBB; }
466 .summary.Deprecated { background-color: #A071A8; }
467 .summary.Experimental { background-color: #D46D6A; }
468 .summary.Unstable { background-color: #D4B16A; }
469 .summary.Stable { background-color: #54A759; }
470 .summary.Unmarked { background-color: #BBBBBB; }
472 :target { background: #FDFFD3; }
474 /* Code highlighting */
475 pre.rust .kw { color: #8959A8; }
476 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
477 pre.rust .number, pre.rust .string { color: #718C00; }
478 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
479 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
480 pre.rust .comment { color: #8E908C; }
481 pre.rust .doccomment { color: #4D4D4C; }
482 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
483 pre.rust .lifetime { color: #B76514; }
485 .rusttest { display: none; }
486 pre.rust { position: relative; }
488 display: inline-block;
493 -webkit-transform: scaleX(-1);
494 transform: scaleX(-1);
497 .methods .section-header {
498 /* Override parent class attributes. */
499 border-bottom: none !important;
500 font-size: 1.1em !important;
504 .section-header:hover a:after {
505 content: '\2002\00a7\2002';
516 .toggle-wrapper > .collapse-toggle {
525 .toggle-wrapper.collapsed {
527 transition: height .2s;
530 .collapse-toggle > .inner {
531 display: inline-block;
544 @media (max-width: 700px) {
587 .toggle-wrapper > .collapse-toggle {
597 nav.sub, .content .out-of-band, .collapse-toggle {