2013-09-18 22:18:38 -07:00
|
|
|
/**
|
|
|
|
* Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
* file at the top-level directory of this distribution and at
|
|
|
|
* http://rust-lang.org/COPYRIGHT.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
* <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
* option. This file may not be copied, modified, or distributed
|
|
|
|
* except according to those terms.
|
|
|
|
*/
|
|
|
|
@import "normalize.css";
|
|
|
|
|
|
|
|
* {
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2013-10-14 21:32:12 +02:00
|
|
|
/* General structure and fonts */
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
|
|
body {
|
2014-03-20 19:05:22 +01:00
|
|
|
color: #333;
|
2013-10-14 21:32:12 +02:00
|
|
|
min-height: 100%;
|
|
|
|
min-width: 500px;
|
|
|
|
height: 100%;
|
2014-03-20 19:05:22 +01:00
|
|
|
font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
line-height: 150%;
|
2013-10-14 21:32:12 +02:00
|
|
|
position: relative;
|
|
|
|
height: auto;
|
|
|
|
padding-bottom: 20px;
|
2013-09-18 22:18:38 -07:00
|
|
|
}
|
|
|
|
|
2014-03-20 19:05:22 +01:00
|
|
|
h1, h2, h3, h4 {
|
|
|
|
color: black;
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 30px 0 20px 0;
|
|
|
|
padding-bottom: 15px;
|
2013-09-18 22:18:38 -07:00
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
h1.fqn {
|
|
|
|
border-bottom: 1px dashed #D5D5D5;
|
|
|
|
margin-top: 0;
|
2014-03-18 01:44:55 -06:00
|
|
|
}
|
|
|
|
h2, h3, h4 {
|
|
|
|
border-bottom: 1px solid #DDDDDD;
|
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
h2 code, h3 code, h4 code {
|
2014-03-18 01:44:55 -06:00
|
|
|
|
2014-03-20 19:05:22 +01:00
|
|
|
font-size: 1.2em;
|
2013-11-11 15:16:23 +01:00
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
|
2013-11-11 15:16:23 +01:00
|
|
|
code, pre {
|
2014-03-20 19:05:22 +01:00
|
|
|
font-family: "Inconsolata", Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
|
2013-11-11 15:16:23 +01:00
|
|
|
}
|
|
|
|
pre {
|
|
|
|
font-size: 15px;
|
2013-09-18 22:18:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
nav.sub {
|
2013-10-14 21:32:12 +02:00
|
|
|
padding-top: 10px;
|
|
|
|
font-size: 16px;
|
2013-09-18 22:18:38 -07:00
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
width: 200px;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content, nav { max-width: 960px; }
|
|
|
|
|
|
|
|
/* Everything else */
|
|
|
|
|
|
|
|
.js-only, .hidden { display: none; }
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
.sidebar img {
|
|
|
|
margin: 20px auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2014-03-18 01:44:55 -06:00
|
|
|
.sidebar .location {
|
|
|
|
font-size: 17px;
|
|
|
|
margin: 30px 0 20px 0;
|
|
|
|
background: #e1e1e1;
|
|
|
|
text-align: center;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.sidebar .block, pre { background: #fff; }
|
|
|
|
|
|
|
|
.block {
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
.block h2 {
|
|
|
|
margin-top: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2013-10-21 10:48:57 -07:00
|
|
|
.block a {
|
|
|
|
display: inline-block;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: 15px;
|
2014-03-20 19:05:22 +01:00
|
|
|
padding-left: 5px;
|
|
|
|
padding-bottom: 6px;
|
2014-03-18 01:44:55 -06:00
|
|
|
font-size: 14px;
|
|
|
|
transition: border 500ms ease-out;
|
|
|
|
}
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.content {
|
2014-03-20 19:05:22 +01:00
|
|
|
padding: 20px 40px;
|
2014-03-18 01:44:55 -06:00
|
|
|
}
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.content pre { padding: 20px; }
|
2013-10-02 19:32:52 +02:00
|
|
|
.content.source pre.rust {
|
|
|
|
white-space: pre;
|
|
|
|
overflow: auto;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2013-09-27 15:12:23 -07:00
|
|
|
.content pre.line-numbers { float: left; border: none; }
|
|
|
|
.line-numbers span { color: #c67e2d; }
|
2013-10-02 19:32:13 +02:00
|
|
|
.line-numbers .line-highlighted {
|
2014-03-09 12:29:25 +01:00
|
|
|
background-color: #f6fdb0;
|
2013-10-02 19:32:13 +02:00
|
|
|
}
|
2013-09-27 15:12:23 -07:00
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.content .highlighted {
|
|
|
|
cursor: pointer;
|
|
|
|
color: #000 !important;
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
|
|
|
.content .highlighted a { color: #000 !important; }
|
|
|
|
.content .highlighted.trait { background-color: #fece7e; }
|
|
|
|
.content .highlighted.mod { background-color: #afc6e4; }
|
|
|
|
.content .highlighted.enum { background-color: #b4d1b9; }
|
|
|
|
.content .highlighted.struct { background-color: #e7b1a0; }
|
|
|
|
.content .highlighted.fn { background-color: #c6afb3; }
|
|
|
|
|
|
|
|
.docblock.short.nowrap {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
.docblock.short p {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
|
|
|
|
margin-left: 0;
|
2014-03-18 01:44:55 -06:00
|
|
|
margin: 40px 0 10px 0;
|
|
|
|
padding-bottom: 10px;
|
2014-03-20 19:05:22 +01:00
|
|
|
border-bottom: 1px solid #DDD;
|
2013-09-18 22:18:38 -07:00
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
2014-03-20 19:05:22 +01:00
|
|
|
.docblock h1 { font-size: 1.3em; }
|
|
|
|
.docblock h2 { font-size: 1.15em; }
|
2013-09-18 22:18:38 -07:00
|
|
|
.docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
|
|
|
|
|
2014-03-18 01:44:55 -06:00
|
|
|
.content .source {
|
|
|
|
float: right;
|
2014-03-20 19:05:22 +01:00
|
|
|
font-weight: 500;
|
2014-03-18 01:44:55 -06:00
|
|
|
padding: 9px 15px;
|
|
|
|
}
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.content table {
|
|
|
|
border-spacing: 0 5px;
|
|
|
|
border-collapse: separate;
|
|
|
|
}
|
|
|
|
.content td { vertical-align: top; }
|
|
|
|
.content td:first-child { padding-right: 20px; }
|
|
|
|
.content td p:first-child { margin-top: 0; }
|
|
|
|
.content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
|
|
|
|
|
|
|
|
.content .item-list {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content .item-list li { margin-bottom: 3px; }
|
|
|
|
|
|
|
|
.content .multi-column {
|
|
|
|
-moz-column-count: 5;
|
|
|
|
-moz-column-gap: 2.5em;
|
|
|
|
-webkit-column-count: 5;
|
|
|
|
-webkit-column-gap: 2.5em;
|
|
|
|
column-count: 5;
|
|
|
|
column-gap: 2.5em;
|
|
|
|
}
|
|
|
|
.content .multi-column li { width: 100%; display: inline-block; }
|
|
|
|
|
|
|
|
.content .method { font-size: 1em; }
|
|
|
|
.content .methods { margin-left: 20px; }
|
|
|
|
.content .methods .docblock { margin-left: 20px; }
|
|
|
|
|
|
|
|
nav {
|
|
|
|
border-bottom: 1px solid #e0e0e0;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
nav.main {
|
|
|
|
padding: 20px 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
nav.main .current {
|
|
|
|
border-top: 1px solid #000;
|
|
|
|
border-bottom: 1px solid #000;
|
|
|
|
}
|
|
|
|
nav.main .separator {
|
|
|
|
border: 1px solid #000;
|
|
|
|
display: inline-block;
|
|
|
|
height: 23px;
|
|
|
|
margin: 0 20px;
|
|
|
|
}
|
|
|
|
nav.sum { text-align: right; }
|
|
|
|
nav.sub form { display: inline; }
|
|
|
|
|
|
|
|
nav, .content {
|
|
|
|
margin-left: 220px;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #000;
|
2013-11-11 15:26:22 +01:00
|
|
|
background: transparent;
|
2013-09-18 22:18:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.content a.trait, .block a.current.trait { color: #ed9603; }
|
|
|
|
.content a.mod, .block a.current.mod { color: #4d76ae; }
|
|
|
|
.content a.enum, .block a.current.enum { color: #5e9766; }
|
|
|
|
.content a.struct, .block a.current.struct { color: #e53700; }
|
|
|
|
.content a.fn, .block a.current.fn { color: #8c6067; }
|
2013-09-24 14:07:13 -07:00
|
|
|
.content .fnname { color: #8c6067; }
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
|
|
.search-input {
|
2014-03-20 19:05:22 +01:00
|
|
|
width: 100%;
|
|
|
|
/* Override Normalize.css: we have margins and do
|
|
|
|
not want to overflow - the `moz` attribute is necessary
|
|
|
|
until Firefox 29, too early to drop at this point */
|
|
|
|
-moz-box-sizing: border-box !important;
|
|
|
|
box-sizing: border-box !important;
|
2014-03-18 01:44:55 -06:00
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
border-radius: 1px;
|
2014-03-20 19:05:22 +01:00
|
|
|
color: #555;
|
|
|
|
margin-top: 5px;
|
2014-03-18 01:44:55 -06:00
|
|
|
padding: 10px 16px;
|
|
|
|
font-size: 17px;
|
2014-03-20 19:05:22 +01:00
|
|
|
font-weight: 300;
|
|
|
|
box-shadow: 0 0 0 1px #e0e0e0, 0 0 0 2px transparent;
|
2014-03-18 01:44:55 -06:00
|
|
|
transition: background-color 50ms linear;
|
|
|
|
transition: border 500ms ease-out;
|
|
|
|
transition: box-shadow 500ms ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input:focus {
|
|
|
|
border-color: #66afe9;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
box-shadow: 0 0 0 1px #078dd8, 0 0 0 2px #078dd8;
|
2013-10-14 21:32:12 +02:00
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
.search-results .desc {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#help {
|
|
|
|
background: #e9e9e9;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0 0 6px rgba(0,0,0,.2);
|
|
|
|
position: absolute;
|
|
|
|
top: 300px;
|
|
|
|
left: 50%;
|
|
|
|
margin-top: -125px;
|
|
|
|
margin-left: -275px;
|
|
|
|
width: 550px;
|
|
|
|
height: 250px;
|
|
|
|
border: 1px solid #bfbfbf;
|
|
|
|
}
|
|
|
|
|
|
|
|
#help dt {
|
|
|
|
float: left;
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid #bfbfbf;
|
|
|
|
background: #fff;
|
|
|
|
width: 23px;
|
|
|
|
text-align: center;
|
|
|
|
clear: left;
|
|
|
|
display: block;
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
|
|
|
#help dd { margin: 5px 33px; }
|
|
|
|
#help .infos { padding-left: 0; }
|
|
|
|
#help h1 { margin-top: 0; }
|
|
|
|
#help div {
|
|
|
|
width: 50%;
|
|
|
|
float: left;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
2013-09-26 12:53:06 -07:00
|
|
|
|
|
|
|
.stability {
|
2014-03-18 01:44:55 -06:00
|
|
|
border-left: 6px solid #000;
|
2013-09-26 12:53:06 -07:00
|
|
|
border-radius: 3px;
|
2014-03-20 19:05:22 +01:00
|
|
|
padding: 8px 3px 8px 10px;
|
2013-09-26 12:53:06 -07:00
|
|
|
text-transform: lowercase;
|
2014-03-18 01:44:55 -06:00
|
|
|
display: block;
|
|
|
|
margin-bottom: 20px;
|
2013-09-26 12:53:06 -07:00
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
2013-09-26 12:53:06 -07:00
|
|
|
.stability.Deprecated { border-color: #D60027; color: #880017; }
|
|
|
|
.stability.Experimental { border-color: #EC5315; color: #a53c0e; }
|
|
|
|
.stability.Unstable { border-color: #FFD700; color: #b39800; }
|
|
|
|
.stability.Stable { border-color: #AEC516; color: #7c8b10; }
|
|
|
|
.stability.Frozen { border-color: #009431; color: #007726; }
|
|
|
|
.stability.Locked { border-color: #0084B6; color: #00668c; }
|
2014-02-16 21:56:14 -08:00
|
|
|
|
|
|
|
:target { background: #FDFFD3; }
|
2014-02-20 01:14:51 -08:00
|
|
|
|
2014-03-02 12:04:50 +01:00
|
|
|
pre.rust, pre.line-numbers { background-color: #FDFDFD; }
|
|
|
|
|
2014-03-09 12:29:25 +01:00
|
|
|
/* Code highlighting */
|
2014-03-02 12:04:50 +01:00
|
|
|
pre.rust .kw { color: #8959A8; }
|
|
|
|
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
|
2014-03-09 12:29:25 +01:00
|
|
|
pre.rust .number, pre.rust .string { color: #718C00; }
|
|
|
|
pre.rust .self, pre.rust .boolval, pre.rust .prelude-val,
|
|
|
|
pre.rust .attribute, pre.rust .attribute .ident { color: #C82829; }
|
2014-03-02 12:04:50 +01:00
|
|
|
pre.rust .comment { color: #8E908C; }
|
|
|
|
pre.rust .doccomment { color: #4D4D4C; }
|
2014-03-09 12:29:25 +01:00
|
|
|
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
|
|
|
|
pre.rust .lifetime { color: #B76514; }
|
2014-03-04 11:24:20 -08:00
|
|
|
|
2014-03-12 23:09:03 +11:00
|
|
|
h1.section-link:hover a:after,
|
|
|
|
h2.section-link:hover a:after,
|
|
|
|
h3.section-link:hover a:after,
|
|
|
|
h4.section-link:hover a:after,
|
|
|
|
h5.section-link:hover a:after,
|
|
|
|
h6.section-link:hover a:after {
|
2014-03-08 01:24:54 +11:00
|
|
|
content: ' § ';
|
|
|
|
}
|
2014-03-19 16:33:03 -06:00
|
|
|
|
|
|
|
/** Media Queries **/
|
|
|
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
.sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
margin-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav.sub {
|
2014-03-20 19:05:22 +01:00
|
|
|
width: 85.5%;
|
2014-03-19 16:33:03 -06:00
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
}
|