rustdoc.css 29.3 KB
Newer Older
1
/* See FiraSans-LICENSE.txt for the Fira Sans license. */
2
@font-face {
3 4 5
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 400;
6 7 8
	src: local('Fira Sans'),
		url("FiraSans-Regular.woff2") format("woff2"),
		url("FiraSans-Regular.woff") format('woff');
9
	font-display: swap;
10 11
}
@font-face {
12 13 14
	font-family: 'Fira Sans';
	font-style: normal;
	font-weight: 500;
15 16 17
	src: local('Fira Sans Medium'),
		url("FiraSans-Medium.woff2") format("woff2"),
		url("FiraSans-Medium.woff") format('woff');
18
	font-display: swap;
19
}
20

21
/* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license. */
22
@font-face {
23 24 25
	font-family: 'Source Serif Pro';
	font-style: normal;
	font-weight: 400;
26
	src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff');
27
	font-display: swap;
28 29
}
@font-face {
30 31 32
	font-family: 'Source Serif Pro';
	font-style: italic;
	font-weight: 400;
33
	src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff');
34
	font-display: swap;
35 36
}
@font-face {
37 38 39
	font-family: 'Source Serif Pro';
	font-style: normal;
	font-weight: 700;
40
	src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff');
41
	font-display: swap;
42
}
43 44

/* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
45
@font-face {
46 47 48
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
49 50
	/* Avoid using locally installed font because bad versions are in circulation:
	 * see https://github.com/rust-lang/rust/issues/24355 */
51
	src: url("SourceCodePro-Regular.woff") format('woff');
52
	font-display: swap;
53 54
}
@font-face {
55 56 57
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 600;
58
	src: url("SourceCodePro-Semibold.woff") format('woff');
59
	font-display: swap;
60
}
61

62
* {
G
Guillaume Gomez 已提交
63 64 65
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
66 67
}

68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
/* This part handles the "default" theme being used depending on the system one. */
html {
	content: "";
}
@media (prefers-color-scheme: light) {
	html {
		content: "light";
	}
}
@media (prefers-color-scheme: dark) {
	html {
		content: "dark";
	}
}

A
Adrien Tétar 已提交
83
/* General structure and fonts */
84 85

body {
J
Jon Gjengset 已提交
86
	font: 16px/1.4 "Source Serif Pro", serif;
87 88 89
	margin: 0;
	position: relative;
	padding: 10px 15px 20px 15px;
90

91 92 93
	-webkit-font-feature-settings: "kern", "liga";
	-moz-font-feature-settings: "kern", "liga";
	font-feature-settings: "kern", "liga";
94 95
}

A
Adrien Tétar 已提交
96
h1 {
97
	font-size: 1.5em;
A
Adrien Tétar 已提交
98 99
}
h2 {
100
	font-size: 1.4em;
A
Adrien Tétar 已提交
101 102
}
h3 {
103
	font-size: 1.3em;
A
Adrien Tétar 已提交
104
}
105
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),
G
Guillaume Gomez 已提交
106
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
107 108 109
	font-weight: 500;
	margin: 20px 0 15px 0;
	padding-bottom: 6px;
110
}
A
Adrien Tétar 已提交
111
h1.fqn {
112 113
	border-bottom: 1px dashed;
	margin-top: 0;
114
}
115 116 117
h1.fqn > .in-band > a:hover {
	text-decoration: underline;
}
G
Guillaume Gomez 已提交
118 119
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
120
	border-bottom: 1px solid;
121
}
122
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
J
John Heitmann 已提交
123
	flex-basis: 100%;
124
	font-weight: 600;
J
John Heitmann 已提交
125
	margin-top: 16px;
126 127
	margin-bottom: 10px;
	position: relative;
A
Adrien Tétar 已提交
128
}
129
h3.impl, h3.method, h3.type {
130
	padding-left: 15px;
A
Adrien Tétar 已提交
131
}
132 133

h1, h2, h3, h4,
134
.sidebar, a.source, .search-input, .content table td:first-child > a,
G
Guillaume Gomez 已提交
135
.collapse-toggle, div.item-list .out-of-band,
136 137 138
#source-sidebar, #sidebar-toggle,
/* This selector is for the items listed in the "all items" page. */
#main > ul.docblock > li > a {
139
	font-family: "Fira Sans", Arial;
140 141
}

C
Camelid 已提交
142 143 144 145
.content ul.crate a.crate {
	font: 16px/1.6 "Fira Sans";
}

A
Adrien Tétar 已提交
146
ol, ul {
147
	padding-left: 25px;
148
}
A
Adrien Tétar 已提交
149
ul ul, ol ul, ul ol, ol ol {
150
	margin-bottom: .6em;
A
Adrien Tétar 已提交
151
}
152 153

p {
154
	margin: 0 0 .6em 0;
155
}
A
Adrien Tétar 已提交
156

157 158 159 160
summary {
	outline: none;
}

161
code, pre, a.test-arrow {
J
Jon Gjengset 已提交
162
	font-family: "Source Code Pro", monospace;
A
Adrien Tétar 已提交
163
}
Liigo's avatar
Liigo 已提交
164
.docblock code, .docblock-short code {
165
	border-radius: 3px;
166
	padding: 0 0.1em;
167
}
168
.docblock pre code, .docblock-short pre code, .docblock code.spotlight {
169
	padding: 0;
170
	padding-right: 1ex;
I
Ivan Ukhov 已提交
171
}
172 173 174
.docblock code.spotlight :last-child {
	padding-bottom: 0.6em;
}
A
Adrien Tétar 已提交
175
pre {
176
	padding: 14px;
A
Adrien Tétar 已提交
177 178
}

179
.source .content pre {
180
	padding: 20px;
181 182
}

W
Wesley Wiser 已提交
183
img {
184
	max-width: 100%;
W
Wesley Wiser 已提交
185 186
}

187 188 189 190
li {
	position: relative;
}

191
.source .content {
192 193 194 195 196
	margin-top: 50px;
	max-width: none;
	overflow: visible;
	margin-left: 0px;
	min-width: 70em;
197 198
}

199
nav.sub {
200 201
	font-size: 16px;
	text-transform: uppercase;
202 203 204
}

.sidebar {
205
	width: 200px;
G
Guillaume Gomez 已提交
206
	position: fixed;
207 208
	left: 0;
	top: 0;
209
	bottom: 0;
G
Guillaume Gomez 已提交
210
	overflow: auto;
211 212 213 214 215 216 217
}

/* Improve the scrollbar display on firefox */
* {
	scrollbar-width: initial;
}
.sidebar {
218 219 220
	scrollbar-width: thin;
}

221 222 223 224
/* Improve the scrollbar display on webkit-based browsers */
::-webkit-scrollbar {
	width: 12px;
}
225 226 227
.sidebar::-webkit-scrollbar {
	width: 8px;
}
228
::-webkit-scrollbar-track {
229
	-webkit-box-shadow: inset 0;
230 231
}

G
Guillaume Gomez 已提交
232
.sidebar .block > ul > li {
G
Guillaume Gomez 已提交
233
	margin-right: -10px;
234 235
}

G
Guillaume Gomez 已提交
236 237 238
.content, nav {
	max-width: 960px;
}
239 240 241

/* Everything else */

242
.hidden {
G
Guillaume Gomez 已提交
243 244
	display: none !important;
}
245

246
.logo-container {
G
Guillaume Gomez 已提交
247 248 249
	height: 100px;
	width: 100px;
	position: relative;
250 251
	margin: 20px auto;
	display: block;
252
	margin-top: 10px;
253 254
}

G
Guillaume Gomez 已提交
255 256 257 258 259 260 261 262 263 264
.logo-container > img {
	max-width: 100px;
	max-height: 100px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: block;
}

265
.sidebar .location {
266
	border: 1px solid;
267
	font-size: 17px;
268
	margin: 30px 10px 20px 10px;
269
	text-align: center;
270
	word-wrap: break-word;
271 272
}

273 274 275
.sidebar .version {
	font-size: 15px;
	text-align: center;
G
Guillaume Gomez 已提交
276
	border-bottom: 1px solid;
277 278 279 280 281
	overflow-wrap: break-word;
	word-wrap: break-word; /* deprecated */
	word-break: break-word; /* Chrome, non-standard */
}

282 283 284 285
.location:empty {
	border: none;
}

G
Guillaume Gomez 已提交
286 287 288
.location a:first-child {
	font-weight: 500;
}
289

290
.block {
291
	padding: 0;
292
	margin-bottom: 14px;
293
}
294
.block h2, .block h3 {
295 296 297
	margin-top: 0;
	margin-bottom: 8px;
	text-align: center;
298
}
299
.block ul, .block li {
300
	margin: 0 10px;
301 302
	padding: 0;
	list-style: none;
303
}
304

305
.block a {
306 307 308 309 310 311 312 313
	display: block;
	text-overflow: ellipsis;
	overflow: hidden;
	line-height: 15px;
	padding: 7px 5px;
	font-size: 14px;
	font-weight: 300;
	transition: border 500ms ease-out;
314 315
}

316
.sidebar-title {
G
Guillaume Gomez 已提交
317 318
	border-top: 1px solid;
	border-bottom: 1px solid;
319 320 321 322 323 324 325 326 327 328 329 330 331 332
	text-align: center;
	font-size: 17px;
	margin-bottom: 5px;
}

.sidebar-links {
	margin-bottom: 15px;
}

.sidebar-links > a {
	padding-left: 10px;
	width: 100%;
}

333 334 335 336
.sidebar-menu {
	display: none;
}

337
.content {
338
	padding: 15px 0;
339 340
}

341
.source .content pre.rust {
342 343 344
	white-space: pre;
	overflow: auto;
	padding-left: 0;
345
}
G
Guillaume Gomez 已提交
346

G
Guillaume Gomez 已提交
347
.rustdoc:not(.source) .example-wrap {
348
	display: inline-flex;
349
	margin-bottom: 10px;
350
	position: relative;
G
Guillaume Gomez 已提交
351 352 353
}

.example-wrap {
354 355 356 357 358 359 360 361 362 363 364 365
	width: 100%;
}

.example-wrap > pre.line-number {
	overflow: initial;
	border: 1px solid;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	padding: 13px 8px;
	text-align: right;
}

G
Guillaume Gomez 已提交
366
.rustdoc:not(.source) .example-wrap > pre.rust {
367
	width: 100%;
G
Guillaume Gomez 已提交
368
	overflow-x: auto;
369 370
}

G
Guillaume Gomez 已提交
371
.rustdoc:not(.source) .example-wrap > pre {
372 373 374
	margin: 0;
}

375 376
#search {
	margin-left: 230px;
G
Guillaume Gomez 已提交
377
	position: relative;
378
}
G
Guillaume Gomez 已提交
379 380 381 382 383 384 385 386

#results {
	position: absolute;
	right: 0;
	left: 0;
	overflow: auto;
}

G
Guillaume Gomez 已提交
387 388 389
#results > table {
	width: 100%;
	table-layout: fixed;
390
	margin-bottom: 40px;
G
Guillaume Gomez 已提交
391 392
}

393
.content pre.line-numbers {
394 395 396
	float: left;
	border: none;
	position: relative;
397

398 399 400 401
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
402
}
G
Guillaume Gomez 已提交
403 404 405
.line-numbers span {
	cursor: pointer;
}
406

407 408 409
.docblock-short {
	overflow-wrap: anywhere;
}
Liigo's avatar
Liigo 已提交
410
.docblock-short p {
411
	display: inline;
412 413
}

Liigo's avatar
Liigo 已提交
414
.docblock-short p {
415 416 417
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
418
}
419 420 421
.docblock-short code {
	white-space: pre-wrap;
}
422 423

.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
424
	border-bottom: 1px solid;
425
}
426

427 428 429 430
#main > .docblock h1 { font-size: 1.3em; }
#main > .docblock h2 { font-size: 1.15em; }
#main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }

431
#main > h2 + div, #main > h2 + h3, #main > h3 + div {
J
John Heitmann 已提交
432 433
	display: none; /* Changed to flex or block via js once the page is loaded */
	flex-wrap: wrap;
434 435
}

436 437 438
.docblock h1 { font-size: 1em; }
.docblock h2 { font-size: 0.95em; }
.docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
439

440
.docblock {
441
	margin-left: 24px;
442
	position: relative;
443 444
}

A
Aaron Turon 已提交
445
.content .out-of-band {
446
	float: right;
447 448 449 450
	font-size: 23px;
	margin: 0px;
	padding: 0px;
	font-weight: normal;
451 452 453
}

h3.impl > .out-of-band {
454
	font-size: 21px;
455 456
}

457 458 459 460
h4.method > .out-of-band {
	font-size: 19px;
}

E
Eitan Adler 已提交
461
h4 > code, h3 > code, .invisible > code {
462 463
	max-width: calc(100% - 41px);
	display: block;
464 465
}

N
Nick Cameron 已提交
466
.invisible {
467 468
	width: 100%;
	display: inline-block;
N
Nick Cameron 已提交
469 470
}

471
.content .in-band {
472 473
	margin: 0px;
	padding: 0px;
474 475
}

G
Guillaume Gomez 已提交
476 477 478 479
.in-band > code {
	display: inline-block;
}

G
Guillaume Gomez 已提交
480 481 482
#main {
	position: relative;
}
483
#main > .since {
484
	top: inherit;
485
	font-family: "Fira Sans", Arial;
486 487
}

G
Guillaume Gomez 已提交
488
.content table:not(.table-display) {
489
	border-spacing: 0 5px;
490 491 492 493 494
}
.content td { vertical-align: top; }
.content td:first-child { padding-right: 20px; }
.content td p:first-child { margin-top: 0; }
.content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
495
.content tr:first-child td { border-top: 0; }
496

497
.docblock table {
498
	margin: .5em 0;
G
Guillaume Gomez 已提交
499 500
	width: calc(100% - 2px);
	border: 1px dashed;
501 502 503
}

.docblock table td {
504
	padding: .5em;
505
	border: 1px dashed;
506 507 508
}

.docblock table th {
509 510
	padding: .5em;
	text-align: left;
511
	border: 1px solid;
512 513
}

514 515 516 517
.fields + table {
	margin-bottom: 1em;
}

518
.content .item-list {
519 520
	list-style-type: none;
	padding: 0;
521 522 523
}

.content .multi-column {
524 525 526 527 528 529
	-moz-column-count: 5;
	-moz-column-gap: 2.5em;
	-webkit-column-count: 5;
	-webkit-column-gap: 2.5em;
	column-count: 5;
	column-gap: 2.5em;
530 531 532
}
.content .multi-column li { width: 100%; display: inline-block; }

533
.content .method {
534 535
	font-size: 1em;
	position: relative;
536
}
537
/* Shift "where ..." part of method or fn definition down a line */
538 539 540
.content .method .where,
.content .fn .where,
.content .where.fmt-newline {
G
Guillaume Gomez 已提交
541
	display: block;
542
	font-size: 0.8em;
543
}
D
Dirk Gadsden 已提交
544

545
.content .methods > div:not(.notable-traits) {
G
Guillaume Gomez 已提交
546 547 548
	margin-left: 40px;
	margin-bottom: 15px;
}
549

550
.content .docblock > .impl-items {
551
	margin-left: 20px;
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
	margin-top: -34px;
}
.content .docblock > .impl-items > h4 {
	border-bottom: 0;
}
.content .docblock >.impl-items .table-display {
	margin: 0;
}
.content .docblock >.impl-items table td {
	padding: 0;
}
.toggle-wrapper.marg-left > .collapse-toggle {
	left: -24px;
}
.content .docblock > .impl-items .table-display, .impl-items table td {
	border: none;
568
}
569

570
.content .item-info code {
571
	font-size: 90%;
572 573
}

574
.content .item-info {
575 576 577 578
	position: relative;
	margin-left: 33px;
	margin-top: -13px;
}
579

580
.sub-variant > div > .item-info {
G
Guillaume Gomez 已提交
581 582 583
	margin-top: initial;
}

584
.content .item-info::before {
585
	content: '⬑';
Liigo's avatar
Liigo 已提交
586
	font-size: 25px;
587
	position: absolute;
Liigo's avatar
Liigo 已提交
588
	top: -6px;
589
	left: -19px;
590
}
591 592 593 594 595

.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
	margin-left: 20px;
}

596
.content .impl-items .docblock, .content .impl-items .item-info {
597 598 599
	margin-bottom: .6em;
}

600
.content .impl-items > .item-info {
601 602 603
	margin-left: 40px;
}

604
.methods > .item-info, .content .impl-items > .item-info {
605 606
	margin-top: -8px;
}
607

J
John Heitmann 已提交
608 609 610 611
.impl-items {
	flex-basis: 100%;
}

612
#main > .item-info {
613 614 615
	margin-top: 0;
}

616
nav:not(.sidebar) {
617 618 619
	border-bottom: 1px solid;
	padding-bottom: 10px;
	margin-bottom: 10px;
620 621
}
nav.main {
622 623
	padding: 20px 0;
	text-align: center;
624 625
}
nav.main .current {
626 627
	border-top: 1px solid;
	border-bottom: 1px solid;
628 629
}
nav.main .separator {
630 631 632 633
	border: 1px solid;
	display: inline-block;
	height: 23px;
	margin: 0 20px;
634 635 636 637
}
nav.sum { text-align: right; }
nav.sub form { display: inline; }

638
nav.sub, .content {
639
	margin-left: 230px;
640 641 642
}

a {
643 644
	text-decoration: none;
	background: transparent;
645
}
646

G
Guillaume Gomez 已提交
647 648 649
.small-section-header:hover > .anchor {
	display: initial;
}
J
Jouan Amate 已提交
650

651
.in-band:hover > .anchor, .impl:hover > .anchor {
G
Guillaume Gomez 已提交
652 653
	display: inline-block;
	position: absolute;
J
Jouan Amate 已提交
654
}
G
Guillaume Gomez 已提交
655 656
.anchor {
	display: none;
657
	position: absolute;
658
	left: -7px;
G
Guillaume Gomez 已提交
659
}
660
.anchor.field {
661
	left: -5px;
662
}
663 664
.small-section-header > .anchor {
	left: -28px;
665
	padding-right: 10px; /* avoid gap that causes hover to disappear */
666
}
667
.anchor:before {
G
Guillaume Gomez 已提交
668 669 670
	content: '\2002\00a7\2002';
}

G
Guillaume Gomez 已提交
671
.docblock a:not(.srclink):not(.test-arrow):hover,
672
.docblock-short a:not(.srclink):not(.test-arrow):hover, .item-info a {
673
	text-decoration: underline;
674
}
675

676
.invisible > .srclink, h4 > code + .srclink, h3 > code + .srclink {
677 678 679 680 681 682 683
	position: absolute;
	top: 0;
	right: 0;
	font-size: 17px;
	font-weight: normal;
}

684
.block a.current.crate { font-weight: 500; }
685

G
Guillaume Gomez 已提交
686 687 688
.search-container {
	position: relative;
}
G
Guillaume Gomez 已提交
689 690
.search-container > div {
	display: inline-flex;
G
Guillaume Gomez 已提交
691
	width: calc(100% - 63px);
G
Guillaume Gomez 已提交
692 693
}
#crate-search {
694
	min-width: 115px;
G
Guillaume Gomez 已提交
695 696
	margin-top: 5px;
	padding: 6px;
697
	padding-right: 19px;
698
	flex: none;
G
Guillaume Gomez 已提交
699 700 701 702 703 704 705 706 707 708 709
	border: 0;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	outline: none;
	cursor: pointer;
	border-right: 1px solid;
	-moz-appearance: none;
	-webkit-appearance: none;
	/* Removes default arrow from firefox */
	text-indent: 0.01px;
	text-overflow: "";
710 711
	background-repeat: no-repeat;
	background-color: transparent;
712
	background-size: 20px;
713
	background-position: calc(100% - 1px) 56%;
G
Guillaume Gomez 已提交
714
}
G
Guillaume Gomez 已提交
715 716 717 718 719
.search-container > .top-button {
	position: absolute;
	right: 0;
	top: 10px;
}
720
.search-input {
721 722 723 724 725 726 727
	/* Override Normalize.css: we have margins and do
	 not want to overflow - the `moz` attribute is necessary
	 until Firefox 29, too early to drop at this point */
	-moz-box-sizing: border-box !important;
	box-sizing: border-box !important;
	outline: none;
	border: none;
728
	border-radius: 1px;
729 730 731 732 733 734
	margin-top: 5px;
	padding: 10px 16px;
	font-size: 17px;
	transition: border-color 300ms ease;
	transition: border-radius 300ms ease-in-out;
	transition: box-shadow 300ms ease-in-out;
735
	width: 100%;
736 737
}

738 739
#crate-search + .search-input {
	border-radius: 0 1px 1px 0;
740
	width: calc(100% - 32px);
741 742
}

743
.search-input:focus {
744 745 746
	border-radius: 2px;
	border: 0;
	outline: 0;
A
Adrien Tétar 已提交
747
}
748

749
.search-results .desc {
750 751 752 753
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: block;
754 755
}

756
.search-results a {
757
	display: block;
758 759
}

G
Guillaume Gomez 已提交
760 761
.content .search-results td:first-child {
	padding-right: 0;
762
	width: 50%;
G
Guillaume Gomez 已提交
763 764 765 766
}
.content .search-results td:first-child a {
	padding-right: 10px;
}
767
.content .search-results td:first-child a:after {
G
Guillaume Gomez 已提交
768 769 770
	clear: both;
	content: "";
	display: block;
771
}
G
Guillaume Gomez 已提交
772 773 774
.content .search-results td:first-child a span {
	float: left;
}
775

776
tr.result span.primitive::after {
G
Guillaume Gomez 已提交
777 778
	content: ' (primitive type)';
	font-style: italic;
E
Eitan Adler 已提交
779
}
780

G
Guillaume Gomez 已提交
781 782 783 784 785
tr.result span.keyword::after {
	content: ' (keyword)';
	font-style: italic;
}

786
body.blur > :not(#help) {
787 788 789
	filter: blur(8px);
	-webkit-filter: blur(8px);
	opacity: .7;
790 791
}

792
#help {
793 794 795 796 797 798 799 800
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
801 802
}
#help > div {
803 804 805
	flex: 0 0 auto;
	box-shadow: 0 0 6px rgba(0,0,0,.2);
	width: 550px;
M
Marcel Hellwig 已提交
806
	height: auto;
G
Guillaume Gomez 已提交
807
	border: 1px solid;
808 809
}
#help dt {
810 811 812
	float: left;
	clear: left;
	display: block;
813
	margin-right: 0.5rem;
814
}
815 816 817 818 819 820 821 822 823
#help > div > span {
	text-align: center;
	display: block;
	margin: 10px 0;
	font-size: 18px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 4px;
	margin-bottom: 6px;
}
G
Guillaume Gomez 已提交
824
#help dd { margin: 5px 35px; }
825
#help .infos { padding-left: 0; }
826
#help h1, #help h2 { margin-top: 0; }
827
#help > div div {
828 829
	width: 50%;
	float: left;
830
	padding: 0 20px 20px 17px;;
831
}
832

833 834
.stab {
	display: table;
835 836 837 838 839
	border-width: 1px;
	border-style: solid;
	padding: 3px;
	margin-bottom: 5px;
	font-size: 90%;
840
}
841
.stab p {
842
	display: inline;
843 844
}

845 846 847 848
.stab summary {
	display: list-item;
}

849
.stab .emoji {
850 851 852
	font-size: 1.5em;
}

853
.module-item .stab {
854 855 856 857 858 859 860 861
	border-radius: 3px;
	display: inline-block;
	font-size: 80%;
	line-height: 1.2;
	margin-bottom: 0;
	margin-right: .3em;
	padding: 2px;
	vertical-align: text-bottom;
862
}
863

864
.module-item.unstable {
865
	opacity: 0.65;
866
}
867

868
.since {
869 870 871 872 873
	font-weight: normal;
	font-size: initial;
	position: absolute;
	right: 0;
	top: 0;
874 875
}

876
.impl-items .since, .impl .since, .methods .since {
J
John Heitmann 已提交
877 878 879 880 881 882
	flex-grow: 0;
	padding-left: 12px;
	padding-right: 2px;
	position: initial;
}

883
.impl-items .srclink, .impl .srclink, .methods .srclink {
J
John Heitmann 已提交
884 885 886 887 888 889
	flex-grow: 0;
	/* Override header settings otherwise it's too bold */
	font-size: 17px;
	font-weight: normal;
}

890
.impl-items code, .impl code, .methods code {
J
John Heitmann 已提交
891 892 893
	flex-grow: 1;
}

894
.impl-items h4, h4.impl, h3.impl, .methods h3 {
J
John Heitmann 已提交
895 896 897 898 899 900 901 902
	display: flex;
	flex-basis: 100%;
	font-size: 16px;
	margin-bottom: 12px;
	/* Push the src link out to the right edge consistently */
	justify-content: space-between;
}

903
.variants_table {
904
	width: 100%;
905 906 907
}

.variants_table tbody tr td:first-child {
908
	width: 1%; /* make the variant name as small as possible */
909 910
}

911
td.summary-column {
912
	width: 100%;
913 914
}

A
Aaron Turon 已提交
915
.summary {
916
	padding-right: 0px;
A
Aaron Turon 已提交
917 918
}

E
est31 已提交
919
pre.rust .question-mark {
920
	font-weight: bold;
E
est31 已提交
921
}
922

923
a.test-arrow {
924 925 926 927 928 929 930
	display: inline-block;
	position: absolute;
	padding: 5px 10px 5px 10px;
	border-radius: 5px;
	font-size: 130%;
	top: 5px;
	right: 5px;
931
	z-index: 1;
932
}
933
a.test-arrow:hover{
934
	text-decoration: none;
935
}
936

937 938 939
.section-header:hover a:before {
	position: absolute;
	left: -25px;
940
	padding-right: 10px; /* avoid gap that causes hover to disappear */
941
	content: '\2002\00a7\2002';
942
}
D
Daniel Fagnan 已提交
943

944
.section-header:hover a {
945
	text-decoration: none;
946 947 948
}

.section-header a {
949
	color: inherit;
950 951
}

952
.collapse-toggle {
953 954 955 956
	font-weight: 300;
	position: absolute;
	left: -23px;
	top: 0;
957 958
}

959 960 961 962 963
h3 > .collapse-toggle, h4 > .collapse-toggle {
	font-size: 0.8em;
	top: 5px;
}

964
.toggle-wrapper > .collapse-toggle {
965 966
	left: -24px;
	margin-top: 0px;
967 968 969
}

.toggle-wrapper {
970
	position: relative;
971
	margin-top: 0;
972 973 974
}

.toggle-wrapper.collapsed {
975
	height: 25px;
976
	transition: height .2s;
977
	margin-bottom: .6em;
978 979 980
}

.collapse-toggle > .inner {
981 982 983
	display: inline-block;
	width: 1.2ch;
	text-align: center;
984 985
}

986 987 988 989 990
.collapse-toggle.hidden-default {
	position: relative;
	margin-left: 20px;
}

991
.since + .srclink {
992 993
	display: table-cell;
	padding-left: 10px;
994
}
995

996 997 998 999 1000
.item-spacer {
	width: 100%;
	height: 12px;
}

1001
.out-of-band > span.since {
1002 1003 1004
	position: initial;
	font-size: 20px;
	margin-right: 5px;
G
Guillaume Gomez 已提交
1005 1006
}

1007
.toggle-wrapper > .collapse-toggle {
1008
	left: 0;
1009 1010
}

G
Guillaume Gomez 已提交
1011 1012 1013 1014
.variant + .toggle-wrapper + .docblock > p {
	margin-top: 5px;
}

1015
.sub-variant, .sub-variant > h3 {
G
Guillaume Gomez 已提交
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
	margin-top: 1px !important;
}

#main > .sub-variant > h3 {
	font-size: 15px;
	margin-left: 25px;
	margin-bottom: 5px;
}

.sub-variant > div {
	margin-left: 20px;
	margin-bottom: 10px;
}

.sub-variant > div > span {
	display: block;
	position: relative;
1033 1034
}

1035 1036 1037 1038 1039 1040
.toggle-label {
	display: inline-block;
	margin-left: 4px;
	margin-top: 3px;
}

1041
.enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
1042 1043 1044
	margin-left: 30px;
	margin-bottom: 20px;
	margin-top: 5px;
1045 1046
}

1047 1048
.docblock > .section-header:first-child {
	margin-left: 15px;
1049
	margin-top: 0;
1050 1051 1052 1053 1054 1055
}

.docblock > .section-header:first-child:hover > a:before {
	left: -10px;
}

1056
.enum > .collapsed, .struct > .collapsed {
1057
	margin-bottom: 25px;
1058 1059
}

1060
#main > .variant, #main > .structfield {
1061 1062 1063 1064 1065
	display: block;
}

.attributes {
	display: block;
1066 1067 1068 1069
	margin-top: 0px !important;
	margin-right: 0px;
	margin-bottom: 0px !important;
	margin-left: 30px;
1070 1071
}
.toggle-attributes.collapsed {
1072 1073 1074 1075 1076 1077 1078
	margin-bottom: 0;
}
.impl-items > .toggle-attributes {
	margin-left: 20px;
}
.impl-items .attributes {
	font-weight: 500;
G
Guillaume Gomez 已提交
1079 1080
}

1081
:target > code {
G
Guillaume Gomez 已提交
1082
	opacity: 1;
1083 1084
}

G
Guillaume Gomez 已提交
1085 1086
.information {
	position: absolute;
1087
	left: -25px;
G
Guillaume Gomez 已提交
1088
	margin-top: 7px;
G
Guillaume Gomez 已提交
1089
	z-index: 1;
G
Guillaume Gomez 已提交
1090 1091 1092 1093 1094 1095 1096 1097
}

.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

1098
.tooltip::after {
G
Guillaume Gomez 已提交
1099 1100
	display: none;
	text-align: center;
1101
	padding: 5px 3px 3px 3px;
G
Guillaume Gomez 已提交
1102 1103
	border-radius: 6px;
	margin-left: 5px;
1104
	font-size: 16px;
G
Guillaume Gomez 已提交
1105 1106
}

1107 1108 1109 1110 1111 1112 1113 1114 1115 1116
.tooltip.ignore::after {
	content: "This example is not tested";
}
.tooltip.compile_fail::after {
	content: "This example deliberately fails to compile";
}
.tooltip.should_panic::after {
	content: "This example panics";
}
.tooltip.edition::after {
1117
	content: "This code runs with edition " attr(data-edition);
1118 1119 1120
}

.tooltip::before {
G
Guillaume Gomez 已提交
1121 1122 1123
	content: " ";
	position: absolute;
	top: 50%;
1124
	left: 16px;
G
Guillaume Gomez 已提交
1125 1126 1127
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
1128
	display: none;
G
Guillaume Gomez 已提交
1129
}
G
Guillaume Gomez 已提交
1130

1131
.tooltip:hover::before, .tooltip:hover::after {
G
Guillaume Gomez 已提交
1132 1133 1134
	display: inline;
}

1135
.tooltip.compile_fail, .tooltip.should_panic, .tooltip.ignore {
1136 1137 1138 1139
	font-weight: bold;
	font-size: 20px;
}

1140
.notable-traits-tooltip {
M
Manish Goregaokar 已提交
1141 1142 1143 1144
	display: inline-block;
	cursor: pointer;
}

1145 1146
.notable-traits:hover .notable-traits-tooltiptext,
.notable-traits .notable-traits-tooltiptext.force-tooltip {
M
Manish Goregaokar 已提交
1147 1148 1149
	display: inline-block;
}

1150
.notable-traits .notable-traits-tooltiptext {
M
Manish Goregaokar 已提交
1151 1152 1153 1154 1155 1156 1157 1158
	display: none;
	padding: 5px 3px 3px 3px;
	border-radius: 6px;
	margin-left: 5px;
	z-index: 10;
	font-size: 16px;
	cursor: default;
	position: absolute;
1159
	border: 1px solid;
M
Manish Goregaokar 已提交
1160 1161
}

1162
.notable-traits-tooltip::after {
M
Manish Goregaokar 已提交
1163 1164 1165
	/* The margin on the tooltip does not capture hover events,
	   this extends the area of hover enough so that mouse hover is not
	   lost when moving the mouse to the tooltip */
G
Guillaume Gomez 已提交
1166
	content: "\00a0\00a0\00a0";
M
Manish Goregaokar 已提交
1167 1168
}

1169
.notable-traits .notable, .notable-traits .docblock {
M
Manish Goregaokar 已提交
1170 1171 1172
	margin: 0;
}

1173
.notable-traits .docblock code.content{
G
Guillaume Gomez 已提交
1174 1175 1176
	margin: 0;
	padding: 0;
	font-size: 20px;
1177 1178
}

G
Guillaume Gomez 已提交
1179
/* Example code has the "Run" button that needs to be positioned relative to the pre */
1180
pre.rust.rust-example-rendered {
G
Guillaume Gomez 已提交
1181
	position: relative;
1182 1183 1184
}

pre.rust {
0
0xd4d 已提交
1185 1186
	tab-size: 4;
	-moz-tab-size: 4;
G
Guillaume Gomez 已提交
1187
}
1188 1189 1190 1191 1192 1193

.search-failed {
	text-align: center;
	margin-top: 20px;
}

1194 1195 1196 1197 1198 1199 1200
.search-failed > ul {
	text-align: left;
	max-width: 570px;
	margin-left: auto;
	margin-right: auto;
}

1201 1202 1203 1204
#titles {
	height: 35px;
}

1205
#titles > button {
1206 1207 1208 1209 1210
	float: left;
	width: 33.3%;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
1211
	border: 0;
G
Guillaume Gomez 已提交
1212
	border-top: 2px solid;
1213 1214
}

1215
#titles > button:not(:last-child) {
G
Guillaume Gomez 已提交
1216 1217
	margin-right: 1px;
	width: calc(33.3% - 1px);
1218
}
1219

1220
#titles > button > div.count {
1221 1222 1223
	display: inline-block;
	font-size: 16px;
}
1224

1225
.notable-traits {
1226 1227
	cursor: pointer;
	z-index: 2;
1228
	margin-left: 5px;
1229 1230
}

1231
h4 > .notable-traits {
1232 1233 1234 1235 1236
	position: absolute;
	left: -44px;
	top: 2px;
}

G
Guillaume Gomez 已提交
1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248
#all-types {
	text-align: center;
	border: 1px solid;
	margin: 0 10px;
	margin-bottom: 10px;
	display: block;
	border-radius: 7px;
}
#all-types > p {
	margin: 5px 0;
}

1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281
#sidebar-toggle {
	position: fixed;
	top: 30px;
	left: 300px;
	z-index: 10;
	padding: 3px;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
	cursor: pointer;
	font-weight: bold;
	transition: left .5s;
	font-size: 1.2em;
	border: 1px solid;
	border-left: 0;
}
#source-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 300px;
	z-index: 1;
	overflow: auto;
	transition: left .5s;
	border-right: 1px solid;
}
#source-sidebar > .title {
	font-size: 1.5em;
	text-align: center;
	border-bottom: 1px solid;
	margin-bottom: 6px;
}

G
Guillaume Gomez 已提交
1282 1283 1284 1285 1286 1287 1288 1289 1290 1291
.theme-picker {
	position: absolute;
	left: 211px;
	top: 19px;
}

.theme-picker button {
	outline: none;
}

G
Guillaume Gomez 已提交
1292
#settings-menu, .help-button {
G
Guillaume Gomez 已提交
1293 1294
	position: absolute;
	top: 10px;
G
Guillaume Gomez 已提交
1295 1296 1297 1298
}

#settings-menu {
	right: 0;
G
Guillaume Gomez 已提交
1299 1300 1301
	outline: none;
}

G
Guillaume Gomez 已提交
1302 1303
.help-button {
	right: 30px;
1304
	font-family: "Fira Sans", Arial;
G
Guillaume Gomez 已提交
1305 1306 1307 1308 1309
	text-align: center;
	font-size: 17px;
}

#theme-picker, #settings-menu, .help-button {
G
Guillaume Gomez 已提交
1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331
	padding: 4px;
	width: 27px;
	height: 29px;
	border: 1px solid;
	border-radius: 3px;
	cursor: pointer;
}

#theme-choices {
	display: none;
	position: absolute;
	left: 0;
	top: 28px;
	border: 1px solid;
	border-radius: 3px;
	z-index: 1;
	cursor: pointer;
}

#theme-choices > button {
	border: none;
	width: 100%;
1332
	padding: 4px 8px;
G
Guillaume Gomez 已提交
1333 1334 1335 1336 1337 1338 1339 1340
	text-align: center;
	background: rgba(0,0,0,0);
}

#theme-choices > button:not(:first-child) {
	border-top: 1px solid;
}

1341 1342
/* Media Queries */

1343 1344 1345 1346 1347 1348 1349 1350 1351 1352
@media (min-width: 701px) {
	/* In case there is no documentation before a code block, we need to add some margin at the top
	to prevent an overlay between the "collapse toggle" and the information tooltip.
	However, it's needed needed with smaller screen width because the doc/code block is always put
	"one line" below. */
	.information:first-child > .tooltip {
		margin-top: 16px;
	}
}

1353
@media (max-width: 700px) {
1354 1355 1356 1357
	body {
		padding-top: 0px;
	}

1358
	.rustdoc > .sidebar {
1359
		height: 45px;
1360
		min-height: 40px;
1361 1362 1363
		margin: 0;
		margin-left: -15px;
		padding: 0 15px;
1364
		position: static;
1365
		z-index: 11;
1366 1367
	}

1368
	.sidebar > .location {
1369 1370
		float: right;
		margin: 0px;
1371
		margin-top: 2px;
1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382
		padding: 3px 10px 1px 10px;
		min-height: 39px;
		background: inherit;
		text-align: left;
		font-size: 24px;
	}

	.sidebar .location:empty {
		padding: 0;
	}

G
Guillaume Gomez 已提交
1383
	.sidebar .logo-container {
1384
		width: 35px;
G
Guillaume Gomez 已提交
1385
		height: 35px;
1386
		margin-top: 5px;
1387
		margin-bottom: 5px;
1388
		float: left;
1389
		margin-left: 50px;
1390 1391
	}

G
Guillaume Gomez 已提交
1392 1393 1394 1395 1396
	.sidebar .logo-container > img {
		max-width: 35px;
		max-height: 35px;
	}

1397
	.sidebar-menu {
1398 1399
		position: fixed;
		z-index: 10;
1400 1401
		font-size: 2rem;
		cursor: pointer;
1402 1403 1404
		width: 45px;
		left: 0;
		text-align: center;
1405
		display: block;
1406 1407
		border-bottom: 1px solid;
		border-right: 1px solid;
G
Guillaume Gomez 已提交
1408
		height: 45px;
1409 1410
	}

1411 1412 1413 1414
	.rustdoc.source > .sidebar > .sidebar-menu {
		display: none;
	}

1415 1416 1417 1418 1419 1420 1421
	.sidebar-elems {
		position: fixed;
		z-index: 1;
		left: 0;
		top: 45px;
		bottom: 0;
		overflow-y: auto;
1422
		border-right: 1px solid;
1423 1424 1425
		display: none;
	}

1426 1427 1428
	.sidebar > .block.version {
		border-bottom: none;
		margin-top: 12px;
1429
		margin-bottom: 0;
1430 1431
	}

1432
	nav.sub {
G
Guillaume Gomez 已提交
1433 1434
		width: calc(100% - 32px);
		float: right;
1435 1436
	}

1437 1438 1439 1440
	.content {
		margin-left: 0px;
	}

1441
	#main, #search {
1442
		margin-top: 45px;
1443 1444 1445
		padding: 0;
	}

1446 1447 1448 1449
	.content .in-band {
		width: 100%;
	}

1450 1451
	.content h4 > .out-of-band {
		position: inherit;
1452 1453 1454 1455 1456 1457 1458 1459 1460
	}

	.toggle-wrapper > .collapse-toggle {
		left: 0px;
	}

	.toggle-wrapper {
		height: 1.5em;
	}
1461 1462 1463 1464

	#search {
		margin-left: 0;
	}
1465 1466 1467 1468

	.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
		display: flex;
	}
1469 1470

	.anchor {
1471
		display: none !important;
1472
	}
G
Guillaume Gomez 已提交
1473 1474 1475 1476

	h1.fqn {
		overflow: initial;
	}
1477

G
Guillaume Gomez 已提交
1478 1479 1480 1481
	.theme-picker {
		left: 10px;
		top: 54px;
		z-index: 1;
1482
	}
1483

1484
	h4 > .notable-traits {
1485 1486 1487 1488 1489
		position: absolute;
		left: -22px;
		top: 24px;
	}

1490
	#titles > button > div.count {
G
Guillaume Gomez 已提交
1491 1492 1493 1494 1495 1496 1497
		float: left;
		width: 100%;
	}

	#titles {
		height: 50px;
	}
G
Guillaume Gomez 已提交
1498 1499 1500 1501 1502 1503 1504 1505

	.sidebar.mobile {
		position: fixed;
		width: 100%;
		margin-left: 0;
		background-color: rgba(0,0,0,0);
		height: 100%;
	}
1506 1507 1508 1509 1510 1511 1512 1513
	/*
	This allows to prevent the version text to overflow the sidebar title on mobile mode when the
	sidebar is displayed (after clicking on the "hamburger" button).
	*/
	.sidebar.mobile > div.version {
		overflow: hidden;
		max-height: 33px;
	}
G
Guillaume Gomez 已提交
1514 1515 1516
	.sidebar {
		width: calc(100% + 30px);
	}
G
Guillaume Gomez 已提交
1517 1518 1519

	.show-it {
		display: block;
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537
		width: 246px;
	}

	.show-it > .block.items {
		margin: 8px 0;
	}

	.show-it > .block.items > ul {
		margin: 0;
	}

	.show-it > .block.items > ul > li {
		text-align: center;
		margin: 2px 0;
	}

	.show-it > .block.items > ul > li > a {
		font-size: 21px;
G
Guillaume Gomez 已提交
1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553
	}

	/* Because of ios, we need to actually have a full height sidebar title so the
	 * actual sidebar can show up. But then we need to make it transparent so we don't
	 * hide content. The filler just allows to create the background for the sidebar
	 * title. But because of the absolute position, I had to lower the z-index.
	 */
	#sidebar-filler {
		position: fixed;
		left: 45px;
		width: calc(100% - 45px);
		top: 0;
		height: 45px;
		z-index: -1;
		border-bottom: 1px solid;
	}
1554 1555

	.collapse-toggle {
1556 1557 1558 1559 1560
		left: -20px;
	}

	.impl > .collapse-toggle {
		left: -10px;
1561
	}
G
Guillaume Gomez 已提交
1562 1563 1564 1565

	#all-types {
		margin: 10px;
	}
1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577

	#sidebar-toggle {
		top: 100px;
		width: 30px;
		font-size: 1.5rem;
		text-align: center;
		padding: 0;
	}

	#source-sidebar {
		z-index: 11;
	}
G
Guillaume Gomez 已提交
1578 1579 1580 1581

	#main > .line-numbers {
		margin-top: 0;
	}
1582

1583
	.notable-traits .notable-traits-tooltiptext {
1584 1585 1586
		left: 0;
		top: 100%;
	}
1587 1588 1589 1590 1591 1592 1593 1594

	/* We don't display the help button on mobile devices. */
	.help-button {
		display: none;
	}
	.search-container > div {
		width: calc(100% - 32px);
	}
G
Guillaume Gomez 已提交
1595 1596
}

G
Guillaume Gomez 已提交
1597 1598 1599 1600 1601
@media print {
	nav.sub, .content .out-of-band, .collapse-toggle {
		display: none;
	}
}
G
Guillaume Gomez 已提交
1602

G
Guillaume Gomez 已提交
1603
@media (max-width: 464px) {
1604
	#titles, #titles > button {
G
Guillaume Gomez 已提交
1605 1606
		height: 73px;
	}
1607

1608 1609 1610 1611
	/* This is to prevent the search bar from being underneath the <section>
	 * element following it.
	 */
	#main, #search {
1612 1613 1614
		margin-top: 100px;
	}

1615 1616
	#main > table:not(.table-display) td {
		word-break: break-word;
G
Guillaume Gomez 已提交
1617
		width: 50%;
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648
	}

	.search-container > div {
		display: block;
		width: calc(100% - 37px);
	}

	#crate-search {
		width: 100%;
		border-radius: 4px;
		border: 0;
	}

	#crate-search + .search-input {
		width: calc(100% + 71px);
		margin-left: -36px;
	}

	#theme-picker, #settings-menu {
		padding: 5px;
		width: 31px;
		height: 31px;
	}

	#theme-picker {
		margin-top: -2px;
	}

	#settings-menu {
		top: 7px;
	}
I
Ivan Tham 已提交
1649

1650 1651 1652
	.docblock {
		margin-left: 12px;
	}
1653 1654
}

1655
h3.notable {
1656 1657 1658 1659 1660
	margin: 0;
	margin-bottom: 13px;
	font-size: 19px;
}

1661 1662 1663
kbd {
	display: inline-block;
	padding: 3px 5px;
J
Jon Gjengset 已提交
1664
	font: 15px monospace;
1665 1666
	line-height: 10px;
	vertical-align: middle;
1667
	border: solid 1px;
1668
	border-radius: 3px;
1669
	box-shadow: inset 0 -1px 0;
1670
	cursor: default;
1671
}
1672

1673 1674
.hidden-by-impl-hider,
.hidden-by-usual-hider {
1675 1676
	/* important because of conflicting rule for small screens */
	display: none !important;
1677
}
G
Guillaume Gomez 已提交
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702

#implementations-list > h3 > span.in-band {
	width: 100%;
}

.table-display {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 16px;
}

.table-display tr td:first-child {
	padding-right: 0;
}

.table-display tr td:last-child {
	float: right;
}
.table-display .out-of-band {
	position: relative;
	font-size: 19px;
	display: block;
}
G
Guillaume Gomez 已提交
1703 1704 1705 1706 1707 1708 1709 1710 1711
#implementors-list > .impl-items .table-display .out-of-band {
	font-size: 17px;
}

.table-display td:hover .anchor {
	display: block;
	top: 2px;
	left: -5px;
}
1712 1713 1714 1715 1716 1717 1718

#main > ul {
	padding-left: 10px;
}
#main > ul > li {
	list-style: none;
}
1719 1720 1721 1722

.non-exhaustive {
	margin-bottom: 1em;
}
G
Guillaume Gomez 已提交
1723 1724 1725 1726 1727

div.children {
	padding-left: 27px;
	display: none;
}
G
Guillaume Gomez 已提交
1728 1729 1730 1731 1732
div.name {
	cursor: pointer;
	position: relative;
	margin-left: 16px;
}
G
Guillaume Gomez 已提交
1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744
div.files > a {
	display: block;
	padding: 0 3px;
}
div.files > a:hover, div.name:hover {
	background-color: #a14b4b;
}
div.name.expand + .children {
	display: block;
}
div.name::before {
	content: "\25B6";
G
Guillaume Gomez 已提交
1745
	padding-left: 4px;
G
Guillaume Gomez 已提交
1746
	font-size: 0.7em;
G
Guillaume Gomez 已提交
1747 1748 1749
	position: absolute;
	left: -16px;
	top: 4px;
G
Guillaume Gomez 已提交
1750 1751 1752
}
div.name.expand::before {
	transform: rotate(90deg);
G
Guillaume Gomez 已提交
1753 1754
	left: -15px;
	top: 2px;
G
Guillaume Gomez 已提交
1755
}
1756 1757

/* This part is to fix the "Expand attributes" part in the type declaration. */
1758
.type-decl > pre > .toggle-wrapper.toggle-attributes.top-attr {
1759 1760
	margin-left: 0 !important;
}
1761
.type-decl > pre > .docblock.attributes.top-attr {
1762 1763 1764 1765 1766 1767 1768 1769
	margin-left: 1.8em !important;
}
.type-decl > pre > .toggle-attributes {
	margin-left: 2.2em;
}
.type-decl > pre > .docblock.attributes {
	margin-left: 4em;
}