1/* Layout CSS */ 2.cups-header { 3 background: rgba(46,46,46,.9); 4 box-shadow: 0 2px 5px rgba(0,0,0,0.25); 5 color: white; 6 left: 0; 7 margin-bottom: 20px; 8 padding: 0; 9 position: fixed; 10 right: 0; 11 top: 0; 12 width: 100%; 13} 14.cups-header ul { 15 list-style: none; 16 margin: 0; 17 -webkit-margin-before: 0; 18 -webkit-margin-after: 0; 19 -webkit-margin-start: 0; 20 -webkit-margin-end: 5px; 21 -webkit-padding-start: 0; 22} 23.cups-header ul li { 24 float: left; 25} 26.cups-header a { 27 display: block; 28 padding: 5px 10px !important; 29} 30.cups-header a:link, .cups-header a:visited { 31 color: white !important; 32 text-decoration: none !important; 33} 34.cups-header a:hover { 35 background: #cccccc !important; 36 color: #333333 !important; 37 text-decoration: none !important; 38} 39.cups-header a.active { 40 background: white !important; 41 box-shadow: rgba(0,0,0,0.1) 0 0 10px 0 inset; 42 color: black !important; 43 text-decoration: none !important; 44} 45 46.cups-body { 47 padding: 40px 20px; 48} 49.row .cups-body { 50 padding: 0; 51} 52 53.cups-footer { 54 background: rgba(46,46,46,.9); 55 bottom: 0; 56 box-shadow: 0 -2px 5px rgba(0,0,0,0.25); 57 color: #cccccc; 58 font-size: 10px; 59 height: 20px; 60 left: 0; 61 padding: 10px 10px 3px; 62 position: fixed; 63 width: 100%; 64} 65.cups-footer a:link, footer a:hover, .cups-footer a:visited { 66 color: white !important; 67 text-decoration: none !important; 68} 69 70.row { 71 width: 100%; 72 *zoom: 1; 73} 74.row:after { 75 clear: both; 76} 77 78.row .thirds { 79 float: left; 80 margin-left: 0.5%; 81 margin-right: 0; 82 padding-bottom: 40px; 83 width: 33%; 84} 85.row .thirds:first-child { 86 margin-left: 0; 87} 88 89.row .halves { 90 float: left; 91 margin-left: 0.5%; 92 margin-right: 0; 93 padding-bottom: 40px; 94 width: 49.75%; 95} 96.row .halves:first-child { 97 margin-left: 0; 98} 99.mobile { 100 display: none; 101} 102.no-mobile { 103 display: inherit; 104} 105 106/* Appearance CSS */ 107body { 108 background: white; 109 color: black; 110 font-family: lucida grande, geneva, helvetica, arial, sans-serif; 111 margin: 0; 112} 113 114h1, h2, h3, h4, h5, h6, p, td, th { 115 font-family: lucida grande, geneva, helvetica, arial, sans-serif; 116} 117 118h1 { font-size: 2em; } 119h2 { font-size: 1.75em; } 120h3 { font-size: 1.5em; } 121h4 { font-size: 1.25em; } 122 123kbd { 124 color: #006600; 125 font-family: monaco, courier, monospace; 126 font-weight: bold; 127} 128 129pre { 130 font-family: monaco, courier, monospace; 131} 132 133blockquote { 134 background: rgba(191,191,191,0.1); 135 border-left: solid 2px #777; 136 margin: 1em 0; 137 padding: 10px; 138} 139 140blockquote ol li { 141 margin-left: -1em; 142} 143 144pre.command, pre.example { 145 padding: 10px 20px; 146} 147 148p.example { 149 font-style: italic; 150 margin-left: 36pt; 151} 152 153dl.man dd { 154 margin-left: 5em; 155} 156 157DL.man DT { 158 margin-left: 0; 159} 160 161pre.man { 162 margin: 0; 163} 164 165pre.command EM, pre.example EM { 166 color: #3f0000; 167 font-family: lucida grande, geneva, helvetica, arial, sans-serif; 168} 169 170p.command { 171 color: #7f0000; 172 font-family: monaco, courier, monospace; 173 margin-left: 36pt; 174} 175 176p.formula { 177 font-style: italic; 178 margin-left: 36pt; 179} 180 181a img { 182 border: none; 183} 184 185a:link:hover img { 186 background: #f0f0f0; 187 border-radius: 10px; 188 -moz-border-radius: 10px; 189} 190 191a:link, a:visited { 192 font-weight: inherit; 193 text-decoration: none; 194 color: #000099; 195} 196 197a:link:hover, a:visited:hover, a:active { 198 text-decoration: underline; 199 color: #990099; 200} 201 202table.page { 203 border: none; 204 border-collapse: collapse; 205 height: 100%; 206 margin: 0; 207 padding: 0; 208 width: 100%; 209} 210 211td.cups-body { 212 height: 100%; 213 vertical-align: top; 214} 215 216td.trailer { 217 background: #f0f0f0; 218 border: solid thin #e0e0e0; 219 color: #666666; 220 font-size: 80%; 221 padding: 5px; 222} 223 224td.trailer a { 225 color: #666699; 226} 227 228form { 229 display: inline; 230} 231 232input[type="text"], textarea { 233 font-family: monaco, courier, monospace; 234} 235 236input[type="image"] { 237 border: none; 238 padding: 2pt; 239 vertical-align: bottom; 240} 241 242sub, sup { 243 font-size: 50%; 244} 245 246tr.data, td.data, tr.data td { 247 margin-top: 10pt; 248 padding: 5pt; 249 border-bottom: solid 1pt #999999; 250} 251 252tr.data th { 253 border-bottom: solid 1pt #999999; 254 padding-top: 10pt; 255 padding-left: 5pt; 256 text-align: left; 257} 258 259div.table table { 260 border: solid thin rgba(191,191,191,.3); 261 border-collapse: collapse; 262 border-spacing: 0; 263 margin-left: auto; 264 margin-right: auto; 265} 266 267div.table caption { 268 caption-side: top; 269 font-size: 120%; 270 font-style: italic; 271 font-weight: bold; 272 margin-left: auto; 273 margin-right: auto; 274} 275 276div.table table td { 277 background: white; 278 border: solid thin rgba(191,191,191,.45); 279 padding: 5pt 10pt 0; 280} 281 282div.table table th { 283 background: rgba(191,191,191,.15); 284 border: none; 285 border-bottom: solid thin rgba(191,191,191,.3); 286} 287 288div.figure table { 289 margin-left: auto; 290 margin-right: auto; 291} 292 293div.figure caption { 294 caption-side: bottom; 295 font-size: 120%; 296 font-style: italic; 297 font-weight: bold; 298 margin-left: auto; 299 margin-right: auto; 300} 301 302th.label { 303 text-align: right; 304 vertical-align: top; 305} 306 307th.sublabel { 308 text-align: right; 309 font-weight: normal; 310} 311 312hr { 313 border: solid thin; 314} 315 316span.info { 317 background: black; 318 border: thin solid black; 319 color: white; 320 font-size: 80%; 321 font-style: italic; 322 font-weight: bold; 323 white-space: nowrap; 324} 325 326h2 span.info, h3 span.info, h4 span.info { 327 float: right; 328 font-size: 100%; 329} 330 331.conflict { 332 background: red; 333 color: white; 334} 335 336th.conflict { 337 text-align: right; 338} 339 340h1.title { 341 display: none; 342} 343 344h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { 345 border-bottom: solid 2pt black; 346} 347 348table.indent { 349 margin-top: 2em; 350 margin-left: auto; 351 margin-right: auto; 352 width: 90%; 353} 354 355table.indent { 356 border-collapse: collapse; 357} 358 359table.indent td, table.indent th { 360 padding: 0; 361} 362 363table.list { 364 border-collapse: collapse; 365 margin-left: auto; 366 margin-right: auto; 367 width: 90%; 368} 369 370table.list th { 371 background: white; 372 border-bottom: solid thin #cccccc; 373 border-right: 2px solid rgba(191,191,191,.45); 374 color: #444444; 375 padding: 5px 10px 5px 12px; 376 text-align: left; 377 vertical-align: bottom; 378 white-space: nowrap; 379} 380 381table.list th a { 382 color: #4444cc; 383} 384 385table.list td { 386 border-bottom: solid thin rgba(191,191,191,.45); 387 padding: 5px 2px 5px 10px; 388} 389 390table.list tr:nth-child(even) { 391 background: rgba(191,191,191,0.15); 392} 393 394table.list tr:nth-child(odd) { 395 background: rgba(191,191,191,0.3); 396} 397 398div.sidebar { 399 float: right; 400 min-width: 25%; 401 margin-left: 10px; 402 max-width: 33%; 403} 404 405div.sidebar p.l0 { 406 margin-bottom: 0; 407 margin-left: 0; 408 margin-right: 0; 409 margin-top: 12pt; 410} 411 412div.sidebar p.l1 { 413 margin-bottom: 0; 414 margin-left: 36pt; 415 margin-right: 0; 416 margin-top: 0; 417 text-indent: -18pt; 418} 419 420div.sidebar p.l2 { 421 font-style: italic; 422 margin-bottom: 0; 423 margin-left: 54pt; 424 margin-right: 0; 425 margin-top: 0; 426 text-indent: -18pt; 427} 428 429table.inset { 430 background: #f4f4f4; 431 border: thin solid rgba(191,191,191,0.5); 432 margin-top: 1em; 433 padding: 0; 434 width: 100%; 435 /* these are not implemented by all browsers, but that's ok */ 436 border-radius: 5px; 437 -moz-border-radius: 5px; 438} 439 440table.inset caption { 441 caption-side: top; 442 color: #666666; 443 font-size: 80%; 444 margin-left: 10px; 445 margin-bottom: 2px; 446 text-align: left; 447} 448 449table.inset td { 450 padding: 2px 5px; 451} 452 453dt { 454 margin-left: 36pt; 455 margin-top: 12pt; 456} 457 458dd { 459 margin-left: 54pt; 460} 461 462dl.category dt { 463 font-weight: bold; 464} 465 466p.summary { 467 margin-left: 36pt; 468 font-family: monaco, courier, monospace; 469} 470 471div.summary table { 472 border: solid thin #999999; 473 border-collapse: collapse; 474 border-spacing: 0; 475 margin: 10px; 476} 477 478div.summary table td, div.summary table th { 479 background: white; 480 border: solid thin #999999; 481 border-spacing: 0; 482 padding: 5px; 483 text-align: left; 484 vertical-align: top; 485} 486 487div.summary table thead th { 488 background: #f0f0f0; 489} 490 491div.tabs { 492 height: 480px; 493 overflow: hidden; 494} 495 496div.tab { 497 float: left; 498 height: 100%; 499 overflow-y: auto; 500 width: 100%; 501} 502 503/* API documentation styles... */ 504div.cups-body h1 { 505} 506div.cups-body h2 { 507} 508div.cups-body h3 { 509} 510div.cups-body h4 { 511} 512div.cups-body h5 { 513} 514div.contents { 515} 516div.contents h1 { 517} 518div.contents h2 { 519} 520div.contents ul.contents { 521} 522div.contents ul.contents li ul { 523 display: none; 524} 525 526.class { 527 border-bottom: solid 2px gray; 528} 529.constants { 530} 531.description { 532 margin-top: 0.5em; 533} 534.discussion { 535} 536.enumeration { 537 border-bottom: solid 2px gray; 538} 539.function { 540 border-bottom: solid 2px gray; 541 margin-bottom: 0; 542} 543.members { 544} 545.method { 546} 547.parameters { 548} 549.returnvalue { 550} 551.struct { 552 border-bottom: solid 2px gray; 553} 554.typedef { 555 border-bottom: solid 2px gray; 556} 557.union { 558 border-bottom: solid 2px gray; 559} 560.variable { 561} 562h1, h2, h3, h4, h5, h6 { 563 page-break-inside: avoid; 564} 565blockquote { 566 page-break-inside: avoid; 567} 568p.code, pre, ul.code li { 569 border-left: thin dotted gray; 570 background: rgba(191,191,191,0.1); 571} 572p code, li code { 573 background: rgba(191,191,191,0.3); 574} 575p code, li code, p.code, pre, ul.code li { 576 font-family: monospace; 577 hyphens: manual; 578 margin: 18pt 0; 579 -webkit-hyphens: manual; 580 page-break-inside: avoid; 581} 582p.code, pre, ul.code li { 583 padding: 10px; 584} 585p code, li code { 586 padding: 2px 5px; 587} 588span.info { 589 background: black; 590 border: solid thin black; 591 color: white; 592 font-size: 80%; 593 font-style: italic; 594 font-weight: bold; 595 white-space: nowrap; 596} 597h3 span.info, h4 span.info { 598 border-top-left-radius: 10px; 599 border-top-right-radius: 10px; 600 float: right; 601 padding: 3px 6px; 602} 603ul.code, ul.contents, ul.subcontents { 604 list-style-type: none; 605 margin: 0; 606 padding-left: 0; 607} 608ul.code li { 609 margin: 0; 610} 611ul.contents > li { 612 margin-top: 1em; 613} 614ul.contents li ul.code, ul.contents li ul.subcontents { 615 padding-left: 2em; 616} 617 618/* iPhone/iPod touch overrides */ 619@media only screen and (min-device-width: 320px) and (max-device-width: 480px), 620 only screen and (min-device-width: 320px) and (max-device-width: 568px) { 621 .mobile { 622 display: inherit; 623 } 624 .no-mobile { 625 display: none; 626 } 627 628 .cups-header { 629 margin: 0; 630 position: relative; 631 } 632 .cups-header ul li { 633 float: none; 634 } 635 636 .cups-body { 637 padding: 0; 638 } 639 640 .cups-footer { 641 font-size: 10px; 642 height: auto; 643 position: relative; 644 } 645 646 .row .thirds, .row .halves { 647 float: none; 648 margin: 0; 649 width: 100%; 650 } 651 652 div.sidebar { 653 float: none; 654 margin-left: 0; 655 max-width: 100%; 656 min-width: 100%; 657 width: 100%; 658 } 659 660 blockquote { 661 margin: 0; 662 } 663 664 p.example { 665 margin-left: 0; 666 } 667 668 pre.command, pre.example, pre.man { 669 margin-left: 0; 670 white-space: pre-wrap; 671 } 672} 673 674/* iPad overrides */ 675@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { 676 .mobile { 677 display: inherit; 678 } 679 .no-mobile { 680 display: none; 681 } 682} 683 684/* Dark mode overrides */ 685@media (prefers-color-scheme: dark) { 686 body { 687 background: black; 688 color: #ccc; 689 } 690 a:link, a:visited, table.list th a { 691 color: #6666ff; 692 } 693 a:link:hover, a:visited:hover, a:active, table.list th a { 694 color: #ff66ff; 695 } 696 hr { 697 color: #666; 698 } 699 table.inset { 700 background: #1d1d1d; 701 } 702 h2.title, h3.title, .row .cups-body h2, .row .cups-body h3 { 703 border-bottom: solid 2pt #ccc; 704 } 705 div.table table td, table.list th { 706 background: black; 707 } 708 table.list th { 709 color: #666; 710 } 711} 712