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 { |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 279 | margin: .5em 1em 1em 1em; |
| 280 | width:95%; /* consistent table widths; within IE's quirks */ |
| 281 | font-size:.9em; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 324 | padding:3px 1em 0 1em; |
| 325 | margin:0; |
| 326 | border:0; |
| 327 | } |
| 328 | |
| 329 | /* page-top-right container for reference pages (holds |
| 330 | links to summary tables) */ |
| 331 | #api-info-block { |
| 332 | font-size:.8em; |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 333 | padding:6px 10px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 334 | font-weight:normal; |
| 335 | float:right; |
| 336 | text-align:right; |
| 337 | color:#999; |
| 338 | max-width:70%; |
| 339 | } |
| 340 | |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 341 | #api-level-toggle { |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 342 | padding:0 10px; |
| 343 | font-size:11px; |
| 344 | color:#999; |
| 345 | } |
| 346 | |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 347 | div.api-level { |
| 348 | font-size:.8em; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 349 | font-weight:normal; |
| 350 | color:#999; |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 351 | float:right; |
| 352 | padding:0 7px 0; |
| 353 | margin-top:-25px; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 354 | } |
| 355 | |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 356 | #api-info-block div.api-level { |
| 357 | font-size:1.3em; |
| 358 | font-weight:bold; |
| 359 | float:none; |
| 360 | color:#444; |
| 361 | padding:0; |
| 362 | margin:0; |
| 363 | } |
| 364 | |
| 365 | /* Force link colors for IE6 */ |
| 366 | div.api-level a { |
| 367 | color:#999; |
| 368 | } |
| 369 | #api-info-block div.api-level a:link { |
| 370 | color:#444; |
| 371 | } |
| 372 | #api-level-toggle a { |
| 373 | color:#999; |
| 374 | } |
| 375 | |
| 376 | div#naMessage { |
| 377 | display:none; |
| 378 | width:555px; |
| 379 | height:0; |
| 380 | margin:0 auto; |
| 381 | } |
| 382 | |
| 383 | div#naMessage div { |
| 384 | width:450px; |
| 385 | position:fixed; |
| 386 | margin:50px 0; |
| 387 | padding:4em 4em 3em; |
| 388 | background:#FFF; |
| 389 | background:rgba(255,255,255,0.7); |
| 390 | border:1px solid #dddd00; |
| 391 | } |
| 392 | /* IE6 can't position fixed */ |
| 393 | * html div#naMessage div { position:absolute; } |
| 394 | |
| 395 | div#naMessage strong { |
| 396 | font-size:1.1em; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 397 | } |
| 398 | |
| 399 | .absent, |
| 400 | .absent a:link, |
| 401 | .absent a:visited, |
| 402 | .absent a:hover, |
| 403 | .absent * { |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 404 | color:#bbb !important; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 405 | cursor:default !important; |
| 406 | text-decoration:none !important; |
| 407 | } |
| 408 | |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 409 | #api-level-toggle a, |
| 410 | .api-level a { |
| 411 | color:inherit; |
| 412 | text-decoration:none; |
| 413 | } |
| 414 | |
| 415 | #api-level-toggle a:hover, |
| 416 | .api-level a:hover { |
| 417 | color:inherit; |
| 418 | text-decoration:underline !important; |
| 419 | cursor:pointer !important; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 420 | } |
| 421 | |
| 422 | #side-nav li.absent.selected, |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 423 | #side-nav li.absent.selected *, |
| 424 | #side-nav div.label.absent.selected, |
| 425 | #side-nav div.label.absent.selected * { |
| 426 | background-color:#eaeaea !important; |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 427 | } |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 428 | /* IE6 quirk (won't chain classes, so just keep background blue) */ |
| 429 | * html #side-nav li.selected, |
| 430 | * html #side-nav li.selected *, |
| 431 | * html #side-nav div.label.selected, |
| 432 | * html #side-nav div.label.selected * { |
| 433 | background-color: #435a6e !important; |
| 434 | } |
| 435 | |
| 436 | |
| 437 | .absent h4.jd-details-title, |
| 438 | .absent h4.jd-details-title * { |
| 439 | background-color:#f6f6f6 !important; |
| 440 | } |
| 441 | |
| 442 | .absent img { |
| 443 | opacity: .3; |
| 444 | filter: alpha(opacity=30); |
| 445 | -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; |
| 446 | } |
| 447 | |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 448 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 449 | /* applies to a div containing links to summary tables */ |
| 450 | .sum-details-links { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 451 | padding:0; |
| 452 | font-weight:normal; |
| 453 | } |
| 454 | |
| 455 | .sum-details-links a { |
| 456 | text-decoration:none; |
| 457 | } |
| 458 | |
| 459 | .sum-details-links a:hover { |
| 460 | text-decoration:underline; |
| 461 | } |
| 462 | |
| 463 | |
| 464 | /* inheritance table */ |
| 465 | .jd-inheritance-table { |
| 466 | border-spacing:0; |
| 467 | margin:0; |
| 468 | padding:0; |
| 469 | font-size:.9em; |
| 470 | } |
| 471 | .jd-inheritance-table td { |
| 472 | border: none; |
| 473 | margin: 0; |
| 474 | padding: 0; |
| 475 | } |
| 476 | .jd-inheritance-table .jd-inheritance-space { |
| 477 | font-weight:bold; |
| 478 | width:1em; |
| 479 | } |
| 480 | .jd-inheritance-table .jd-inheritance-interface-cell { |
| 481 | padding-left: 17px; |
| 482 | } |
| 483 | |
| 484 | #jd-content { |
| 485 | padding: 18px 15px; |
| 486 | } |
| 487 | |
| 488 | hr { |
| 489 | background-color:#ccc; |
| 490 | } |
| 491 | |
| 492 | /* DOC CLASSES */ |
| 493 | |
| 494 | #jd-content h1 { |
| 495 | /*sdk page*/ |
| 496 | font-size:1.6em; |
| 497 | color:#336666; |
| 498 | margin:0 0 .5em; |
| 499 | } |
| 500 | |
| 501 | #jd-content h2 { |
| 502 | font-size:1.45em; |
| 503 | color:#111; |
| 504 | border-top:2px solid #ccc; |
| 505 | padding: .5em 0 0; |
| 506 | margin: 1.5em 0 1em 0; |
| 507 | max-width:968px; |
| 508 | } |
| 509 | |
| 510 | #jd-content h3 { |
| 511 | font-size:1.2em; |
| 512 | color:#222; |
| 513 | padding: .75em 0 .65em 0; |
| 514 | margin:0; |
| 515 | } |
| 516 | |
| 517 | #jd-content h4 { |
| 518 | font-size:1.1em; |
| 519 | margin-bottom:.5em; |
| 520 | color:#222; |
| 521 | } |
| 522 | |
| 523 | #jd-content .small-header { |
| 524 | font-size:1em; |
| 525 | color:#000; |
| 526 | font-weight:bold; |
| 527 | border:none; |
| 528 | padding:0; |
| 529 | margin:1em 0 .5em; |
| 530 | position:inherit; |
| 531 | } |
| 532 | |
| 533 | #jd-content img { |
| 534 | margin: 0 0 1em 1em; |
| 535 | } |
| 536 | |
| 537 | #jd-content li img, |
| 538 | #jd-content dd img { |
| 539 | margin:.5em 0 0 1em; |
| 540 | } |
| 541 | |
| 542 | .nolist { |
| 543 | list-style:none; |
| 544 | padding:0; |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 545 | margin:0 0 1em 1em; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 546 | } |
| 547 | |
| 548 | .nolist li { |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 549 | padding:0 0 2px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 550 | margin:0; |
| 551 | } |
| 552 | |
| 553 | h4 .normal { |
| 554 | font-size:.9em; |
| 555 | font-weight:normal; |
| 556 | } |
| 557 | |
| 558 | .jd-details { |
| 559 | /* border:1px solid #669999; |
| 560 | padding:4px; */ |
| 561 | margin:0 0 1em; |
| 562 | } |
| 563 | |
| 564 | /* API reference: a container for the |
| 565 | .tagdata blocks that make up the detailed |
| 566 | description */ |
| 567 | .jd-details-descr { |
| 568 | padding:0; |
| 569 | margin:.5em .25em; |
| 570 | } |
| 571 | |
| 572 | /* API reference: a block containing |
| 573 | a detailed description, a params table, |
| 574 | seealso list, etc */ |
| 575 | .jd-tagdata { |
| 576 | margin:.5em 1em; |
| 577 | } |
| 578 | |
Scott Main | df09424 | 2009-07-27 09:47:11 -0700 | [diff] [blame] | 579 | .jd-tagdata p { |
| 580 | margin:0 0 1em 1em; |
| 581 | } |
| 582 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 583 | /* API reference: adjustments to |
| 584 | the detailed description block */ |
| 585 | .jd-tagdescr { |
| 586 | margin:.25em 0 .75em 0; |
| 587 | line-height:1em; |
| 588 | } |
| 589 | |
| 590 | .jd-tagdescr p { |
| 591 | margin:.5em 0; |
| 592 | padding:0; |
| 593 | |
| 594 | } |
| 595 | |
| 596 | .jd-tagdescr ol, |
| 597 | .jd-tagdescr ul { |
| 598 | margin:0 2.5em; |
| 599 | padding:0; |
| 600 | } |
| 601 | |
| 602 | .jd-tagdescr table, |
| 603 | .jd-tagdescr img { |
| 604 | margin:.25em 1em; |
| 605 | } |
| 606 | |
| 607 | .jd-tagdescr li { |
| 608 | margin:0 0 .25em 0; |
| 609 | padding:0; |
| 610 | } |
| 611 | |
| 612 | /* API reference: heading marking |
| 613 | the details section for constants, |
| 614 | attrs, methods, etc. */ |
| 615 | h4.jd-details-title { |
| 616 | font-size:1.15em; |
| 617 | background-color: #E2E2E2; |
| 618 | margin:1.5em 0 .6em; |
Scott Main | 25fda19 | 2009-08-04 11:26:30 -0700 | [diff] [blame] | 619 | padding:3px 95px 3px 3px; /* room for api-level */ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 620 | } |
| 621 | |
| 622 | h4.jd-tagtitle { |
| 623 | margin:0; |
| 624 | } |
| 625 | |
| 626 | /* API reference: heading for "Parameters", "See Also", etc., |
| 627 | in details sections */ |
| 628 | h5.jd-tagtitle { |
| 629 | margin:0 0 .25em 0; |
| 630 | font-size:1em; |
| 631 | } |
| 632 | |
| 633 | .jd-tagtable { |
| 634 | margin:0; |
| 635 | } |
| 636 | |
| 637 | .jd-tagtable td, |
| 638 | .jd-tagtable th { |
| 639 | border:none; |
| 640 | background-color:#fff; |
| 641 | vertical-align:top; |
| 642 | font-weight:normal; |
| 643 | padding:2px 10px; |
| 644 | } |
| 645 | |
| 646 | .jd-tagtable th { |
| 647 | font-style:italic; |
| 648 | } |
| 649 | |
| 650 | #jd-content table h2 { |
| 651 | background-color: #d6d6d6; |
| 652 | font-size: 1.1em; |
| 653 | margin:0 0 10px; |
| 654 | padding:5px; |
| 655 | left:0; |
| 656 | width:auto; |
| 657 | } |
| 658 | |
| 659 | div.special { |
| 660 | padding: .5em 1em 1em 1em; |
| 661 | margin: 0 0 1em; |
| 662 | background-color: #ddf0f2; |
| 663 | } |
| 664 | |
| 665 | div.special p { |
| 666 | margin: .5em 0 0 0; |
| 667 | } |
| 668 | |
| 669 | div.special ol { |
| 670 | margin: 0; |
| 671 | } |
| 672 | |
| 673 | div.special ol li { |
| 674 | margin: 0; |
| 675 | padding: 0; |
| 676 | } |
| 677 | |
| 678 | #jd-content div.special h2, |
| 679 | #jd-content div.special h3 { |
| 680 | color:#669999; |
| 681 | font-size:1.2em; |
| 682 | border:none; |
| 683 | margin:0 0 .5em; |
| 684 | padding:0; |
| 685 | } |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 686 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 687 | p.note, p.caution, p.warning { |
| 688 | margin: 1em; |
| 689 | padding: 0 0 0 .5em; |
| 690 | border-left: 4px solid; |
| 691 | } |
| 692 | |
| 693 | p.special-note { |
| 694 | background-color:#EBF3DB; |
| 695 | padding:10px 20px; |
| 696 | margin:0 0 1em; |
| 697 | } |
| 698 | |
| 699 | p.note { |
| 700 | border-color: #99aacc; |
| 701 | } |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 702 | |
| 703 | p.warning { |
| 704 | border-color: #aa0033; |
| 705 | } |
Dirk Dougherty | 4e4c919 | 2009-05-12 15:32:35 -0700 | [diff] [blame] | 706 | |
| 707 | p.caution { |
| 708 | border-color: #ffcf00; |
| 709 | } |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 710 | |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 711 | p.warning b, p.warning strong { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 712 | font-weight: bold; |
| 713 | } |
| 714 | |
Scott Main | 9e54130 | 2009-04-20 11:15:26 -0700 | [diff] [blame] | 715 | li p.note, li p.warning { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 716 | margin: .5em 0 0 0; |
| 717 | padding: .2em .5em .2em .9em; |
| 718 | } |
| 719 | |
| 720 | dl.xml dt { |
| 721 | font-variant:small-caps; |
| 722 | font-size:1.2em; |
| 723 | } |
| 724 | |
| 725 | dl.xml dl { |
| 726 | padding:0; |
| 727 | } |
| 728 | |
| 729 | dl.xml dl dt { |
| 730 | font-variant:normal; |
| 731 | font-size:1em; |
| 732 | } |
| 733 | |
| 734 | .listhead li { |
| 735 | font-weight: bold; |
| 736 | } |
| 737 | |
| 738 | .listhead li *, /*ie*/.listhead li li { |
| 739 | font-weight: normal; |
| 740 | } |
| 741 | |
| 742 | ol.no-style, |
| 743 | ul.no-style { |
| 744 | list-style:none; |
| 745 | padding-left:1em; |
| 746 | } |
| 747 | |
| 748 | .new { |
| 749 | font-size: .78em; |
| 750 | font-weight: bold; |
| 751 | color: red; |
| 752 | text-decoration: none; |
Dirk Dougherty | fce6b45 | 2009-10-16 17:14:33 -0700 | [diff] [blame^] | 753 | vertical-align:top; |
| 754 | line-height:.9em; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 755 | } |
| 756 | |
| 757 | pre.classic { |
| 758 | background-color:transparent; |
| 759 | border:none; |
| 760 | padding:0; |
| 761 | } |
| 762 | |
| 763 | |
| 764 | /* BEGIN quickview sidebar element styles */ |
| 765 | |
| 766 | #qv-wrapper { |
| 767 | float: right; |
| 768 | width:310px; |
| 769 | background-color:#fff; |
| 770 | margin:-48px 0 2px 0; |
| 771 | padding:0 0 20px 35px; |
| 772 | } |
| 773 | |
| 774 | #qv { |
| 775 | background-color:#fff; |
| 776 | border:4px solid #dee8f1; |
| 777 | margin:0; |
| 778 | padding:0 6px 6px; |
| 779 | width:270px; |
| 780 | font-size:.9em; |
| 781 | } |
| 782 | |
| 783 | #qv ol { |
| 784 | list-style:none; |
| 785 | padding: 0; |
| 786 | } |
| 787 | |
| 788 | #qv ol ol{ |
| 789 | list-style:none; |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 790 | padding: 0 0 0 12px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 791 | margin:0; |
| 792 | } |
| 793 | |
| 794 | #qv ul { |
| 795 | padding: 0 10px 0 2em; |
| 796 | } |
| 797 | |
| 798 | #qv li { |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 799 | padding: 0 10px 3px; |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 800 | line-height: 1.2em; |
| 801 | } |
| 802 | |
Scott Main | 9b54792 | 2009-05-13 17:50:33 -0700 | [diff] [blame] | 803 | #qv li li { |
| 804 | padding: 3px 10px 0; |
| 805 | } |
| 806 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 807 | #qv ul li { |
| 808 | padding: 0 10px 0 0; |
| 809 | } |
| 810 | |
| 811 | #qv li.selected a { |
| 812 | color:#555; |
| 813 | text-decoration:none; |
| 814 | } |
| 815 | |
| 816 | #qv a { |
| 817 | color:#cc6600; |
| 818 | } |
| 819 | |
| 820 | #qv p { |
| 821 | margin:8px 0 0; |
| 822 | padding:0 10px; |
| 823 | } |
| 824 | |
| 825 | #qv-extra #rule { |
| 826 | padding: 0 10px; |
| 827 | margin: 0; |
| 828 | } |
| 829 | |
| 830 | #qv-sub-rule { |
| 831 | padding: 6px 20px; |
| 832 | margin: 0; |
| 833 | } |
| 834 | |
| 835 | #qv-sub-rule p { |
| 836 | margin: 0; |
| 837 | } |
| 838 | |
| 839 | #jd-content #qv h2 { |
| 840 | font-size:1.05em; |
| 841 | font-weight:bold; |
| 842 | margin:12px 0 .25em 0; |
| 843 | padding:0 10px; |
| 844 | background-color:transparent; |
| 845 | color:#7BB026; |
| 846 | border:none; |
| 847 | left:0; |
| 848 | z-index:1; |
| 849 | } |
| 850 | |
| 851 | /* END quickview sidebar element styles */ |
| 852 | |
| 853 | /* Begin sidebox sidebar element styles */ |
| 854 | |
| 855 | .sidebox-wrapper { |
| 856 | float: right; |
| 857 | width:280px; |
| 858 | background-color:#fff; |
| 859 | margin: 0; |
| 860 | padding: 20px 0 20px 20px; |
| 861 | } |
| 862 | |
| 863 | .sidebox-inner { |
| 864 | border-left:1px solid #dee8f1; |
| 865 | background-color:#ffffee; |
| 866 | padding:5px 8px 5px 12px; |
| 867 | font-size:90%; |
| 868 | width:260px; |
| 869 | } |
| 870 | |
| 871 | .sidebox { |
| 872 | float: right; |
| 873 | width:260px; |
| 874 | background-color:#ffffee; |
| 875 | border-left:1px solid #dee8f1; |
| 876 | margin: 12px 0 0 15px; |
| 877 | padding:5px 8px 0 12px; |
| 878 | font-size:90%; |
| 879 | } |
| 880 | |
| 881 | .sidebox p, |
| 882 | .sidebox-inner p { |
| 883 | margin-bottom: .25em; |
| 884 | } |
| 885 | |
| 886 | .sidebox ul, |
| 887 | .sidebox-inner ul { |
| 888 | padding: 0 0 0 1.5em; |
| 889 | } |
| 890 | |
| 891 | .sidebox li ul, |
| 892 | .sidebox-inner li ul { |
| 893 | margin-top:0; |
| 894 | margin-bottom:.1em; |
| 895 | } |
| 896 | |
| 897 | .sidebox li, |
| 898 | .sidebox-inner li { |
| 899 | padding:0 0 0 0em; |
| 900 | } |
| 901 | |
| 902 | #jd-content .sidebox h2, |
| 903 | #jd-content .sidebox h3, |
| 904 | #jd-content .sidebox-inner h2, |
| 905 | #jd-content .sidebox-inner h3 { |
| 906 | border:none; |
| 907 | font-size:1em; |
| 908 | margin:0; |
| 909 | padding:4px 0 4px; |
| 910 | left:0; |
| 911 | z-index:0; |
| 912 | } |
| 913 | |
| 914 | .sidebox hr, |
| 915 | .sidebox-inner hr { |
| 916 | background-color:#ccc; |
| 917 | border:none; |
| 918 | } |
| 919 | |
| 920 | /* End sidebox sidebar element styles */ |
| 921 | |
Dirk Dougherty | 29eafde | 2009-05-26 08:40:40 -0700 | [diff] [blame] | 922 | /* BEGIN image and caption styles (originally for UI Guidelines docs) */ |
| 923 | |
| 924 | table.image-caption { |
| 925 | padding:0; |
| 926 | margin:.5em 0; |
| 927 | border:0; |
| 928 | } |
| 929 | |
| 930 | td.image-caption-i { |
| 931 | font-size:92%; |
| 932 | padding:0; |
| 933 | margin:0; |
| 934 | border:0; |
| 935 | } |
| 936 | |
| 937 | td.image-caption-i img { |
| 938 | padding:0 1em; |
| 939 | margin:0; |
| 940 | } |
| 941 | |
| 942 | .image-list { |
| 943 | width:24px; |
| 944 | text-align:center; |
| 945 | } |
| 946 | |
| 947 | .image-list .caption { |
| 948 | margin:0 2px; |
| 949 | } |
| 950 | |
| 951 | td.image-caption-c { |
| 952 | font-size:92%; |
| 953 | padding:1em 2px 2px 2px; |
| 954 | margin:0; |
| 955 | border:0; |
| 956 | width:350px; |
| 957 | } |
| 958 | |
| 959 | .grad-rule-top { |
| 960 | background-image:url(images/grad-rule-qv.png); |
| 961 | background-repeat:no-repeat; |
| 962 | padding-top:1em; |
| 963 | margin-top:0; |
| 964 | } |
| 965 | |
| 966 | .image-caption-nested { |
| 967 | margin-top:0; |
| 968 | padding:0 0 0 1em; |
| 969 | } |
| 970 | |
| 971 | .image-caption-nested td { |
| 972 | padding:0 4px 2px 0; |
| 973 | margin:0; |
| 974 | border:0; |
| 975 | } |
| 976 | |
| 977 | /* END image and caption styles */ |
| 978 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 979 | /* table of contents */ |
| 980 | |
| 981 | ol.toc { |
| 982 | margin: 0 0 1em 0; |
| 983 | padding: 0; |
| 984 | list-style: none; |
| 985 | font-size:95%; |
| 986 | } |
| 987 | |
| 988 | ol.toc li { |
| 989 | font-weight: bold; |
| 990 | margin: 0 0 .5em 1em; |
| 991 | padding: 0; |
| 992 | } |
| 993 | |
| 994 | ol.toc li p { |
| 995 | font-weight: normal; |
| 996 | } |
| 997 | |
| 998 | ol.toc li ol { |
| 999 | margin: 0; |
| 1000 | padding: 0; |
| 1001 | } |
| 1002 | |
| 1003 | ol.toc li li { |
| 1004 | padding: 0; |
| 1005 | margin: 0 0 0 1em; |
| 1006 | font-weight: normal; |
| 1007 | list-style: none; |
| 1008 | } |
| 1009 | |
| 1010 | table ol.toc { |
| 1011 | margin-left: 0; |
| 1012 | } |
| 1013 | |
| 1014 | .columns td { |
| 1015 | padding:0 5px; |
| 1016 | border:none; |
| 1017 | } |
| 1018 | |
| 1019 | /* link table */ |
| 1020 | .jd-linktable { |
| 1021 | margin: 0 0 1em; |
| 1022 | border-bottom: 1px solid #888; |
| 1023 | } |
| 1024 | .jd-linktable th, |
| 1025 | .jd-linktable td { |
| 1026 | padding: 3px 5px; |
| 1027 | vertical-align: top; |
| 1028 | text-align: left; |
| 1029 | border:none; |
| 1030 | } |
| 1031 | .jd-linktable tr { |
| 1032 | background-color: #fff; |
| 1033 | } |
| 1034 | .jd-linktable td { |
| 1035 | border-top: 1px solid #888; |
| 1036 | background-color: inherit; |
| 1037 | } |
| 1038 | .jd-linktable td p { |
| 1039 | padding: 0 0 5px; |
| 1040 | } |
| 1041 | .jd-linktable .jd-linkcol { |
| 1042 | } |
| 1043 | .jd-linktable .jd-descrcol { |
| 1044 | } |
| 1045 | .jd-linktable .jd-typecol { |
| 1046 | text-align:right; |
| 1047 | } |
| 1048 | .jd-linktable .jd-valcol { |
| 1049 | } |
| 1050 | .jd-linktable .jd-commentrow { |
| 1051 | border-top:none; |
| 1052 | padding-left:25px; |
| 1053 | } |
| 1054 | .jd-deprecated-warning { |
| 1055 | margin-top: 0; |
| 1056 | margin-bottom: 10px; |
| 1057 | } |
| 1058 | |
| 1059 | tr.alt-color { |
| 1060 | background-color: #f6f6f6; |
| 1061 | } |
| 1062 | |
| 1063 | /* expando trigger */ |
| 1064 | #jd-content .jd-expando-trigger-img { |
| 1065 | margin:0; |
| 1066 | } |
| 1067 | |
| 1068 | /* jd-expando */ |
| 1069 | .jd-inheritedlinks { |
| 1070 | padding:0 0 0 13px |
| 1071 | } |
| 1072 | |
| 1073 | /* SDK PAGE */ |
| 1074 | table.download tr { |
| 1075 | background-color:#d9d9d9; |
| 1076 | } |
| 1077 | |
| 1078 | table.download tr.alt-color { |
| 1079 | background-color:#ededed; |
| 1080 | } |
| 1081 | |
| 1082 | table.download td, |
| 1083 | table.download th { |
| 1084 | border:2px solid #fff; |
| 1085 | padding:10px 5px; |
| 1086 | } |
| 1087 | |
| 1088 | table.download th { |
| 1089 | background-color:#6d8293; |
| 1090 | color:#fff; |
| 1091 | } |
| 1092 | |
| 1093 | /* INLAY 180 COPY and 240PX EXTENSION */ |
| 1094 | /* modified to 43px so that all browsers eliminate the package panel h-scroll */ |
| 1095 | .g-tpl-240 .g-unit, |
| 1096 | .g-unit .g-tpl-240 .g-unit, |
| 1097 | .g-unit .g-unit .g-tpl-240 .g-unit { |
| 1098 | display: block; |
| 1099 | margin: 0 0 0 243px; |
| 1100 | width: auto; |
| 1101 | float: none; |
| 1102 | } |
| 1103 | .g-unit .g-unit .g-tpl-240 .g-first, |
| 1104 | .g-unit .g-tpl-240 .g-first, |
| 1105 | .g-tpl-240 .g-first { |
| 1106 | display: block; |
| 1107 | margin: 0; |
| 1108 | width: 243px; |
| 1109 | float: left; |
| 1110 | } |
| 1111 | /* 240px alt */ |
| 1112 | .g-tpl-240-alt .g-unit, |
| 1113 | .g-unit .g-tpl-240-alt .g-unit, |
| 1114 | .g-unit .g-unit .g-tpl-240-alt .g-unit { |
| 1115 | display: block; |
| 1116 | margin: 0 243px 0 0; |
| 1117 | width: auto; |
| 1118 | float: none; |
| 1119 | } |
| 1120 | .g-unit .g-unit .g-tpl-240-alt .g-first, |
| 1121 | .g-unit .g-tpl-240-alt .g-first, |
| 1122 | .g-tpl-240-alt .g-first { |
| 1123 | display: block; |
| 1124 | margin: 0; |
| 1125 | width: 243px; |
| 1126 | float: right; |
| 1127 | } |
| 1128 | |
| 1129 | /* 180px */ |
| 1130 | .g-tpl-180 .g-unit, |
| 1131 | .g-unit .g-tpl-180 .g-unit, |
| 1132 | .g-unit .g-unit .g-tpl-180 .g-unit { |
| 1133 | display: block; |
| 1134 | margin: 0 0 0 180px; |
| 1135 | width: auto; |
| 1136 | float: none; |
| 1137 | } |
| 1138 | .g-unit .g-unit .g-tpl-180 .g-first, |
| 1139 | .g-unit .g-tpl-180 .g-first, |
| 1140 | .g-tpl-180 .g-first { |
| 1141 | display: block; |
| 1142 | margin: 0; |
| 1143 | width: 180px; |
| 1144 | float: left; |
| 1145 | } |
| 1146 | /* 180px alt */ |
| 1147 | .g-tpl-180-alt .g-unit, |
| 1148 | .g-unit .g-tpl-180-alt .g-unit, |
| 1149 | .g-unit .g-unit .g-tpl-180-alt .g-unit { |
| 1150 | display: block; |
| 1151 | margin: 0 180px 0 0; |
| 1152 | width: auto; |
| 1153 | float: none; |
| 1154 | } |
| 1155 | .g-unit .g-unit .g-tpl-180-alt .g-first, |
| 1156 | .g-unit .g-tpl-180-alt .g-first, |
| 1157 | .g-tpl-180-alt .g-first { |
| 1158 | display: block; |
| 1159 | margin: 0; |
| 1160 | width: 180px; |
| 1161 | float: right; |
| 1162 | } |
| 1163 | |
| 1164 | |
| 1165 | /* JQUERY RESIZABLE STYLES */ |
| 1166 | .ui-resizable { position: relative; } |
| 1167 | .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; z-index:1; } |
| 1168 | .ui-resizable .ui-resizable-handle { display: block; } |
| 1169 | body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ |
| 1170 | body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ |
| 1171 | .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; } |
| 1172 | .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; } |
| 1173 | |
| 1174 | @media print { |
| 1175 | |
| 1176 | body { |
| 1177 | overflow:visible; |
| 1178 | } |
| 1179 | |
| 1180 | #header { |
| 1181 | height:60px; |
| 1182 | } |
| 1183 | |
| 1184 | #headerLeft { |
Dirk Dougherty | 1846717 | 2009-04-15 11:31:36 -0700 | [diff] [blame] | 1185 | padding:0; |
| 1186 | } |
| 1187 | |
Scott Main | 54161d1 | 2009-08-18 19:00:11 -0700 | [diff] [blame] | 1188 | #header-tabs, |
| 1189 | #headerRight, |
| 1190 | #side-nav, |
| 1191 | #api-info-block { |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1192 | display:none; |
| 1193 | } |
| 1194 | |
| 1195 | #body-content { |
| 1196 | position:inherit; |
| 1197 | } |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1198 | |
| 1199 | #doc-content { |
| 1200 | margin-left:0 !important; |
| 1201 | height:auto !important; |
| 1202 | width:auto !important; |
| 1203 | overflow:inherit; |
| 1204 | display:inline; |
| 1205 | } |
| 1206 | |
| 1207 | #jd-header { |
| 1208 | padding:10px 0; |
| 1209 | } |
| 1210 | |
| 1211 | #jd-content { |
| 1212 | padding:15px 0 0; |
| 1213 | } |
| 1214 | |
| 1215 | #footer { |
| 1216 | float:none; |
| 1217 | margin:2em 0 0; |
| 1218 | } |
| 1219 | |
| 1220 | h4.jd-details-title { |
| 1221 | border-bottom:1px solid #666; |
| 1222 | } |
| 1223 | |
| 1224 | pre { |
| 1225 | /* these allow lines to break (if there's a white space) */ |
| 1226 | overflow: visible; |
| 1227 | text-wrap: unrestricted; |
| 1228 | white-space: -moz-pre-wrap; /* Moz */ |
| 1229 | white-space: -pre-wrap; /* Opera 4-6 */ |
| 1230 | white-space: -o-pre-wrap; /* Opera 7 */ |
| 1231 | white-space: pre-wrap; /* CSS3 */ |
| 1232 | word-wrap: break-word; /* IE 5.5+ */ |
| 1233 | } |
| 1234 | |
| 1235 | h1, h2, h3, h4, h5, h6 { |
| 1236 | page-break-after: avoid; |
| 1237 | } |
| 1238 | |
| 1239 | table, img { |
| 1240 | page-break-inside: avoid; |
| 1241 | } |
| 1242 | |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 1243 | /* #qv, |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1244 | #qv-wrapper { |
| 1245 | display:none; |
| 1246 | } |
Dirk Dougherty | 233bc0b | 2009-07-07 17:43:27 -0700 | [diff] [blame] | 1247 | */ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1248 | } |