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
{
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 {
151 .source .content pre {
169 text-transform: uppercase
;
185 .content, nav { max-width: 960px; }
187 /* Everything else */
189 .js-only, .hidden { display: none
!important
; }
200 margin: 30px 10px 20px 10px;
202 word-wrap: break-word
;
208 border-bottom: #DDDDDD 1px solid
;
209 overflow-wrap: break-word
;
210 word-wrap: break-word
; /* deprecated */
211 word-break: break-word
; /* Chrome, non-standard */
218 .location a:first-child { font-weight: 500; }
224 .block h2, .block h3 {
229 .block ul, .block li {
237 text-overflow: ellipsis
;
243 transition: border
500ms ease-out
;
247 border-top: 1px solid
#777;
248 border-bottom: 1px solid
#777;
267 .source .content pre.rust {
275 .content pre.line-numbers {
280 -webkit-user-select: none
;
281 -moz-user-select: none
;
282 -ms-user-select: none
;
285 .line-numbers span { cursor: pointer
; }
291 .docblock-short.nowrap {
295 text-overflow: ellipsis
;
300 text-overflow: ellipsis
;
303 .docblock-short code { white-space: nowrap
; }
305 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
306 border-bottom: 1px solid
;
309 #main > .docblock h1
{ font-size: 1.3em; }
310 #main > .docblock h2
{ font-size: 1.15em; }
311 #main > .docblock h3
, #main
> .docblock h4
, #main
> .docblock h5
{ font-size: 1em; }
313 .docblock h1 { font-size: 1em; }
314 .docblock h2 { font-size: 0.95em; }
315 .docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
322 .content .out-of-band {
327 display: inline-block
;
333 h3
.impl
> .out-of-band
{
337 h4
.method
> .out-of-band
{
341 ul
.item-list
> li
> .out-of-band
{
345 h4
> code
, h3
> code
, .invisible
> code
{
354 background: rgba
(0, 0, 0, 0);
356 display: inline-block
;
362 display: inline-block
;
366 display: inline-block
;
369 #main { position: relative
; }
372 font-family: "Fira Sans", "Helvetica Neue", Helvetica
, Arial
, sans-serif
;
376 border-spacing: 0 5px;
377 border-collapse: separate
;
379 .content td { vertical-align: top
; }
380 .content td:first-child { padding-right: 20px; }
381 .content td p:first-child { margin-top: 0; }
382 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
387 border-collapse: collapse
;
393 border-top: 1px dashed
;
394 border-bottom: 1px dashed
;
400 border-top: 1px solid
;
401 border-bottom: 1px solid
;
408 .content .item-list {
409 list-style-type: none
;
413 .content .item-list li { margin-bottom: 1em; }
415 .content .multi-column {
416 -moz-column-count: 5;
417 -moz-column-gap: 2.5em;
418 -webkit-column-count: 5;
419 -webkit-column-gap: 2.5em;
423 .content .multi-column li { width: 100%; display: inline-block
; }
429 /* Shift "where ..." part of method or fn definition down a line */
430 .content
.method
.where
,
432 .content .where.fmt-newline {
438 .content .methods > div { margin-left: 40px; }
440 .content .impl-items .docblock, .content .impl-items .stability {
443 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
447 .content .stability code {
452 border-bottom: 1px solid
;
453 padding-bottom: 10px;
461 border-top: 1px solid
;
462 border-bottom: 1px solid
;
464 nav
.main
.separator
{
466 display: inline-block
;
470 nav
.sum
{ text-align: right
; }
471 nav
.sub form
{ display: inline
; }
478 text-decoration: none
;
479 background: transparent
;
482 .small-section-header:hover > .anchor {
486 .in-band:hover > .anchor {
487 display: inline-block
;
499 content: '\2002\00a7\2002';
502 .docblock a:hover, .docblock-short a:hover, .stability a {
503 text-decoration: underline
;
506 .block a.current.crate { font-weight: 500; }
510 /* Override Normalize.css: we have margins and do
511 not want to overflow - the `moz` attribute is necessary
512 until Firefox 29, too early to drop at this point */
513 -moz-box-sizing: border-box
!important
;
514 box-sizing: border-box
!important
;
521 transition: border-color
300ms ease
;
522 transition: border-radius
300ms ease-in-out
;
523 transition: box-shadow
300ms ease-in-out
;
526 .search-input:focus {
527 border-color: #66afe9;
531 box-shadow: 0 0 8px #078dd8;
534 .search-results .desc {
536 text-overflow: ellipsis
;
545 .content .search-results td:first-child { padding-right: 0; }
546 .content .search-results td:first-child a { padding-right: 10px; }
548 tr
.result span
.primitive::after
{
549 content: ' (primitive type)'; font-style: italic
; color: black
;
552 body
.blur
> :not
(#help
) {
554 -webkit-filter: blur
(8px);
565 justify-content: center
;
570 box-shadow: 0 0 6px rgba
(0,0,0,.2);
585 #help dd
{ margin: 5px 35px; }
586 #help .infos
{ padding-left: 0; }
587 #help h1
, #help h2
{ margin-top: 0; }
620 background: inherit
!important
;
623 .module-item.unstable {
639 .variants_table tbody tr td:first-child {
640 width: 1%; /* make the variant name as small as possible */
651 pre
.rust
.question-mark
{
656 display: inline-block
;
658 padding: 5px 10px 5px 10px;
665 text-decoration: none
;
668 .section-header:hover a:before {
671 content: '\2002\00a7\2002';
674 .section-header:hover a {
675 text-decoration: none
;
690 h3
> .collapse-toggle
, h4
> .collapse-toggle
{
695 .toggle-wrapper > .collapse-toggle {
705 .toggle-wrapper.collapsed {
707 transition: height
.2s;
711 .collapse-toggle > .inner {
712 display: inline-block
;
742 .toggle-wrapper > .collapse-toggle {
746 .variant + .toggle-wrapper + .docblock > p {
750 .sub-variant, .sub-variant > h3 {
751 margin-top: 0 !important
;
755 display: inline-block
;
760 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
766 .docblock > .section-header:first-child {
771 .docblock > .section-header:first-child:hover > a:before {
775 .enum > .collapsed, .struct > .collapsed {
779 #main > .variant
, #main
> .structfield
{
785 margin: 0px 0px 0px 30px !important
;
787 .toggle-attributes.collapsed {
797 @media (max-width: 700px) {
805 width: calc
(100% + 30px);
816 padding: 3px 10px 1px 10px;
823 .sidebar .location:empty {
850 .content h4 > .out-of-band {
854 .toggle-wrapper > .collapse-toggle {
866 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
872 nav
.sub
, .content
.out-of-band
, .collapse-toggle
{
886 display: inline-block
;
890 .tooltip .tooltiptext {
893 background-color: black
;
904 .tooltip:hover .tooltiptext {
908 .tooltip .tooltiptext::after {
916 border-color: transparent black transparent transparent
;
936 border-bottom: 1px solid
#ccc;
941 #titles > div
.selected
{
942 border-bottom: 3px solid
#0078ee;
945 #titles > div:hover
{
946 border-bottom: 3px solid
#0089ff;
949 #titles > div
> div
.count
{
950 display: inline-block
;