@@ -30,20 +30,26 @@ body {
30
30
padding-bottom : 20px ;
31
31
}
32
32
33
- h1 , .sidebar .location {
34
- font : 700 22px "Oswald" , Arial, sans-serif;
35
- }
36
- h2 , h3 , h4 {
37
- font : 700 16px "Oswald" , Arial, sans-serif;
38
- text-transform : uppercase;
39
- }
40
33
h2 code , h3 code , h4 code {
41
34
text-transform : none;
42
35
font-size : 1.2em ;
43
36
}
44
37
38
+ h1 {
39
+ font : 600 26px "Helvetica Neue" , Arial, sans-serif !important ;
40
+ margin : 20px 0 ;
41
+ }
42
+
43
+ h2 , h3 , h4 {
44
+ font : 500 20px "Helvetica Neue" , Arial, sans-serif;
45
+ margin : 40px 0 20px 0 ;
46
+ padding-bottom : 15px ;
47
+ border-bottom : 1px solid # DDDDDD ;
48
+ }
49
+
45
50
code , pre , h1 .fqn {
46
51
font-family : "Inconsolata" , Menlo, Monaco, Consolas, "DejaVu Sans Mono" , monospace;
52
+ font-weight : normal;
47
53
}
48
54
code , pre {
49
55
color : # 333 ;
54
60
h1 .fqn {
55
61
font-size : 26px ;
56
62
font-weight : normal;
63
+ padding-bottom : 15px ;
64
+ border-bottom : 1px dashed # D5D5D5 ;
57
65
}
58
66
59
67
nav {
@@ -81,42 +89,66 @@ nav.sub {
81
89
.js-only , .hidden { display : none; }
82
90
83
91
.sidebar {
84
- background : # e9e9e9 ;
85
92
padding : 10px ;
86
93
}
87
94
.sidebar img {
88
95
margin : 20px auto;
89
96
display : block;
90
97
}
91
98
92
- .sidebar .location { margin-bottom : 10px ; }
99
+ .sidebar .location {
100
+ font-size : 17px ;
101
+ margin : 30px 0 20px 0 ;
102
+ background : # e1e1e1 ;
103
+ text-align : center;
104
+ color : # 333 ;
105
+ }
106
+
107
+ .sidebar .location a {
108
+ color : # 333 ;
109
+ }
110
+
93
111
.sidebar .block , pre { background : # fff ; }
94
- .sidebar .block , pre , .content { border-bottom : 2px solid black; }
95
- .trait { border-color : # fcae2b !important ; }
96
- .mod { border-color : # 809fc7 !important ; }
97
- .enum { border-color : # 93bc99 !important ; }
98
- .struct { border-color : # e53700 !important ; }
99
- .fn { border-color : # a2777f !important ; }
100
112
101
113
.block {
102
114
padding : 10px ;
103
115
margin-bottom : 10px ;
104
116
}
105
- .block h2 { margin-top : 0 ; }
117
+ .block h2 {
118
+ margin-top : 0 ;
119
+ text-align : center;
120
+ }
121
+
106
122
.block a {
107
123
display : inline-block;
108
- width : 100% ;
109
124
text-overflow : ellipsis;
110
125
overflow : hidden;
111
126
line-height : 15px ;
127
+ margin : 0 0 0 45px ;
128
+ padding-bottom : 4px ;
129
+ border-bottom : 2px solid # fff ;
130
+ font-size : 14px ;
131
+
132
+ transition : border 500ms ease-out;
133
+ -webkit-transition : border 500ms ease-out;
134
+ -moz-transition : border 500ms ease-out;
135
+ -o-transition : border 500ms ease-out;
136
+ }
137
+
138
+ body p {
139
+ font-size : 15px ;
140
+ line-height : 1.6 ;
112
141
}
113
142
114
143
.content {
115
- background : # f3f3f3 ;
116
144
padding : 20px 20px 20px 40px ;
117
145
}
118
- .content h1 { margin-top : 0 ; }
119
- .content h1 , .content h2 { margin-left : -20px ; }
146
+
147
+ .content h1 {
148
+ margin-top : 0 ;
149
+ font-weight : 400 !important ;
150
+ }
151
+
120
152
.content pre { padding : 20px ; }
121
153
.content .source pre .rust {
122
154
white-space : pre;
@@ -155,12 +187,31 @@ nav.sub {
155
187
156
188
.docblock h1 , .docblock h2 , .docblock h3 , .docblock h4 , .docblock h5 {
157
189
margin-left : 0 ;
190
+ margin : 40px 0 10px 0 ;
191
+ padding-bottom : 10px ;
192
+ border-bottom : 1px solid # eee ;
158
193
}
194
+
159
195
.docblock h1 { font-size : 1.1em ; }
160
196
.docblock h2 { font-size : 1.05em ; }
161
197
.docblock h3 , .docblock h4 , .docblock h5 { font-size : 1em ; }
162
198
163
- .content .source { float : right; }
199
+ .docblock h3 {
200
+ font-size : 1.3em ;
201
+ }
202
+
203
+ .docblock h2 {
204
+ font-size : 1.5em ;
205
+ }
206
+
207
+ .content .source {
208
+ float : right;
209
+ font-size : 14px ;
210
+ font-weight : 400 ;
211
+ padding : 9px 15px ;
212
+ color : # 333 ;
213
+ }
214
+
164
215
.content table {
165
216
border-spacing : 0 5px ;
166
217
border-collapse : separate;
224
275
background : transparent;
225
276
}
226
277
227
- .content a , .block a .current { font-weight : bold ; }
278
+ .content a , .block a .current { font-weight : 400 ; }
228
279
229
280
.content a .trait , .block a .current .trait { color : # ed9603 ; }
230
281
.content a .mod , .block a .current .mod { color : # 4d76ae ; }
@@ -235,16 +286,59 @@ a {
235
286
236
287
.search-container {
237
288
padding-right : 10px ;
238
- overflow : hidden;
239
289
}
240
290
.search-input {
241
291
border : 2px solid # e9e9e9 ;
242
292
border-radius : 2px ;
243
- width : 100% ;
293
+ width : 85% ;
294
+ box-sizing : content-box;
295
+ outline : none;
296
+ border : none;
297
+ background : none;
298
+ font-family : "Helvetica Neue" ;
299
+ color : # 000 ;
300
+ margin-top : 5px ;
301
+ padding : 10px 20px ;
302
+ font-weight : 300 ;
303
+ border-radius : 1px ;
304
+ box-shadow : 0 0 0 1px # e0e0e0, 0 0 0 2px transparent;
305
+ color : # 555555 ;
306
+ padding : 10px 16px ;
307
+ line-height : 1.4 ;
308
+ font-size : 17px ;
309
+ background-color : white;
310
+ -webkit-transition : background-color 50ms linear;
311
+ transition : background-color 50ms linear;
312
+ transition : border 500ms ease-out;
313
+ -webkit-transition : border 500ms ease-out;
314
+ -moz-transition : border 500ms ease-out;
315
+ -o-transition : border 500ms ease-out;
316
+ transition : box-shadow 500ms ease-out;
317
+ -webkit-transition : box-shadow 500ms ease-out;
318
+ -moz-transition : box-shadow 500ms ease-out;
319
+ -o-transition : box-shadow 500ms ease-out;
320
+ }
321
+
322
+ .search-input : focus {
323
+ border-color : # 66afe9 ;
324
+ border : 0 ;
325
+ outline : 0 ;
326
+ box-shadow : 0 0 0 1px # 078dd8, 0 0 0 2px # 078dd8 ;
244
327
}
328
+
245
329
.do-search {
246
330
float : right;
247
- width : 62px ;
331
+ outline : none;
332
+ border : none;
333
+ font-family : Helvetica Neue;
334
+ font-weight : 200 ;
335
+ color : # fff ;
336
+ padding : 14px 25px ;
337
+ margin-top : 3px ;
338
+ font-size : 16px ;
339
+ margin-right : 15px ;
340
+ text-align : center;
341
+ background : # 6F5E59 ;
248
342
}
249
343
.search-results .desc {
250
344
white-space : nowrap;
@@ -288,13 +382,16 @@ a {
288
382
}
289
383
290
384
.stability {
291
- border-left : 5 px solid # 000 ;
385
+ border-left : 6 px solid # 000 ;
292
386
border-radius : 3px ;
293
- padding : 0 3px ;
294
- float : right;
387
+ padding : 8px 3px ;
295
388
background : # fff ;
296
389
text-transform : lowercase;
390
+ display : block;
391
+ padding-left : 10px ;
392
+ margin-bottom : 20px ;
297
393
}
394
+
298
395
.stability .Deprecated { border-color : # D60027 ; color : # 880017 ; }
299
396
.stability .Experimental { border-color : # EC5315 ; color : # a53c0e ; }
300
397
.stability .Unstable { border-color : # FFD700 ; color : # b39800 ; }
0 commit comments