7
7
font-style : normal ;
8
8
font-weight : 400 ;
9
9
src :
10
- local (' Fira Sans' ),
11
- url (" FiraSans-Regular.woff2" ) format (' woff2' ),
12
- url (" FiraSans-Regular.woff" ) format (' woff' );
10
+ local (' Fira Sans' ),
11
+ url (" FiraSans-Regular.woff2" ) format (' woff2' ),
12
+ url (" FiraSans-Regular.woff" ) format (' woff' );
13
13
}
14
+
14
15
@font-face {
15
16
font-family : ' Fira Sans' ;
16
17
font-style : normal ;
17
18
font-weight : 500 ;
18
19
src :
19
- local (' Fira Sans Medium' ),
20
- url (" FiraSans-Medium.woff2" ) format (' woff2' ),
21
- url (" FiraSans-Medium.woff" ) format (' woff' );
20
+ local (' Fira Sans Medium' ),
21
+ url (" FiraSans-Medium.woff2" ) format (' woff2' ),
22
+ url (" FiraSans-Medium.woff" ) format (' woff' );
22
23
}
23
24
24
25
/* See SourceSerif4-LICENSE.md for the Source Serif 4 license. */
27
28
font-style : normal ;
28
29
font-weight : 400 ;
29
30
src :
30
- local (' Source Serif 4' ),
31
- url (" SourceSerif4-Regular.ttf.woff2" ) format (' woff2' ),
32
- url (" SourceSerif4-Regular.ttf.woff" ) format (' woff' );
31
+ local (' Source Serif 4' ),
32
+ url (" SourceSerif4-Regular.ttf.woff2" ) format (' woff2' ),
33
+ url (" SourceSerif4-Regular.ttf.woff" ) format (' woff' );
33
34
}
35
+
34
36
@font-face {
35
37
font-family : ' Source Serif' ;
36
38
font-style : italic ;
37
39
font-weight : 400 ;
38
40
src :
39
- local (' Source Serif 4' ),
40
- url (" SourceSerif4-It.ttf.woff2" ) format (' woff2' ),
41
- url (" SourceSerif4-It.ttf.woff" ) format (' woff' );
41
+ local (' Source Serif 4' ),
42
+ url (" SourceSerif4-It.ttf.woff2" ) format (' woff2' ),
43
+ url (" SourceSerif4-It.ttf.woff" ) format (' woff' );
42
44
}
45
+
43
46
@font-face {
44
47
font-family : ' Source Serif' ;
45
48
font-style : normal ;
46
49
font-weight : 700 ;
47
50
src :
48
- local (' Source Serif 4' ),
49
- url (" SourceSerif4-Bold.ttf.woff2" ) format (' woff2' ),
50
- url (" SourceSerif4-Bold.ttf.woff" ) format (' woff' );
51
+ local (' Source Serif 4' ),
52
+ url (" SourceSerif4-Bold.ttf.woff2" ) format (' woff2' ),
53
+ url (" SourceSerif4-Bold.ttf.woff" ) format (' woff' );
51
54
}
52
55
53
56
/* See SourceCodePro-LICENSE.md for the Source Code Pro license. */
58
61
/* Avoid using locally installed font because bad versions are in circulation:
59
62
* see https://github.com/rust-lang/rust/issues/24355 */
60
63
src :
61
- url (" SourceCodePro-Regular.ttf.woff2" ) format (' woff2' ),
62
- url (" SourceCodePro-Regular.ttf.woff" ) format (' woff' );
64
+ url (" SourceCodePro-Regular.ttf.woff2" ) format (' woff2' ),
65
+ url (" SourceCodePro-Regular.ttf.woff" ) format (' woff' );
63
66
}
67
+
64
68
@font-face {
65
69
font-family : ' Source Code Pro' ;
66
70
font-style : normal ;
67
71
font-weight : 600 ;
68
72
src :
69
- url (" SourceCodePro-Semibold.ttf.woff2" ) format (' woff2' ),
70
- url (" SourceCodePro-Semibold.ttf.woff" ) format (' woff' );
73
+ url (" SourceCodePro-Semibold.ttf.woff2" ) format (' woff2' ),
74
+ url (" SourceCodePro-Semibold.ttf.woff" ) format (' woff' );
71
75
}
76
+
72
77
@font-face {
73
78
font-family : ' Source Code Pro' ;
74
79
font-style : italic ;
75
80
font-weight : 400 ;
76
81
src :
77
- url (" SourceCodePro-It.ttf.woff2" ) format (' woff2' ),
78
- url (" SourceCodePro-It.ttf.woff" ) format (' woff' );
82
+ url (" SourceCodePro-It.ttf.woff2" ) format (' woff2' ),
83
+ url (" SourceCodePro-It.ttf.woff" ) format (' woff' );
79
84
}
80
85
81
86
html ,
@@ -102,7 +107,8 @@ body {
102
107
padding : 0 ;
103
108
margin : 0 ;
104
109
position : relative ;
105
- min-height : 100vh ; /* Tall enough to stick the footer to the bottom */
110
+ min-height : 100vh ;
111
+ /* Tall enough to stick the footer to the bottom */
106
112
107
113
* {
108
114
-webkit-box-sizing : border-box ;
@@ -113,37 +119,55 @@ body {
113
119
h1 {
114
120
font-size : 1.5em ;
115
121
}
122
+
116
123
h3 {
117
124
font-size : 1.3em ;
118
125
}
119
- h1 , h2 , h3 , h4 {
120
- font-family : " Fira Sans" ,sans-serif ;
126
+
127
+ h1 ,
128
+ h2 ,
129
+ h3 ,
130
+ h4 {
131
+ font-family : " Fira Sans" , sans-serif ;
121
132
font-weight : 500 ;
122
133
margin : 20px 0 15px 0 ;
123
134
padding-bottom : 6px ;
124
135
}
125
- h2 , h3 , h4 {
136
+
137
+ h2 ,
138
+ h3 ,
139
+ h4 {
126
140
border-bottom : 1px solid ;
127
141
}
142
+
128
143
pre {
129
144
background-color : var (--color-background-code );
130
145
padding : 14px ;
131
146
}
132
- code , kbd , pre , samp {
133
- font-family : " Source Code Pro" ,monospace ;
147
+
148
+ code ,
149
+ kbd ,
150
+ pre ,
151
+ samp {
152
+ font-family : " Source Code Pro" , monospace ;
134
153
}
154
+
135
155
a {
136
156
text-decoration : none ;
137
157
background : transparent ;
138
158
}
159
+
139
160
p {
140
161
margin : 0 0 .6em 0 ;
141
162
}
142
- ol , ul {
163
+
164
+ ol ,
165
+ ul {
143
166
padding-left : 25px ;
144
167
}
145
168
146
- input , #search {
169
+ input ,
170
+ #search {
147
171
background-color : var (--color-background-input );
148
172
color : var (--input-color );
149
173
line-height : normal ;
@@ -177,7 +201,7 @@ body {
177
201
background-color : var (--color-background );
178
202
color : var (--color-standard );
179
203
180
- > h1 {
204
+ >h1 {
181
205
color : var (--color-standard );
182
206
}
183
207
@@ -186,15 +210,16 @@ body {
186
210
fill : var (--color-background );
187
211
}
188
212
189
- text .highcharts-title , g .highcharts-axis-labels > text {
213
+ text .highcharts-title ,
214
+ g .highcharts-axis-labels >text {
190
215
fill : var (--chart-title-color ) !important ;
191
216
}
192
217
193
- g .highcharts-legend-item > text {
218
+ g .highcharts-legend-item > text {
194
219
fill : var (--chart-grid ) !important ;
195
220
}
196
221
197
- g .highcharts-grid > path {
222
+ g .highcharts-grid > path {
198
223
stroke : var (--chart-grid ) !important ;
199
224
}
200
225
}
@@ -262,7 +287,8 @@ div.recent-releases-container {
262
287
padding : 0 ;
263
288
}
264
289
265
- ol .queue-list li {
290
+ ol .queue-list li ,
291
+ ol .rebuild-queue-list li {
266
292
list-style-type : decimal ;
267
293
margin-left : 20px ;
268
294
@@ -280,7 +306,8 @@ div.recent-releases-container {
280
306
background-color : var (--background-color );
281
307
}
282
308
283
- .release , .build-in-progress {
309
+ .release ,
310
+ .build-in-progress {
284
311
display : block ;
285
312
border-bottom : 1px solid var (--color-border );
286
313
padding : 0.4em $search-result-right-left-padding ;
@@ -338,6 +365,7 @@ div.recent-releases-container {
338
365
span .fa-check {
339
366
color : var (--color-macro );
340
367
}
368
+
341
369
span .fa-times {
342
370
color : var (--color-struct );
343
371
}
@@ -384,10 +412,10 @@ div.recent-releases-container {
384
412
}
385
413
386
414
.yanked {
387
- color : var (--color-warn-msg );
388
- background-color : var (--color-warn-background );
389
- padding : .2em .8em .2em .5em ;
390
- border-radius : 1em ;
415
+ color : var (--color-warn-msg );
416
+ background-color : var (--color-warn-background );
417
+ padding : .2em .8em .2em .5em ;
418
+ border-radius : 1em ;
391
419
}
392
420
}
393
421
@@ -399,6 +427,7 @@ div.package-container {
399
427
margin : 0 ;
400
428
padding : 20px 0 0 16px ;
401
429
}
430
+
402
431
p {
403
432
margin : 0 ;
404
433
padding : 0 0 20px 16px ;
@@ -469,7 +498,7 @@ div.package-page-container {
469
498
margin : 20px 5px 15px 5px ;
470
499
}
471
500
472
- li .pure-menu-item > .documented-info {
501
+ li .pure-menu-item > .documented-info {
473
502
font-size : 13px ;
474
503
display : block ;
475
504
width : 100% ;
@@ -575,7 +604,7 @@ div.package-page-container {
575
604
border-bottom : 1px solid var (--color-menu-border );
576
605
}
577
606
578
- tbody > tr :last-child > td {
607
+ tbody > tr :last-child > td {
579
608
border-bottom-width : 0 ;
580
609
}
581
610
@@ -697,7 +726,7 @@ div.docsrs-package-container {
697
726
border-radius : 2px ;
698
727
}
699
728
700
- .pure-menu-has-children > .pure-menu-link :after {
729
+ .pure-menu-has-children > .pure-menu-link :after {
701
730
font-size : 14px ;
702
731
}
703
732
@@ -774,7 +803,12 @@ div.search-page-search-form {
774
803
background-color : inherit ;
775
804
}
776
805
777
- h1 , h2 , h3 , h4 , h5 , h6 {
806
+ h1 ,
807
+ h2 ,
808
+ h3 ,
809
+ h4 ,
810
+ h5 ,
811
+ h6 {
778
812
border-bottom-color : var (--color-border ) !important ;
779
813
color : var (--color-standard ) !important ;
780
814
}
@@ -789,8 +823,8 @@ div.search-page-search-form {
789
823
}
790
824
791
825
/* Don't put a newline after code fragments in headers */
792
- h3 > code ,
793
- h4 > code {
826
+ h3 > code ,
827
+ h4 > code {
794
828
display : inline-block ;
795
829
}
796
830
@@ -873,13 +907,17 @@ ul.pure-menu-list {
873
907
max-width : 46px ;
874
908
875
909
ul {
876
- li :not (.toggle-source ), .text {
910
+
911
+ li :not (.toggle-source ),
912
+ .text {
877
913
display : none ;
878
914
}
915
+
879
916
li .toggle-source {
880
917
.left {
881
918
display : none ;
882
919
}
920
+
883
921
.right {
884
922
display : inline-block ;
885
923
margin-left : -4px ;
@@ -897,13 +935,16 @@ ul.pure-menu-list {
897
935
display : inline-flex ;
898
936
overflow : scroll ;
899
937
}
938
+
900
939
#line-numbers {
901
940
text-align : right ;
902
941
letter-spacing : normal ;
903
942
}
904
- #line-numbers > code > a {
943
+
944
+ #line-numbers >code >a {
905
945
padding : 0 8px ;
906
946
}
947
+
907
948
// This class is used to the source code and the line number container in the
908
949
// `crate/**/source/*` view
909
950
.source-code {
@@ -921,6 +962,7 @@ ul.pure-menu-list {
921
962
width : calc (100% - 46px );
922
963
}
923
964
}
965
+
924
966
#source-code {
925
967
overflow : scroll ;
926
968
width : 100% ;
0 commit comments