The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | /* file: android-developer-docs.css |
| 2 | author: smain |
| 3 | date: september 2008 |
| 4 | info: developer doc styles (developer.android.com) |
| 5 | */ |
| 6 | |
| 7 | @import url("android-developer-core.css"); |
| 8 | |
| 9 | #title { |
| 10 | border-bottom: 4px solid #ccc; |
| 11 | display:none; |
| 12 | } |
| 13 | |
| 14 | #title h1 { |
| 15 | color:#336666; |
| 16 | margin:0; |
| 17 | padding: 5px 10px; |
| 18 | font-size: 1em; |
| 19 | line-height: 15px; |
| 20 | } |
| 21 | |
| 22 | #title h1 .small{ |
| 23 | color:#000; |
| 24 | margin:0; |
| 25 | font-size: 13px; |
| 26 | padding:0 0 0 15px; |
| 27 | } |
| 28 | |
| 29 | /* SIDE NAVIGATION */ |
| 30 | |
| 31 | #side-nav { |
| 32 | padding:0 6px 0 0; |
| 33 | background-color: #fff; |
| 34 | font-size:12px; |
| 35 | } |
| 36 | |
| 37 | #side-nav.not-resizable { |
| 38 | background:url('images/sidenav-rule.png') no-repeat 243px 0; |
| 39 | } |
| 40 | |
| 41 | #resize-packages-nav { |
| 42 | /* keeps the resize handle below the h-scroll handle */ |
| 43 | height:270px; |
| 44 | overflow:hidden; |
| 45 | max-height:100%; |
| 46 | } |
| 47 | |
| 48 | #packages-nav { |
| 49 | height:270px; |
| 50 | max-height:inherit; |
| 51 | position:relative; |
| 52 | overflow:auto; |
| 53 | } |
| 54 | |
| 55 | #classes-nav, |
| 56 | #devdoc-nav { |
| 57 | overflow:auto; |
| 58 | position:relative; |
| 59 | } |
| 60 | |
| 61 | #side-nav ul { |
| 62 | list-style: none; |
| 63 | margin: 0; |
| 64 | padding:5px 0; |
| 65 | } |
| 66 | |
| 67 | #side-nav ul ul { |
| 68 | margin: .35em 0 0 0; |
| 69 | padding: 0; |
| 70 | } |
| 71 | |
| 72 | #side-nav li { |
| 73 | padding:0; |
| 74 | line-height:16px; |
| 75 | white-space:nowrap; |
| 76 | zoom:1; |
| 77 | } |
| 78 | |
| 79 | #side-nav li h2 { |
| 80 | font-size:12px; |
| 81 | font-weight: bold; |
| 82 | margin:.5em 0 0 0; |
| 83 | padding: 3px 0 1px 9px; |
| 84 | } |
| 85 | |
| 86 | #side-nav li a { |
| 87 | text-decoration:none; |
| 88 | padding: 0 0 0 18px; |
| 89 | zoom:1; |
| 90 | } |
| 91 | |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 92 | #side-nav li a span+span { |
| 93 | display:none; |
| 94 | } |
| 95 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 96 | #side-nav li a:hover { |
| 97 | text-decoration:underline; |
| 98 | } |
| 99 | |
| 100 | #side-nav li a+a { |
| 101 | padding: 0; |
| 102 | } |
| 103 | |
| 104 | #side-nav li li li a { |
| 105 | /*sdk lists*/ |
| 106 | padding: 0 0 0 28px; |
| 107 | } |
| 108 | |
| 109 | #side-nav .selected { |
| 110 | background-color: #435a6e; |
| 111 | color: #fff; |
| 112 | font-weight:bold; |
| 113 | } |
| 114 | |
| 115 | #side-nav .selected a { |
| 116 | color: #fff; |
| 117 | text-decoration:none; |
| 118 | } |
| 119 | |
| 120 | #side-nav strong { |
| 121 | display:block; |
| 122 | } |
| 123 | |
| 124 | #side-nav .toggle-img { |
| 125 | margin:0; |
| 126 | padding:0; |
| 127 | position:absolute; |
| 128 | top:0; |
| 129 | left:0; |
| 130 | height:16px; |
| 131 | width:15px; |
| 132 | outline-style:none; |
| 133 | } |
| 134 | |
| 135 | #side-nav .closed .toggle-img { |
| 136 | background:url('images/triangle-closed-small.png') 7px 4px no-repeat; |
| 137 | } |
| 138 | #side-nav .open .toggle-img { |
| 139 | background:url('images/triangle-opened-small.png') 7px 4px no-repeat; |
| 140 | } |
| 141 | |
| 142 | #side-nav .toggle-list { |
| 143 | position:relative; |
| 144 | } |
| 145 | |
| 146 | #side-nav .toggle-list ul { |
| 147 | margin:0; |
| 148 | display:none; |
| 149 | } |
| 150 | |
| 151 | #side-nav .toggle-list div { |
| 152 | display:block; |
| 153 | } |
| 154 | |
| 155 | #index-links .selected { |
| 156 | background-color: #fff; |
| 157 | color: #000; |
| 158 | font-weight:normal; |
| 159 | text-decoration:none; |
| 160 | } |
| 161 | |
| 162 | #index-links { |
| 163 | padding:7px 0 4px 10px; |
| 164 | } |
| 165 | |
| 166 | /* nav tree */ |
| 167 | |
| 168 | #nav-tree ul { |
| 169 | padding:5px 0 1.5em; |
| 170 | } |
| 171 | |
| 172 | #side-nav #nav-tree ul li a, |
| 173 | #side-nav #nav-tree ul li span.no-children { |
| 174 | padding: 0 0 0 0; |
| 175 | margin: 0; |
| 176 | } |
| 177 | |
| 178 | #nav-tree .plus { |
| 179 | margin: 0 3px 0 0; |
| 180 | } |
| 181 | |
| 182 | #nav-tree ul ul { |
| 183 | list-style: none; |
| 184 | margin: 0; |
| 185 | padding: 0 0 0 0; |
| 186 | } |
| 187 | |
| 188 | #nav-tree ul li { |
| 189 | margin: 0; |
| 190 | padding: 0 0 0 0; |
| 191 | white-space: nowrap; |
| 192 | } |
| 193 | |
| 194 | #nav-tree .children_ul { |
| 195 | margin:0; |
| 196 | } |
| 197 | |
| 198 | #nav-tree a.nolink { |
| 199 | color: black; |
| 200 | text-decoration: none; |
| 201 | } |
| 202 | |
| 203 | #nav-tree span.label { |
| 204 | width: 100%; |
| 205 | } |
| 206 | |
| 207 | #nav-tree { |
| 208 | overflow-x: auto; |
| 209 | overflow-y: scroll; |
| 210 | } |
| 211 | |
| 212 | #nav-swap { |
| 213 | font-size:10px; |
| 214 | line-height:10px; |
| 215 | margin-left:1em; |
| 216 | text-decoration:none; |
| 217 | display:block; |
| 218 | } |
| 219 | |
| 220 | #tree-link { |
| 221 | |
| 222 | } |
| 223 | |
| 224 | /* DOCUMENT BODY */ |
| 225 | |
| 226 | #doc-content { |
| 227 | overflow:auto; |
| 228 | } |
| 229 | |
| 230 | #jd-header { |
| 231 | background-color: #E2E2E2; |
| 232 | padding: 7px 15px; |
| 233 | } |
| 234 | |
| 235 | #jd-header h1 { |
| 236 | margin: 0 0 10px; |
| 237 | font-size:1.7em; |
| 238 | } |
| 239 | |
| 240 | #jd-header .crumb { |
| 241 | font-size:.9em; |
| 242 | line-height:1em; |
| 243 | color:#777; |
| 244 | } |
| 245 | |
| 246 | #jd-header .crumb a, |
| 247 | #jd-header .crumb a:visited { |
| 248 | text-decoration:none; |
| 249 | color:#777; |
| 250 | } |
| 251 | |
| 252 | #jd-header .crumb a:hover { |
| 253 | text-decoration:underline; |
| 254 | } |
| 255 | |
| 256 | #jd-header table { |
| 257 | margin:0; |
| 258 | padding:0; |
| 259 | } |
| 260 | |
| 261 | #jd-header td { |
| 262 | border:none; |
| 263 | padding:0; |
| 264 | vertical-align:top; |
| 265 | } |
| 266 | |
| 267 | #jd-header.guide-header { |
| 268 | background-color:#fff; |
| 269 | color:#435a6e; |
| 270 | height:50px; |
| 271 | } |
| 272 | |
| 273 | #jd-descr { |
| 274 | position:relative; |
| 275 | } |
| 276 | |
| 277 | /* summary tables for reference pages */ |
| 278 | .jd-sumtable { |
| 279 | margin: .5em 1em 1em 1em; |
| 280 | width:99%; |
| 281 | font-size:.9em; |
| 282 | } |
| 283 | |
| 284 | .jd-sumtable a { |
| 285 | text-decoration:none; |
| 286 | } |
| 287 | |
| 288 | .jd-sumtable a:hover { |
| 289 | text-decoration:underline; |
| 290 | } |
| 291 | |
| 292 | /* the link inside a sumtable for "Show All/Hide All" */ |
| 293 | .toggle-all { |
| 294 | display:block; |
| 295 | float:right; |
| 296 | font-weight:normal; |
| 297 | font-size:0.9em; |
| 298 | } |
| 299 | |
| 300 | /* adjustments for in/direct subclasses tables */ |
| 301 | .jd-sumtable-subclasses { |
| 302 | margin: 1em 0 0 0; |
| 303 | max-width:968px; |
| 304 | } |
| 305 | |
| 306 | /* extra space between end of method name and open-paren */ |
| 307 | .sympad { |
| 308 | margin-right: 2px; |
| 309 | } |
| 310 | |
| 311 | /* right alignment for the return type in sumtable */ |
| 312 | .jd-sumtable .jd-typecol { |
| 313 | text-align:right; |
| 314 | } |
| 315 | |
| 316 | /* adjustments for the expando table-in-table */ |
| 317 | .jd-sumtable-expando { |
| 318 | margin:.5em 0; |
| 319 | padding:0; |
| 320 | } |
| 321 | |
| 322 | /* a div that holds a short description */ |
| 323 | .jd-descrdiv { |
| 324 | width:100%; |
| 325 | padding:3px 1em 0 1em; |
| 326 | margin:0; |
| 327 | border:0; |
| 328 | } |
| 329 | |
| 330 | /* page-top-right container for reference pages (holds |
| 331 | links to summary tables) */ |
| 332 | #api-info-block { |
| 333 | font-size:.8em; |
| 334 | margin:0; |
| 335 | padding:6px; |
| 336 | font-weight:normal; |
| 337 | float:right; |
| 338 | text-align:right; |
| 339 | color:#999; |
| 340 | max-width:70%; |
| 341 | } |
| 342 | |
| 343 | /* applies to a div containing links to summary tables */ |
| 344 | .sum-details-links { |
| 345 | margin:0 .5em; |
| 346 | padding:0; |
| 347 | font-weight:normal; |
| 348 | } |
| 349 | |
| 350 | .sum-details-links a { |
| 351 | text-decoration:none; |
| 352 | } |
| 353 | |
| 354 | .sum-details-links a:hover { |
| 355 | text-decoration:underline; |
| 356 | } |
| 357 | |
| 358 | |
| 359 | /* inheritance table */ |
| 360 | .jd-inheritance-table { |
| 361 | border-spacing:0; |
| 362 | margin:0; |
| 363 | padding:0; |
| 364 | font-size:.9em; |
| 365 | } |
| 366 | .jd-inheritance-table td { |
| 367 | border: none; |
| 368 | margin: 0; |
| 369 | padding: 0; |
| 370 | } |
| 371 | .jd-inheritance-table .jd-inheritance-space { |
| 372 | font-weight:bold; |
| 373 | width:1em; |
| 374 | } |
| 375 | .jd-inheritance-table .jd-inheritance-interface-cell { |
| 376 | padding-left: 17px; |
| 377 | } |
| 378 | |
| 379 | #jd-content { |
| 380 | padding: 18px 15px; |
| 381 | } |
| 382 | |
| 383 | hr { |
| 384 | background-color:#ccc; |
| 385 | } |
| 386 | |
| 387 | /* DOC CLASSES */ |
| 388 | |
| 389 | #jd-content h1 { |
| 390 | /*sdk page*/ |
| 391 | font-size:1.6em; |
| 392 | color:#336666; |
| 393 | margin:0 0 .5em; |
| 394 | } |
| 395 | |
| 396 | #jd-content h2 { |
| 397 | font-size:1.45em; |
| 398 | color:#111; |
| 399 | border-top:2px solid #ccc; |
| 400 | padding: .5em 0 0; |
| 401 | margin: 1.5em 0 1em 0; |
| 402 | max-width:968px; |
| 403 | } |
| 404 | |
| 405 | #jd-content h3 { |
| 406 | font-size:1.2em; |
| 407 | color:#222; |
| 408 | padding: .75em 0 .65em 0; |
| 409 | margin:0; |
| 410 | } |
| 411 | |
| 412 | #jd-content h4 { |
| 413 | font-size:1.1em; |
| 414 | margin-bottom:.5em; |
| 415 | color:#222; |
| 416 | } |
| 417 | |
| 418 | #jd-content .small-header { |
| 419 | font-size:1em; |
| 420 | color:#000; |
| 421 | font-weight:bold; |
| 422 | border:none; |
| 423 | padding:0; |
| 424 | margin:1em 0 .5em; |
| 425 | position:inherit; |
| 426 | } |
| 427 | |
| 428 | #jd-content img { |
| 429 | margin: 0 0 1em 1em; |
| 430 | } |
| 431 | |
| 432 | #jd-content li img, |
| 433 | #jd-content dd img { |
| 434 | margin:.5em 0 0 1em; |
| 435 | } |
| 436 | |
| 437 | .nolist { |
| 438 | list-style:none; |
| 439 | padding:0; |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 440 | margin:0 0 1em 1em; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 441 | } |
| 442 | |
| 443 | .nolist li { |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 444 | padding:0 0 2px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 445 | margin:0; |
| 446 | } |
| 447 | |
| 448 | h4 .normal { |
| 449 | font-size:.9em; |
| 450 | font-weight:normal; |
| 451 | } |
| 452 | |
| 453 | .jd-details { |
| 454 | /* border:1px solid #669999; |
| 455 | padding:4px; */ |
| 456 | margin:0 0 1em; |
| 457 | } |
| 458 | |
| 459 | /* API reference: a container for the |
| 460 | .tagdata blocks that make up the detailed |
| 461 | description */ |
| 462 | .jd-details-descr { |
| 463 | padding:0; |
| 464 | margin:.5em .25em; |
| 465 | } |
| 466 | |
| 467 | /* API reference: a block containing |
| 468 | a detailed description, a params table, |
| 469 | seealso list, etc */ |
| 470 | .jd-tagdata { |
| 471 | margin:.5em 1em; |
| 472 | } |
| 473 | |
| 474 | /* API reference: adjustments to |
| 475 | the detailed description block */ |
| 476 | .jd-tagdescr { |
| 477 | margin:.25em 0 .75em 0; |
| 478 | line-height:1em; |
| 479 | } |
| 480 | |
| 481 | .jd-tagdescr p { |
| 482 | margin:.5em 0; |
| 483 | padding:0; |
| 484 | |
| 485 | } |
| 486 | |
| 487 | .jd-tagdescr ol, |
| 488 | .jd-tagdescr ul { |
| 489 | margin:0 2.5em; |
| 490 | padding:0; |
| 491 | } |
| 492 | |
| 493 | .jd-tagdescr table, |
| 494 | .jd-tagdescr img { |
| 495 | margin:.25em 1em; |
| 496 | } |
| 497 | |
| 498 | .jd-tagdescr li { |
| 499 | margin:0 0 .25em 0; |
| 500 | padding:0; |
| 501 | } |
| 502 | |
| 503 | /* API reference: heading marking |
| 504 | the details section for constants, |
| 505 | attrs, methods, etc. */ |
| 506 | h4.jd-details-title { |
| 507 | font-size:1.15em; |
| 508 | background-color: #E2E2E2; |
| 509 | margin:1.5em 0 .6em; |
| 510 | padding:3px; |
| 511 | } |
| 512 | |
| 513 | h4.jd-tagtitle { |
| 514 | margin:0; |
| 515 | } |
| 516 | |
| 517 | /* API reference: heading for "Parameters", "See Also", etc., |
| 518 | in details sections */ |
| 519 | h5.jd-tagtitle { |
| 520 | margin:0 0 .25em 0; |
| 521 | font-size:1em; |
| 522 | } |
| 523 | |
| 524 | .jd-tagtable { |
| 525 | margin:0; |
| 526 | } |
| 527 | |
| 528 | .jd-tagtable td, |
| 529 | .jd-tagtable th { |
| 530 | border:none; |
| 531 | background-color:#fff; |
| 532 | vertical-align:top; |
| 533 | font-weight:normal; |
| 534 | padding:2px 10px; |
| 535 | } |
| 536 | |
| 537 | .jd-tagtable th { |
| 538 | font-style:italic; |
| 539 | } |
| 540 | |
| 541 | #jd-content table h2 { |
| 542 | background-color: #d6d6d6; |
| 543 | font-size: 1.1em; |
| 544 | margin:0 0 10px; |
| 545 | padding:5px; |
| 546 | left:0; |
| 547 | width:auto; |
| 548 | } |
| 549 | |
| 550 | div.special { |
| 551 | padding: .5em 1em 1em 1em; |
| 552 | margin: 0 0 1em; |
| 553 | background-color: #ddf0f2; |
| 554 | } |
| 555 | |
| 556 | div.special p { |
| 557 | margin: .5em 0 0 0; |
| 558 | } |
| 559 | |
| 560 | div.special ol { |
| 561 | margin: 0; |
| 562 | } |
| 563 | |
| 564 | div.special ol li { |
| 565 | margin: 0; |
| 566 | padding: 0; |
| 567 | } |
| 568 | |
| 569 | #jd-content div.special h2, |
| 570 | #jd-content div.special h3 { |
| 571 | color:#669999; |
| 572 | font-size:1.2em; |
| 573 | border:none; |
| 574 | margin:0 0 .5em; |
| 575 | padding:0; |
| 576 | } |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 577 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 578 | p.note, p.caution, p.warning { |
| 579 | margin: 1em; |
| 580 | padding: 0 0 0 .5em; |
| 581 | border-left: 4px solid; |
| 582 | } |
| 583 | |
| 584 | p.special-note { |
| 585 | background-color:#EBF3DB; |
| 586 | padding:10px 20px; |
| 587 | margin:0 0 1em; |
| 588 | } |
| 589 | |
| 590 | p.note { |
| 591 | border-color: #99aacc; |
| 592 | } |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 593 | |
| 594 | p.warning { |
| 595 | border-color: #aa0033; |
| 596 | } |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 597 | |
| 598 | p.caution { |
| 599 | border-color: #ffcf00; |
| 600 | } |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 601 | |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 602 | p.warning b, p.warning strong { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 603 | font-weight: bold; |
| 604 | } |
| 605 | |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 606 | li p.note, li p.warning { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 607 | margin: .5em 0 0 0; |
| 608 | padding: .2em .5em .2em .9em; |
| 609 | } |
| 610 | |
| 611 | dl.xml dt { |
| 612 | font-variant:small-caps; |
| 613 | font-size:1.2em; |
| 614 | } |
| 615 | |
| 616 | dl.xml dl { |
| 617 | padding:0; |
| 618 | } |
| 619 | |
| 620 | dl.xml dl dt { |
| 621 | font-variant:normal; |
| 622 | font-size:1em; |
| 623 | } |
| 624 | |
| 625 | .listhead li { |
| 626 | font-weight: bold; |
| 627 | } |
| 628 | |
| 629 | .listhead li *, /*ie*/.listhead li li { |
| 630 | font-weight: normal; |
| 631 | } |
| 632 | |
| 633 | ol.no-style, |
| 634 | ul.no-style { |
| 635 | list-style:none; |
| 636 | padding-left:1em; |
| 637 | } |
| 638 | |
| 639 | .new { |
| 640 | font-size: .78em; |
| 641 | font-weight: bold; |
| 642 | color: red; |
| 643 | text-decoration: none; |
| 644 | } |
| 645 | |
| 646 | pre.classic { |
| 647 | background-color:transparent; |
| 648 | border:none; |
| 649 | padding:0; |
| 650 | } |
| 651 | |
| 652 | |
| 653 | /* BEGIN quickview sidebar element styles */ |
| 654 | |
| 655 | #qv-wrapper { |
| 656 | float: right; |
| 657 | width:310px; |
| 658 | background-color:#fff; |
| 659 | margin:-48px 0 2px 0; |
| 660 | padding:0 0 20px 35px; |
| 661 | } |
| 662 | |
| 663 | #qv { |
| 664 | background-color:#fff; |
| 665 | border:4px solid #dee8f1; |
| 666 | margin:0; |
| 667 | padding:0 6px 6px; |
| 668 | width:270px; |
| 669 | font-size:.9em; |
| 670 | } |
| 671 | |
| 672 | #qv ol { |
| 673 | list-style:none; |
| 674 | padding: 0; |
| 675 | } |
| 676 | |
| 677 | #qv ol ol{ |
| 678 | list-style:none; |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 679 | padding: 0 0 0 12px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 680 | margin:0; |
| 681 | } |
| 682 | |
| 683 | #qv ul { |
| 684 | padding: 0 10px 0 2em; |
| 685 | } |
| 686 | |
| 687 | #qv li { |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 688 | padding: 0 10px 3px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 689 | line-height: 1.2em; |
| 690 | } |
| 691 | |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 692 | #qv li li { |
| 693 | padding: 3px 10px 0; |
| 694 | } |
| 695 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 696 | #qv ul li { |
| 697 | padding: 0 10px 0 0; |
| 698 | } |
| 699 | |
| 700 | #qv li.selected a { |
| 701 | color:#555; |
| 702 | text-decoration:none; |
| 703 | } |
| 704 | |
| 705 | #qv a { |
| 706 | color:#cc6600; |
| 707 | } |
| 708 | |
| 709 | #qv p { |
| 710 | margin:8px 0 0; |
| 711 | padding:0 10px; |
| 712 | } |
| 713 | |
| 714 | #qv-extra #rule { |
| 715 | padding: 0 10px; |
| 716 | margin: 0; |
| 717 | } |
| 718 | |
| 719 | #qv-sub-rule { |
| 720 | padding: 6px 20px; |
| 721 | margin: 0; |
| 722 | } |
| 723 | |
| 724 | #qv-sub-rule p { |
| 725 | margin: 0; |
| 726 | } |
| 727 | |
| 728 | #jd-content #qv h2 { |
| 729 | font-size:1.05em; |
| 730 | font-weight:bold; |
| 731 | margin:12px 0 .25em 0; |
| 732 | padding:0 10px; |
| 733 | background-color:transparent; |
| 734 | color:#7BB026; |
| 735 | border:none; |
| 736 | left:0; |
| 737 | z-index:1; |
| 738 | } |
| 739 | |
| 740 | /* END quickview sidebar element styles */ |
| 741 | |
| 742 | /* Begin sidebox sidebar element styles */ |
| 743 | |
| 744 | .sidebox-wrapper { |
| 745 | float: right; |
| 746 | width:280px; |
| 747 | background-color:#fff; |
| 748 | margin: 0; |
| 749 | padding: 20px 0 20px 20px; |
| 750 | } |
| 751 | |
| 752 | .sidebox-inner { |
| 753 | border-left:1px solid #dee8f1; |
| 754 | background-color:#ffffee; |
| 755 | padding:5px 8px 5px 12px; |
| 756 | font-size:90%; |
| 757 | width:260px; |
| 758 | } |
| 759 | |
| 760 | .sidebox { |
| 761 | float: right; |
| 762 | width:260px; |
| 763 | background-color:#ffffee; |
| 764 | border-left:1px solid #dee8f1; |
| 765 | margin: 12px 0 0 15px; |
| 766 | padding:5px 8px 0 12px; |
| 767 | font-size:90%; |
| 768 | } |
| 769 | |
| 770 | .sidebox p, |
| 771 | .sidebox-inner p { |
| 772 | margin-bottom: .25em; |
| 773 | } |
| 774 | |
| 775 | .sidebox ul, |
| 776 | .sidebox-inner ul { |
| 777 | padding: 0 0 0 1.5em; |
| 778 | } |
| 779 | |
| 780 | .sidebox li ul, |
| 781 | .sidebox-inner li ul { |
| 782 | margin-top:0; |
| 783 | margin-bottom:.1em; |
| 784 | } |
| 785 | |
| 786 | .sidebox li, |
| 787 | .sidebox-inner li { |
| 788 | padding:0 0 0 0em; |
| 789 | } |
| 790 | |
| 791 | #jd-content .sidebox h2, |
| 792 | #jd-content .sidebox h3, |
| 793 | #jd-content .sidebox-inner h2, |
| 794 | #jd-content .sidebox-inner h3 { |
| 795 | border:none; |
| 796 | font-size:1em; |
| 797 | margin:0; |
| 798 | padding:4px 0 4px; |
| 799 | left:0; |
| 800 | z-index:0; |
| 801 | } |
| 802 | |
| 803 | .sidebox hr, |
| 804 | .sidebox-inner hr { |
| 805 | background-color:#ccc; |
| 806 | border:none; |
| 807 | } |
| 808 | |
| 809 | /* End sidebox sidebar element styles */ |
| 810 | |
Dirk Dougherty | 29eafde | 2009-05-26 08:40:40 -0700 | [diff] [blame] | 811 | /* BEGIN image and caption styles (originally for UI Guidelines docs) */ |
| 812 | |
| 813 | table.image-caption { |
| 814 | padding:0; |
| 815 | margin:.5em 0; |
| 816 | border:0; |
| 817 | } |
| 818 | |
| 819 | td.image-caption-i { |
| 820 | font-size:92%; |
| 821 | padding:0; |
| 822 | margin:0; |
| 823 | border:0; |
| 824 | } |
| 825 | |
| 826 | td.image-caption-i img { |
| 827 | padding:0 1em; |
| 828 | margin:0; |
| 829 | } |
| 830 | |
| 831 | .image-list { |
| 832 | width:24px; |
| 833 | text-align:center; |
| 834 | } |
| 835 | |
| 836 | .image-list .caption { |
| 837 | margin:0 2px; |
| 838 | } |
| 839 | |
| 840 | td.image-caption-c { |
| 841 | font-size:92%; |
| 842 | padding:1em 2px 2px 2px; |
| 843 | margin:0; |
| 844 | border:0; |
| 845 | width:350px; |
| 846 | } |
| 847 | |
| 848 | .grad-rule-top { |
| 849 | background-image:url(images/grad-rule-qv.png); |
| 850 | background-repeat:no-repeat; |
| 851 | padding-top:1em; |
| 852 | margin-top:0; |
| 853 | } |
| 854 | |
| 855 | .image-caption-nested { |
| 856 | margin-top:0; |
| 857 | padding:0 0 0 1em; |
| 858 | } |
| 859 | |
| 860 | .image-caption-nested td { |
| 861 | padding:0 4px 2px 0; |
| 862 | margin:0; |
| 863 | border:0; |
| 864 | } |
| 865 | |
| 866 | /* END image and caption styles */ |
| 867 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 868 | /* table of contents */ |
| 869 | |
| 870 | ol.toc { |
| 871 | margin: 0 0 1em 0; |
| 872 | padding: 0; |
| 873 | list-style: none; |
| 874 | font-size:95%; |
| 875 | } |
| 876 | |
| 877 | ol.toc li { |
| 878 | font-weight: bold; |
| 879 | margin: 0 0 .5em 1em; |
| 880 | padding: 0; |
| 881 | } |
| 882 | |
| 883 | ol.toc li p { |
| 884 | font-weight: normal; |
| 885 | } |
| 886 | |
| 887 | ol.toc li ol { |
| 888 | margin: 0; |
| 889 | padding: 0; |
| 890 | } |
| 891 | |
| 892 | ol.toc li li { |
| 893 | padding: 0; |
| 894 | margin: 0 0 0 1em; |
| 895 | font-weight: normal; |
| 896 | list-style: none; |
| 897 | } |
| 898 | |
| 899 | table ol.toc { |
| 900 | margin-left: 0; |
| 901 | } |
| 902 | |
| 903 | .columns td { |
| 904 | padding:0 5px; |
| 905 | border:none; |
| 906 | } |
| 907 | |
| 908 | /* link table */ |
| 909 | .jd-linktable { |
| 910 | margin: 0 0 1em; |
| 911 | border-bottom: 1px solid #888; |
| 912 | } |
| 913 | .jd-linktable th, |
| 914 | .jd-linktable td { |
| 915 | padding: 3px 5px; |
| 916 | vertical-align: top; |
| 917 | text-align: left; |
| 918 | border:none; |
| 919 | } |
| 920 | .jd-linktable tr { |
| 921 | background-color: #fff; |
| 922 | } |
| 923 | .jd-linktable td { |
| 924 | border-top: 1px solid #888; |
| 925 | background-color: inherit; |
| 926 | } |
| 927 | .jd-linktable td p { |
| 928 | padding: 0 0 5px; |
| 929 | } |
| 930 | .jd-linktable .jd-linkcol { |
| 931 | } |
| 932 | .jd-linktable .jd-descrcol { |
| 933 | } |
| 934 | .jd-linktable .jd-typecol { |
| 935 | text-align:right; |
| 936 | } |
| 937 | .jd-linktable .jd-valcol { |
| 938 | } |
| 939 | .jd-linktable .jd-commentrow { |
| 940 | border-top:none; |
| 941 | padding-left:25px; |
| 942 | } |
| 943 | .jd-deprecated-warning { |
| 944 | margin-top: 0; |
| 945 | margin-bottom: 10px; |
| 946 | } |
| 947 | |
| 948 | tr.alt-color { |
| 949 | background-color: #f6f6f6; |
| 950 | } |
| 951 | |
| 952 | /* expando trigger */ |
| 953 | #jd-content .jd-expando-trigger-img { |
| 954 | margin:0; |
| 955 | } |
| 956 | |
| 957 | /* jd-expando */ |
| 958 | .jd-inheritedlinks { |
| 959 | padding:0 0 0 13px |
| 960 | } |
| 961 | |
| 962 | /* SDK PAGE */ |
| 963 | table.download tr { |
| 964 | background-color:#d9d9d9; |
| 965 | } |
| 966 | |
| 967 | table.download tr.alt-color { |
| 968 | background-color:#ededed; |
| 969 | } |
| 970 | |
| 971 | table.download td, |
| 972 | table.download th { |
| 973 | border:2px solid #fff; |
| 974 | padding:10px 5px; |
| 975 | } |
| 976 | |
| 977 | table.download th { |
| 978 | background-color:#6d8293; |
| 979 | color:#fff; |
| 980 | } |
| 981 | |
| 982 | /* INLAY 180 COPY and 240PX EXTENSION */ |
| 983 | /* modified to 43px so that all browsers eliminate the package panel h-scroll */ |
| 984 | .g-tpl-240 .g-unit, |
| 985 | .g-unit .g-tpl-240 .g-unit, |
| 986 | .g-unit .g-unit .g-tpl-240 .g-unit { |
| 987 | display: block; |
| 988 | margin: 0 0 0 243px; |
| 989 | width: auto; |
| 990 | float: none; |
| 991 | } |
| 992 | .g-unit .g-unit .g-tpl-240 .g-first, |
| 993 | .g-unit .g-tpl-240 .g-first, |
| 994 | .g-tpl-240 .g-first { |
| 995 | display: block; |
| 996 | margin: 0; |
| 997 | width: 243px; |
| 998 | float: left; |
| 999 | } |
| 1000 | /* 240px alt */ |
| 1001 | .g-tpl-240-alt .g-unit, |
| 1002 | .g-unit .g-tpl-240-alt .g-unit, |
| 1003 | .g-unit .g-unit .g-tpl-240-alt .g-unit { |
| 1004 | display: block; |
| 1005 | margin: 0 243px 0 0; |
| 1006 | width: auto; |
| 1007 | float: none; |
| 1008 | } |
| 1009 | .g-unit .g-unit .g-tpl-240-alt .g-first, |
| 1010 | .g-unit .g-tpl-240-alt .g-first, |
| 1011 | .g-tpl-240-alt .g-first { |
| 1012 | display: block; |
| 1013 | margin: 0; |
| 1014 | width: 243px; |
| 1015 | float: right; |
| 1016 | } |
| 1017 | |
| 1018 | /* 180px */ |
| 1019 | .g-tpl-180 .g-unit, |
| 1020 | .g-unit .g-tpl-180 .g-unit, |
| 1021 | .g-unit .g-unit .g-tpl-180 .g-unit { |
| 1022 | display: block; |
| 1023 | margin: 0 0 0 180px; |
| 1024 | width: auto; |
| 1025 | float: none; |
| 1026 | } |
| 1027 | .g-unit .g-unit .g-tpl-180 .g-first, |
| 1028 | .g-unit .g-tpl-180 .g-first, |
| 1029 | .g-tpl-180 .g-first { |
| 1030 | display: block; |
| 1031 | margin: 0; |
| 1032 | width: 180px; |
| 1033 | float: left; |
| 1034 | } |
| 1035 | /* 180px alt */ |
| 1036 | .g-tpl-180-alt .g-unit, |
| 1037 | .g-unit .g-tpl-180-alt .g-unit, |
| 1038 | .g-unit .g-unit .g-tpl-180-alt .g-unit { |
| 1039 | display: block; |
| 1040 | margin: 0 180px 0 0; |
| 1041 | width: auto; |
| 1042 | float: none; |
| 1043 | } |
| 1044 | .g-unit .g-unit .g-tpl-180-alt .g-first, |
| 1045 | .g-unit .g-tpl-180-alt .g-first, |
| 1046 | .g-tpl-180-alt .g-first { |
| 1047 | display: block; |
| 1048 | margin: 0; |
| 1049 | width: 180px; |
| 1050 | float: right; |
| 1051 | } |
| 1052 | |
| 1053 | |
| 1054 | /* JQUERY RESIZABLE STYLES */ |
| 1055 | .ui-resizable { position: relative; } |
| 1056 | .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; z-index:1; } |
| 1057 | .ui-resizable .ui-resizable-handle { display: block; } |
| 1058 | body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ |
| 1059 | body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ |
| 1060 | .ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url("images/resizable-s2.gif") repeat scroll center top; } |
| 1061 | .ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url("images/resizable-e2.gif") repeat scroll right center; } |
| 1062 | |
| 1063 | @media print { |
| 1064 | |
| 1065 | body { |
| 1066 | overflow:visible; |
| 1067 | } |
| 1068 | |
| 1069 | #header { |
| 1070 | height:60px; |
| 1071 | } |
| 1072 | |
| 1073 | #headerLeft { |
Dirk Dougherty | 1846717 | 2009-04-15 11:31:36 -0700 | [diff] [blame] | 1074 | padding:0; |
| 1075 | } |
| 1076 | |
| 1077 | #headerLeft .guide { |
| 1078 | display:none; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1079 | } |
| 1080 | |
| 1081 | #headerRight { |
| 1082 | display:none; |
| 1083 | } |
| 1084 | |
| 1085 | #body-content { |
| 1086 | position:inherit; |
| 1087 | } |
| 1088 | |
| 1089 | #side-nav { |
| 1090 | display:none; |
| 1091 | } |
| 1092 | |
| 1093 | #doc-content { |
| 1094 | margin-left:0 !important; |
| 1095 | height:auto !important; |
| 1096 | width:auto !important; |
| 1097 | overflow:inherit; |
| 1098 | display:inline; |
| 1099 | } |
| 1100 | |
| 1101 | #jd-header { |
| 1102 | padding:10px 0; |
| 1103 | } |
| 1104 | |
| 1105 | #jd-content { |
| 1106 | padding:15px 0 0; |
| 1107 | } |
| 1108 | |
| 1109 | #footer { |
| 1110 | float:none; |
| 1111 | margin:2em 0 0; |
| 1112 | } |
| 1113 | |
| 1114 | h4.jd-details-title { |
| 1115 | border-bottom:1px solid #666; |
| 1116 | } |
| 1117 | |
| 1118 | pre { |
| 1119 | /* these allow lines to break (if there's a white space) */ |
| 1120 | overflow: visible; |
| 1121 | text-wrap: unrestricted; |
| 1122 | white-space: -moz-pre-wrap; /* Moz */ |
| 1123 | white-space: -pre-wrap; /* Opera 4-6 */ |
| 1124 | white-space: -o-pre-wrap; /* Opera 7 */ |
| 1125 | white-space: pre-wrap; /* CSS3 */ |
| 1126 | word-wrap: break-word; /* IE 5.5+ */ |
| 1127 | } |
| 1128 | |
| 1129 | h1, h2, h3, h4, h5, h6 { |
| 1130 | page-break-after: avoid; |
| 1131 | } |
| 1132 | |
| 1133 | table, img { |
| 1134 | page-break-inside: avoid; |
| 1135 | } |
| 1136 | |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 1137 | /* #qv, |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1138 | #qv-wrapper { |
| 1139 | display:none; |
| 1140 | } |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 1141 | */ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1142 | } |