2013-10-14 14:36:23 -05:00
|
|
|
/**
|
2014-12-11 01:40:44 -06:00
|
|
|
* Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
|
2013-10-14 14:36:23 -05:00
|
|
|
* file at the top-level directory of this distribution and at
|
|
|
|
* http://rust-lang.org/COPYRIGHT.
|
2013-11-11 08:26:22 -06:00
|
|
|
* With elements taken from Bootstrap v3.0.2 (MIT licensed).
|
2013-10-14 14:36:23 -05:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2014-04-12 14:06:02 -05:00
|
|
|
@font-face {
|
|
|
|
font-family: 'Fira Sans';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
2014-04-25 03:05:52 -05:00
|
|
|
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Fira Sans';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 500;
|
2014-04-25 03:05:52 -05:00
|
|
|
src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
|
|
|
@font-face {
|
2014-07-08 12:51:06 -05:00
|
|
|
font-family: 'Source Serif Pro';
|
2014-04-12 14:06:02 -05:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
2014-07-08 12:51:06 -05:00
|
|
|
src: local('Source Serif Pro'), url("SourceSerifPro-Regular.woff") format('woff');
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
|
|
|
@font-face {
|
2014-07-08 12:51:06 -05:00
|
|
|
font-family: 'Source Serif Pro';
|
2014-04-12 14:06:02 -05:00
|
|
|
font-style: italic;
|
|
|
|
font-weight: 400;
|
2014-07-08 12:51:06 -05:00
|
|
|
src: url("Heuristica-Italic.woff") format('woff');
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
|
|
|
@font-face {
|
2014-07-08 12:51:06 -05:00
|
|
|
font-family: 'Source Serif Pro';
|
2014-04-12 14:06:02 -05:00
|
|
|
font-style: normal;
|
|
|
|
font-weight: 700;
|
2014-07-08 12:51:06 -05:00
|
|
|
src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.woff") format('woff');
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
2014-07-08 13:26:23 -05:00
|
|
|
@font-face {
|
|
|
|
font-family: 'Source Code Pro';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
src: local('Source Code Pro'), url("SourceCodePro-Regular.woff") format('woff');
|
|
|
|
}
|
2014-04-25 02:56:55 -05:00
|
|
|
|
2014-04-25 03:34:32 -05:00
|
|
|
*:not(body) {
|
2014-04-25 02:56:55 -05:00
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* General structure */
|
|
|
|
|
2012-01-18 02:58:08 -06:00
|
|
|
body {
|
2015-02-23 17:04:51 -06:00
|
|
|
background-color: white;
|
2013-12-07 10:42:00 -06:00
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0 15px;
|
2015-02-09 14:07:47 -06:00
|
|
|
font-family: "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 18px;
|
2013-12-07 10:42:00 -06:00
|
|
|
color: #333;
|
|
|
|
line-height: 1.428571429;
|
2014-10-31 18:16:48 -05:00
|
|
|
|
|
|
|
-webkit-font-feature-settings: "kern", "liga";
|
|
|
|
-moz-font-feature-settings: "kern", "liga";
|
|
|
|
font-feature-settings: "kern", "liga";
|
2012-01-18 02:58:08 -06:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
@media (min-width: 768px) {
|
2013-12-07 10:42:00 -06:00
|
|
|
body {
|
|
|
|
max-width: 750px;
|
|
|
|
}
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
|
|
|
|
2014-04-12 14:06:02 -05:00
|
|
|
h1, h2, h3, h4, h5, h6, nav, #versioninfo {
|
|
|
|
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2013-12-07 10:42:00 -06:00
|
|
|
color: black;
|
2014-04-12 14:06:02 -05:00
|
|
|
font-weight: 400;
|
2013-12-07 10:42:00 -06:00
|
|
|
line-height: 1.1;
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
h1, h2, h3 {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-top: 20px;
|
2014-04-17 21:08:34 -05:00
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 20px;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
h4, h5, h6 {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 10px;
|
2014-04-12 14:06:02 -05:00
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
|
|
|
h5, h6 {
|
2013-12-07 10:42:00 -06:00
|
|
|
text-decoration: underline;
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
|
|
|
|
2013-10-14 14:36:23 -05:00
|
|
|
h1 {
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 28px;
|
|
|
|
font-weight: 500;
|
2013-12-07 10:42:00 -06:00
|
|
|
padding: .1em .4em;
|
|
|
|
border-bottom: 2px solid #ddd;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
h1.title {
|
2013-12-07 10:42:00 -06:00
|
|
|
line-height: 1.5em;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
h2 {
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 26px;
|
2013-12-07 10:42:00 -06:00
|
|
|
padding: .2em .5em;
|
|
|
|
border-bottom: 1px solid #ddd;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
h3 {
|
2013-12-07 10:42:00 -06:00
|
|
|
font-size: 24px;
|
|
|
|
padding: .2em .7em;
|
|
|
|
border-bottom: 1px solid #DDE8FC;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
2013-06-11 19:43:26 -05:00
|
|
|
h4 {
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 22px;
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
h5 {
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 20px;
|
2012-09-30 23:35:32 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
h6 {
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
|
|
h1 {
|
|
|
|
font-size: 36px;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 30px;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 26px;
|
|
|
|
}
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
|
|
|
|
2014-04-12 14:06:02 -05:00
|
|
|
nav {
|
|
|
|
column-count: 2;
|
|
|
|
-moz-column-count: 2;
|
|
|
|
-webkit-column-count: 2;
|
|
|
|
font-size: 15px;
|
2014-07-03 17:14:15 -05:00
|
|
|
margin: 0 0 1em 0;
|
2014-04-12 14:06:02 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
p {
|
2014-04-12 14:06:02 -05:00
|
|
|
margin: 0 0 1em 0;
|
2012-01-18 02:58:08 -06:00
|
|
|
}
|
|
|
|
|
2014-03-09 06:29:25 -05:00
|
|
|
strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2014-02-07 13:46:39 -06:00
|
|
|
footer {
|
|
|
|
border-top: 1px solid #ddd;
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 14.3px;
|
2014-02-07 13:46:39 -06:00
|
|
|
font-style: italic;
|
2014-04-12 14:06:02 -05:00
|
|
|
padding-top: 5px;
|
|
|
|
margin-top: 3em;
|
2014-02-07 13:46:39 -06:00
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2014-04-25 02:56:55 -05:00
|
|
|
/* Links layout */
|
|
|
|
|
2013-10-14 14:36:23 -05:00
|
|
|
a {
|
2013-12-07 10:42:00 -06:00
|
|
|
text-decoration: none;
|
|
|
|
color: #428BCA;
|
|
|
|
background: transparent;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
a:hover, a:focus {
|
2013-12-07 10:42:00 -06:00
|
|
|
color: #2A6496;
|
|
|
|
text-decoration: underline;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
a:focus {
|
2013-12-07 10:42:00 -06:00
|
|
|
outline: thin dotted #333;
|
|
|
|
outline: 5px auto -webkit-focus-ring-color;
|
|
|
|
outline-offset: -2px;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
a:hover, a:active {
|
2013-12-07 10:42:00 -06:00
|
|
|
outline: 0;
|
2012-01-18 02:58:08 -06:00
|
|
|
}
|
2012-01-19 05:51:20 -06:00
|
|
|
|
|
|
|
h1 a:link, h1 a:visited, h2 a:link, h2 a:visited,
|
2013-10-14 14:36:23 -05:00
|
|
|
h3 a:link, h3 a:visited, h4 a:link, h4 a:visited,
|
|
|
|
h5 a:link, h5 a:visited {color: black;}
|
2014-03-09 06:29:25 -05:00
|
|
|
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover,
|
|
|
|
h5 a:hover {text-decoration: none;}
|
2013-10-14 14:36:23 -05:00
|
|
|
|
2014-04-25 02:56:55 -05:00
|
|
|
/* Code */
|
|
|
|
|
2013-10-14 14:36:23 -05:00
|
|
|
pre, code {
|
2014-04-25 02:56:55 -05:00
|
|
|
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
|
2015-01-13 22:15:09 -06:00
|
|
|
word-wrap: break-word;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
pre {
|
2014-04-25 02:56:55 -05:00
|
|
|
border-left: 2px solid #eee;
|
2013-12-07 10:42:00 -06:00
|
|
|
white-space: pre-wrap;
|
2014-04-25 02:56:55 -05:00
|
|
|
padding: 14px;
|
|
|
|
padding-right: 0;
|
2014-04-12 14:06:02 -05:00
|
|
|
margin: 20px 0;
|
2013-12-07 10:42:00 -06:00
|
|
|
font-size: 13px;
|
|
|
|
word-break: break-all;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
code {
|
2014-04-12 14:06:02 -05:00
|
|
|
padding: 0 2px;
|
|
|
|
color: #8D1A38;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
pre code {
|
2013-12-07 10:42:00 -06:00
|
|
|
padding: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
color: inherit;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
2012-01-19 05:51:20 -06:00
|
|
|
|
2014-09-04 12:13:18 -05:00
|
|
|
a > code {
|
|
|
|
color: #428BCA;
|
|
|
|
}
|
|
|
|
|
2012-01-19 05:51:20 -06:00
|
|
|
/* Code highlighting */
|
2014-03-08 08:41:31 -06:00
|
|
|
pre.rust .kw { color: #8959A8; }
|
|
|
|
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }
|
2014-03-09 06:29:25 -05: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-08 08:41:31 -06:00
|
|
|
pre.rust .comment { color: #8E908C; }
|
|
|
|
pre.rust .doccomment { color: #4D4D4C; }
|
2014-03-09 06:29:25 -05:00
|
|
|
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
|
|
|
|
pre.rust .lifetime { color: #B76514; }
|
|
|
|
|
2014-04-25 02:56:55 -05:00
|
|
|
/* The rest */
|
2012-06-09 18:37:41 -05:00
|
|
|
|
2012-07-17 18:15:37 -05:00
|
|
|
#versioninfo {
|
2013-12-07 10:42:00 -06:00
|
|
|
text-align: center;
|
|
|
|
margin: 0.5em;
|
|
|
|
font-size: 1.1em;
|
2013-10-11 13:08:52 -05:00
|
|
|
}
|
2014-04-25 03:34:32 -05:00
|
|
|
@media (min-width: 992px) {
|
2013-12-07 10:42:00 -06:00
|
|
|
#versioninfo {
|
2014-04-25 02:56:55 -05:00
|
|
|
font-size: 0.8em;
|
2013-12-07 10:42:00 -06:00
|
|
|
position: fixed;
|
|
|
|
bottom: 0px;
|
|
|
|
right: 0px;
|
|
|
|
}
|
|
|
|
.white-sticker {
|
|
|
|
background-color: #fff;
|
|
|
|
margin: 2px;
|
|
|
|
padding: 0 2px;
|
2014-04-25 03:34:32 -05:00
|
|
|
border-radius: .2em;
|
2013-12-07 10:42:00 -06:00
|
|
|
}
|
2013-10-11 13:08:52 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
#versioninfo a.hash {
|
2013-12-07 10:42:00 -06:00
|
|
|
color: gray;
|
2014-04-12 14:06:02 -05:00
|
|
|
font-size: 80%;
|
2012-07-17 18:15:37 -05:00
|
|
|
}
|
|
|
|
|
2012-07-07 17:51:11 -05:00
|
|
|
blockquote {
|
2014-04-25 02:56:55 -05:00
|
|
|
color: #000;
|
|
|
|
margin: 20px 0;
|
|
|
|
padding: 15px 20px;
|
|
|
|
background-color: #f2f7f9;
|
|
|
|
border-top: .1em solid #e5eef2;
|
|
|
|
border-bottom: .1em solid #e5eef2;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
blockquote p {
|
2013-12-07 10:42:00 -06:00
|
|
|
font-size: 17px;
|
|
|
|
font-weight: 300;
|
2014-04-17 21:08:34 -05:00
|
|
|
line-height: 1.4;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
blockquote p:last-child {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-bottom: 0;
|
2012-09-22 23:14:58 -05:00
|
|
|
}
|
2012-09-25 17:03:20 -05:00
|
|
|
|
2014-04-17 21:08:34 -05:00
|
|
|
ul, ol {
|
|
|
|
padding-left: 25px;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
2014-04-17 21:08:34 -05:00
|
|
|
ul ul, ol ul, ul ol, ol ol {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-bottom: 0;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
dl {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-bottom: 20px;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
dd {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-left: 0;
|
2012-09-25 17:03:20 -05:00
|
|
|
}
|
2012-09-30 23:35:32 -05:00
|
|
|
|
2014-04-12 14:06:02 -05:00
|
|
|
nav ul {
|
2013-12-07 10:42:00 -06:00
|
|
|
list-style-type: none;
|
2014-07-03 17:14:15 -05:00
|
|
|
margin: 0;
|
2013-12-07 10:42:00 -06:00
|
|
|
padding-left: 0px;
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
2013-12-22 20:21:45 -06:00
|
|
|
|
2013-12-15 09:19:13 -06:00
|
|
|
/* Only display one level of hierarchy in the TOC */
|
2014-04-12 14:06:02 -05:00
|
|
|
nav ul ul {
|
2013-12-15 09:19:13 -06:00
|
|
|
display: none;
|
|
|
|
}
|
2013-06-11 19:43:26 -05:00
|
|
|
|
2013-10-14 14:36:23 -05:00
|
|
|
sub,
|
|
|
|
sup {
|
2013-12-07 10:42:00 -06:00
|
|
|
font-size: 75%;
|
|
|
|
line-height: 0;
|
|
|
|
position: relative;
|
2013-06-11 19:43:26 -05:00
|
|
|
}
|
2013-10-14 14:36:23 -05:00
|
|
|
|
|
|
|
hr {
|
2013-12-07 10:42:00 -06:00
|
|
|
margin-top: 20px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
border: 0;
|
|
|
|
border-top: 1px solid #eeeeee;
|
2013-10-14 14:36:23 -05:00
|
|
|
}
|
|
|
|
|
2013-12-22 20:21:45 -06:00
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
2015-01-13 22:15:09 -06:00
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
2013-12-22 20:21:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
table tr.odd {
|
|
|
|
background: #eee;
|
|
|
|
}
|
|
|
|
|
|
|
|
table td,
|
|
|
|
table th {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
2014-06-06 11:12:18 -05:00
|
|
|
/* Code snippets */
|
|
|
|
|
|
|
|
.rusttest { display: none; }
|
|
|
|
pre.rust { position: relative; }
|
|
|
|
.test-arrow {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 10px;
|
|
|
|
font-size: 150%;
|
2014-08-01 02:45:53 -05:00
|
|
|
-webkit-transform: scaleX(-1);
|
|
|
|
transform: scaleX(-1);
|
2014-06-06 11:12:18 -05:00
|
|
|
}
|
|
|
|
|
2014-09-26 14:52:37 -05:00
|
|
|
.unstable-feature {
|
|
|
|
border: 2px solid red;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
2014-04-25 02:56:55 -05:00
|
|
|
@media (min-width: 1170px) {
|
|
|
|
pre {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-10-14 14:36:23 -05:00
|
|
|
@media print {
|
2013-12-07 10:42:00 -06:00
|
|
|
* {
|
|
|
|
text-shadow: none !important;
|
|
|
|
color: #000 !important;
|
|
|
|
background: transparent !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
a, a:visited {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2014-03-09 06:29:25 -05:00
|
|
|
p a[href]:after {
|
2013-12-07 10:42:00 -06:00
|
|
|
content: " (" attr(href) ")";
|
|
|
|
}
|
2014-03-09 06:29:25 -05:00
|
|
|
footer a[href]:after {
|
|
|
|
content: "";
|
|
|
|
}
|
2013-12-07 10:42:00 -06:00
|
|
|
a[href^="javascript:"]:after, a[href^="#"]:after {
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
pre, blockquote {
|
|
|
|
border: 1px solid #999;
|
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
@page {
|
|
|
|
margin: 2cm .5cm;
|
|
|
|
}
|
2014-03-09 06:29:25 -05:00
|
|
|
h1:not(.title), h2, h3 {
|
|
|
|
border-bottom: 0px none;
|
|
|
|
}
|
2013-12-07 10:42:00 -06:00
|
|
|
p, h2, h3 {
|
|
|
|
orphans: 3;
|
|
|
|
widows: 3;
|
|
|
|
}
|
|
|
|
h2, h3 {
|
|
|
|
page-break-after: avoid;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
border-collapse: collapse !important;
|
|
|
|
}
|
|
|
|
table td, table th {
|
|
|
|
background-color: #fff !important;
|
|
|
|
}
|
2013-11-11 08:26:22 -06:00
|
|
|
}
|
2014-10-07 14:01:26 -05:00
|
|
|
|
2014-10-12 03:16:43 -05:00
|
|
|
#keyword-table-marker + table thead { display: none; }
|
|
|
|
#keyword-table-marker + table td { border: none; }
|
|
|
|
#keyword-table-marker + table {
|
|
|
|
margin-left: 2em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|