1
1
/**
2
- * Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2
+ * Copyright 2013-2015 The Rust Project Developers. See the COPYRIGHT
3
3
* file at the top-level directory of this distribution and at
4
4
* http://rust-lang.org/COPYRIGHT.
5
5
*
10
10
* except according to those terms.
11
11
*/
12
12
13
- @import url (" ../rust.css" );
13
+ @import url (' ../rust.css' );
14
14
15
15
body {
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;
19
18
color : # 333 ;
20
19
}
21
20
@@ -28,68 +27,64 @@ h1, h2, h3, h4, h5, h6 {
28
27
@media only screen {
29
28
# toc {
30
29
position : fixed;
31
- left : 0 px ;
32
- top : 0 px ;
33
- bottom : 0 px ;
30
+ top : 0 ;
31
+ left : 0 ;
32
+ bottom : 0 ;
34
33
width : 300px ;
35
34
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 ;
38
37
font-size : 14px ;
39
- box-sizing : border-box;
40
- -webkit-overflow-scrolling : touch;
41
38
background-color : # fafafa ;
42
- color : # 364149 ;
39
+ -webkit-overflow-scrolling : touch ;
43
40
}
44
41
45
42
# page-wrapper {
46
43
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 ;
52
48
-webkit-overflow-scrolling : touch;
53
49
}
54
50
}
55
51
56
52
@media only print {
57
- # toc , # nav , # menu-bar {
53
+ # toc , # nav {
58
54
display : none;
59
55
}
60
56
}
61
57
62
58
@media only screen and (max-width : 1060px ) {
63
59
# toc {
64
60
width : 100% ;
65
- margin-right : 0 ;
66
61
top : 40px ;
67
62
}
63
+
68
64
# page-wrapper {
69
65
top : 40px ;
70
- left : 15px ;
71
- padding-right : 15px ;
66
+ left : 0 ;
72
67
}
68
+
73
69
.mobile-hidden {
74
70
display : none;
75
71
}
76
72
}
77
73
78
74
# page {
79
- margin-left : auto;
80
- margin-right : auto;
75
+ margin : 0 auto;
81
76
max-width : 750px ;
82
77
padding-bottom : 50px ;
83
78
}
84
79
85
80
.chapter {
86
- list-style : none outside none ;
87
- padding-left : 0 px ;
81
+ list-style : none;
82
+ padding-left : 0 ;
88
83
line-height : 30px ;
89
84
}
90
85
91
86
.section {
92
- list-style : none outside none ;
87
+ list-style : none;
93
88
padding-left : 20px ;
94
89
line-height : 40px ;
95
90
}
@@ -105,28 +100,21 @@ h1, h2, h3, h4, h5, h6 {
105
100
padding : 5px 0 ;
106
101
}
107
102
108
- .chapter li a .active {
109
- color : # 008cff ;
110
- }
111
-
103
+ .chapter li a .active ,
112
104
.chapter li a : hover {
113
105
color : # 008cff ;
114
106
text-decoration : none;
115
107
}
116
108
117
109
# toggle-nav {
118
- height : 20px ;
119
- width : 30px ;
120
- padding : 3px 3px 0 3px ;
121
- }
122
-
123
- # toggle-nav {
110
+ cursor : pointer;
124
111
margin-top : 5px ;
125
112
width : 30px ;
126
113
height : 30px ;
127
- background-color : # FFF ;
114
+ background-color : # fff ;
128
115
border : 1px solid # 666 ;
129
- border-radius : 3px 3px 3px 3px ;
116
+ border-radius : 3px ;
117
+ padding : 3px 3px 0 3px ;
130
118
}
131
119
132
120
.sr-only {
@@ -160,10 +148,6 @@ pre {
160
148
border-radius : 3px ;
161
149
}
162
150
163
- .nav-previous-next {
164
- margin-top : 60px ;
165
- }
166
-
167
151
.left {
168
152
float : left;
169
153
}
0 commit comments