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