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 /* See FiraSans-LICENSE.txt for the Fira Sans license. */
15 font-family: 'Fira Sans';
18 src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
21 font-family: 'Fira Sans';
24 src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
27 /* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license and
28 * Heuristica-LICENSE.txt for the Heuristica license. */
30 font-family: 'Source Serif Pro';
33 src: local('Source Serif Pro'), url("SourceSerifPro-Regular.woff") format('woff');
36 font-family: 'Source Serif Pro';
39 src: url("Heuristica-Italic.woff") format('woff');
42 font-family: 'Source Serif Pro';
45 src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.woff") format('woff');
48 /* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
50 font-family: 'Source Code Pro';
53 /* Avoid using locally installed font because bad versions are in circulation:
54 * see https://github.com/rust-lang/rust/issues/24355 */
55 src: url("SourceCodePro-Regular.woff") format('woff');
58 font-family: 'Source Code Pro';
61 src: url("SourceCodePro-Semibold.woff") format('woff');
65 -webkit-box-sizing: border-box;
66 -moz-box-sizing: border-box;
67 box-sizing: border-box;
70 /* General structure and fonts */
73 font: 16px/1.4 "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
76 padding: 10px 15px 20px 15px;
78 -webkit-font-feature-settings: "kern", "liga";
79 -moz-font-feature-settings: "kern", "liga";
80 font-feature-settings: "kern", "liga";
92 h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
94 margin: 20px 0 15px 0;
98 border-bottom: 1px dashed;
102 h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
103 border-bottom: 1px solid;
105 h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
111 h3.impl, h3.method, h3.type {
114 h1, h2, h3, h4, .sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
115 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
121 ul ul, ol ul, ul ol, ol ol {
130 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
131 white-space: pre-wrap;
133 .docblock code, .docblock-short code {
137 .docblock pre code, .docblock-short pre code {
144 .source .content pre {
162 text-transform: uppercase;
177 .content, nav { max-width: 960px; }
179 /* Everything else */
181 .js-only, .hidden { display: none !important; }
194 margin: 30px 0 20px 0;
196 word-wrap: break-word;
203 .location a:first-child { font-weight: 500; }
209 .block h2, .block h3 {
214 .block ul, .block li {
222 text-overflow: ellipsis;
228 transition: border 500ms ease-out;
235 .source .content pre.rust {
243 .content pre.line-numbers {
248 -webkit-user-select: none;
249 -moz-user-select: none;
250 -ms-user-select: none;
253 .line-numbers span { cursor: pointer; }
259 .docblock-short.nowrap {
263 text-overflow: ellipsis;
268 text-overflow: ellipsis;
271 .docblock-short code { white-space: nowrap; }
273 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
274 border-bottom: 1px solid;
277 #main > .docblock h1 { font-size: 1.3em; }
278 #main > .docblock h2 { font-size: 1.15em; }
279 #main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }
281 .docblock h1 { font-size: 1em; }
282 .docblock h2 { font-size: 0.95em; }
283 .docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
289 .content .out-of-band {
294 display: inline-block;
300 h3.impl > .out-of-band {
304 h4.method > .out-of-band {
308 h4 > code, h3 > code, .invisible > code {
317 background: rgba(0, 0, 0, 0);
319 display: inline-block;
325 display: inline-block;
328 #main { position: relative; }
331 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
335 border-spacing: 0 5px;
336 border-collapse: separate;
338 .content td { vertical-align: top; }
339 .content td:first-child { padding-right: 20px; }
340 .content td p:first-child { margin-top: 0; }
341 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
346 border-collapse: collapse;
352 border-top: 1px dashed;
353 border-bottom: 1px dashed;
359 border-top: 1px solid;
360 border-bottom: 1px solid;
367 .content .item-list {
368 list-style-type: none;
372 .content .item-list li { margin-bottom: 3px; }
374 .content .multi-column {
375 -moz-column-count: 5;
376 -moz-column-gap: 2.5em;
377 -webkit-column-count: 5;
378 -webkit-column-gap: 2.5em;
382 .content .multi-column li { width: 100%; display: inline-block; }
388 /* Shift "where ..." part of method or fn definition down a line */
389 .content .method .where,
391 .content .where.fmt-newline {
397 .content .methods > div { margin-left: 40px; }
399 .content .impl-items .docblock, .content .impl-items .stability {
402 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
406 .content .stability code {
411 border-bottom: 1px solid;
412 padding-bottom: 10px;
420 border-top: 1px solid;
421 border-bottom: 1px solid;
423 nav.main .separator {
425 display: inline-block;
429 nav.sum { text-align: right; }
430 nav.sub form { display: inline; }
437 text-decoration: none;
438 background: transparent;
441 .small-section-header:hover > .anchor {
448 content: '\2002\00a7\2002';
451 .docblock a:hover, .docblock-short a:hover, .stability a {
452 text-decoration: underline;
455 .block a.current.crate { font-weight: 500; }
459 /* Override Normalize.css: we have margins and do
460 not want to overflow - the `moz` attribute is necessary
461 until Firefox 29, too early to drop at this point */
462 -moz-box-sizing: border-box !important;
463 box-sizing: border-box !important;
470 transition: border-color 300ms ease;
471 transition: border-radius 300ms ease-in-out;
472 transition: box-shadow 300ms ease-in-out;
475 .search-input:focus {
476 border-color: #66afe9;
480 box-shadow: 0 0 8px #078dd8;
483 .search-results .desc {
485 text-overflow: ellipsis;
494 .content .search-results td:first-child { padding-right: 0; }
495 .content .search-results td:first-child a { padding-right: 10px; }
497 tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
500 body.blur > :not(#help) {
502 -webkit-filter: blur(8px);
513 justify-content: center;
518 box-shadow: 0 0 6px rgba(0,0,0,.2);
533 #help dd { margin: 5px 33px; }
534 #help .infos { padding-left: 0; }
535 #help h1, #help h2 { margin-top: 0; }
567 background: inherit !important;
570 .module-item.unstable {
586 .variants_table tbody tr td:first-child {
587 width: 1%; /* make the variant name as small as possible */
598 pre.rust .question-mark {
602 pre.rust { position: relative; }
604 display: inline-block;
606 padding: 5px 10px 5px 10px;
613 text-decoration: none;
616 .section-header:hover a:after {
617 content: '\2002\00a7\2002';
620 .section-header:hover a {
621 text-decoration: none;
636 h3 > .collapse-toggle, h4 > .collapse-toggle {
641 .toggle-wrapper > .collapse-toggle {
650 .toggle-wrapper.collapsed {
652 transition: height .2s;
655 .collapse-toggle > .inner {
656 display: inline-block;
686 .toggle-wrapper > .collapse-toggle {
690 .variant + .toggle-wrapper + .docblock > p {
694 .variant + .toggle-wrapper > a {
698 .sub-variant, .sub-variant > h3 {
699 margin-top: 0 !important;
702 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
708 .enum > .collapsed, .struct > .collapsed {
712 #main > .variant, #main > .structfield {
718 margin: 0px 0px 0px 30px !important;
720 .toggle-attributes.collapsed {
730 @media (max-width: 700px) {
747 padding: 3px 10px 1px 10px;
754 .sidebar .location:empty {
781 .content .out-of-band {
785 .toggle-wrapper > .collapse-toggle {
795 nav.sub, .content .out-of-band, .collapse-toggle {