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 */
67 font: 16px/1.4 "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
70 padding: 10px 15px 20px 15px;
72 -webkit-font-feature-settings: "kern", "liga";
73 -moz-font-feature-settings: "kern", "liga";
74 font-feature-settings: "kern", "liga";
86 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
89 margin: 20px 0 15px 0;
93 border-bottom: 1px dashed #D5D5D5;
96 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod) {
97 border-bottom: 1px solid #DDDDDD;
99 h3.impl, h3.method, h4.method, h3.type, h4.type {
104 h3.impl, h3.method, h3.type {
107 h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
108 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
114 ul ul, ol ul, ul ol, ol ol {
123 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
124 white-space: pre-wrap;
127 background-color: #F5F5F5;
135 background-color: #F5F5F5;
153 text-transform: uppercase;
164 .content, nav { max-width: 960px; }
166 /* Everything else */
168 .js-only, .hidden { display: none !important; }
180 margin: 30px 0 20px 0;
186 .location a:first-child { font-weight: 500; }
200 text-overflow: ellipsis;
206 transition: border 500ms ease-out;
217 .content.source pre.rust {
222 .content pre.line-numbers {
227 -webkit-user-select: none;
228 -moz-user-select: none;
229 -ms-user-select: none;
232 .line-numbers span { color: #c67e2d; cursor: pointer; }
233 .line-numbers .line-highlighted {
234 background-color: #f6fdb0 !important;
237 .content .highlighted {
238 color: #000 !important;
239 background-color: #ccc;
241 .content .highlighted a, .content .highlighted span { color: #000 !important; }
242 .content .highlighted.trait { background-color: #fece7e; }
243 .content .highlighted.mod { background-color: #afc6e4; }
244 .content .highlighted.enum { background-color: #b4d1b9; }
245 .content .highlighted.struct { background-color: #e7b1a0; }
246 .content .highlighted.fn { background-color: #c6afb3; }
247 .content .highlighted.method { background-color: #c6afb3; }
248 .content .highlighted.tymethod { background-color: #c6afb3; }
249 .content .highlighted.type { background-color: #c6afb3; }
255 .docblock.short.nowrap {
259 text-overflow: ellipsis;
264 text-overflow: ellipsis;
267 .docblock.short code { white-space: nowrap; }
269 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
270 border-bottom: 1px solid #DDD;
273 .docblock h1 { font-size: 1.3em; }
274 .docblock h2 { font-size: 1.15em; }
275 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
277 .content .out-of-band {
283 display: inline-block;
290 display: inline-block;
294 border-spacing: 0 5px;
295 border-collapse: separate;
297 .content td { vertical-align: top; }
298 .content td:first-child { padding-right: 20px; }
299 .content td p:first-child { margin-top: 0; }
300 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
303 border: 1px solid #ddd;
305 border-collapse: collapse;
311 border-top: 1px dashed #ddd;
312 border-bottom: 1px dashed #ddd;
319 border-top: 1px solid #ddd;
320 border-bottom: 1px solid #ddd;
323 .content .item-list {
324 list-style-type: none;
328 .content .item-list li { margin-bottom: 3px; }
330 .content .multi-column {
331 -moz-column-count: 5;
332 -moz-column-gap: 2.5em;
333 -webkit-column-count: 5;
334 -webkit-column-gap: 2.5em;
338 .content .multi-column li { width: 100%; display: inline-block; }
344 /* Shift "where ..." part of method or fn definition down a line */
345 .content .method .where, .content .fn .where { display: block; }
346 /* Bit of whitespace to indent it */
347 .content .method .where::before, .content .fn .where::before { content: ' '; }
349 .content .methods > div { margin-left: 40px; }
351 .content .impl-items .docblock, .content .impl-items .stability {
354 .content .impl-items .method, .content .impl-items > .type {
359 border-bottom: 1px solid #e0e0e0;
360 padding-bottom: 10px;
368 border-top: 1px solid #000;
369 border-bottom: 1px solid #000;
371 nav.main .separator {
372 border: 1px solid #000;
373 display: inline-block;
377 nav.sum { text-align: right; }
378 nav.sub form { display: inline; }
385 text-decoration: none;
387 background: transparent;
395 text-decoration: underline;
398 .content span.trait, .content a.trait, .block a.current.trait { color: #8866ff; }
399 .content span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
400 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
401 .content span.struct, .content a.struct, .block a.current.struct { color: #e53700; }
402 .content span.fn, .content a.fn, .block a.current.fn { color: #8c6067; }
403 .content span.method, .content a.method, .block a.current.method { color: #8c6067; }
404 .content span.tymethod, .content a.tymethod, .block a.current.tymethod { color: #8c6067; }
405 .content .fnname { color: #8c6067; }
409 /* Override Normalize.css: we have margins and do
410 not want to overflow - the `moz` attribute is necessary
411 until Firefox 29, too early to drop at this point */
412 -moz-box-sizing: border-box !important;
413 box-sizing: border-box !important;
421 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
422 transition: border-color 300ms ease;
423 transition: border-radius 300ms ease-in-out;
424 transition: box-shadow 300ms ease-in-out;
427 .search-input:focus {
428 border-color: #66afe9;
432 box-shadow: 0 0 8px #078dd8;
435 .search-results .desc {
437 text-overflow: ellipsis;
446 .content .search-results td:first-child { padding-right: 0; }
447 .content .search-results td:first-child a { padding-right: 10px; }
449 tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; }
451 body.blur > :not(#help) {
453 -webkit-filter: blur(8px);
464 justify-content: center;
470 box-shadow: 0 0 6px rgba(0,0,0,.2);
473 border: 1px solid #bfbfbf;
478 border: 1px solid #bfbfbf;
486 #help dd { margin: 5px 33px; }
487 #help .infos { padding-left: 0; }
488 #help h1 { margin-top: 0; }
495 em.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
496 em.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
498 display: inline-block;
514 background: inherit !important;
517 .module-item.unstable {
529 :target { background: #FDFFD3; }
530 .line-numbers :target { background-color: transparent; }
532 /* Code highlighting */
533 pre.rust .kw { color: #8959A8; }
534 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
535 pre.rust .number, pre.rust .string { color: #718C00; }
536 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
537 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
538 pre.rust .comment { color: #8E908C; }
539 pre.rust .doccomment { color: #4D4D4C; }
540 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
541 pre.rust .lifetime { color: #B76514; }
543 .rusttest { display: none; }
544 pre.rust { position: relative; }
546 display: inline-block;
551 -webkit-transform: scaleX(-1);
552 transform: scaleX(-1);
555 .methods .section-header {
556 /* Override parent class attributes. */
557 border-bottom: none !important;
558 font-size: 1.1em !important;
563 .section-header:hover a:after {
564 content: '\2002\00a7\2002';
567 .section-header:hover a {
568 text-decoration: none;
583 .toggle-wrapper > .collapse-toggle {
592 .toggle-wrapper.collapsed {
594 transition: height .2s;
597 .collapse-toggle > .inner {
598 display: inline-block;
611 @media (max-width: 700px) {
658 .content .out-of-band {
662 .toggle-wrapper > .collapse-toggle {
672 nav.sub, .content .out-of-band, .collapse-toggle {