14
14
font-family : 'Fira Sans' ;
15
15
font-style : normal;
16
16
font-weight : 400 ;
17
- src : local ('Fira Sans' ), url ("http://www.rust-lang.org/fonts/ FiraSans-Regular.woff" ) format ('woff' );
17
+ src : local ('Fira Sans' ), url ("FiraSans-Regular.woff" ) format ('woff' );
18
18
}
19
19
@font-face {
20
20
font-family : 'Fira Sans' ;
21
21
font-style : normal;
22
22
font-weight : 500 ;
23
- src : local ('Fira Sans Medium' ), url ("http://www.rust-lang.org/fonts/ FiraSans-Medium.woff" ) format ('woff' );
23
+ src : local ('Fira Sans Medium' ), url ("FiraSans-Medium.woff" ) format ('woff' );
24
24
}
25
25
@font-face {
26
26
font-family : 'Heuristica' ;
27
27
font-style : normal;
28
28
font-weight : 400 ;
29
- src : local ('Heuristica Regular' ), url ("http://www.rust-lang.org/fonts/ Heuristica-Regular.woff" ) format ('woff' );
29
+ src : local ('Heuristica Regular' ), url ("Heuristica-Regular.woff" ) format ('woff' );
30
30
}
31
31
@font-face {
32
32
font-family : 'Heuristica' ;
33
33
font-style : italic;
34
34
font-weight : 400 ;
35
- src : local ('Heuristica Italic' ), url ("http://www.rust-lang.org/fonts/ Heuristica-Italic.woff" ) format ('woff' );
35
+ src : local ('Heuristica Italic' ), url ("Heuristica-Italic.woff" ) format ('woff' );
36
36
}
37
37
@font-face {
38
38
font-family : 'Heuristica' ;
39
39
font-style : normal;
40
40
font-weight : 700 ;
41
- src : local ('Heuristica Bold' ), url ("http://www.rust-lang.org/fonts/ Heuristica-Bold.woff" ) format ('woff' );
41
+ src : local ('Heuristica Bold' ), url ("Heuristica-Bold.woff" ) format ('woff' );
42
42
}
43
- /* Global page semantics
44
- ========================================================================== */
43
+
44
+ * : not (body ) {
45
+ -webkit-box-sizing : border-box;
46
+ -moz-box-sizing : border-box;
47
+ box-sizing : border-box;
48
+ }
49
+
50
+ /* General structure */
51
+
45
52
body {
46
53
margin : 0 auto;
47
54
padding : 0 15px ;
@@ -71,16 +78,6 @@ h1, h2, h3 {
71
78
h1 {
72
79
margin-bottom : 20px ;
73
80
}
74
- @media (min-width : 1170px ) {
75
- h1 {
76
- margin-top : 40px ;
77
- margin-bottom : 30px ;
78
- }
79
- h1 , h2 , h3 {
80
- margin-top : 30px ;
81
- margin-bottom : 15px ;
82
- }
83
- }
84
81
h4 , h5 , h6 {
85
82
margin-top : 12px ;
86
83
margin-bottom : 10px ;
@@ -157,8 +154,8 @@ footer {
157
154
margin-bottom : 1em ;
158
155
}
159
156
160
- /* Links layout
161
- ========================================================================== */
157
+ /* Links layout */
158
+
162
159
a {
163
160
text-decoration : none;
164
161
color : # 428BCA ;
@@ -183,18 +180,16 @@ h5 a:link, h5 a:visited {color: black;}
183
180
h1 a : hover , h2 a : hover , h3 a : hover , h4 a : hover ,
184
181
h5 a : hover {text-decoration : none;}
185
182
186
- /* Code
187
- ========================================================================== */
183
+ /* Code */
184
+
188
185
pre , code {
189
- font-family : Menlo, Monaco, Consolas, "DejaVu Sans Mono" , monospace;
190
- border-radius : 4px ;
186
+ font-family : "Source Code Pro" , Menlo, Monaco, Consolas, "DejaVu Sans Mono" , monospace;
191
187
}
192
188
pre {
193
- background-color : # FDFDFD ;
194
- border : 1px solid # CCC ;
195
- border-radius : 0.5em ;
189
+ border-left : 2px solid # eee ;
196
190
white-space : pre-wrap;
197
- padding : 9.5px ;
191
+ padding : 14px ;
192
+ padding-right : 0 ;
198
193
margin : 20px 0 ;
199
194
font-size : 13px ;
200
195
word-break : break-all;
@@ -203,15 +198,12 @@ pre {
203
198
code {
204
199
padding : 0 2px ;
205
200
color : # 8D1A38 ;
206
- white-space : nowrap ;
201
+ white-space : pre-wrap ;
207
202
}
208
203
pre code {
209
204
padding : 0 ;
210
205
font-size : inherit;
211
206
color : inherit;
212
- white-space : pre-wrap;
213
- background-color : transparent;
214
- border-radius : 0 ;
215
207
}
216
208
217
209
/* Code highlighting */
@@ -225,16 +217,16 @@ pre.rust .doccomment { color: #4D4D4C; }
225
217
pre .rust .macro , pre .rust .macro-nonterminal { color : # 3E999F ; }
226
218
pre .rust .lifetime { color : # B76514 ; }
227
219
220
+ /* The rest */
228
221
229
- /* The rest
230
- ========================================================================== */
231
222
# versioninfo {
232
223
text-align : center;
233
224
margin : 0.5em ;
234
225
font-size : 1.1em ;
235
226
}
236
- @media only screen and (min-width : 768 px ) {
227
+ @media (min-width : 992 px ) {
237
228
# versioninfo {
229
+ font-size : 0.8em ;
238
230
position : fixed;
239
231
bottom : 0px ;
240
232
right : 0px ;
@@ -243,7 +235,7 @@ pre.rust .lifetime { color: #B76514; }
243
235
background-color : # fff ;
244
236
margin : 2px ;
245
237
padding : 0 2px ;
246
- border-radius : .3 em ;
238
+ border-radius : .2 em ;
247
239
}
248
240
}
249
241
# versioninfo a .hash {
@@ -252,10 +244,12 @@ pre.rust .lifetime { color: #B76514; }
252
244
}
253
245
254
246
blockquote {
255
- color : black;
256
- border-left : 5px solid # eee ;
257
- margin : 0 0 20px ;
258
- padding : 10px 20px ;
247
+ color : # 000 ;
248
+ margin : 20px 0 ;
249
+ padding : 15px 20px ;
250
+ background-color : # f2f7f9 ;
251
+ border-top : .1em solid # e5eef2 ;
252
+ border-bottom : .1em solid # e5eef2 ;
259
253
}
260
254
blockquote p {
261
255
font-size : 17px ;
@@ -319,6 +313,12 @@ table th {
319
313
padding : 5px ;
320
314
}
321
315
316
+ @media (min-width : 1170px ) {
317
+ pre {
318
+ font-size : 15px ;
319
+ }
320
+ }
321
+
322
322
@media print {
323
323
* {
324
324
text-shadow : none !important ;
0 commit comments