]>
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 src: local
('Source Code Pro'), url
("SourceCodePro-Regular.woff") format
('woff');
56 font-family: 'Source Code Pro';
59 src: local
('Source Code Pro Semibold'), url
("SourceCodePro-Semibold.woff") format
('woff');
62 @import "normalize.css";
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
) {
94 margin: 20px 0 15px 0;
98 border-bottom: 1px dashed
;
101 h2
, h3:not
(.impl
):not
(.method
):not
(.type
):not
(.tymethod
), h4:not
(.method
):not
(.type
):not
(.tymethod
) {
102 border-bottom: 1px solid
;
104 h3
.impl
, h3
.method
, h4
.method
, h3
.type
, h4
.type
{
109 h3
.impl
, h3
.method
, h3
.type
{
112 h1
, h2
, h3
, h4
, .sidebar
, a
.source
, .search-input
, .content
table :not
(code
)>a
, .collapse-toggle
{
113 font-family: "Fira Sans", "Helvetica Neue", Helvetica
, Arial
, sans-serif
;
119 ul ul
, ol ul
, ul ol
, ol ol
{
128 font-family: "Source Code Pro", Menlo
, Monaco
, Consolas
, "DejaVu Sans Mono", Inconsolata
, monospace
;
129 white-space: pre-wrap
;
160 text-transform: uppercase
;
171 .content, nav { max-width: 960px; }
173 /* Everything else */
175 .js-only, .hidden { display: none
!important
; }
187 margin: 30px 0 20px 0;
191 .location a:first-child { font-weight: 500; }
197 .block h2, .block h3 {
202 .block ul, .block li {
210 text-overflow: ellipsis
;
216 transition: border
500ms ease-out
;
223 .content.source pre.rust {
228 .content pre.line-numbers {
233 -webkit-user-select: none
;
234 -moz-user-select: none
;
235 -ms-user-select: none
;
238 .line-numbers span { cursor: pointer
; }
244 .docblock.short.nowrap {
248 text-overflow: ellipsis
;
253 text-overflow: ellipsis
;
256 .docblock.short code { white-space: nowrap
; }
258 .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
259 border-bottom: 1px solid
;
262 .docblock h1 { font-size: 1.3em; }
263 .docblock h2 { font-size: 1.15em; }
264 .docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
266 .content .out-of-band {
272 display: inline-block
;
279 display: inline-block
;
283 border-spacing: 0 5px;
284 border-collapse: separate
;
286 .content td { vertical-align: top
; }
287 .content td:first-child { padding-right: 20px; }
288 .content td p:first-child { margin-top: 0; }
289 .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
294 border-collapse: collapse
;
300 border-top: 1px dashed
;
301 border-bottom: 1px dashed
;
307 border-top: 1px solid
;
308 border-bottom: 1px solid
;
311 .content .item-list {
312 list-style-type: none
;
316 .content .item-list li { margin-bottom: 3px; }
318 .content .multi-column {
319 -moz-column-count: 5;
320 -moz-column-gap: 2.5em;
321 -webkit-column-count: 5;
322 -webkit-column-gap: 2.5em;
326 .content .multi-column li { width: 100%; display: inline-block
; }
332 /* Shift "where ..." part of method or fn definition down a line */
333 .content .method .where, .content .fn .where { display: block
; }
334 /* Bit of whitespace to indent it */
335 .content .method .where::before, .content .fn .where::before { content: ' '; }
337 .content .methods > div { margin-left: 40px; }
339 .content .impl-items .docblock, .content .impl-items .stability {
342 .content .impl-items .method, .content .impl-items > .type {
346 .content .stability code {
351 border-bottom: 1px solid
;
352 padding-bottom: 10px;
360 border-top: 1px solid
;
361 border-bottom: 1px solid
;
363 nav
.main
.separator
{
365 display: inline-block
;
369 nav
.sum
{ text-align: right
; }
370 nav
.sub form
{ display: inline
; }
377 text-decoration: none
;
378 background: transparent
;
381 .docblock a:hover, .stability a {
382 text-decoration: underline
;
385 .content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
386 .content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
387 .content a.type { color: #e57300; }
388 .content a.macro { color: #068000; }
389 .block a.current.crate { font-weight: 500; }
393 /* Override Normalize.css: we have margins and do
394 not want to overflow - the `moz` attribute is necessary
395 until Firefox 29, too early to drop at this point */
396 -moz-box-sizing: border-box
!important
;
397 box-sizing: border-box
!important
;
404 transition: border-color
300ms ease
;
405 transition: border-radius
300ms ease-in-out
;
406 transition: box-shadow
300ms ease-in-out
;
409 .search-input:focus {
410 border-color: #66afe9;
414 box-shadow: 0 0 8px #078dd8;
417 .search-results .desc {
419 text-overflow: ellipsis
;
428 .content .search-results td:first-child { padding-right: 0; }
429 .content .search-results td:first-child a { padding-right: 10px; }
431 tr
.result span
.primitive::after
{ content: ' (primitive type)'; font-style: italic
; }
433 body
.blur
> :not
(#help
) {
435 -webkit-filter: blur
(8px);
446 justify-content: center
;
452 box-shadow: 0 0 6px rgba
(0,0,0,.2);
455 border: 1px solid
#bfbfbf;
460 border: 1px solid
#bfbfbf;
468 #help dd
{ margin: 5px 33px; }
469 #help .infos
{ padding-left: 0; }
470 #help h1
, #help h2
{ margin-top: 0; }
478 display: inline-block
;
494 background: inherit
!important
;
497 .module-item.unstable {
512 .variants_table tbody tr td:first-child {
513 width: 1%; /* make the variant name as small as possible */
524 .line-numbers :target { background-color: transparent
; }
526 /* Code highlighting */
527 pre
.rust
.kw
{ color: #8959A8; }
528 pre
.rust
.kw-2
, pre
.rust
.prelude-ty
{ color: #4271AE; }
529 pre
.rust
.number
, pre
.rust
.string
{ color: #718C00; }
530 pre
.rust
.self
, pre
.rust
.boolval
, pre
.rust
.prelude-val
,
531 pre
.rust
.attribute
, pre
.rust
.attribute
.ident
{ color: #C82829; }
532 pre
.rust
.macro
, pre
.rust
.macro-nonterminal
{ color: #3E999F; }
533 pre
.rust
.lifetime
{ color: #B76514; }
535 .rusttest { display: none
; }
536 pre
.rust
{ position: relative
; }
538 display: inline-block
;
540 background-color: #4e8bca;
541 padding: 5px 10px 5px 10px;
548 .methods .section-header {
549 /* Override parent class attributes. */
550 border-bottom: none
!important
;
551 font-size: 1.1em !important
;
556 .section-header:hover a:after {
557 content: '\2002\00a7\2002';
560 .section-header:hover a {
561 text-decoration: none
;
576 .toggle-wrapper > .collapse-toggle {
585 .toggle-wrapper.collapsed {
587 transition: height
.2s;
590 .collapse-toggle > .inner {
591 display: inline-block
;
604 @media (max-width: 700px) {
621 padding: 3px 10px 1px 10px;
628 .sidebar .location:empty {
655 .content .out-of-band {
659 .toggle-wrapper > .collapse-toggle {
669 nav
.sub
, .content
.out-of-band
, .collapse-toggle
{