]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | /** |
2 | * Copyright 2013 The Rust Project Developers. See the COPYRIGHT | |
3 | * file at the top-level directory of this distribution and at | |
4 | * http://rust-lang.org/COPYRIGHT. | |
5 | * | |
6 | * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
7 | * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
8 | * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
9 | * option. This file may not be copied, modified, or distributed | |
10 | * except according to those terms. | |
11 | */ | |
b039eaaf SL |
12 | |
13 | /* See FiraSans-LICENSE.txt for the Fira Sans license. */ | |
1a4d82fc | 14 | @font-face { |
476ff2be SL |
15 | font-family: 'Fira Sans'; |
16 | font-style: normal; | |
17 | font-weight: 400; | |
18 | src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff'); | |
1a4d82fc JJ |
19 | } |
20 | @font-face { | |
476ff2be SL |
21 | font-family: 'Fira Sans'; |
22 | font-style: normal; | |
23 | font-weight: 500; | |
24 | src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff'); | |
1a4d82fc | 25 | } |
b039eaaf SL |
26 | |
27 | /* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license and | |
28 | * Heuristica-LICENSE.txt for the Heuristica license. */ | |
1a4d82fc | 29 | @font-face { |
476ff2be SL |
30 | font-family: 'Source Serif Pro'; |
31 | font-style: normal; | |
32 | font-weight: 400; | |
33 | src: local('Source Serif Pro'), url("SourceSerifPro-Regular.woff") format('woff'); | |
1a4d82fc JJ |
34 | } |
35 | @font-face { | |
476ff2be SL |
36 | font-family: 'Source Serif Pro'; |
37 | font-style: italic; | |
38 | font-weight: 400; | |
39 | src: url("Heuristica-Italic.woff") format('woff'); | |
1a4d82fc JJ |
40 | } |
41 | @font-face { | |
476ff2be SL |
42 | font-family: 'Source Serif Pro'; |
43 | font-style: normal; | |
44 | font-weight: 700; | |
45 | src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.woff") format('woff'); | |
1a4d82fc | 46 | } |
b039eaaf SL |
47 | |
48 | /* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */ | |
1a4d82fc | 49 | @font-face { |
476ff2be SL |
50 | font-family: 'Source Code Pro'; |
51 | font-style: normal; | |
52 | font-weight: 400; | |
53 | /* Avoid using locally installed font because bad versions are in circulation: | |
54 | * see https://github.com/rust-lang/rust/issues/24355 */ | |
55 | src: url("SourceCodePro-Regular.woff") format('woff'); | |
1a4d82fc JJ |
56 | } |
57 | @font-face { | |
476ff2be SL |
58 | font-family: 'Source Code Pro'; |
59 | font-style: normal; | |
60 | font-weight: 600; | |
61 | src: url("SourceCodePro-Semibold.woff") format('woff'); | |
1a4d82fc JJ |
62 | } |
63 | ||
1a4d82fc JJ |
64 | * { |
65 | -webkit-box-sizing: border-box; | |
476ff2be SL |
66 | -moz-box-sizing: border-box; |
67 | box-sizing: border-box; | |
1a4d82fc JJ |
68 | } |
69 | ||
70 | /* General structure and fonts */ | |
71 | ||
72 | body { | |
476ff2be SL |
73 | font: 16px/1.4 "Source Serif Pro", Georgia, Times, "Times New Roman", serif; |
74 | margin: 0; | |
75 | position: relative; | |
76 | padding: 10px 15px 20px 15px; | |
1a4d82fc | 77 | |
476ff2be SL |
78 | -webkit-font-feature-settings: "kern", "liga"; |
79 | -moz-font-feature-settings: "kern", "liga"; | |
80 | font-feature-settings: "kern", "liga"; | |
1a4d82fc JJ |
81 | } |
82 | ||
83 | h1 { | |
476ff2be | 84 | font-size: 1.5em; |
1a4d82fc JJ |
85 | } |
86 | h2 { | |
476ff2be | 87 | font-size: 1.4em; |
1a4d82fc JJ |
88 | } |
89 | h3 { | |
476ff2be | 90 | font-size: 1.3em; |
1a4d82fc | 91 | } |
8bb4bdeb | 92 | h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) { |
476ff2be SL |
93 | font-weight: 500; |
94 | margin: 20px 0 15px 0; | |
95 | padding-bottom: 6px; | |
1a4d82fc JJ |
96 | } |
97 | h1.fqn { | |
476ff2be SL |
98 | border-bottom: 1px dashed; |
99 | margin-top: 0; | |
100 | position: relative; | |
1a4d82fc | 101 | } |
8bb4bdeb | 102 | h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) { |
476ff2be | 103 | border-bottom: 1px solid; |
1a4d82fc | 104 | } |
8bb4bdeb | 105 | h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant { |
476ff2be SL |
106 | font-weight: 600; |
107 | margin-top: 10px; | |
108 | margin-bottom: 10px; | |
109 | position: relative; | |
1a4d82fc JJ |
110 | } |
111 | h3.impl, h3.method, h3.type { | |
476ff2be | 112 | margin-top: 15px; |
1a4d82fc | 113 | } |
e9174d1e | 114 | h1, h2, h3, h4, .sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle { |
476ff2be | 115 | font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; |
1a4d82fc JJ |
116 | } |
117 | ||
118 | ol, ul { | |
476ff2be | 119 | padding-left: 25px; |
1a4d82fc JJ |
120 | } |
121 | ul ul, ol ul, ul ol, ol ol { | |
476ff2be | 122 | margin-bottom: 0; |
1a4d82fc JJ |
123 | } |
124 | ||
125 | p { | |
476ff2be | 126 | margin: 0 0 .6em 0; |
1a4d82fc JJ |
127 | } |
128 | ||
3b2f2976 XL |
129 | summary { |
130 | outline: none; | |
131 | } | |
132 | ||
1a4d82fc | 133 | code, pre { |
476ff2be SL |
134 | font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace; |
135 | white-space: pre-wrap; | |
1a4d82fc | 136 | } |
9e0c209e | 137 | .docblock code, .docblock-short code { |
476ff2be SL |
138 | border-radius: 3px; |
139 | padding: 0 0.2em; | |
1a4d82fc | 140 | } |
9e0c209e | 141 | .docblock pre code, .docblock-short pre code { |
476ff2be | 142 | padding: 0; |
c1a9b12d | 143 | } |
1a4d82fc | 144 | pre { |
476ff2be | 145 | padding: 14px; |
1a4d82fc JJ |
146 | } |
147 | ||
8bb4bdeb | 148 | .source .content pre { |
476ff2be | 149 | padding: 20px; |
1a4d82fc JJ |
150 | } |
151 | ||
9cc50fc6 | 152 | img { |
476ff2be | 153 | max-width: 100%; |
9cc50fc6 SL |
154 | } |
155 | ||
8bb4bdeb | 156 | .source .content { |
476ff2be SL |
157 | margin-top: 50px; |
158 | max-width: none; | |
159 | overflow: visible; | |
160 | margin-left: 0px; | |
161 | min-width: 70em; | |
1a4d82fc JJ |
162 | } |
163 | ||
164 | nav.sub { | |
476ff2be SL |
165 | font-size: 16px; |
166 | text-transform: uppercase; | |
1a4d82fc JJ |
167 | } |
168 | ||
169 | .sidebar { | |
476ff2be SL |
170 | width: 200px; |
171 | position: absolute; | |
172 | left: 0; | |
173 | top: 0; | |
cc61c64b | 174 | min-height: 100%; |
8bb4bdeb XL |
175 | } |
176 | ||
177 | .sidebar .current { | |
178 | margin-right: -20px; | |
1a4d82fc JJ |
179 | } |
180 | ||
181 | .content, nav { max-width: 960px; } | |
182 | ||
183 | /* Everything else */ | |
184 | ||
c1a9b12d | 185 | .js-only, .hidden { display: none !important; } |
1a4d82fc JJ |
186 | |
187 | .sidebar { | |
476ff2be | 188 | padding: 10px; |
1a4d82fc JJ |
189 | } |
190 | .sidebar img { | |
476ff2be SL |
191 | margin: 20px auto; |
192 | display: block; | |
1a4d82fc JJ |
193 | } |
194 | ||
195 | .sidebar .location { | |
8bb4bdeb | 196 | border: 1px solid; |
476ff2be SL |
197 | font-size: 17px; |
198 | margin: 30px 0 20px 0; | |
199 | text-align: center; | |
7cac9316 | 200 | word-wrap: break-word; |
1a4d82fc JJ |
201 | } |
202 | ||
8bb4bdeb XL |
203 | .location:empty { |
204 | border: none; | |
205 | } | |
206 | ||
1a4d82fc JJ |
207 | .location a:first-child { font-weight: 500; } |
208 | ||
209 | .block { | |
476ff2be SL |
210 | padding: 0 10px; |
211 | margin-bottom: 14px; | |
1a4d82fc | 212 | } |
e9174d1e | 213 | .block h2, .block h3 { |
476ff2be SL |
214 | margin-top: 0; |
215 | margin-bottom: 8px; | |
216 | text-align: center; | |
1a4d82fc | 217 | } |
e9174d1e | 218 | .block ul, .block li { |
476ff2be SL |
219 | margin: 0; |
220 | padding: 0; | |
221 | list-style: none; | |
e9174d1e | 222 | } |
1a4d82fc JJ |
223 | |
224 | .block a { | |
476ff2be SL |
225 | display: block; |
226 | text-overflow: ellipsis; | |
227 | overflow: hidden; | |
228 | line-height: 15px; | |
229 | padding: 7px 5px; | |
230 | font-size: 14px; | |
231 | font-weight: 300; | |
232 | transition: border 500ms ease-out; | |
1a4d82fc JJ |
233 | } |
234 | ||
1a4d82fc | 235 | .content { |
476ff2be | 236 | padding: 15px 0; |
1a4d82fc JJ |
237 | } |
238 | ||
8bb4bdeb | 239 | .source .content pre.rust { |
476ff2be SL |
240 | white-space: pre; |
241 | overflow: auto; | |
242 | padding-left: 0; | |
1a4d82fc | 243 | } |
7cac9316 XL |
244 | #search { |
245 | margin-left: 230px; | |
246 | } | |
1a4d82fc | 247 | .content pre.line-numbers { |
476ff2be SL |
248 | float: left; |
249 | border: none; | |
250 | position: relative; | |
1a4d82fc | 251 | |
476ff2be SL |
252 | -webkit-user-select: none; |
253 | -moz-user-select: none; | |
254 | -ms-user-select: none; | |
255 | user-select: none; | |
1a4d82fc | 256 | } |
92a42be0 | 257 | .line-numbers span { cursor: pointer; } |
1a4d82fc | 258 | |
9e0c209e | 259 | .docblock-short p { |
476ff2be | 260 | display: inline; |
d9579d0f AL |
261 | } |
262 | ||
9e0c209e | 263 | .docblock-short.nowrap { |
476ff2be SL |
264 | display: block; |
265 | overflow: hidden; | |
266 | white-space: nowrap; | |
267 | text-overflow: ellipsis; | |
1a4d82fc JJ |
268 | } |
269 | ||
9e0c209e | 270 | .docblock-short p { |
476ff2be SL |
271 | overflow: hidden; |
272 | text-overflow: ellipsis; | |
273 | margin: 0; | |
1a4d82fc | 274 | } |
9e0c209e | 275 | .docblock-short code { white-space: nowrap; } |
1a4d82fc JJ |
276 | |
277 | .docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 { | |
476ff2be | 278 | border-bottom: 1px solid; |
1a4d82fc JJ |
279 | } |
280 | ||
3b2f2976 XL |
281 | #main > .docblock h1 { font-size: 1.3em; } |
282 | #main > .docblock h2 { font-size: 1.15em; } | |
283 | #main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; } | |
284 | ||
285 | .docblock h1 { font-size: 1em; } | |
286 | .docblock h2 { font-size: 0.95em; } | |
287 | .docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; } | |
1a4d82fc | 288 | |
3157f602 | 289 | .docblock { |
476ff2be | 290 | margin-left: 24px; |
3157f602 XL |
291 | } |
292 | ||
1a4d82fc | 293 | .content .out-of-band { |
476ff2be SL |
294 | font-size: 23px; |
295 | margin: 0px; | |
296 | padding: 0px; | |
297 | text-align: right; | |
298 | display: inline-block; | |
299 | font-weight: normal; | |
300 | position: absolute; | |
301 | right: 0; | |
a7813a04 XL |
302 | } |
303 | ||
304 | h3.impl > .out-of-band { | |
476ff2be | 305 | font-size: 21px; |
a7813a04 XL |
306 | } |
307 | ||
3b2f2976 XL |
308 | h4.method > .out-of-band { |
309 | font-size: 19px; | |
310 | } | |
311 | ||
9e0c209e | 312 | h4 > code, h3 > code, .invisible > code { |
476ff2be | 313 | position: inherit; |
a7813a04 XL |
314 | } |
315 | ||
316 | .in-band, code { | |
476ff2be | 317 | z-index: 5; |
1a4d82fc JJ |
318 | } |
319 | ||
9e0c209e | 320 | .invisible { |
476ff2be SL |
321 | background: rgba(0, 0, 0, 0); |
322 | width: 100%; | |
323 | display: inline-block; | |
9e0c209e SL |
324 | } |
325 | ||
1a4d82fc | 326 | .content .in-band { |
476ff2be SL |
327 | margin: 0px; |
328 | padding: 0px; | |
329 | display: inline-block; | |
1a4d82fc JJ |
330 | } |
331 | ||
a7813a04 XL |
332 | #main { position: relative; } |
333 | #main > .since { | |
476ff2be SL |
334 | top: inherit; |
335 | font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
a7813a04 XL |
336 | } |
337 | ||
1a4d82fc | 338 | .content table { |
476ff2be SL |
339 | border-spacing: 0 5px; |
340 | border-collapse: separate; | |
1a4d82fc JJ |
341 | } |
342 | .content td { vertical-align: top; } | |
343 | .content td:first-child { padding-right: 20px; } | |
344 | .content td p:first-child { margin-top: 0; } | |
345 | .content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; } | |
346 | ||
85aaf69f | 347 | .docblock table { |
476ff2be SL |
348 | border: 1px solid; |
349 | margin: .5em 0; | |
350 | border-collapse: collapse; | |
351 | width: 100%; | |
85aaf69f SL |
352 | } |
353 | ||
354 | .docblock table td { | |
476ff2be SL |
355 | padding: .5em; |
356 | border-top: 1px dashed; | |
357 | border-bottom: 1px dashed; | |
85aaf69f SL |
358 | } |
359 | ||
360 | .docblock table th { | |
476ff2be SL |
361 | padding: .5em; |
362 | text-align: left; | |
363 | border-top: 1px solid; | |
364 | border-bottom: 1px solid; | |
365 | } | |
366 | ||
367 | .fields + table { | |
368 | margin-bottom: 1em; | |
85aaf69f SL |
369 | } |
370 | ||
1a4d82fc | 371 | .content .item-list { |
476ff2be SL |
372 | list-style-type: none; |
373 | padding: 0; | |
1a4d82fc JJ |
374 | } |
375 | ||
376 | .content .item-list li { margin-bottom: 3px; } | |
377 | ||
378 | .content .multi-column { | |
476ff2be SL |
379 | -moz-column-count: 5; |
380 | -moz-column-gap: 2.5em; | |
381 | -webkit-column-count: 5; | |
382 | -webkit-column-gap: 2.5em; | |
383 | column-count: 5; | |
384 | column-gap: 2.5em; | |
1a4d82fc JJ |
385 | } |
386 | .content .multi-column li { width: 100%; display: inline-block; } | |
387 | ||
388 | .content .method { | |
476ff2be SL |
389 | font-size: 1em; |
390 | position: relative; | |
1a4d82fc | 391 | } |
62682a34 | 392 | /* Shift "where ..." part of method or fn definition down a line */ |
476ff2be SL |
393 | .content .method .where, |
394 | .content .fn .where, | |
395 | .content .where.fmt-newline { | |
8bb4bdeb | 396 | display: block; |
7cac9316 XL |
397 | color: #4E4C4C; |
398 | font-size: 0.8em; | |
476ff2be | 399 | } |
1a4d82fc | 400 | |
d9579d0f | 401 | .content .methods > div { margin-left: 40px; } |
1a4d82fc | 402 | |
d9579d0f | 403 | .content .impl-items .docblock, .content .impl-items .stability { |
476ff2be | 404 | margin-left: 40px; |
d9579d0f | 405 | } |
8bb4bdeb | 406 | .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant { |
476ff2be | 407 | margin-left: 20px; |
d9579d0f | 408 | } |
1a4d82fc | 409 | |
e9174d1e | 410 | .content .stability code { |
476ff2be | 411 | font-size: 90%; |
e9174d1e SL |
412 | } |
413 | ||
1a4d82fc | 414 | nav { |
476ff2be SL |
415 | border-bottom: 1px solid; |
416 | padding-bottom: 10px; | |
417 | margin-bottom: 10px; | |
1a4d82fc JJ |
418 | } |
419 | nav.main { | |
476ff2be SL |
420 | padding: 20px 0; |
421 | text-align: center; | |
1a4d82fc JJ |
422 | } |
423 | nav.main .current { | |
476ff2be SL |
424 | border-top: 1px solid; |
425 | border-bottom: 1px solid; | |
1a4d82fc JJ |
426 | } |
427 | nav.main .separator { | |
476ff2be SL |
428 | border: 1px solid; |
429 | display: inline-block; | |
430 | height: 23px; | |
431 | margin: 0 20px; | |
1a4d82fc JJ |
432 | } |
433 | nav.sum { text-align: right; } | |
434 | nav.sub form { display: inline; } | |
435 | ||
e9174d1e | 436 | nav.sub, .content { |
476ff2be | 437 | margin-left: 230px; |
1a4d82fc JJ |
438 | } |
439 | ||
440 | a { | |
476ff2be SL |
441 | text-decoration: none; |
442 | background: transparent; | |
1a4d82fc | 443 | } |
c34b1796 | 444 | |
3b2f2976 XL |
445 | .small-section-header:hover > .anchor { |
446 | display: initial; | |
447 | } | |
448 | ||
449 | .in-band:hover > .anchor { | |
450 | display: initial; | |
451 | } | |
452 | .anchor { | |
453 | display: none; | |
454 | } | |
455 | .anchor:after { | |
456 | content: '\2002\00a7\2002'; | |
457 | } | |
458 | ||
9e0c209e | 459 | .docblock a:hover, .docblock-short a:hover, .stability a { |
476ff2be | 460 | text-decoration: underline; |
c34b1796 | 461 | } |
1a4d82fc | 462 | |
e9174d1e | 463 | .block a.current.crate { font-weight: 500; } |
1a4d82fc JJ |
464 | |
465 | .search-input { | |
476ff2be SL |
466 | width: 100%; |
467 | /* Override Normalize.css: we have margins and do | |
468 | not want to overflow - the `moz` attribute is necessary | |
469 | until Firefox 29, too early to drop at this point */ | |
470 | -moz-box-sizing: border-box !important; | |
471 | box-sizing: border-box !important; | |
472 | outline: none; | |
473 | border: none; | |
474 | border-radius: 1px; | |
475 | margin-top: 5px; | |
476 | padding: 10px 16px; | |
477 | font-size: 17px; | |
478 | transition: border-color 300ms ease; | |
479 | transition: border-radius 300ms ease-in-out; | |
480 | transition: box-shadow 300ms ease-in-out; | |
1a4d82fc JJ |
481 | } |
482 | ||
483 | .search-input:focus { | |
476ff2be SL |
484 | border-color: #66afe9; |
485 | border-radius: 2px; | |
486 | border: 0; | |
487 | outline: 0; | |
488 | box-shadow: 0 0 8px #078dd8; | |
1a4d82fc JJ |
489 | } |
490 | ||
491 | .search-results .desc { | |
476ff2be SL |
492 | white-space: nowrap; |
493 | text-overflow: ellipsis; | |
494 | overflow: hidden; | |
495 | display: block; | |
1a4d82fc JJ |
496 | } |
497 | ||
498 | .search-results a { | |
476ff2be | 499 | display: block; |
1a4d82fc JJ |
500 | } |
501 | ||
502 | .content .search-results td:first-child { padding-right: 0; } | |
503 | .content .search-results td:first-child a { padding-right: 10px; } | |
504 | ||
9e0c209e SL |
505 | tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black; |
506 | } | |
62682a34 | 507 | |
c1a9b12d | 508 | body.blur > :not(#help) { |
476ff2be SL |
509 | filter: blur(8px); |
510 | -webkit-filter: blur(8px); | |
511 | opacity: .7; | |
c1a9b12d SL |
512 | } |
513 | ||
1a4d82fc | 514 | #help { |
476ff2be SL |
515 | width: 100%; |
516 | height: 100vh; | |
517 | position: fixed; | |
518 | top: 0; | |
519 | left: 0; | |
520 | display: flex; | |
521 | justify-content: center; | |
522 | align-items: center; | |
c1a9b12d SL |
523 | } |
524 | #help > div { | |
476ff2be | 525 | flex: 0 0 auto; |
476ff2be SL |
526 | box-shadow: 0 0 6px rgba(0,0,0,.2); |
527 | width: 550px; | |
528 | height: 330px; | |
8bb4bdeb | 529 | border: 1px solid; |
1a4d82fc | 530 | } |
1a4d82fc | 531 | #help dt { |
476ff2be SL |
532 | float: left; |
533 | border-radius: 4px; | |
8bb4bdeb | 534 | border: 1px solid; |
476ff2be SL |
535 | width: 23px; |
536 | text-align: center; | |
537 | clear: left; | |
538 | display: block; | |
539 | margin-top: -1px; | |
1a4d82fc JJ |
540 | } |
541 | #help dd { margin: 5px 33px; } | |
542 | #help .infos { padding-left: 0; } | |
e9174d1e | 543 | #help h1, #help h2 { margin-top: 0; } |
c1a9b12d | 544 | #help > div div { |
476ff2be SL |
545 | width: 50%; |
546 | float: left; | |
547 | padding: 20px; | |
1a4d82fc JJ |
548 | } |
549 | ||
32a655c1 SL |
550 | .stab { |
551 | display: table; | |
476ff2be SL |
552 | border-width: 1px; |
553 | border-style: solid; | |
554 | padding: 3px; | |
555 | margin-bottom: 5px; | |
556 | font-size: 90%; | |
1a4d82fc | 557 | } |
32a655c1 | 558 | .stab p { |
476ff2be | 559 | display: inline; |
1a4d82fc JJ |
560 | } |
561 | ||
32a655c1 SL |
562 | .stab summary { |
563 | display: list-item; | |
564 | } | |
565 | ||
566 | .stab .microscope { | |
567 | font-size: 1.5em; | |
568 | } | |
569 | ||
d9579d0f | 570 | .module-item .stab { |
32a655c1 | 571 | display: inline; |
476ff2be SL |
572 | border-width: 0; |
573 | padding: 0; | |
574 | margin: 0; | |
575 | background: inherit !important; | |
1a4d82fc JJ |
576 | } |
577 | ||
d9579d0f | 578 | .module-item.unstable { |
476ff2be | 579 | opacity: 0.65; |
d9579d0f | 580 | } |
1a4d82fc | 581 | |
a7813a04 | 582 | .since { |
476ff2be SL |
583 | font-weight: normal; |
584 | font-size: initial; | |
476ff2be SL |
585 | position: absolute; |
586 | right: 0; | |
587 | top: 0; | |
7453a54e SL |
588 | } |
589 | ||
590 | .variants_table { | |
476ff2be | 591 | width: 100%; |
7453a54e SL |
592 | } |
593 | ||
594 | .variants_table tbody tr td:first-child { | |
476ff2be | 595 | width: 1%; /* make the variant name as small as possible */ |
7453a54e SL |
596 | } |
597 | ||
c34b1796 | 598 | td.summary-column { |
476ff2be | 599 | width: 100%; |
c34b1796 AL |
600 | } |
601 | ||
1a4d82fc | 602 | .summary { |
476ff2be | 603 | padding-right: 0px; |
1a4d82fc | 604 | } |
1a4d82fc | 605 | |
c30ab7b3 | 606 | pre.rust .question-mark { |
476ff2be | 607 | font-weight: bold; |
c30ab7b3 | 608 | } |
1a4d82fc | 609 | |
1a4d82fc | 610 | pre.rust { position: relative; } |
b039eaaf | 611 | a.test-arrow { |
476ff2be SL |
612 | display: inline-block; |
613 | position: absolute; | |
614 | padding: 5px 10px 5px 10px; | |
615 | border-radius: 5px; | |
616 | font-size: 130%; | |
617 | top: 5px; | |
618 | right: 5px; | |
1a4d82fc | 619 | } |
9e0c209e | 620 | a.test-arrow:hover{ |
476ff2be | 621 | text-decoration: none; |
9e0c209e | 622 | } |
1a4d82fc | 623 | |
1a4d82fc | 624 | .section-header:hover a:after { |
476ff2be | 625 | content: '\2002\00a7\2002'; |
1a4d82fc JJ |
626 | } |
627 | ||
c34b1796 | 628 | .section-header:hover a { |
476ff2be | 629 | text-decoration: none; |
c34b1796 AL |
630 | } |
631 | ||
632 | .section-header a { | |
476ff2be | 633 | color: inherit; |
c34b1796 AL |
634 | } |
635 | ||
1a4d82fc | 636 | .collapse-toggle { |
476ff2be SL |
637 | font-weight: 300; |
638 | position: absolute; | |
639 | left: -23px; | |
640 | color: #999; | |
641 | top: 0; | |
1a4d82fc JJ |
642 | } |
643 | ||
7cac9316 XL |
644 | h3 > .collapse-toggle, h4 > .collapse-toggle { |
645 | font-size: 0.8em; | |
646 | top: 5px; | |
647 | } | |
648 | ||
1a4d82fc | 649 | .toggle-wrapper > .collapse-toggle { |
476ff2be SL |
650 | left: -24px; |
651 | margin-top: 0px; | |
1a4d82fc JJ |
652 | } |
653 | ||
654 | .toggle-wrapper { | |
476ff2be | 655 | position: relative; |
1a4d82fc JJ |
656 | } |
657 | ||
658 | .toggle-wrapper.collapsed { | |
476ff2be SL |
659 | height: 1em; |
660 | transition: height .2s; | |
1a4d82fc JJ |
661 | } |
662 | ||
663 | .collapse-toggle > .inner { | |
476ff2be SL |
664 | display: inline-block; |
665 | width: 1.2ch; | |
666 | text-align: center; | |
1a4d82fc JJ |
667 | } |
668 | ||
a7813a04 | 669 | .ghost { |
476ff2be | 670 | display: none; |
a7813a04 XL |
671 | } |
672 | ||
673 | .ghost + .since { | |
476ff2be SL |
674 | position: initial; |
675 | display: table-cell; | |
a7813a04 XL |
676 | } |
677 | ||
678 | .since + .srclink { | |
476ff2be SL |
679 | display: table-cell; |
680 | padding-left: 10px; | |
a7813a04 XL |
681 | } |
682 | ||
041b39d2 XL |
683 | .item-spacer { |
684 | width: 100%; | |
685 | height: 12px; | |
686 | } | |
687 | ||
a7813a04 | 688 | span.since { |
476ff2be SL |
689 | position: initial; |
690 | font-size: 20px; | |
691 | margin-right: 5px; | |
a7813a04 | 692 | } |
1a4d82fc | 693 | |
5bcae85e | 694 | .toggle-wrapper > .collapse-toggle { |
476ff2be | 695 | left: 0; |
5bcae85e SL |
696 | } |
697 | ||
3b2f2976 XL |
698 | .variant + .toggle-wrapper + .docblock > p { |
699 | margin-top: 5px; | |
700 | } | |
701 | ||
5bcae85e | 702 | .variant + .toggle-wrapper > a { |
476ff2be SL |
703 | margin-top: 5px; |
704 | } | |
705 | ||
706 | .sub-variant, .sub-variant > h3 { | |
707 | margin-top: 0 !important; | |
3157f602 XL |
708 | } |
709 | ||
710 | .enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock { | |
476ff2be SL |
711 | margin-left: 30px; |
712 | margin-bottom: 20px; | |
713 | margin-top: 5px; | |
3157f602 XL |
714 | } |
715 | ||
716 | .enum > .collapsed, .struct > .collapsed { | |
476ff2be | 717 | margin-bottom: 25px; |
3157f602 XL |
718 | } |
719 | ||
3b2f2976 | 720 | #main > .variant, #main > .structfield { |
476ff2be SL |
721 | display: block; |
722 | } | |
723 | ||
724 | .attributes { | |
725 | display: block; | |
726 | margin: 0px 0px 0px 30px !important; | |
727 | } | |
728 | .toggle-attributes.collapsed { | |
729 | margin-bottom: 5px; | |
3157f602 XL |
730 | } |
731 | ||
a7813a04 | 732 | :target > code { |
8bb4bdeb | 733 | opacity: 1; |
a7813a04 | 734 | } |
1a4d82fc JJ |
735 | |
736 | /* Media Queries */ | |
737 | ||
738 | @media (max-width: 700px) { | |
476ff2be SL |
739 | body { |
740 | padding-top: 0px; | |
741 | } | |
742 | ||
743 | .sidebar { | |
744 | height: 40px; | |
745 | min-height: 40px; | |
746 | width: 100%; | |
747 | margin: 0px; | |
748 | padding: 0px; | |
749 | position: static; | |
750 | } | |
751 | ||
752 | .sidebar .location { | |
753 | float: right; | |
754 | margin: 0px; | |
755 | padding: 3px 10px 1px 10px; | |
756 | min-height: 39px; | |
757 | background: inherit; | |
758 | text-align: left; | |
759 | font-size: 24px; | |
760 | } | |
761 | ||
762 | .sidebar .location:empty { | |
763 | padding: 0; | |
764 | } | |
765 | ||
766 | .sidebar img { | |
767 | width: 35px; | |
768 | margin-top: 5px; | |
769 | margin-bottom: 0px; | |
770 | float: left; | |
771 | } | |
772 | ||
773 | nav.sub { | |
774 | margin: 0 auto; | |
775 | } | |
776 | ||
777 | .sidebar .block { | |
778 | display: none; | |
779 | } | |
780 | ||
781 | .content { | |
782 | margin-left: 0px; | |
783 | } | |
784 | ||
785 | .content .in-band { | |
786 | width: 100%; | |
787 | } | |
788 | ||
789 | .content .out-of-band { | |
790 | display: none; | |
791 | } | |
792 | ||
793 | .toggle-wrapper > .collapse-toggle { | |
794 | left: 0px; | |
795 | } | |
796 | ||
797 | .toggle-wrapper { | |
798 | height: 1.5em; | |
799 | } | |
1a4d82fc JJ |
800 | } |
801 | ||
802 | @media print { | |
476ff2be SL |
803 | nav.sub, .content .out-of-band, .collapse-toggle { |
804 | display: none; | |
805 | } | |
cc61c64b | 806 | } |