1/*--------------------- Layout and Typography ----------------------------*/ 2html { 3 font-size: 1rem; 4 overflow-wrap: break-word; 5 -webkit-font-smoothing: antialiased; 6 -moz-osx-font-smoothing: grayscale; 7 -webkit-font-variant-ligatures: none; 8 font-variant-ligatures: none; 9} 10 11* { 12 box-sizing: border-box; 13} 14 15body { 16 font-family: Lato, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Tahoma, sans-serif; 17 margin: 0; 18 padding: 0; 19 color: #333; 20 background-color: #fff; 21} 22 23h1, h1 code { font-size: 2.5rem; } 24h2, h2 code { font-size: 2rem; } 25h3, h3 code { font-size: 1.75rem; } 26h4, h4 code { font-size: 1.5rem; } 27h5, h5 code { font-size: 1.25rem; } 28h6, h6 code { font-size: 1rem; } 29 30h1, 31h2, 32h3, 33h4, 34h5, 35h6 { 36 font-weight: 700; 37 line-height: inherit; 38 position: relative; 39 margin: 1.5rem 0 1rem; 40 text-rendering: optimizeLegibility; 41} 42 43h1 code, 44h2 code, 45h3 code, 46h4 code, 47h5 code, 48h6 code { 49 color: inherit; 50 font-family: inherit; 51} 52 53pre, 54tt, 55code, 56.pre, 57span.type, 58a.type { 59 font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace; 60 font-size: .9em; 61} 62 63#content { 64 position: relative; 65} 66 67a:link, 68a:active, 69a:visited { 70 color: #43853d; 71 text-decoration: none; 72 border-radius: 2px; 73 padding: 1px 3px; 74} 75 76a:hover, 77a:focus { 78 color: #fff; 79 background-color: #43853d; 80 outline: none; 81} 82 83strong { 84 font-weight: 700; 85} 86 87code a:hover { 88 background-color: transparent; 89} 90 91em code { 92 font-style: normal; 93} 94 95#changelog #gtoc { 96 display: none; 97} 98 99#gtoc { 100 margin-top: .5rem; 101 margin-bottom: 1rem; 102} 103 104#gtoc ul { 105 list-style: none; 106 margin-left: 0; 107 line-height: 1.5rem; 108} 109 110#gtoc > ul > li { 111 display: inline; 112 border-right: 1px #000 solid; 113 margin-right: .4rem; 114 padding-right: .4rem; 115} 116 117#gtoc > ul > li:last-child { 118 border-right: none; 119 margin-right: 0; 120 padding-right: 0; 121} 122 123li.version-picker { 124 position: relative; 125} 126 127li.version-picker:hover > a { 128 border-radius: 2px 2px 0 0; 129} 130 131li.version-picker:hover > ol { 132 display: block; 133 z-index: 1; 134} 135 136li.version-picker a span { 137 font-size: .7rem; 138} 139 140ol.version-picker { 141 background-color: #fff; 142 border: 1px solid #43853d; 143 border-radius: 0 0 2px 2px; 144 display: none; 145 list-style: none; 146 position: absolute; 147 right: 0; 148 top: 100%; 149 width: 100%; 150} 151 152#gtoc ol.version-picker li { 153 display: block; 154 border-right: 0; 155 margin-right: 0; 156} 157 158ol.version-picker li a { 159 border-radius: 0; 160 display: block; 161 margin: 0; 162 padding: .1rem; 163 padding-left: 1rem; 164} 165 166ol.version-picker li:last-child a { 167 border-bottom-right-radius: 1px; 168 border-bottom-left-radius: 1px; 169} 170 171.line { 172 width: calc(100% - 1rem); 173 display: block; 174 padding-bottom: 1px; 175} 176 177.api_stability { 178 color: #fff !important; 179 margin: 0 0 1rem; 180 padding: 1rem; 181 line-height: 1.5; 182} 183 184.api_stability * { 185 color: #fff !important; 186} 187 188.api_stability a { 189 text-decoration: underline; 190} 191 192.api_stability a:hover, 193.api_stability a:active, 194.api_stability a:focus { 195 background-color: rgba(255, 255, 255, .4); 196} 197 198.api_stability a code { 199 background-color: transparent; 200} 201 202.api_stability_0 { 203 background-color: #d60027; 204} 205 206.api_stability_1 { 207 background-color: #ca5010; 208} 209 210.api_stability_2 { 211 background-color: #5a8147; 212} 213 214.api_metadata { 215 font-size: .85rem; 216 margin-bottom: 1rem; 217} 218 219.api_metadata span { 220 margin-right: 1rem; 221} 222 223.api_metadata span:last-child { 224 margin-right: 0; 225} 226 227ul.plain { 228 list-style: none; 229} 230 231abbr { 232 border-bottom: 1px dotted #454545; 233} 234 235p { 236 text-rendering: optimizeLegibility; 237 margin: 0 0 1.125rem; 238 line-height: 1.5; 239} 240 241#apicontent > *:last-child { 242 margin-bottom: 0; 243 padding-bottom: 2rem; 244} 245 246table { 247 border-collapse: collapse; 248 margin: 0 0 1.5rem; 249} 250 251th, 252td { 253 border: 1px solid #aaa; 254 padding: .5rem; 255 vertical-align: top; 256} 257 258th { 259 text-align: left; 260} 261 262td { 263 word-break: break-all; /* Fallback if break-word isn't supported */ 264 word-break: break-word; 265} 266 267@media only screen and (min-width: 600px) { 268 th, 269 td { 270 padding: .75rem 1rem; 271 } 272 273 td:first-child { 274 word-break: normal; 275 } 276} 277 278ol, 279ul, 280dl { 281 margin: 0 0 .6rem; 282 padding: 0; 283} 284 285ol ul, 286ol ol, 287ol dl, 288ul ul, 289ul ol, 290ul dl, 291dl ul, 292dl ol, 293dl dl { 294 margin-bottom: 0; 295} 296 297ul, 298ol { 299 margin-left: 2rem; 300} 301 302dl dt { 303 position: relative; 304 margin: 1.5rem 0 0; 305} 306 307dl dd { 308 position: relative; 309 margin: 0 1rem; 310} 311 312dd + dt.pre { 313 margin-top: 1.6rem; 314} 315 316#apicontent { 317 padding-top: 1rem; 318} 319 320#apicontent .line { 321 width: calc(50% - 1rem); 322 margin: 1rem 1rem .95rem; 323 background-color: #ccc; 324} 325 326h2 + h2 { 327 margin: 0 0 .5rem; 328} 329 330h3 + h3 { 331 margin: 0 0 .5rem; 332} 333 334h2, 335h3, 336h4, 337h5 { 338 position: relative; 339 padding-right: 40px; 340} 341 342.srclink { 343 float: right; 344 font-size: smaller; 345 margin-right: 30px; 346} 347 348h1 span, 349h2 span, 350h3 span, 351h4 span { 352 position: absolute; 353 display: block; 354 top: 0; 355 right: 0; 356} 357 358h1 span:hover, 359h2 span:hover, 360h3 span:hover, 361h4 span:hover { 362 opacity: 1; 363} 364 365h1 span a, 366h2 span a, 367h3 span a, 368h4 span a { 369 color: #000; 370 text-decoration: none; 371 font-weight: 700; 372} 373 374pre, 375tt, 376code { 377 line-height: 1.5rem; 378 margin: 0; 379 padding: 0; 380} 381 382.pre { 383 line-height: 1.5rem; 384} 385 386pre { 387 padding: 1rem; 388 vertical-align: top; 389 background-color: #f2f2f2; 390 margin: 1rem; 391 overflow-x: auto; 392} 393 394pre > code { 395 padding: 0; 396} 397 398pre + h3 { 399 margin-top: 2.225rem; 400} 401 402code.pre { 403 white-space: pre; 404} 405 406#intro { 407 margin-top: 1.25rem; 408 margin-left: 1rem; 409} 410 411#intro a { 412 color: #ddd; 413 font-weight: 700; 414} 415 416hr { 417 background-color: transparent; 418 border: medium none; 419 border-bottom: 1px solid #7a7a7a; 420 margin: 0 0 1rem; 421} 422 423#toc h2 { 424 margin: 1.5rem 0; 425} 426 427#toc p { 428 margin: 0; 429} 430 431#toc ul a { 432 text-decoration: none; 433} 434 435#toc ul li { 436 margin-bottom: .666rem; 437 list-style: square outside; 438} 439 440#toc li > ul { 441 margin-top: .666rem; 442} 443 444#toc .stability_0::after { 445 background-color: #d50027; 446 color: #fff; 447 content: "deprecated"; 448 margin-left: .25rem; 449 padding: 1px 3px; 450 border-radius: 3px; 451} 452 453#apicontent li { 454 margin-bottom: .5rem; 455} 456 457#apicontent li:last-child { 458 margin-bottom: 0; 459} 460 461tt, 462code { 463 color: #040404; 464 background-color: #f2f2f2; 465 border-radius: 2px; 466 padding: 1px 3px; 467} 468 469.api_stability code { 470 background-color: rgba(0, 0, 0, .1); 471} 472 473a code { 474 color: inherit; 475 background-color: inherit; 476 padding: 0; 477} 478 479.type { 480 line-height: 1.5rem; 481} 482 483#column1.interior { 484 margin-left: 234px; 485 padding: 0 2rem; 486 -webkit-padding-start: 1.5rem; 487} 488 489#column2.interior { 490 width: 234px; 491 background-color: #333; 492 position: fixed; 493 left: 0; 494 top: 0; 495 bottom: 0; 496 overflow-x: hidden; 497 overflow-y: scroll; 498} 499 500#column2 ul { 501 list-style: none; 502 margin: .9rem 0 .5rem; 503 background-color: #333; 504} 505 506#column2 > :first-child { 507 margin: 1.25rem; 508 font-size: 1.5rem; 509} 510 511#column2 > ul:nth-child(2) { 512 margin: 1.25rem 0 .5rem; 513} 514 515#column2 > ul:last-child { 516 margin: .9rem 0 1.25rem; 517} 518 519#column2 ul li { 520 padding-left: 1.25rem; 521 margin-bottom: .5rem; 522 padding-bottom: .5rem; 523} 524 525#column2 .line { 526 margin: 0 .5rem; 527 border-color: #707070; 528} 529 530#column2 ul li:last-child { 531 margin-bottom: 0; 532} 533 534#column2 ul li a { 535 color: #ccc; 536 border-radius: 0; 537} 538 539#column2 ul li a.active, 540#column2 ul li a.active:hover, 541#column2 ul li a.active:focus { 542 font-weight: 700; 543 color: #fff; 544 background-color: transparent; 545} 546 547#intro a:hover, 548#intro a:focus, 549#column2 ul li a:hover, 550#column2 ul li a:focus { 551 color: #fff; 552 background-color: transparent; 553} 554 555span > .mark, 556span > .mark:visited { 557 color: #707070; 558 position: absolute; 559 top: 0; 560 right: 0; 561} 562 563span > .mark:hover, 564span > .mark:focus, 565span > .mark:active { 566 color: #43853d; 567 background-color: transparent; 568} 569 570th > *:last-child, 571td > *:last-child { 572 margin-bottom: 0; 573} 574 575.changelog > summary { 576 margin: .5rem 0; 577 padding: .5rem 0; 578 cursor: pointer; 579} 580 581/* simpler clearfix */ 582.clearfix::after { 583 content: "."; 584 display: block; 585 height: 0; 586 clear: both; 587 visibility: hidden; 588} 589 590.github_icon { 591 vertical-align: middle; 592 margin: -2px 3px 0 0; 593} 594 595/* API reference sidebar */ 596@media only screen and (min-width: 1025px) { 597 .apidoc #column2 > .line { 598 pointer-events: none; 599 } 600 .apidoc #column2 > :first-child, 601 .apidoc #column2 > ul, 602 .apidoc #column2 > ul > li { 603 margin: 0; 604 padding: 0; 605 } 606 .apidoc #column2 > :first-child > a[href] { 607 border-radius: 0; 608 padding: 1.25rem 1.4375rem .625rem; 609 display: block; 610 } 611 .apidoc #column2 > ul > li > a[href] { 612 padding: .5rem 1.4375rem; 613 display: block; 614 } 615 .apidoc #column2 > ul > :first-child > a[href] { 616 padding-top: .625rem; 617 } 618 .apidoc #column2 > ul > :last-child > a[href] { 619 padding-bottom: .625rem; 620 } 621 .apidoc #column2 > ul:first-of-type > :last-child > a[href] { 622 padding-bottom: 1rem; 623 } 624 .apidoc #column2 > ul:nth-of-type(2) > :first-child > a[href] { 625 padding-top: .875rem; 626 } 627 .apidoc #column2 > ul:nth-of-type(2) > :last-child > a[href] { 628 padding-bottom: .9375rem; 629 } 630 .apidoc #column2 > ul:last-of-type > :first-child > a[href] { 631 padding-top: 1rem; 632 } 633 .apidoc #column2 > ul:last-of-type > :last-child > a[href] { 634 padding-bottom: 1.75rem; 635 } 636} 637 638@media only screen and (max-width: 1024px) { 639 #content { 640 overflow: visible; 641 } 642 #column1.interior { 643 margin-left: 0; 644 padding-left: .5rem; 645 padding-right: .5rem; 646 width: auto; 647 overflow-y: visible; 648 } 649 #column2 { 650 display: none; 651 } 652} 653 654@media print { 655 html { 656 height: auto; 657 font-size: .75em; 658 } 659 #column2.interior { 660 display: none; 661 } 662 #column1.interior { 663 margin-left: 0; 664 padding: 0; 665 overflow-y: auto; 666 } 667 .api_metadata, 668 #toc, 669 .srclink, 670 #gtoc, 671 .mark { 672 display: none; 673 } 674 h1 { 675 font-size: 2rem; 676 } 677 h2 { 678 font-size: 1.75rem; 679 } 680 h3 { 681 font-size: 1.5rem; 682 } 683 h4 { 684 font-size: 1.3rem; 685 } 686 h5 { 687 font-size: 1.2rem; 688 } 689 h6 { 690 font-size: 1.1rem; 691 } 692 .api_stability { 693 display: inline-block; 694 } 695 .api_stability a { 696 text-decoration: none; 697 } 698 a { 699 color: inherit; 700 } 701 #apicontent { 702 overflow: hidden; 703 } 704} 705