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("http://www.rust-lang.org/fonts/FiraSans-Regular.woff") format('woff');
19 font-family: 'Fira Sans';
22 src: local('Fira Sans Medium'), url("http://www.rust-lang.org/fonts/FiraSans-Medium.woff") format('woff');
25 font-family: 'Heuristica';
28 src: local('Heuristica Regular'), url("http://www.rust-lang.org/fonts/Heuristica-Regular.woff") format('woff');
31 font-family: 'Heuristica';
34 src: local('Heuristica Italic'), url("http://www.rust-lang.org/fonts/Heuristica-Italic.woff") format('woff');
37 font-family: 'Heuristica';
40 src: local('Heuristica Bold'), url("http://www.rust-lang.org/fonts/Heuristica-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: 18px "Heuristica", "Helvetica Neue", Helvetica, Arial, sans-serif;
60 padding: 10px 15px 20px 15px;
63 h1, h2, h3:not(.impl), h4:not(.method) {
66 margin: 30px 0 20px 0;
70 border-bottom: 1px dashed #D5D5D5;
73 h2, h3:not(.impl), h4:not(.method) {
74 border-bottom: 1px solid #DDDDDD;
84 h1, h2, h3, h4, section.sidebar, a.source, .content a.mod, .search-input {
85 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
91 ul ul, ol ul, ul ol, ol ol {
100 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
109 text-transform: uppercase;
120 .content, nav { max-width: 960px; }
122 /* Everything else */
124 .js-only, .hidden { display: none; }
136 margin: 30px 0 20px 0;
152 display: inline-block;
153 text-overflow: ellipsis;
160 transition: border 500ms ease-out;
167 .content pre { padding: 20px; }
168 .content.source pre.rust {
173 .content pre.line-numbers { float: left; border: none; }
174 .line-numbers span { color: #c67e2d; }
175 .line-numbers .line-highlighted {
176 background-color: #f6fdb0;
179 .content .highlighted {
181 color: #000 !important;
182 background-color: #ccc;
184 .content .highlighted a { color: #000 !important; }
185 .content .highlighted.trait { background-color: #fece7e; }
186 .content .highlighted.mod { background-color: #afc6e4; }
187 .content .highlighted.enum { background-color: #b4d1b9; }
188 .content .highlighted.struct { background-color: #e7b1a0; }
189 .content .highlighted.fn { background-color: #c6afb3; }
191 .docblock.short.nowrap {
195 text-overflow: ellipsis;
199 text-overflow: ellipsis;
203 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
204 margin: 40px 0 10px 0;
206 border-bottom: 1px solid #DDD;
209 .docblock h1 { font-size: 1.3em; }
210 .docblock h2 { font-size: 1.15em; }
211 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
219 border-spacing: 0 5px;
220 border-collapse: separate;
222 .content td { vertical-align: top; }
223 .content td:first-child { padding-right: 20px; }
224 .content td p:first-child { margin-top: 0; }
225 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
227 .content .item-list {
228 list-style-type: none;
232 .content .item-list li { margin-bottom: 3px; }
234 .content .multi-column {
235 -moz-column-count: 5;
236 -moz-column-gap: 2.5em;
237 -webkit-column-count: 5;
238 -webkit-column-gap: 2.5em;
242 .content .multi-column li { width: 100%; display: inline-block; }
244 .content .method { font-size: 1em; }
245 .content .methods { margin-left: 20px; }
246 .content .methods .docblock { margin-left: 20px; }
249 border-bottom: 1px solid #e0e0e0;
250 padding-bottom: 10px;
258 border-top: 1px solid #000;
259 border-bottom: 1px solid #000;
261 nav.main .separator {
262 border: 1px solid #000;
263 display: inline-block;
267 nav.sum { text-align: right; }
268 nav.sub form { display: inline; }
275 text-decoration: none;
277 background: transparent;
280 .content a.trait, .block a.current.trait { color: #ed9603; }
281 .content a.mod, .block a.current.mod { color: #4d76ae; }
282 .content a.enum, .block a.current.enum { color: #5e9766; }
283 .content a.struct, .block a.current.struct { color: #e53700; }
284 .content a.fn, .block a.current.fn { color: #8c6067; }
285 .content .fnname { color: #8c6067; }
289 /* Override Normalize.css: we have margins and do
290 not want to overflow - the `moz` attribute is necessary
291 until Firefox 29, too early to drop at this point */
292 -moz-box-sizing: border-box !important;
293 box-sizing: border-box !important;
301 box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
302 transition: border-color 300ms ease;
303 transition: border-radius 300ms ease-in-out;
304 transition: box-shadow 300ms ease-in-out;
307 .search-input:focus {
308 border-color: #66afe9;
312 box-shadow: 0 0 8px #078dd8;
315 .search-results .desc {
317 text-overflow: ellipsis;
325 box-shadow: 0 0 6px rgba(0,0,0,.2);
333 border: 1px solid #bfbfbf;
339 border: 1px solid #bfbfbf;
347 #help dd { margin: 5px 33px; }
348 #help .infos { padding-left: 0; }
349 #help h1 { margin-top: 0; }
357 border-left: 6px solid #000;
359 padding: 8px 3px 8px 10px;
360 text-transform: lowercase;
365 .stability.Deprecated { border-color: #D60027; color: #880017; }
366 .stability.Experimental { border-color: #EC5315; color: #a53c0e; }
367 .stability.Unstable { border-color: #FFD700; color: #b39800; }
368 .stability.Stable { border-color: #AEC516; color: #7c8b10; }
369 .stability.Frozen { border-color: #009431; color: #007726; }
370 .stability.Locked { border-color: #0084B6; color: #00668c; }
372 :target { background: #FDFFD3; }
374 pre.rust, pre.line-numbers { background-color: #F5F5F5; }
376 /* Code highlighting */
377 pre.rust .kw { color: #8959A8; }
378 pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
379 pre.rust .number, pre.rust .string { color: #718C00; }
380 pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
381 pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
382 pre.rust .comment { color: #8E908C; }
383 pre.rust .doccomment { color: #4D4D4C; }
384 pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
385 pre.rust .lifetime { color: #B76514; }
387 h1.section-link:hover a:after,
388 h2.section-link:hover a:after,
389 h3.section-link:hover a:after,
390 h4.section-link:hover a:after,
391 h5.section-link:hover a:after,
392 h6.section-link:hover a:after {
393 content: '\2002\00a7\2002';
396 /** Media Queries **/
398 @media (max-width: 700px) {