11/**
2- * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+ * Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
33 * file at the top-level directory of this distribution and at
44 * http://rust-lang.org/COPYRIGHT.
55 *
1010 * except according to those terms.
1111 */
1212
13- @import url (" ../rust.css" );
13+ @import url (' ../rust.css' );
1414
1515body {
16- max-width : none;
17- font : 16 px/1.4 'Source Serif Pro' , Georgia, Times, 'Times New Roman' , serif;
18- line-height : 1.6 ;
16+ max-width : none;
17+ font : 16 px/1.6 'Source Serif Pro' , Georgia, Times, 'Times New Roman' , serif;
1918 color : # 333 ;
2019}
2120
@@ -28,68 +27,64 @@ h1, h2, h3, h4, h5, h6 {
2827@media only screen {
2928 # toc {
3029 position : fixed;
31- left : 0 px ;
32- top : 0 px ;
33- bottom : 0 px ;
30+ top : 0 ;
31+ left : 0 ;
32+ bottom : 0 ;
3433 width : 300px ;
3534 overflow-y : auto;
36- border-right : 1px solid rgba ( 0 , 0 , 0 , 0.07 ) ;
37- padding : 10 px 10 px ;
35+ border-right : 1px solid # e8e8e8 ;
36+ padding : 0 15 px ;
3837 font-size : 14px ;
39- box-sizing : border-box;
40- -webkit-overflow-scrolling : touch;
4138 background-color : # fafafa ;
42- color : # 364149 ;
39+ -webkit-overflow-scrolling : touch ;
4340 }
4441
4542 # page-wrapper {
4643 position : absolute;
47- left : 310px ;
48- right : 0px ;
49- top : 0px ;
50- box-sizing : border-box;
51- background : none repeat scroll 0% 0% # FFF ;
44+ top : 0 ;
45+ left : 300px ;
46+ right : 0 ;
47+ padding : 0 15px ;
5248 -webkit-overflow-scrolling : touch;
5349 }
5450}
5551
5652@media only print {
57- # toc , # nav , # menu-bar {
53+ # toc , # nav {
5854 display : none;
5955 }
6056}
6157
6258@media only screen and (max-width : 1060px ) {
6359 # toc {
6460 width : 100% ;
65- margin-right : 0 ;
6661 top : 40px ;
6762 }
63+
6864 # page-wrapper {
6965 top : 40px ;
70- left : 15px ;
71- padding-right : 15px ;
66+ left : 0 ;
7267 }
68+
7369 .mobile-hidden {
7470 display : none;
7571 }
7672}
7773
7874# page {
79- margin-left : auto;
80- margin-right : auto;
75+ margin : 0 auto;
8176 max-width : 750px ;
8277 padding-bottom : 50px ;
8378}
8479
8580.chapter {
86- list-style : none outside none ;
87- padding-left : 0 px ;
81+ list-style : none;
82+ padding-left : 0 ;
8883 line-height : 30px ;
8984}
9085
9186.section {
92- list-style : none outside none ;
87+ list-style : none;
9388 padding-left : 20px ;
9489 line-height : 40px ;
9590}
@@ -105,28 +100,21 @@ h1, h2, h3, h4, h5, h6 {
105100 padding : 5px 0 ;
106101}
107102
108- .chapter li a .active {
109- color : # 008cff ;
110- }
111-
103+ .chapter li a .active ,
112104.chapter li a : hover {
113105 color : # 008cff ;
114106 text-decoration : none;
115107}
116108
117109# toggle-nav {
118- height : 20px ;
119- width : 30px ;
120- padding : 3px 3px 0 3px ;
121- }
122-
123- # toggle-nav {
110+ cursor : pointer;
124111 margin-top : 5px ;
125112 width : 30px ;
126113 height : 30px ;
127- background-color : # FFF ;
114+ background-color : # fff ;
128115 border : 1px solid # 666 ;
129- border-radius : 3px 3px 3px 3px ;
116+ border-radius : 3px ;
117+ padding : 3px 3px 0 3px ;
130118}
131119
132120.sr-only {
@@ -160,10 +148,6 @@ pre {
160148 border-radius : 3px ;
161149}
162150
163- .nav-previous-next {
164- margin-top : 60px ;
165- }
166-
167151.left {
168152 float : left;
169153}
0 commit comments