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;
83 h1, h2, h3:not(.impl):not(.method), h4:not(.method) {
86 margin: 20px 0 15px 0;
90 border-bottom: 1px dashed #D5D5D5;
93 h2, h3:not(.impl):not(.method), h4:not(.method) {
94 border-bottom: 1px solid #DDDDDD;
96 h3.impl, h3.method, h4.method {
104 h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a {
105 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
111 ul ul, ol ul, ul ol, ol ol {
120 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
121 white-space: pre-wrap;
124 background-color: #F5F5F5;
142 text-transform: uppercase;
153 .content, nav { max-width: 960px; }
155 /* Everything else */
157 .js-only, .hidden { display: none; }
169 margin: 30px 0 20px 0;
187 text-overflow: ellipsis;
193 transition: border 500ms ease-out;
204 .content.source pre.rust {
209 .content pre.line-numbers { float: left; border: none; }
210 .line-numbers span { color: #c67e2d; }
211 .line-numbers .line-highlighted {
212 background-color: #f6fdb0;
215 .content .highlighted {
217 color: #000 !important;
218 background-color: #ccc;
220 .content .highlighted a { color: #000 !important; }
221 .content .highlighted.trait { background-color: #fece7e; }
222 .content .highlighted.mod { background-color: #afc6e4; }
223 .content .highlighted.enum { background-color: #b4d1b9; }
224 .content .highlighted.struct { background-color: #e7b1a0; }
225 .content .highlighted.fn { background-color: #c6afb3; }
227 .docblock.short.nowrap {
231 text-overflow: ellipsis;
236 text-overflow: ellipsis;
239 .docblock.short code { white-space: nowrap; }
241 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
242 border-bottom: 1px solid #DDD;
245 .docblock h1 { font-size: 1.3em; }
246 .docblock h2 { font-size: 1.15em; }
247 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
249 .content .out-of-band {
255 border-spacing: 0 5px;
256 border-collapse: separate;
258 .content td { vertical-align: top; }
259 .content td:first-child { padding-right: 20px; }
260 .content td p:first-child { margin-top: 0; }
261 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
263 .content .item-list {
264 list-style-type: none;
268 .content .item-list li { margin-bottom: 3px; }
270 .content .multi-column {
271 -moz-column-count: 5;
272 -moz-column-gap: 2.5em;
273 -webkit-column-count: 5;
274 -webkit-column-gap: 2.5em;
278 .content .multi-column li { width: 100%; display: inline-block; }
280 .content .method { font-size: 1em; }
281 .content .methods .docblock { margin-left: 40px; }
283 .content .impl-methods .docblock { margin-left: 40px; }
286 border-bottom: 1px solid #e0e0e0;
287 padding-bottom: 10px;
295 border-top: 1px solid #000;
296 border-bottom: 1px solid #000;
298 nav.main .separator {
299 border: 1px solid #000;
300 display: inline-block;
304 nav.sum { text-align: right; }
305 nav.sub form { display: inline; }
312 text-decoration: none;
314 background: transparent;
316 p a { color: #4e8bca; }
317 p a:hover { text-decoration: underline; }
319 .content a.trait, .block a.current.trait { color: #ed9603; }
320 .content a.mod, .block a.current.mod { color: #4d76ae; }
321 .content a.enum, .block a.current.enum { color: #5e9766; }
322 .content a.struct, .block a.current.struct { color: #e53700; }
323 .content a.fn, .block a.current.fn { color: #8c6067; }
324 .content .fnname { color: #8c6067; }
328 /* Override Normalize.css: we have margins and do
329 not want to overflow - the `moz` attribute is necessary
330 until Firefox 29, too early to drop at this point */
331 -moz-box-sizing: border-box !important;
332 box-sizing: border-box !important;
340 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
341 transition: border-color 300ms ease;
342 transition: border-radius 300ms ease-in-out;
343 transition: box-shadow 300ms ease-in-out;
346 .search-input:focus {
347 border-color: #66afe9;
351 box-shadow: 0 0 8px #078dd8;
354 .search-results .desc {
356 text-overflow: ellipsis;
364 box-shadow: 0 0 6px rgba(0,0,0,.2);
372 border: 1px solid #bfbfbf;
378 border: 1px solid #bfbfbf;
386 #help dd { margin: 5px 33px; }
387 #help .infos { padding-left: 0; }
388 #help h1 { margin-top: 0; }
396 border-left: 6px solid;
402 text-transform: lowercase;
408 .impl-methods .stability {
412 .stability.Deprecated { border-color: #A071A8; color: #82478C; }
413 .stability.Experimental { border-color: #D46D6A; color: #AA3C39; }
414 .stability.Unstable { border-color: #D4B16A; color: #AA8439; }
415 .stability.Stable { border-color: #54A759; color: #2D8632; }
416 .stability.Frozen { border-color: #009431; color: #007726; }
417 .stability.Locked { border-color: #0084B6; color: #00668c; }
418 .stability.Unmarked { border-color: #BBBBBB; }
423 .summary.Deprecated { background-color: #A071A8; }
424 .summary.Experimental { background-color: #D46D6A; }
425 .summary.Unstable { background-color: #D4B16A; }
426 .summary.Stable { background-color: #54A759; }
427 .summary.Unmarked { background-color: #BBBBBB; }
429 :target { background: #FDFFD3; }
431 /* Code highlighting */
432 pre.rust .kw { color: #8959A8; }
433 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
434 pre.rust .number, pre.rust .string { color: #718C00; }
435 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
436 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
437 pre.rust .comment { color: #8E908C; }
438 pre.rust .doccomment { color: #4D4D4C; }
439 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
440 pre.rust .lifetime { color: #B76514; }
442 .rusttest { display: none; }
443 pre.rust { position: relative; }
444 pre.rust a { transform: scaleX(-1); }
446 display: inline-block;
453 .methods .section-header {
454 /* Override parent class attributes. */
455 border-bottom: none !important;
456 font-size: 1.1em !important;
460 .section-header:hover a:after {
461 content: '\2002\00a7\2002';
466 @media (max-width: 700px) {