2015-06-12 04:43:58 -05:00
|
|
|
/**
|
2015-09-24 23:23:14 -05:00
|
|
|
* Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
|
2015-06-12 04:43:58 -05:00
|
|
|
* 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-09-24 23:23:14 -05:00
|
|
|
@import url('../rust.css');
|
2014-12-02 08:20:48 -06:00
|
|
|
|
|
|
|
body {
|
2015-09-24 23:23:14 -05:00
|
|
|
max-width: none;
|
|
|
|
font: 16px/1.6 'Source Serif Pro', Georgia, Times, 'Times New Roman', serif;
|
2015-06-11 05:48:10 -05:00
|
|
|
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 {
|
2015-08-26 08:20:57 -05:00
|
|
|
position: fixed;
|
2015-09-24 23:23:14 -05:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2015-06-11 05:48:10 -05:00
|
|
|
width: 300px;
|
2015-02-05 03:21:06 -06:00
|
|
|
overflow-y: auto;
|
2015-09-24 23:23:14 -05:00
|
|
|
border-right: 1px solid #e8e8e8;
|
|
|
|
padding: 0 15px;
|
2015-06-11 05:48:10 -05:00
|
|
|
font-size: 14px;
|
|
|
|
background-color: #fafafa;
|
2015-09-24 23:23:14 -05:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2015-02-05 03:21:06 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#page-wrapper {
|
|
|
|
position: absolute;
|
2015-09-24 23:23:14 -05:00
|
|
|
top: 0;
|
|
|
|
left: 300px;
|
|
|
|
right: 0;
|
|
|
|
padding: 0 15px;
|
2015-02-05 03:21:06 -06:00
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
2015-02-05 03:21:06 -06:00
|
|
|
@media only print {
|
2015-09-24 23:23:14 -05:00
|
|
|
#toc, #nav {
|
2015-02-05 03:21:06 -06:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-24 23:36:30 -05:00
|
|
|
@media only screen and (max-width: 1023px) {
|
2015-02-05 03:21:06 -06:00
|
|
|
#toc {
|
|
|
|
width: 100%;
|
|
|
|
top: 40px;
|
|
|
|
}
|
2015-09-24 23:23:14 -05:00
|
|
|
|
2015-02-05 03:21:06 -06:00
|
|
|
#page-wrapper {
|
|
|
|
top: 40px;
|
2015-09-24 23:23:14 -05:00
|
|
|
left: 0;
|
2015-02-05 03:21:06 -06:00
|
|
|
}
|
2015-09-24 23:23:14 -05:00
|
|
|
|
2015-02-05 03:21:06 -06:00
|
|
|
.mobile-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2014-12-02 08:20:48 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
2015-09-24 23:23:14 -05:00
|
|
|
margin: 0 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 {
|
2015-09-24 23:23:14 -05:00
|
|
|
list-style: none;
|
|
|
|
padding-left: 0;
|
2014-12-02 08:20:48 -06:00
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
2015-09-24 23:23:14 -05:00
|
|
|
list-style: none;
|
2014-12-02 08:20:48 -06:00
|
|
|
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-09-24 23:23:14 -05:00
|
|
|
.chapter li a.active,
|
2015-06-11 05:48:10 -05:00
|
|
|
.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 {
|
2015-09-24 23:23:14 -05:00
|
|
|
cursor: pointer;
|
2015-01-12 18:51:31 -06:00
|
|
|
margin-top: 5px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
2015-09-24 23:23:14 -05:00
|
|
|
background-color: #fff;
|
2015-01-12 18:51:31 -06:00
|
|
|
border: 1px solid #666;
|
2015-09-24 23:23:14 -05:00
|
|
|
border-radius: 3px;
|
|
|
|
padding: 3px 3px 0 3px;
|
2015-01-12 18:51:31 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.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-01-21 20:53:43 -06:00
|
|
|
.left {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
float: right;
|
|
|
|
}
|