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 @import "normalize.css";
46 -webkit-box-sizing: border-box;
47 -moz-box-sizing: border-box;
48 box-sizing: border-box;
51 /* General structure and fonts */
56 font: 16px/1.4 "Source Serif Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
59 padding: 10px 15px 20px 15px;
71 h1, h2, h3:not(.impl):not(.method), h4:not(.method) {
74 margin: 20px 0 15px 0;
78 border-bottom: 1px dashed #D5D5D5;
81 h2, h3:not(.impl):not(.method), h4:not(.method) {
82 border-bottom: 1px solid #DDDDDD;
84 h3.impl, h3.method, h4.method {
92 h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a {
93 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
99 ul ul, ol ul, ul ol, ol ol {
108 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
109 white-space: pre-wrap;
112 background-color: #F5F5F5;
122 text-transform: uppercase;
133 .content, nav { max-width: 960px; }
135 /* Everything else */
137 .js-only, .hidden { display: none; }
149 margin: 30px 0 20px 0;
167 text-overflow: ellipsis;
173 transition: border 500ms ease-out;
184 .content.source pre.rust {
189 .content pre.line-numbers { float: left; border: none; }
190 .line-numbers span { color: #c67e2d; }
191 .line-numbers .line-highlighted {
192 background-color: #f6fdb0;
195 .content .highlighted {
197 color: #000 !important;
198 background-color: #ccc;
200 .content .highlighted a { color: #000 !important; }
201 .content .highlighted.trait { background-color: #fece7e; }
202 .content .highlighted.mod { background-color: #afc6e4; }
203 .content .highlighted.enum { background-color: #b4d1b9; }
204 .content .highlighted.struct { background-color: #e7b1a0; }
205 .content .highlighted.fn { background-color: #c6afb3; }
207 .docblock.short.nowrap {
211 text-overflow: ellipsis;
216 text-overflow: ellipsis;
219 .docblock.short code { white-space: nowrap; }
221 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
222 border-bottom: 1px solid #DDD;
225 .docblock h1 { font-size: 1.3em; }
226 .docblock h2 { font-size: 1.15em; }
227 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
235 border-spacing: 0 5px;
236 border-collapse: separate;
238 .content td { vertical-align: top; }
239 .content td:first-child { padding-right: 20px; }
240 .content td p:first-child { margin-top: 0; }
241 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
243 .content .item-list {
244 list-style-type: none;
248 .content .item-list li { margin-bottom: 3px; }
250 .content .multi-column {
251 -moz-column-count: 5;
252 -moz-column-gap: 2.5em;
253 -webkit-column-count: 5;
254 -webkit-column-gap: 2.5em;
258 .content .multi-column li { width: 100%; display: inline-block; }
260 .content .method { font-size: 1em; }
261 .content .methods .docblock { margin-left: 40px; }
263 .content .impl-methods .docblock { margin-left: 40px; }
266 border-bottom: 1px solid #e0e0e0;
267 padding-bottom: 10px;
275 border-top: 1px solid #000;
276 border-bottom: 1px solid #000;
278 nav.main .separator {
279 border: 1px solid #000;
280 display: inline-block;
284 nav.sum { text-align: right; }
285 nav.sub form { display: inline; }
292 text-decoration: none;
294 background: transparent;
296 p a { color: #4e8bca; }
297 p a:hover { text-decoration: underline; }
299 .content a.trait, .block a.current.trait { color: #ed9603; }
300 .content a.mod, .block a.current.mod { color: #4d76ae; }
301 .content a.enum, .block a.current.enum { color: #5e9766; }
302 .content a.struct, .block a.current.struct { color: #e53700; }
303 .content a.fn, .block a.current.fn { color: #8c6067; }
304 .content .fnname { color: #8c6067; }
308 /* Override Normalize.css: we have margins and do
309 not want to overflow - the `moz` attribute is necessary
310 until Firefox 29, too early to drop at this point */
311 -moz-box-sizing: border-box !important;
312 box-sizing: border-box !important;
320 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
321 transition: border-color 300ms ease;
322 transition: border-radius 300ms ease-in-out;
323 transition: box-shadow 300ms ease-in-out;
326 .search-input:focus {
327 border-color: #66afe9;
331 box-shadow: 0 0 8px #078dd8;
334 .search-results .desc {
336 text-overflow: ellipsis;
344 box-shadow: 0 0 6px rgba(0,0,0,.2);
352 border: 1px solid #bfbfbf;
358 border: 1px solid #bfbfbf;
366 #help dd { margin: 5px 33px; }
367 #help .infos { padding-left: 0; }
368 #help h1 { margin-top: 0; }
376 border-left: 6px solid;
382 text-transform: lowercase;
388 .impl-methods .stability {
392 .stability.Deprecated { border-color: #A071A8; color: #82478C; }
393 .stability.Experimental { border-color: #D46D6A; color: #AA3C39; }
394 .stability.Unstable { border-color: #D4B16A; color: #AA8439; }
395 .stability.Stable { border-color: #54A759; color: #2D8632; }
396 .stability.Frozen { border-color: #009431; color: #007726; }
397 .stability.Locked { border-color: #0084B6; color: #00668c; }
398 .stability.Unmarked { border-color: #FFFFFF; }
400 :target { background: #FDFFD3; }
402 /* Code highlighting */
403 pre.rust .kw { color: #8959A8; }
404 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
405 pre.rust .number, pre.rust .string { color: #718C00; }
406 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
407 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
408 pre.rust .comment { color: #8E908C; }
409 pre.rust .doccomment { color: #4D4D4C; }
410 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
411 pre.rust .lifetime { color: #B76514; }
413 .rusttest { display: none; }
414 pre.rust { position: relative; }
415 pre.rust a { transform: scaleX(-1); }
417 display: inline-block;
424 .methods .section-header {
425 /* Override parent class attributes. */
426 border-bottom: none !important;
427 font-size: 1.1em !important;
431 .section-header:hover a:after {
432 content: '\2002\00a7\2002';
437 @media (max-width: 700px) {