]>
git.proxmox.com Git - rustc.git/blob - src/librustdoc/html/static/rustdoc.css
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;
202 .location a:first-child { font-weight: 500; }
208 .block h2, .block h3 {
213 .block ul, .block li {
221 text-overflow: ellipsis
;
227 transition: border
500ms ease-out
;
234 .source .content pre.rust {
239 .content pre.line-numbers {
244 -webkit-user-select: none
;
245 -moz-user-select: none
;
246 -ms-user-select: none
;
249 .line-numbers span { cursor: pointer
; }
255 .docblock-short.nowrap {
259 text-overflow: ellipsis
;
264 text-overflow: ellipsis
;
267 .docblock-short code { white-space: nowrap
; }
269 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
270 border-bottom: 1px solid
;
273 .docblock h1 { font-size: 1.3em; }
274 .docblock h2 { font-size: 1.15em; }
275 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
281 .content .out-of-band {
286 display: inline-block
;
292 h3
.impl
> .out-of-band
{
296 h4
> code
, h3
> code
, .invisible
> code
{
305 background: rgba
(0, 0, 0, 0);
307 display: inline-block
;
313 display: inline-block
;
316 #main { position: relative
; }
319 font-family: "Fira Sans", "Helvetica Neue", Helvetica
, Arial
, sans-serif
;
323 border-spacing: 0 5px;
324 border-collapse: separate
;
326 .content td { vertical-align: top
; }
327 .content td:first-child { padding-right: 20px; }
328 .content td p:first-child { margin-top: 0; }
329 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
334 border-collapse: collapse
;
340 border-top: 1px dashed
;
341 border-bottom: 1px dashed
;
347 border-top: 1px solid
;
348 border-bottom: 1px solid
;
355 .content .item-list {
356 list-style-type: none
;
360 .content .item-list li { margin-bottom: 3px; }
362 .content .multi-column {
363 -moz-column-count: 5;
364 -moz-column-gap: 2.5em;
365 -webkit-column-count: 5;
366 -webkit-column-gap: 2.5em;
370 .content .multi-column li { width: 100%; display: inline-block
; }
376 /* Shift "where ..." part of method or fn definition down a line */
377 .content
.method
.where
,
379 .content .where.fmt-newline {
382 /* Bit of whitespace to indent it */
383 .content
.method
.where::before
,
384 .content
.fn
.where::before
,
385 .content .where.fmt-newline::before {
389 .content .methods > div { margin-left: 40px; }
391 .content .impl-items .docblock, .content .impl-items .stability {
394 .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
398 .content .stability code {
402 /* Shift where in trait listing down a line */
403 pre
.trait
.where::before
{
408 border-bottom: 1px solid
;
409 padding-bottom: 10px;
417 border-top: 1px solid
;
418 border-bottom: 1px solid
;
420 nav
.main
.separator
{
422 display: inline-block
;
426 nav
.sum
{ text-align: right
; }
427 nav
.sub form
{ display: inline
; }
434 text-decoration: none
;
435 background: transparent
;
438 .docblock a:hover, .docblock-short a:hover, .stability a {
439 text-decoration: underline
;
442 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
443 .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
444 .content span.type, .content a.type, .block a.current.type { color: #e57300; }
445 .content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
446 .block a.current.crate { font-weight: 500; }
450 /* Override Normalize.css: we have margins and do
451 not want to overflow - the `moz` attribute is necessary
452 until Firefox 29, too early to drop at this point */
453 -moz-box-sizing: border-box
!important
;
454 box-sizing: border-box
!important
;
461 transition: border-color
300ms ease
;
462 transition: border-radius
300ms ease-in-out
;
463 transition: box-shadow
300ms ease-in-out
;
466 .search-input:focus {
467 border-color: #66afe9;
471 box-shadow: 0 0 8px #078dd8;
474 .search-results .desc {
476 text-overflow: ellipsis
;
485 .content .search-results td:first-child { padding-right: 0; }
486 .content .search-results td:first-child a { padding-right: 10px; }
488 tr
.result span
.primitive::after
{ content: ' (primitive type)'; font-style: italic
; color: black
;
491 body
.blur
> :not
(#help
) {
493 -webkit-filter: blur
(8px);
504 justify-content: center
;
509 box-shadow: 0 0 6px rgba
(0,0,0,.2);
524 #help dd
{ margin: 5px 33px; }
525 #help .infos
{ padding-left: 0; }
526 #help h1
, #help h2
{ margin-top: 0; }
558 background: inherit
!important
;
561 .module-item.unstable {
577 .variants_table tbody tr td:first-child {
578 width: 1%; /* make the variant name as small as possible */
589 pre
.rust
.question-mark
{
593 pre
.rust
{ position: relative
; }
595 display: inline-block
;
597 padding: 5px 10px 5px 10px;
604 text-decoration: none
;
607 .section-header:hover a:after {
608 content: '\2002\00a7\2002';
611 .section-header:hover a {
612 text-decoration: none
;
627 .toggle-wrapper > .collapse-toggle {
636 .toggle-wrapper.collapsed {
638 transition: height
.2s;
641 .collapse-toggle > .inner {
642 display: inline-block
;
667 .toggle-wrapper > .collapse-toggle {
671 .variant + .toggle-wrapper > a {
675 .sub-variant, .sub-variant > h3 {
676 margin-top: 0 !important
;
679 .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
685 .enum > .collapsed, .struct > .collapsed {
689 .enum .variant, .struct .structfield {
695 margin: 0px 0px 0px 30px !important
;
697 .toggle-attributes.collapsed {
707 @media (max-width: 700px) {
724 padding: 3px 10px 1px 10px;
731 .sidebar .location:empty {
758 .content .out-of-band {
762 .toggle-wrapper > .collapse-toggle {
772 nav
.sub
, .content
.out-of-band
, .collapse-toggle
{