2015-06-12 04:43:58 -05: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.
|
|
|
|
*/
|
|
|
|
|
2015-01-09 07:54:18 -06:00
|
|
|
@import url("../rust.css");
|
2014-12-02 08:20:48 -06:00
|
|
|
|
|
|
|
body {
|
|
|
|
max-width:none;
|
2015-06-11 05:48:10 -05:00
|
|
|
font: 16px/1.4 'Open Sans', 'Source Serif Pro', Georgia, Times, 'Times New Roman', serif;
|
|
|
|
line-height: 1.6;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-family: 'Open Sans', 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #333;
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
2015-02-05 03:21:06 -06:00
|
|
|
@media only screen {
|
|
|
|
#toc {
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
2015-06-11 05:48:10 -05:00
|
|
|
width: 300px;
|
2015-02-05 03:21:06 -06:00
|
|
|
overflow-y: auto;
|
|
|
|
border-right: 1px solid rgba(0, 0, 0, 0.07);
|
|
|
|
padding: 10px 10px;
|
2015-06-11 05:48:10 -05:00
|
|
|
font-size: 14px;
|
2015-02-05 03:21:06 -06:00
|
|
|
box-sizing: border-box;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2015-06-11 05:48:10 -05:00
|
|
|
background-color: #fafafa;
|
|
|
|
color: #364149;
|
2015-02-05 03:21:06 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#page-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
overflow-y: auto;
|
2015-06-11 05:48:10 -05:00
|
|
|
left: 310px;
|
2015-02-05 03:21:06 -06:00
|
|
|
right: 0px;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background: none repeat scroll 0% 0% #FFF;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
2015-02-05 03:21:06 -06:00
|
|
|
@media only print {
|
2015-06-12 04:32:25 -05:00
|
|
|
#toc, #nav, #menu-bar {
|
2015-02-05 03:21:06 -06:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1060px) {
|
|
|
|
#toc {
|
|
|
|
width: 100%;
|
|
|
|
margin-right: 0;
|
|
|
|
top: 40px;
|
|
|
|
}
|
|
|
|
#page-wrapper {
|
|
|
|
top: 40px;
|
|
|
|
left: 15px;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
|
|
|
.mobile-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right:auto;
|
2015-01-12 18:51:31 -06:00
|
|
|
max-width: 750px;
|
2015-01-21 20:53:43 -06:00
|
|
|
padding-bottom: 50px;
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.chapter {
|
|
|
|
list-style: none outside none;
|
|
|
|
padding-left: 0px;
|
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
list-style: none outside none;
|
|
|
|
padding-left: 20px;
|
2015-06-11 05:48:10 -05:00
|
|
|
line-height: 40px;
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.section li {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter li a {
|
2015-06-11 05:48:10 -05:00
|
|
|
color: #333;
|
|
|
|
padding: 5px 0;
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
2015-01-12 18:51:31 -06:00
|
|
|
|
2015-05-17 16:05:23 -05:00
|
|
|
.chapter li a.active {
|
2015-06-11 05:48:10 -05:00
|
|
|
color: #008cff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter li a:hover {
|
|
|
|
color: #008cff;
|
|
|
|
text-decoration: none;
|
2015-05-17 16:05:23 -05:00
|
|
|
}
|
|
|
|
|
2015-01-12 18:51:31 -06:00
|
|
|
#toggle-nav {
|
|
|
|
height: 20px;
|
|
|
|
width: 30px;
|
|
|
|
padding: 3px 3px 0 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toggle-nav {
|
|
|
|
margin-top: 5px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
background-color: #FFF;
|
|
|
|
border: 1px solid #666;
|
|
|
|
border-radius: 3px 3px 3px 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sr-only {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
margin: -1px;
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bar {
|
|
|
|
display: block;
|
|
|
|
background-color: #000;
|
|
|
|
border-radius: 2px;
|
|
|
|
width: 100%;
|
|
|
|
height: 2px;
|
|
|
|
margin: 2px 0 3px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-06-11 05:48:10 -05:00
|
|
|
pre {
|
|
|
|
padding: 16px;
|
|
|
|
overflow: auto;
|
|
|
|
font-size: 85%;
|
|
|
|
line-height: 1.45;
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
2015-06-11 14:50:34 -05:00
|
|
|
.nav-previous-next {
|
|
|
|
margin-top: 60px;
|
|
|
|
}
|
|
|
|
|
2015-01-21 20:53:43 -06:00
|
|
|
.left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
float: right;
|
|
|
|
}
|