9
9
* option. This file may not be copied, modified, or distributed
10
10
* except according to those terms.
11
11
*/
12
+ @font-face {
13
+ font-family : 'Fira Sans' ;
14
+ font-style : normal;
15
+ font-weight : 400 ;
16
+ src : local ('Fira Sans' ), url ("http://rust-lang.org/fonts/FiraSans-Regular.woff" ) format ('woff' );
17
+ }
18
+ @font-face {
19
+ font-family : 'Fira Sans' ;
20
+ font-style : normal;
21
+ font-weight : 500 ;
22
+ src : local ('Fira Sans Medium' ), url ("http://rust-lang.org/fonts/FiraSans-Medium.woff" ) format ('woff' );
23
+ }
24
+ @font-face {
25
+ font-family : 'Heuristica' ;
26
+ font-style : normal;
27
+ font-weight : 400 ;
28
+ src : local ('Heuristica Regular' ), url ("http://rust-lang.org/fonts/Heuristica-Regular.woff" ) format ('woff' );
29
+ }
30
+ @font-face {
31
+ font-family : 'Heuristica' ;
32
+ font-style : italic;
33
+ font-weight : 400 ;
34
+ src : local ('Heuristica Italic' ), url ("http://rust-lang.org/fonts/Heuristica-Italic.woff" ) format ('woff' );
35
+ }
36
+ @font-face {
37
+ font-family : 'Heuristica' ;
38
+ font-style : normal;
39
+ font-weight : 700 ;
40
+ src : local ('Heuristica Bold' ), url ("http://rust-lang.org/fonts/Heuristica-Bold.woff" ) format ('woff' );
41
+ }
42
+
12
43
@import "normalize.css" ;
13
44
14
45
* {
21
52
22
53
body {
23
54
color : # 333 ;
24
- min-height : 100% ;
25
55
min-width : 500px ;
26
- height : 100 % ;
27
- font : 15 px "Helvetica Neue" , Helvetica , Arial , sans-serif ;
28
- line-height : 150 % ;
56
+ font : 18 px "Heuristica" , "Helvetica Neue" , Helvetica , Arial , sans-serif ;
57
+ line-height : 1.4 ;
58
+ margin : 0 ;
29
59
position : relative;
30
- height : auto ;
60
+ padding : 10 px 15 px 20 px 15 px ;
31
61
padding-bottom : 20px ;
32
62
}
33
63
@@ -44,13 +74,23 @@ h1.fqn {
44
74
h2 , h3 , h4 {
45
75
border-bottom : 1px solid # DDDDDD ;
46
76
}
47
- h2 code , h3 code , h4 code {
48
-
77
+ h2 code , h3 code , h4 code , .block a {
49
78
font-size : 1.2em ;
50
79
}
80
+ h1 , h2 , h3 , h4 , section .sidebar , a .source , .content a , .search-input {
81
+ font-family : "Fira Sans" , "Helvetica Neue" , Helvetica, Arial, sans-serif;
82
+ }
83
+
84
+ ul {
85
+ padding-left : 25px ;
86
+ }
87
+
88
+ p {
89
+ margin : 0 0 1em 0 ;
90
+ }
51
91
52
92
code , pre {
53
- font-family : "Inconsolata" , Menlo, Monaco, Consolas, "DejaVu Sans Mono" , monospace;
93
+ font-family : Menlo, Monaco, Consolas, Inconsolata , "DejaVu Sans Mono" , monospace;
54
94
}
55
95
pre {
56
96
font-size : 15px ;
@@ -92,8 +132,6 @@ nav.sub {
92
132
color : # 333 ;
93
133
}
94
134
95
- .sidebar .block , pre { background : # fff ; }
96
-
97
135
.block {
98
136
padding : 10px ;
99
137
margin-bottom : 10px ;
@@ -111,11 +149,12 @@ nav.sub {
111
149
padding-left : 5px ;
112
150
padding-bottom : 6px ;
113
151
font-size : 14px ;
152
+ font-weight : 300 ;
114
153
transition : border 500ms ease-out;
115
154
}
116
155
117
156
.content {
118
- padding : 20px 40 px ;
157
+ padding : 20px 0 ;
119
158
}
120
159
121
160
.content pre { padding : 20px ; }
@@ -165,10 +204,9 @@ nav.sub {
165
204
.docblock h2 { font-size : 1.15em ; }
166
205
.docblock h3 , .docblock h4 , .docblock h5 { font-size : 1em ; }
167
206
168
- .content .source {
207
+ .content .source {
169
208
float : right;
170
- font-weight : 500 ;
171
- padding : 9px 15px ;
209
+ font-size : 23px ;
172
210
}
173
211
174
212
.content table {
@@ -224,7 +262,7 @@ nav.sum { text-align: right; }
224
262
nav .sub form { display : inline; }
225
263
226
264
nav , .content {
227
- margin-left : 220 px ;
265
+ margin-left : 230 px ;
228
266
}
229
267
230
268
a {
@@ -254,18 +292,18 @@ a {
254
292
margin-top : 5px ;
255
293
padding : 10px 16px ;
256
294
font-size : 17px ;
257
- font-weight : 300 ;
258
295
box-shadow : 0 0 0 1px # e0e0e0, 0 0 0 2px transparent;
259
- transition : background -color 50 ms linear ;
260
- transition : border 500 ms ease-out;
261
- transition : box-shadow 500 ms ease-out;
296
+ transition : border -color 300 ms ease ;
297
+ transition : border-radius 300 ms ease-in -out;
298
+ transition : box-shadow 300 ms ease-in -out;
262
299
}
263
300
264
301
.search-input : focus {
265
302
border-color : # 66afe9 ;
303
+ border-radius : 2px ;
266
304
border : 0 ;
267
305
outline : 0 ;
268
- box-shadow : 0 0 0 1 px # 078dd8 , 0 0 0 2 px # 078dd8 ;
306
+ box-shadow : 0 0 8 px # 078dd8 ;
269
307
}
270
308
271
309
.search-results .desc {
327
365
328
366
: target { background : # FDFFD3 ; }
329
367
330
- pre .rust , pre .line-numbers { background-color : # FDFDFD ; }
368
+ pre .rust , pre .line-numbers { background-color : # F5F5F5 ; }
331
369
332
370
/* Code highlighting */
333
371
pre .rust .kw { color : # 8959A8 ; }
@@ -361,7 +399,6 @@ h6.section-link:hover a:after {
361
399
}
362
400
363
401
nav .sub {
364
- width : 85.5% ;
365
402
margin : 0 auto;
366
403
}
367
404
}
0 commit comments