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 {
134 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
135 white-space: pre-wrap;
137 .docblock code, .docblock-short code {
141 .docblock pre code, .docblock-short pre code {
148 .source .content pre {
166 text-transform: uppercase;
181 .content, nav { max-width: 960px; }
183 /* Everything else */
185 .js-only, .hidden { display: none !important; }
198 margin: 30px 0 20px 0;
200 word-wrap: break-word;
207 .location a:first-child { font-weight: 500; }
213 .block h2, .block h3 {
218 .block ul, .block li {
226 text-overflow: ellipsis;
232 transition: border 500ms ease-out;
239 .source .content pre.rust {
247 .content pre.line-numbers {
252 -webkit-user-select: none;
253 -moz-user-select: none;
254 -ms-user-select: none;
257 .line-numbers span { cursor: pointer; }
263 .docblock-short.nowrap {
267 text-overflow: ellipsis;
272 text-overflow: ellipsis;
275 .docblock-short code { white-space: nowrap; }
277 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
278 border-bottom: 1px solid;
281 #main > .docblock h1 { font-size: 1.3em; }
282 #main > .docblock h2 { font-size: 1.15em; }
283 #main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }
285 .docblock h1 { font-size: 1em; }
286 .docblock h2 { font-size: 0.95em; }
287 .docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
293 .content .out-of-band {
298 display: inline-block;
304 h3.impl > .out-of-band {
308 h4.method > .out-of-band {
312 h4 > code, h3 > code, .invisible > code {
321 background: rgba(0, 0, 0, 0);
323 display: inline-block;
329 display: inline-block;
332 #main { position: relative; }
335 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
339 border-spacing: 0 5px;
340 border-collapse: separate;
342 .content td { vertical-align: top; }
343 .content td:first-child { padding-right: 20px; }
344 .content td p:first-child { margin-top: 0; }
345 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
350 border-collapse: collapse;
356 border-top: 1px dashed;
357 border-bottom: 1px dashed;
363 border-top: 1px solid;
364 border-bottom: 1px solid;
371 .content .item-list {
372 list-style-type: none;
376 .content .item-list li { margin-bottom: 3px; }
378 .content .multi-column {
379 -moz-column-count: 5;
380 -moz-column-gap: 2.5em;
381 -webkit-column-count: 5;
382 -webkit-column-gap: 2.5em;
386 .content .multi-column li { width: 100%; display: inline-block; }
392 /* Shift "where ..." part of method or fn definition down a line */
393 .content .method .where,
395 .content .where.fmt-newline {
401 .content .methods > div { margin-left: 40px; }
403 .content .impl-items .docblock, .content .impl-items .stability {
406 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
410 .content .stability code {
415 border-bottom: 1px solid;
416 padding-bottom: 10px;
424 border-top: 1px solid;
425 border-bottom: 1px solid;
427 nav.main .separator {
429 display: inline-block;
433 nav.sum { text-align: right; }
434 nav.sub form { display: inline; }
441 text-decoration: none;
442 background: transparent;
445 .small-section-header:hover > .anchor {
449 .in-band:hover > .anchor {
456 content: '\2002\00a7\2002';
459 .docblock a:hover, .docblock-short a:hover, .stability a {
460 text-decoration: underline;
463 .block a.current.crate { font-weight: 500; }
467 /* Override Normalize.css: we have margins and do
468 not want to overflow - the `moz` attribute is necessary
469 until Firefox 29, too early to drop at this point */
470 -moz-box-sizing: border-box !important;
471 box-sizing: border-box !important;
478 transition: border-color 300ms ease;
479 transition: border-radius 300ms ease-in-out;
480 transition: box-shadow 300ms ease-in-out;
483 .search-input:focus {
484 border-color: #66afe9;
488 box-shadow: 0 0 8px #078dd8;
491 .search-results .desc {
493 text-overflow: ellipsis;
502 .content .search-results td:first-child { padding-right: 0; }
503 .content .search-results td:first-child a { padding-right: 10px; }
505 tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
508 body.blur > :not(#help) {
510 -webkit-filter: blur(8px);
521 justify-content: center;
526 box-shadow: 0 0 6px rgba(0,0,0,.2);
541 #help dd { margin: 5px 33px; }
542 #help .infos { padding-left: 0; }
543 #help h1, #help h2 { margin-top: 0; }
575 background: inherit !important;
578 .module-item.unstable {
594 .variants_table tbody tr td:first-child {
595 width: 1%; /* make the variant name as small as possible */
606 pre.rust .question-mark {
610 pre.rust { position: relative; }
612 display: inline-block;
614 padding: 5px 10px 5px 10px;
621 text-decoration: none;
624 .section-header:hover a:after {
625 content: '\2002\00a7\2002';
628 .section-header:hover a {
629 text-decoration: none;
644 h3 > .collapse-toggle, h4 > .collapse-toggle {
649 .toggle-wrapper > .collapse-toggle {
658 .toggle-wrapper.collapsed {
660 transition: height .2s;
663 .collapse-toggle > .inner {
664 display: inline-block;
694 .toggle-wrapper > .collapse-toggle {
698 .variant + .toggle-wrapper + .docblock > p {
702 .variant + .toggle-wrapper > a {
706 .sub-variant, .sub-variant > h3 {
707 margin-top: 0 !important;
710 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
716 .enum > .collapsed, .struct > .collapsed {
720 #main > .variant, #main > .structfield {
726 margin: 0px 0px 0px 30px !important;
728 .toggle-attributes.collapsed {
738 @media (max-width: 700px) {
755 padding: 3px 10px 1px 10px;
762 .sidebar .location:empty {
789 .content .out-of-band {
793 .toggle-wrapper > .collapse-toggle {
803 nav.sub, .content .out-of-band, .collapse-toggle {