Skip to content

Commit c09bc5f

Browse files
committed
---
yaml --- r: 236588 b: refs/heads/tmp c: b68e916 h: refs/heads/master v: v3
1 parent cb545c0 commit c09bc5f

File tree

2 files changed

+28
-44
lines changed

2 files changed

+28
-44
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 9f770a753619322077690274b493c150a4c5a518
28+
refs/heads/tmp: b68e9162fe7422bba1b733d2cbbaf3ec1234fa1c
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/src/rustbook/static/rustbook.css

Lines changed: 27 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*
@@ -10,12 +10,11 @@
1010
* except according to those terms.
1111
*/
1212

13-
@import url("../rust.css");
13+
@import url('../rust.css');
1414

1515
body {
16-
max-width:none;
17-
font: 16px/1.4 'Source Serif Pro', Georgia, Times, 'Times New Roman', serif;
18-
line-height: 1.6;
16+
max-width: none;
17+
font: 16px/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: 0px;
32-
top: 0px;
33-
bottom: 0px;
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: 10px 10px;
35+
border-right: 1px solid #e8e8e8;
36+
padding: 0 15px;
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: 0px;
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

Comments
 (0)