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

15
/* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license. */
16
@font-face {
17 18 19
	font-family: 'Source Serif Pro';
	font-style: normal;
	font-weight: 400;
20
	src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff');
21 22
}
@font-face {
23 24 25
	font-family: 'Source Serif Pro';
	font-style: italic;
	font-weight: 400;
26
	src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff');
27 28
}
@font-face {
29 30 31
	font-family: 'Source Serif Pro';
	font-style: normal;
	font-weight: 700;
32
	src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff');
33
}
34 35

/* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
36
@font-face {
37 38 39
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
40 41
	/* Avoid using locally installed font because bad versions are in circulation:
	 * see https://github.com/rust-lang/rust/issues/24355 */
42
	src: url("SourceCodePro-Regular.woff") format('woff');
43 44
}
@font-face {
45 46 47
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 600;
48
	src: url("SourceCodePro-Semibold.woff") format('woff');
49
}
50

51
* {
G
Guillaume Gomez 已提交
52 53 54
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
55 56
}

57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
/* 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 已提交
72
/* General structure and fonts */
73 74

body {
J
Jon Gjengset 已提交
75
	font: 16px/1.4 "Source Serif Pro", serif;
76 77 78
	margin: 0;
	position: relative;
	padding: 10px 15px 20px 15px;
79

80 81 82
	-webkit-font-feature-settings: "kern", "liga";
	-moz-font-feature-settings: "kern", "liga";
	font-feature-settings: "kern", "liga";
83 84
}

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

h1, h2, h3, h4,
123
.sidebar, a.source, .search-input, .content table td:first-child > a,
G
Guillaume Gomez 已提交
124 125
.collapse-toggle, div.item-list .out-of-band,
#source-sidebar, #sidebar-toggle {
J
Jon Gjengset 已提交
126
	font-family: "Fira Sans", sans-serif;
127 128
}

C
Camelid 已提交
129 130 131 132
.content ul.crate a.crate {
	font: 16px/1.6 "Fira Sans";
}

A
Adrien Tétar 已提交
133
ol, ul {
134
	padding-left: 25px;
135
}
A
Adrien Tétar 已提交
136
ul ul, ol ul, ul ol, ol ol {
137
	margin-bottom: .6em;
A
Adrien Tétar 已提交
138
}
139 140

p {
141
	margin: 0 0 .6em 0;
142
}
A
Adrien Tétar 已提交
143

144 145 146 147
summary {
	outline: none;
}

148
code, pre, a.test-arrow {
J
Jon Gjengset 已提交
149
	font-family: "Source Code Pro", monospace;
A
Adrien Tétar 已提交
150
}
Liigo's avatar
Liigo 已提交
151
.docblock code, .docblock-short code {
152
	border-radius: 3px;
153
	padding: 0 0.1em;
154
}
155
.docblock pre code, .docblock-short pre code, .docblock code.spotlight {
156
	padding: 0;
I
Ivan Ukhov 已提交
157
}
158 159 160
.docblock code.spotlight :last-child {
	padding-bottom: 0.6em;
}
A
Adrien Tétar 已提交
161
pre {
162
	padding: 14px;
A
Adrien Tétar 已提交
163 164
}

165
.source .content pre {
166
	padding: 20px;
167 168
}

W
Wesley Wiser 已提交
169
img {
170
	max-width: 100%;
W
Wesley Wiser 已提交
171 172
}

173 174 175 176
li {
	position: relative;
}

177
.source .content {
178 179 180 181 182
	margin-top: 50px;
	max-width: none;
	overflow: visible;
	margin-left: 0px;
	min-width: 70em;
183 184
}

185
nav.sub {
186 187
	font-size: 16px;
	text-transform: uppercase;
188 189 190
}

.sidebar {
191
	width: 200px;
G
Guillaume Gomez 已提交
192
	position: fixed;
193 194
	left: 0;
	top: 0;
195
	bottom: 0;
G
Guillaume Gomez 已提交
196
	overflow: auto;
197 198 199 200 201 202 203
}

/* Improve the scrollbar display on firefox */
* {
	scrollbar-width: initial;
}
.sidebar {
204 205 206
	scrollbar-width: thin;
}

207 208 209 210
/* Improve the scrollbar display on webkit-based browsers */
::-webkit-scrollbar {
	width: 12px;
}
211 212 213
.sidebar::-webkit-scrollbar {
	width: 8px;
}
214
::-webkit-scrollbar-track {
215
	-webkit-box-shadow: inset 0;
216 217
}

G
Guillaume Gomez 已提交
218
.sidebar .block > ul > li {
G
Guillaume Gomez 已提交
219
	margin-right: -10px;
220 221
}

G
Guillaume Gomez 已提交
222 223 224
.content, nav {
	max-width: 960px;
}
225 226 227

/* Everything else */

228
.hidden {
G
Guillaume Gomez 已提交
229 230
	display: none !important;
}
231

232
.logo-container {
G
Guillaume Gomez 已提交
233 234 235
	height: 100px;
	width: 100px;
	position: relative;
236 237
	margin: 20px auto;
	display: block;
238
	margin-top: 10px;
239 240
}

G
Guillaume Gomez 已提交
241 242 243 244 245 246 247 248 249 250
.logo-container > img {
	max-width: 100px;
	max-height: 100px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: block;
}

251
.sidebar .location {
252
	border: 1px solid;
253
	font-size: 17px;
254
	margin: 30px 10px 20px 10px;
255
	text-align: center;
256
	word-wrap: break-word;
257 258
}

259 260 261
.sidebar .version {
	font-size: 15px;
	text-align: center;
G
Guillaume Gomez 已提交
262
	border-bottom: 1px solid;
263 264 265 266 267
	overflow-wrap: break-word;
	word-wrap: break-word; /* deprecated */
	word-break: break-word; /* Chrome, non-standard */
}

268 269 270 271
.location:empty {
	border: none;
}

G
Guillaume Gomez 已提交
272 273 274
.location a:first-child {
	font-weight: 500;
}
275

276
.block {
277
	padding: 0;
278
	margin-bottom: 14px;
279
}
280
.block h2, .block h3 {
281 282 283
	margin-top: 0;
	margin-bottom: 8px;
	text-align: center;
284
}
285
.block ul, .block li {
286
	margin: 0 10px;
287 288
	padding: 0;
	list-style: none;
289
}
290

291
.block a {
292 293 294 295 296 297 298 299
	display: block;
	text-overflow: ellipsis;
	overflow: hidden;
	line-height: 15px;
	padding: 7px 5px;
	font-size: 14px;
	font-weight: 300;
	transition: border 500ms ease-out;
300 301
}

302
.sidebar-title {
G
Guillaume Gomez 已提交
303 304
	border-top: 1px solid;
	border-bottom: 1px solid;
305 306 307 308 309 310 311 312 313 314 315 316 317 318
	text-align: center;
	font-size: 17px;
	margin-bottom: 5px;
}

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

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

319 320 321 322
.sidebar-menu {
	display: none;
}

323
.content {
324
	padding: 15px 0;
325 326
}

327
.source .content pre.rust {
328 329 330
	white-space: pre;
	overflow: auto;
	padding-left: 0;
331
}
G
Guillaume Gomez 已提交
332

G
Guillaume Gomez 已提交
333
.rustdoc:not(.source) .example-wrap {
334
	display: inline-flex;
335
	margin-bottom: 10px;
336
	position: relative;
G
Guillaume Gomez 已提交
337 338 339
}

.example-wrap {
340 341 342 343 344 345 346 347 348 349 350 351
	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 已提交
352
.rustdoc:not(.source) .example-wrap > pre.rust {
353
	width: 100%;
G
Guillaume Gomez 已提交
354
	overflow-x: auto;
355 356
}

G
Guillaume Gomez 已提交
357
.rustdoc:not(.source) .example-wrap > pre {
358 359 360
	margin: 0;
}

361 362
#search {
	margin-left: 230px;
G
Guillaume Gomez 已提交
363
	position: relative;
364
}
G
Guillaume Gomez 已提交
365 366 367 368 369 370 371 372

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

G
Guillaume Gomez 已提交
373 374 375
#results > table {
	width: 100%;
	table-layout: fixed;
376
	margin-bottom: 40px;
G
Guillaume Gomez 已提交
377 378
}

379
.content pre.line-numbers {
380 381 382
	float: left;
	border: none;
	position: relative;
383

384 385 386 387
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
388
}
G
Guillaume Gomez 已提交
389 390 391
.line-numbers span {
	cursor: pointer;
}
392

393 394 395
.docblock-short {
	overflow-wrap: anywhere;
}
Liigo's avatar
Liigo 已提交
396
.docblock-short p {
397
	display: inline;
398 399
}

Liigo's avatar
Liigo 已提交
400
.docblock-short p {
401 402 403
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
404
}
405
.docblock code, .docblock-short code {
V
vlad-boroda 已提交
406
	white-space: pre-wrap;
G
Guillaume Gomez 已提交
407
}
408 409

.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
410
	border-bottom: 1px solid;
411
}
412

413 414 415 416
#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; }

417
#main > h2 + div, #main > h2 + h3, #main > h3 + div {
J
John Heitmann 已提交
418 419
	display: none; /* Changed to flex or block via js once the page is loaded */
	flex-wrap: wrap;
420 421
}

422 423 424
.docblock h1 { font-size: 1em; }
.docblock h2 { font-size: 0.95em; }
.docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
425

426
.docblock {
427
	margin-left: 24px;
428
	position: relative;
429 430
}

A
Aaron Turon 已提交
431
.content .out-of-band {
432
	float: right;
433 434 435 436
	font-size: 23px;
	margin: 0px;
	padding: 0px;
	font-weight: normal;
437 438 439
}

h3.impl > .out-of-band {
440
	font-size: 21px;
441 442
}

443 444 445 446
h4.method > .out-of-band {
	font-size: 19px;
}

E
Eitan Adler 已提交
447
h4 > code, h3 > code, .invisible > code {
448 449
	max-width: calc(100% - 41px);
	display: block;
450 451
}

N
Nick Cameron 已提交
452
.invisible {
453 454
	width: 100%;
	display: inline-block;
N
Nick Cameron 已提交
455 456
}

457
.content .in-band {
458 459
	margin: 0px;
	padding: 0px;
460 461
}

G
Guillaume Gomez 已提交
462 463 464 465
.in-band > code {
	display: inline-block;
}

G
Guillaume Gomez 已提交
466 467 468
#main {
	position: relative;
}
469
#main > .since {
470
	top: inherit;
J
Jon Gjengset 已提交
471
	font-family: "Fira Sans", sans-serif;
472 473
}

G
Guillaume Gomez 已提交
474
.content table:not(.table-display) {
475
	border-spacing: 0 5px;
476 477 478 479 480
}
.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; }
481
.content tr:first-child td { border-top: 0; }
482

483
.docblock table {
484
	margin: .5em 0;
G
Guillaume Gomez 已提交
485 486
	width: calc(100% - 2px);
	border: 1px dashed;
487 488 489
}

.docblock table td {
490
	padding: .5em;
491
	border: 1px dashed;
492 493 494
}

.docblock table th {
495 496
	padding: .5em;
	text-align: left;
497
	border: 1px solid;
498 499
}

500 501 502 503
.fields + table {
	margin-bottom: 1em;
}

504
.content .item-list {
505 506
	list-style-type: none;
	padding: 0;
507 508 509
}

.content .multi-column {
510 511 512 513 514 515
	-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;
516 517 518
}
.content .multi-column li { width: 100%; display: inline-block; }

519
.content .method {
520 521
	font-size: 1em;
	position: relative;
522
}
523
/* Shift "where ..." part of method or fn definition down a line */
524 525 526
.content .method .where,
.content .fn .where,
.content .where.fmt-newline {
G
Guillaume Gomez 已提交
527
	display: block;
528
	font-size: 0.8em;
529
}
D
Dirk Gadsden 已提交
530

531
.content .methods > div:not(.notable-traits) {
G
Guillaume Gomez 已提交
532 533 534
	margin-left: 40px;
	margin-bottom: 15px;
}
535

536
.content .docblock > .impl-items {
537
	margin-left: 20px;
538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553
	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;
554
}
555

556
.content .item-info code {
557
	font-size: 90%;
558 559
}

560
.content .item-info {
561 562 563 564
	position: relative;
	margin-left: 33px;
	margin-top: -13px;
}
565

566
.sub-variant > div > .item-info {
G
Guillaume Gomez 已提交
567 568 569
	margin-top: initial;
}

570
.content .item-info::before {
571
	content: '⬑';
Liigo's avatar
Liigo 已提交
572
	font-size: 25px;
573
	position: absolute;
Liigo's avatar
Liigo 已提交
574
	top: -6px;
575
	left: -19px;
576
}
577 578 579 580 581

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

582
.content .impl-items .docblock, .content .impl-items .item-info {
583 584 585
	margin-bottom: .6em;
}

586
.content .impl-items > .item-info {
587 588 589
	margin-left: 40px;
}

590
.methods > .item-info, .content .impl-items > .item-info {
591 592
	margin-top: -8px;
}
593

J
John Heitmann 已提交
594 595 596 597
.impl-items {
	flex-basis: 100%;
}

598
#main > .item-info {
599 600 601
	margin-top: 0;
}

602
nav:not(.sidebar) {
603 604 605
	border-bottom: 1px solid;
	padding-bottom: 10px;
	margin-bottom: 10px;
606 607
}
nav.main {
608 609
	padding: 20px 0;
	text-align: center;
610 611
}
nav.main .current {
612 613
	border-top: 1px solid;
	border-bottom: 1px solid;
614 615
}
nav.main .separator {
616 617 618 619
	border: 1px solid;
	display: inline-block;
	height: 23px;
	margin: 0 20px;
620 621 622 623
}
nav.sum { text-align: right; }
nav.sub form { display: inline; }

624
nav.sub, .content {
625
	margin-left: 230px;
626 627 628
}

a {
629 630
	text-decoration: none;
	background: transparent;
631
}
632

G
Guillaume Gomez 已提交
633 634 635
.small-section-header:hover > .anchor {
	display: initial;
}
J
Jouan Amate 已提交
636

637
.in-band:hover > .anchor, .impl:hover > .anchor {
G
Guillaume Gomez 已提交
638 639
	display: inline-block;
	position: absolute;
J
Jouan Amate 已提交
640
}
G
Guillaume Gomez 已提交
641 642
.anchor {
	display: none;
643
	position: absolute;
644
	left: -7px;
G
Guillaume Gomez 已提交
645
}
646
.anchor.field {
647
	left: -5px;
648
}
649 650
.small-section-header > .anchor {
	left: -28px;
651
	padding-right: 10px; /* avoid gap that causes hover to disappear */
652
}
653
.anchor:before {
G
Guillaume Gomez 已提交
654 655 656
	content: '\2002\00a7\2002';
}

G
Guillaume Gomez 已提交
657
.docblock a:not(.srclink):not(.test-arrow):hover,
658
.docblock-short a:not(.srclink):not(.test-arrow):hover, .item-info a {
659
	text-decoration: underline;
660
}
661

662
.invisible > .srclink, h4 > code + .srclink, h3 > code + .srclink {
663 664 665 666 667 668 669
	position: absolute;
	top: 0;
	right: 0;
	font-size: 17px;
	font-weight: normal;
}

670
.block a.current.crate { font-weight: 500; }
671

G
Guillaume Gomez 已提交
672 673 674
.search-container {
	position: relative;
}
G
Guillaume Gomez 已提交
675 676
.search-container > div {
	display: inline-flex;
G
Guillaume Gomez 已提交
677
	width: calc(100% - 63px);
G
Guillaume Gomez 已提交
678 679 680 681
}
#crate-search {
	margin-top: 5px;
	padding: 6px;
682
	padding-right: 19px;
683
	flex: none;
G
Guillaume Gomez 已提交
684 685 686 687 688 689 690 691 692 693 694
	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: "";
695 696
	background-repeat: no-repeat;
	background-color: transparent;
697
	background-size: 20px;
698
	background-position: calc(100% - 1px) 56%;
G
Guillaume Gomez 已提交
699
}
G
Guillaume Gomez 已提交
700 701 702 703 704
.search-container > .top-button {
	position: absolute;
	right: 0;
	top: 10px;
}
705
.search-input {
706 707 708 709 710 711 712
	/* 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;
713
	border-radius: 1px;
714 715 716 717 718 719
	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;
720
	width: 100%;
721 722
}

723 724
#crate-search + .search-input {
	border-radius: 0 1px 1px 0;
725
	width: calc(100% - 32px);
726 727
}

728
.search-input:focus {
729 730 731
	border-radius: 2px;
	border: 0;
	outline: 0;
A
Adrien Tétar 已提交
732
}
733

734
.search-results .desc {
735 736 737 738
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: block;
739 740
}

741
.search-results a {
742
	display: block;
743 744
}

G
Guillaume Gomez 已提交
745 746
.content .search-results td:first-child {
	padding-right: 0;
747
	width: 50%;
G
Guillaume Gomez 已提交
748 749 750 751
}
.content .search-results td:first-child a {
	padding-right: 10px;
}
752
.content .search-results td:first-child a:after {
G
Guillaume Gomez 已提交
753 754 755
	clear: both;
	content: "";
	display: block;
756
}
G
Guillaume Gomez 已提交
757 758 759
.content .search-results td:first-child a span {
	float: left;
}
760

761
tr.result span.primitive::after {
G
Guillaume Gomez 已提交
762 763
	content: ' (primitive type)';
	font-style: italic;
E
Eitan Adler 已提交
764
}
765

G
Guillaume Gomez 已提交
766 767 768 769 770
tr.result span.keyword::after {
	content: ' (keyword)';
	font-style: italic;
}

771
body.blur > :not(#help) {
772 773 774
	filter: blur(8px);
	-webkit-filter: blur(8px);
	opacity: .7;
775 776
}

777
#help {
778 779 780 781 782 783 784 785
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
786 787
}
#help > div {
788 789 790
	flex: 0 0 auto;
	box-shadow: 0 0 6px rgba(0,0,0,.2);
	width: 550px;
M
Marcel Hellwig 已提交
791
	height: auto;
G
Guillaume Gomez 已提交
792
	border: 1px solid;
793 794
}
#help dt {
795 796 797
	float: left;
	clear: left;
	display: block;
798
}
799 800 801 802 803 804 805 806 807
#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 已提交
808
#help dd { margin: 5px 35px; }
809
#help .infos { padding-left: 0; }
810
#help h1, #help h2 { margin-top: 0; }
811
#help > div div {
812 813
	width: 50%;
	float: left;
814
	padding: 0 20px 20px 17px;;
815
}
816

817 818
.stab {
	display: table;
819 820 821 822 823
	border-width: 1px;
	border-style: solid;
	padding: 3px;
	margin-bottom: 5px;
	font-size: 90%;
824
}
825
.stab p {
826
	display: inline;
827 828
}

829 830 831 832
.stab summary {
	display: list-item;
}

833
.stab .emoji {
834 835 836
	font-size: 1.5em;
}

837
.module-item .stab {
838 839 840 841 842 843 844 845
	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;
846
}
847

848
.module-item.unstable {
849
	opacity: 0.65;
850
}
851

852
.since {
853 854 855 856 857
	font-weight: normal;
	font-size: initial;
	position: absolute;
	right: 0;
	top: 0;
858 859
}

860
.impl-items .since, .impl .since, .methods .since {
J
John Heitmann 已提交
861 862 863 864 865 866
	flex-grow: 0;
	padding-left: 12px;
	padding-right: 2px;
	position: initial;
}

867
.impl-items .srclink, .impl .srclink, .methods .srclink {
J
John Heitmann 已提交
868 869 870 871 872 873
	flex-grow: 0;
	/* Override header settings otherwise it's too bold */
	font-size: 17px;
	font-weight: normal;
}

874
.impl-items code, .impl code, .methods code {
J
John Heitmann 已提交
875 876 877
	flex-grow: 1;
}

878
.impl-items h4, h4.impl, h3.impl, .methods h3 {
J
John Heitmann 已提交
879 880 881 882 883 884 885 886
	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;
}

887
.variants_table {
888
	width: 100%;
889 890 891
}

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

895
td.summary-column {
896
	width: 100%;
897 898
}

A
Aaron Turon 已提交
899
.summary {
900
	padding-right: 0px;
A
Aaron Turon 已提交
901 902
}

E
est31 已提交
903
pre.rust .question-mark {
904
	font-weight: bold;
E
est31 已提交
905
}
906

907
a.test-arrow {
908 909 910 911 912 913 914
	display: inline-block;
	position: absolute;
	padding: 5px 10px 5px 10px;
	border-radius: 5px;
	font-size: 130%;
	top: 5px;
	right: 5px;
915
	z-index: 1;
916
}
917
a.test-arrow:hover{
918
	text-decoration: none;
919
}
920

921 922 923
.section-header:hover a:before {
	position: absolute;
	left: -25px;
924
	padding-right: 10px; /* avoid gap that causes hover to disappear */
925
	content: '\2002\00a7\2002';
926
}
D
Daniel Fagnan 已提交
927

928
.section-header:hover a {
929
	text-decoration: none;
930 931 932
}

.section-header a {
933
	color: inherit;
934 935
}

936
.collapse-toggle {
937 938 939 940
	font-weight: 300;
	position: absolute;
	left: -23px;
	top: 0;
941 942
}

943 944 945 946 947
h3 > .collapse-toggle, h4 > .collapse-toggle {
	font-size: 0.8em;
	top: 5px;
}

948
.toggle-wrapper > .collapse-toggle {
949 950
	left: -24px;
	margin-top: 0px;
951 952 953
}

.toggle-wrapper {
954
	position: relative;
955
	margin-top: 0;
956 957 958
}

.toggle-wrapper.collapsed {
959
	height: 25px;
960
	transition: height .2s;
961
	margin-bottom: .6em;
962 963 964
}

.collapse-toggle > .inner {
965 966 967
	display: inline-block;
	width: 1.2ch;
	text-align: center;
968 969
}

970 971 972 973 974
.collapse-toggle.hidden-default {
	position: relative;
	margin-left: 20px;
}

975
.since + .srclink {
976 977
	display: table-cell;
	padding-left: 10px;
978
}
979

980 981 982 983 984
.item-spacer {
	width: 100%;
	height: 12px;
}

985
.out-of-band > span.since {
986 987 988
	position: initial;
	font-size: 20px;
	margin-right: 5px;
G
Guillaume Gomez 已提交
989 990
}

991
.toggle-wrapper > .collapse-toggle {
992
	left: 0;
993 994
}

G
Guillaume Gomez 已提交
995 996 997 998
.variant + .toggle-wrapper + .docblock > p {
	margin-top: 5px;
}

999
.sub-variant, .sub-variant > h3 {
G
Guillaume Gomez 已提交
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016
	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;
1017 1018
}

1019 1020 1021 1022 1023 1024
.toggle-label {
	display: inline-block;
	margin-left: 4px;
	margin-top: 3px;
}

1025
.enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
1026 1027 1028
	margin-left: 30px;
	margin-bottom: 20px;
	margin-top: 5px;
1029 1030
}

1031 1032
.docblock > .section-header:first-child {
	margin-left: 15px;
1033
	margin-top: 0;
1034 1035 1036 1037 1038 1039
}

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

1040
.enum > .collapsed, .struct > .collapsed {
1041
	margin-bottom: 25px;
1042 1043
}

1044
#main > .variant, #main > .structfield {
1045 1046 1047 1048 1049
	display: block;
}

.attributes {
	display: block;
1050 1051 1052 1053
	margin-top: 0px !important;
	margin-right: 0px;
	margin-bottom: 0px !important;
	margin-left: 30px;
1054 1055
}
.toggle-attributes.collapsed {
1056 1057 1058 1059 1060 1061 1062
	margin-bottom: 0;
}
.impl-items > .toggle-attributes {
	margin-left: 20px;
}
.impl-items .attributes {
	font-weight: 500;
G
Guillaume Gomez 已提交
1063 1064
}

1065
:target > code {
G
Guillaume Gomez 已提交
1066
	opacity: 1;
1067 1068
}

G
Guillaume Gomez 已提交
1069 1070
.information {
	position: absolute;
1071
	left: -25px;
G
Guillaume Gomez 已提交
1072
	margin-top: 7px;
G
Guillaume Gomez 已提交
1073
	z-index: 1;
G
Guillaume Gomez 已提交
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
}

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

.tooltip .tooltiptext {
	width: 120px;
	display: none;
	text-align: center;
1086
	padding: 5px 3px 3px 3px;
G
Guillaume Gomez 已提交
1087 1088 1089 1090
	border-radius: 6px;
	margin-left: 5px;
	top: -5px;
	left: 105%;
J
John Heitmann 已提交
1091
	z-index: 10;
1092
	font-size: 16px;
G
Guillaume Gomez 已提交
1093 1094 1095 1096 1097 1098
}

.tooltip .tooltiptext::after {
	content: " ";
	position: absolute;
	top: 50%;
1099
	left: 16px;
G
Guillaume Gomez 已提交
1100 1101 1102 1103
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
}
G
Guillaume Gomez 已提交
1104

G
Guillaume Gomez 已提交
1105 1106 1107 1108
.tooltip:hover .tooltiptext {
	display: inline;
}

1109
.tooltip.compile_fail, .tooltip.should_panic, .tooltip.ignore {
1110 1111 1112 1113
	font-weight: bold;
	font-size: 20px;
}

1114
.notable-traits-tooltip {
M
Manish Goregaokar 已提交
1115 1116 1117 1118
	display: inline-block;
	cursor: pointer;
}

1119 1120
.notable-traits:hover .notable-traits-tooltiptext,
.notable-traits .notable-traits-tooltiptext.force-tooltip {
M
Manish Goregaokar 已提交
1121 1122 1123
	display: inline-block;
}

1124
.notable-traits .notable-traits-tooltiptext {
M
Manish Goregaokar 已提交
1125 1126 1127 1128 1129 1130 1131 1132
	display: none;
	padding: 5px 3px 3px 3px;
	border-radius: 6px;
	margin-left: 5px;
	z-index: 10;
	font-size: 16px;
	cursor: default;
	position: absolute;
1133
	border: 1px solid;
M
Manish Goregaokar 已提交
1134 1135
}

1136
.notable-traits-tooltip::after {
M
Manish Goregaokar 已提交
1137 1138 1139
	/* 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 已提交
1140
	content: "\00a0\00a0\00a0";
M
Manish Goregaokar 已提交
1141 1142
}

1143
.notable-traits .notable, .notable-traits .docblock {
M
Manish Goregaokar 已提交
1144 1145 1146
	margin: 0;
}

1147
.notable-traits .docblock code.content{
G
Guillaume Gomez 已提交
1148 1149 1150
	margin: 0;
	padding: 0;
	font-size: 20px;
1151 1152
}

G
Guillaume Gomez 已提交
1153
/* Example code has the "Run" button that needs to be positioned relative to the pre */
1154
pre.rust.rust-example-rendered {
G
Guillaume Gomez 已提交
1155
	position: relative;
1156 1157 1158
}

pre.rust {
0
0xd4d 已提交
1159 1160
	tab-size: 4;
	-moz-tab-size: 4;
G
Guillaume Gomez 已提交
1161
}
1162 1163 1164 1165 1166 1167

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

1168 1169 1170 1171 1172 1173 1174
.search-failed > ul {
	text-align: left;
	max-width: 570px;
	margin-left: auto;
	margin-right: auto;
}

1175 1176 1177 1178 1179 1180 1181 1182 1183 1184
#titles {
	height: 35px;
}

#titles > div {
	float: left;
	width: 33.3%;
	text-align: center;
	font-size: 18px;
	cursor: pointer;
G
Guillaume Gomez 已提交
1185
	border-top: 2px solid;
1186 1187
}

1188
#titles > div:not(:last-child) {
G
Guillaume Gomez 已提交
1189 1190
	margin-right: 1px;
	width: calc(33.3% - 1px);
1191
}
1192 1193 1194 1195 1196

#titles > div > div.count {
	display: inline-block;
	font-size: 16px;
}
1197

1198
.notable-traits {
1199 1200
	cursor: pointer;
	z-index: 2;
1201
	margin-left: 5px;
1202 1203
}

1204
h4 > .notable-traits {
1205 1206 1207 1208 1209
	position: absolute;
	left: -44px;
	top: 2px;
}

G
Guillaume Gomez 已提交
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221
#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;
}

1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254
#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 已提交
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264
.theme-picker {
	position: absolute;
	left: 211px;
	top: 19px;
}

.theme-picker button {
	outline: none;
}

G
Guillaume Gomez 已提交
1265
#settings-menu, .help-button {
G
Guillaume Gomez 已提交
1266 1267
	position: absolute;
	top: 10px;
G
Guillaume Gomez 已提交
1268 1269 1270 1271
}

#settings-menu {
	right: 0;
G
Guillaume Gomez 已提交
1272 1273 1274
	outline: none;
}

G
Guillaume Gomez 已提交
1275 1276 1277 1278 1279 1280 1281 1282
.help-button {
	right: 30px;
	font-family: "Fira Sans",sans-serif;
	text-align: center;
	font-size: 17px;
}

#theme-picker, #settings-menu, .help-button {
G
Guillaume Gomez 已提交
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304
	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%;
1305
	padding: 4px 8px;
G
Guillaume Gomez 已提交
1306 1307 1308 1309 1310 1311 1312 1313
	text-align: center;
	background: rgba(0,0,0,0);
}

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

1314 1315
/* Media Queries */

1316 1317 1318 1319 1320 1321 1322 1323 1324 1325
@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;
	}
}

1326
@media (max-width: 700px) {
1327 1328 1329 1330
	body {
		padding-top: 0px;
	}

1331
	.rustdoc > .sidebar {
1332
		height: 45px;
1333
		min-height: 40px;
1334 1335 1336
		margin: 0;
		margin-left: -15px;
		padding: 0 15px;
1337
		position: static;
1338
		z-index: 11;
1339 1340
	}

1341
	.sidebar > .location {
1342 1343
		float: right;
		margin: 0px;
1344
		margin-top: 2px;
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
		padding: 3px 10px 1px 10px;
		min-height: 39px;
		background: inherit;
		text-align: left;
		font-size: 24px;
	}

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

G
Guillaume Gomez 已提交
1356
	.sidebar .logo-container {
1357
		width: 35px;
G
Guillaume Gomez 已提交
1358
		height: 35px;
1359
		margin-top: 5px;
1360
		margin-bottom: 5px;
1361
		float: left;
1362
		margin-left: 50px;
1363 1364
	}

G
Guillaume Gomez 已提交
1365 1366 1367 1368 1369
	.sidebar .logo-container > img {
		max-width: 35px;
		max-height: 35px;
	}

1370
	.sidebar-menu {
1371 1372
		position: fixed;
		z-index: 10;
1373 1374
		font-size: 2rem;
		cursor: pointer;
1375 1376 1377
		width: 45px;
		left: 0;
		text-align: center;
1378
		display: block;
1379 1380
		border-bottom: 1px solid;
		border-right: 1px solid;
G
Guillaume Gomez 已提交
1381
		height: 45px;
1382 1383
	}

1384 1385 1386 1387
	.rustdoc.source > .sidebar > .sidebar-menu {
		display: none;
	}

1388 1389 1390 1391 1392 1393 1394
	.sidebar-elems {
		position: fixed;
		z-index: 1;
		left: 0;
		top: 45px;
		bottom: 0;
		overflow-y: auto;
1395
		border-right: 1px solid;
1396 1397 1398
		display: none;
	}

1399 1400 1401 1402 1403
	.sidebar > .block.version {
		border-bottom: none;
		margin-top: 12px;
	}

1404
	nav.sub {
G
Guillaume Gomez 已提交
1405 1406
		width: calc(100% - 32px);
		float: right;
1407 1408
	}

1409 1410 1411 1412
	.content {
		margin-left: 0px;
	}

1413
	#main {
1414
		margin-top: 45px;
1415 1416 1417
		padding: 0;
	}

1418 1419 1420 1421
	.content .in-band {
		width: 100%;
	}

1422 1423
	.content h4 > .out-of-band {
		position: inherit;
1424 1425 1426 1427 1428 1429 1430 1431 1432
	}

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

	.toggle-wrapper {
		height: 1.5em;
	}
1433 1434 1435 1436

	#search {
		margin-left: 0;
	}
1437 1438 1439 1440

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

	.anchor {
1443
		display: none !important;
1444
	}
G
Guillaume Gomez 已提交
1445 1446 1447 1448

	h1.fqn {
		overflow: initial;
	}
1449

G
Guillaume Gomez 已提交
1450 1451 1452 1453
	.theme-picker {
		left: 10px;
		top: 54px;
		z-index: 1;
1454
	}
1455

1456
	h4 > .notable-traits {
1457 1458 1459 1460 1461
		position: absolute;
		left: -22px;
		top: 24px;
	}

G
Guillaume Gomez 已提交
1462 1463 1464 1465 1466 1467 1468 1469
	#titles > div > div.count {
		float: left;
		width: 100%;
	}

	#titles {
		height: 50px;
	}
G
Guillaume Gomez 已提交
1470 1471 1472 1473 1474 1475 1476 1477

	.sidebar.mobile {
		position: fixed;
		width: 100%;
		margin-left: 0;
		background-color: rgba(0,0,0,0);
		height: 100%;
	}
G
Guillaume Gomez 已提交
1478 1479 1480
	.sidebar {
		width: calc(100% + 30px);
	}
G
Guillaume Gomez 已提交
1481 1482 1483

	.show-it {
		display: block;
1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501
		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 已提交
1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517
	}

	/* 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;
	}
1518 1519

	.collapse-toggle {
1520 1521 1522 1523 1524
		left: -20px;
	}

	.impl > .collapse-toggle {
		left: -10px;
1525
	}
G
Guillaume Gomez 已提交
1526 1527 1528 1529

	#all-types {
		margin: 10px;
	}
1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541

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

	#source-sidebar {
		z-index: 11;
	}
G
Guillaume Gomez 已提交
1542 1543 1544 1545

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

1547
	.notable-traits .notable-traits-tooltiptext {
1548 1549 1550
		left: 0;
		top: 100%;
	}
1551 1552 1553 1554 1555 1556 1557 1558

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

G
Guillaume Gomez 已提交
1561 1562 1563 1564 1565
@media print {
	nav.sub, .content .out-of-band, .collapse-toggle {
		display: none;
	}
}
G
Guillaume Gomez 已提交
1566 1567

@media (max-width: 416px) {
G
Guillaume Gomez 已提交
1568
	#titles, #titles > div {
G
Guillaume Gomez 已提交
1569 1570
		height: 73px;
	}
1571 1572 1573

	#main > table:not(.table-display) td {
		word-break: break-word;
G
Guillaume Gomez 已提交
1574
		width: 50%;
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605
	}

	.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;
	}
1606 1607
}

1608
h3.notable {
1609 1610 1611 1612 1613
	margin: 0;
	margin-bottom: 13px;
	font-size: 19px;
}

1614 1615 1616
kbd {
	display: inline-block;
	padding: 3px 5px;
J
Jon Gjengset 已提交
1617
	font: 15px monospace;
1618 1619
	line-height: 10px;
	vertical-align: middle;
1620
	border: solid 1px;
1621
	border-radius: 3px;
1622
	box-shadow: inset 0 -1px 0;
1623
	cursor: default;
1624
}
1625

1626 1627
.hidden-by-impl-hider,
.hidden-by-usual-hider {
1628 1629
	/* important because of conflicting rule for small screens */
	display: none !important;
1630
}
G
Guillaume Gomez 已提交
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655

#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 已提交
1656 1657 1658 1659 1660 1661 1662 1663 1664
#implementors-list > .impl-items .table-display .out-of-band {
	font-size: 17px;
}

.table-display td:hover .anchor {
	display: block;
	top: 2px;
	left: -5px;
}
1665 1666 1667 1668 1669 1670 1671

#main > ul {
	padding-left: 10px;
}
#main > ul > li {
	list-style: none;
}
1672 1673 1674 1675

.non-exhaustive {
	margin-bottom: 1em;
}
G
Guillaume Gomez 已提交
1676 1677 1678 1679 1680

div.children {
	padding-left: 27px;
	display: none;
}
G
Guillaume Gomez 已提交
1681 1682 1683 1684 1685
div.name {
	cursor: pointer;
	position: relative;
	margin-left: 16px;
}
G
Guillaume Gomez 已提交
1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697
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 已提交
1698
	padding-left: 4px;
G
Guillaume Gomez 已提交
1699
	font-size: 0.7em;
G
Guillaume Gomez 已提交
1700 1701 1702
	position: absolute;
	left: -16px;
	top: 4px;
G
Guillaume Gomez 已提交
1703 1704 1705
}
div.name.expand::before {
	transform: rotate(90deg);
G
Guillaume Gomez 已提交
1706 1707
	left: -15px;
	top: 2px;
G
Guillaume Gomez 已提交
1708
}
1709 1710

/* This part is to fix the "Expand attributes" part in the type declaration. */
1711
.type-decl > pre > .toggle-wrapper.toggle-attributes.top-attr {
1712 1713
	margin-left: 0 !important;
}
1714
.type-decl > pre > .docblock.attributes.top-attr {
1715 1716 1717 1718 1719 1720 1721 1722
	margin-left: 1.8em !important;
}
.type-decl > pre > .toggle-attributes {
	margin-left: 2.2em;
}
.type-decl > pre > .docblock.attributes {
	margin-left: 4em;
}