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):not(.important), 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 {
116 .sidebar, a.source, .search-input, .content table :not(code)>a,
117 .collapse-toggle, ul.item-list > li > .out-of-band {
118 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
124 ul ul, ol ul, ul ol, ol ol {
137 font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
138 white-space: pre-wrap;
140 .docblock code, .docblock-short code {
144 .docblock pre code, .docblock-short pre code, .docblock code.spotlight {
147 .docblock code.spotlight :last-child {
148 padding-bottom: 0.6em;
154 .source .content pre {
172 text-transform: uppercase;
184 .sidebar .block > ul > li {
192 /* Everything else */
195 display: none !important;
207 margin: 30px 10px 20px 10px;
209 word-wrap: break-word;
215 border-bottom: 1px solid;
216 overflow-wrap: break-word;
217 word-wrap: break-word; /* deprecated */
218 word-break: break-word; /* Chrome, non-standard */
225 .location a:first-child {
233 .block h2, .block h3 {
238 .block ul, .block li {
246 text-overflow: ellipsis;
252 transition: border 500ms ease-out;
256 border-top: 1px solid;
257 border-bottom: 1px solid;
280 .source .content pre.rust {
298 .content pre.line-numbers {
303 -webkit-user-select: none;
304 -moz-user-select: none;
305 -ms-user-select: none;
316 .docblock-short.nowrap {
320 text-overflow: ellipsis;
325 text-overflow: ellipsis;
328 .docblock-short code {
332 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
333 border-bottom: 1px solid;
336 #main > .docblock h1 { font-size: 1.3em; }
337 #main > .docblock h2 { font-size: 1.15em; }
338 #main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }
340 .docblock h1 { font-size: 1em; }
341 .docblock h2 { font-size: 0.95em; }
342 .docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
349 .content .out-of-band {
354 display: inline-block;
360 h3.impl > .out-of-band {
364 h4.method > .out-of-band {
368 ul.item-list > li > .out-of-band {
372 h4 > code, h3 > code, .invisible > code {
373 max-width: calc(100% - 41px);
383 display: inline-block;
389 display: inline-block;
390 max-width: calc(100% - 43px);
394 display: inline-block;
402 font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
406 border-spacing: 0 5px;
407 border-collapse: separate;
409 .content td { vertical-align: top; }
410 .content td:first-child { padding-right: 20px; }
411 .content td p:first-child { margin-top: 0; }
412 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
417 border-collapse: collapse;
423 border-top: 1px dashed;
424 border-bottom: 1px dashed;
430 border-top: 1px solid;
431 border-bottom: 1px solid;
438 .content .item-list {
439 list-style-type: none;
443 .content .item-list li {
447 .content .multi-column {
448 -moz-column-count: 5;
449 -moz-column-gap: 2.5em;
450 -webkit-column-count: 5;
451 -webkit-column-gap: 2.5em;
455 .content .multi-column li { width: 100%; display: inline-block; }
461 /* Shift "where ..." part of method or fn definition down a line */
462 .content .method .where,
464 .content .where.fmt-newline {
469 .content .methods > div:not(.important-traits) { margin-left: 40px; }
471 .content .impl-items .docblock, .content .impl-items .stability {
475 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
479 .content .stability code {
484 border-bottom: 1px solid;
485 padding-bottom: 10px;
493 border-top: 1px solid;
494 border-bottom: 1px solid;
496 nav.main .separator {
498 display: inline-block;
502 nav.sum { text-align: right; }
503 nav.sub form { display: inline; }
510 text-decoration: none;
511 background: transparent;
514 .small-section-header:hover > .anchor {
518 .in-band:hover > .anchor {
519 display: inline-block;
531 content: '\2002\00a7\2002';
534 .docblock a:hover, .docblock-short a:hover, .stability a {
535 text-decoration: underline;
538 .block a.current.crate { font-weight: 500; }
542 /* Override Normalize.css: we have margins and do
543 not want to overflow - the `moz` attribute is necessary
544 until Firefox 29, too early to drop at this point */
545 -moz-box-sizing: border-box !important;
546 box-sizing: border-box !important;
553 transition: border-color 300ms ease;
554 transition: border-radius 300ms ease-in-out;
555 transition: box-shadow 300ms ease-in-out;
558 .search-input:focus {
562 box-shadow: 0 0 8px #078dd8;
565 .search-results .desc {
567 text-overflow: ellipsis;
576 .content .search-results td:first-child { padding-right: 0; }
577 .content .search-results td:first-child a { padding-right: 10px; }
579 tr.result span.primitive::after {
580 content: ' (primitive type)';
584 body.blur > :not(#help) {
586 -webkit-filter: blur(8px);
597 justify-content: center;
602 box-shadow: 0 0 6px rgba(0,0,0,.2);
612 #help dd { margin: 5px 35px; }
613 #help .infos { padding-left: 0; }
614 #help h1, #help h2 { margin-top: 0; }
647 background: inherit !important;
650 .module-item.unstable {
666 .variants_table tbody tr td:first-child {
667 width: 1%; /* make the variant name as small as possible */
678 pre.rust .question-mark {
683 display: inline-block;
685 padding: 5px 10px 5px 10px;
692 text-decoration: none;
695 .section-header:hover a:before {
698 content: '\2002\00a7\2002';
701 .section-header:hover a {
702 text-decoration: none;
716 h3 > .collapse-toggle, h4 > .collapse-toggle {
721 .toggle-wrapper > .collapse-toggle {
731 .toggle-wrapper.collapsed {
733 transition: height .2s;
737 .collapse-toggle > .inner {
738 display: inline-block;
768 .toggle-wrapper > .collapse-toggle {
772 .variant + .toggle-wrapper + .docblock > p {
776 .sub-variant, .sub-variant > h3 {
777 margin-top: 0 !important;
781 display: inline-block;
786 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
792 .docblock > .section-header:first-child {
797 .docblock > .section-header:first-child:hover > a:before {
801 .enum > .collapsed, .struct > .collapsed {
805 #main > .variant, #main > .structfield {
811 margin: 0px 0px 0px 30px !important;
813 .toggle-attributes.collapsed {
823 @media (max-width: 700px) {
831 width: calc(100% + 30px);
839 .sidebar > .location {
843 padding: 3px 10px 1px 10px;
850 .sidebar .location:empty {
871 border-bottom: 1px solid;
872 border-right: 1px solid;
882 border-right: 1px solid;
886 .sidebar > .block.version {
903 .content h4 > .out-of-band {
907 .toggle-wrapper > .collapse-toggle {
919 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
925 nav.sub, .content .out-of-band, .collapse-toggle {
939 display: inline-block;
943 .tooltip .tooltiptext {
955 .tooltip:hover .tooltiptext {
959 .tooltip .tooltiptext::after {
969 .important-traits .tooltip .tooltiptext {
990 border-bottom: 1px solid;
995 #titles > div.selected {
996 border-bottom: 3px solid;
999 #titles > div:hover {
1000 border-bottom: 3px solid;
1003 #titles > div > div.count {
1004 display: inline-block;
1013 h4 > .important-traits {
1019 @media (max-width: 700px) {
1020 h4 > .important-traits {
1026 #titles > div > div.count {
1039 background-color: rgba(0,0,0,0);
1047 /* Because of ios, we need to actually have a full height sidebar title so the
1048 * actual sidebar can show up. But then we need to make it transparent so we don't
1049 * hide content. The filler just allows to create the background for the sidebar
1050 * title. But because of the absolute position, I had to lower the z-index.
1055 width: calc(100% - 45px);
1059 border-bottom: 1px solid;
1064 @media (max-width: 416px) {
1091 transform: translate(-50%, -40%);
1094 border-top-right-radius: 0;
1097 .modal-content > .docblock {
1103 margin-bottom: 13px;
1107 .modal-content > .docblock > code.content {
1113 .modal-content > .close {
1121 border-top-right-radius: 5px;
1122 border-bottom-right-radius: 5px;
1129 .modal-content > .whiter {
1137 #main > div.important-traits {
1143 .content > .methods > div.important-traits {
1150 display: inline-block;
1152 font: 15px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
1154 vertical-align: middle;
1157 box-shadow: inset 0 -1px 0;
1187 #theme-choices > button {
1192 background: rgba(0,0,0,0);
1195 #theme-choices > button:not(:first-child) {
1196 border-top: 1px solid;
1199 @media (max-width: 700px) {