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;
132 background-color: #F5F5F5;
150 text-transform: uppercase;
161 .content, nav { max-width: 960px; }
163 /* Everything else */
165 .js-only, .hidden { display: none; }
177 margin: 30px 0 20px 0;
183 .location a:first-child { font-weight: 500; }
197 text-overflow: ellipsis;
203 transition: border 500ms ease-out;
214 .content.source pre.rust {
219 .content pre.line-numbers {
224 -webkit-user-select: none;
225 -moz-user-select: none;
226 -ms-user-select: none;
229 .line-numbers span { color: #c67e2d; cursor: pointer; }
230 .line-numbers .line-highlighted {
231 background-color: #f6fdb0 !important;
234 .content .highlighted {
235 color: #000 !important;
236 background-color: #ccc;
238 .content .highlighted a, .content .highlighted span { color: #000 !important; }
239 .content .highlighted.trait { background-color: #fece7e; }
240 .content .highlighted.mod { background-color: #afc6e4; }
241 .content .highlighted.enum { background-color: #b4d1b9; }
242 .content .highlighted.struct { background-color: #e7b1a0; }
243 .content .highlighted.fn { background-color: #c6afb3; }
244 .content .highlighted.method { background-color: #c6afb3; }
245 .content .highlighted.tymethod { background-color: #c6afb3; }
246 .content .highlighted.type { background-color: #c6afb3; }
252 .docblock.short.nowrap {
256 text-overflow: ellipsis;
261 text-overflow: ellipsis;
264 .docblock.short code { white-space: nowrap; }
266 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
267 border-bottom: 1px solid #DDD;
270 .docblock h1 { font-size: 1.3em; }
271 .docblock h2 { font-size: 1.15em; }
272 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
274 .content .out-of-band {
280 display: inline-block;
287 display: inline-block;
291 border-spacing: 0 5px;
292 border-collapse: separate;
294 .content td { vertical-align: top; }
295 .content td:first-child { padding-right: 20px; }
296 .content td p:first-child { margin-top: 0; }
297 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
300 border: 1px solid #ddd;
302 border-collapse: collapse;
308 border-top: 1px dashed #ddd;
309 border-bottom: 1px dashed #ddd;
316 border-top: 1px solid #ddd;
317 border-bottom: 1px solid #ddd;
320 .content .item-list {
321 list-style-type: none;
325 .content .item-list li { margin-bottom: 3px; }
327 .content .multi-column {
328 -moz-column-count: 5;
329 -moz-column-gap: 2.5em;
330 -webkit-column-count: 5;
331 -webkit-column-gap: 2.5em;
335 .content .multi-column li { width: 100%; display: inline-block; }
341 /* Shift "where ..." part of method definition down a line */
342 .content .method .where { display: block; }
343 /* Bit of whitespace to indent it */
344 .content .method .where::before { content: ' '; }
346 .content .methods > div { margin-left: 40px; }
348 .content .impl-items .docblock, .content .impl-items .stability {
351 .content .impl-items .method, .content .impl-items > .type {
356 border-bottom: 1px solid #e0e0e0;
357 padding-bottom: 10px;
365 border-top: 1px solid #000;
366 border-bottom: 1px solid #000;
368 nav.main .separator {
369 border: 1px solid #000;
370 display: inline-block;
374 nav.sum { text-align: right; }
375 nav.sub form { display: inline; }
382 text-decoration: none;
384 background: transparent;
392 text-decoration: underline;
395 .content span.trait, .content a.trait, .block a.current.trait { color: #8866ff; }
396 .content span.mod, .content a.mod, block a.current.mod { color: #4d76ae; }
397 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
398 .content span.struct, .content a.struct, .block a.current.struct { color: #e53700; }
399 .content span.fn, .content a.fn, .block a.current.fn { color: #8c6067; }
400 .content span.method, .content a.method, .block a.current.method { color: #8c6067; }
401 .content span.tymethod, .content a.tymethod, .block a.current.tymethod { color: #8c6067; }
402 .content .fnname { color: #8c6067; }
406 /* Override Normalize.css: we have margins and do
407 not want to overflow - the `moz` attribute is necessary
408 until Firefox 29, too early to drop at this point */
409 -moz-box-sizing: border-box !important;
410 box-sizing: border-box !important;
418 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
419 transition: border-color 300ms ease;
420 transition: border-radius 300ms ease-in-out;
421 transition: box-shadow 300ms ease-in-out;
424 .search-input:focus {
425 border-color: #66afe9;
429 box-shadow: 0 0 8px #078dd8;
432 .search-results .desc {
434 text-overflow: ellipsis;
443 .content .search-results td:first-child { padding-right: 0; }
444 .content .search-results td:first-child a { padding-right: 10px; }
449 box-shadow: 0 0 6px rgba(0,0,0,.2);
457 border: 1px solid #bfbfbf;
463 border: 1px solid #bfbfbf;
471 #help dd { margin: 5px 33px; }
472 #help .infos { padding-left: 0; }
473 #help h1 { margin-top: 0; }
480 em.stab.unstable { background: #FFF5D6; border-color: #FFC600; }
481 em.stab.deprecated { background: #F3DFFF; border-color: #7F0087; }
483 display: inline-block;
499 background: inherit !important;
502 .module-item.unstable {
514 :target { background: #FDFFD3; }
515 .line-numbers :target { background-color: transparent; }
517 /* Code highlighting */
518 pre.rust .kw { color: #8959A8; }
519 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
520 pre.rust .number, pre.rust .string { color: #718C00; }
521 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
522 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
523 pre.rust .comment { color: #8E908C; }
524 pre.rust .doccomment { color: #4D4D4C; }
525 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
526 pre.rust .lifetime { color: #B76514; }
528 .rusttest { display: none; }
529 pre.rust { position: relative; }
531 display: inline-block;
536 -webkit-transform: scaleX(-1);
537 transform: scaleX(-1);
540 .methods .section-header {
541 /* Override parent class attributes. */
542 border-bottom: none !important;
543 font-size: 1.1em !important;
548 .section-header:hover a:after {
549 content: '\2002\00a7\2002';
552 .section-header:hover a {
553 text-decoration: none;
568 .toggle-wrapper > .collapse-toggle {
577 .toggle-wrapper.collapsed {
579 transition: height .2s;
582 .collapse-toggle > .inner {
583 display: inline-block;
596 @media (max-width: 700px) {
643 .content .out-of-band {
647 .toggle-wrapper > .collapse-toggle {
657 nav.sub, .content .out-of-band, .collapse-toggle {