blob: 20871b9ec71eeae29b97ca367948321087aa75da [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001/* 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
The Android Open Source Project88b60792009-03-03 19:28:42 -080037#resize-packages-nav {
38/* keeps the resize handle below the h-scroll handle */
39 height:270px;
40 overflow:hidden;
41 max-height:100%;
42}
43
44#packages-nav {
45 height:270px;
46 max-height:inherit;
47 position:relative;
48 overflow:auto;
49}
50
51#classes-nav,
52#devdoc-nav {
53 overflow:auto;
54 position:relative;
55}
56
57#side-nav ul {
58 list-style: none;
59 margin: 0;
60 padding:5px 0;
61}
62
63#side-nav ul ul {
Scott Maina16d7d82011-02-03 18:11:05 -080064 margin: .5em 0 0 0;
The Android Open Source Project88b60792009-03-03 19:28:42 -080065 padding: 0;
66}
67
68#side-nav li {
69 padding:0;
70 line-height:16px;
71 white-space:nowrap;
72 zoom:1;
73}
74
75#side-nav li h2 {
76 font-size:12px;
77 font-weight: bold;
78 margin:.5em 0 0 0;
79 padding: 3px 0 1px 9px;
80}
81
82#side-nav li a {
83 text-decoration:none;
84 padding: 0 0 0 18px;
85 zoom:1;
86}
87
Dirk Dougherty233bc0b2009-07-07 17:43:27 -070088#side-nav li a span+span {
89 display:none;
90}
91
The Android Open Source Project88b60792009-03-03 19:28:42 -080092#side-nav li a:hover {
93 text-decoration:underline;
94}
95
96#side-nav li a+a {
97 padding: 0;
98}
Scott Mainee629d92010-02-05 14:30:08 -080099/*second level (nested) list*/
Scott Main7f418a52010-04-23 11:41:30 -0700100#side-nav li li li a {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800101 padding: 0 0 0 28px;
Scott Mainee629d92010-02-05 14:30:08 -0800102}
103/*third level (nested) list*/
104#side-nav li li li li a {
105 padding: 0 0 0 38px;
106}
The Android Open Source Project88b60792009-03-03 19:28:42 -0800107
108#side-nav .selected {
109 background-color: #435a6e;
110 color: #fff;
111 font-weight:bold;
112}
113
114#side-nav .selected a {
115 color: #fff;
116 text-decoration:none;
117}
118
119#side-nav strong {
120 display:block;
121}
122
Scott Mainee629d92010-02-05 14:30:08 -0800123#side-nav .toggle-list .toggle-img {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800124 margin:0;
125 padding:0;
126 position:absolute;
127 top:0;
128 left:0;
129 height:16px;
130 width:15px;
131 outline-style:none;
132}
Scott Mainee629d92010-02-05 14:30:08 -0800133/* second-level toggle */
134#side-nav .toggle-list .toggle-list .toggle-img {
135 left:10px;
136}
The Android Open Source Project88b60792009-03-03 19:28:42 -0800137
Scott Mainee629d92010-02-05 14:30:08 -0800138#side-nav .closed .toggle-img,
139#side-nav .open .closed .toggle-img {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800140 background:url('images/triangle-closed-small.png') 7px 4px no-repeat;
141}
142#side-nav .open .toggle-img {
143 background:url('images/triangle-opened-small.png') 7px 4px no-repeat;
144}
145
146#side-nav .toggle-list {
147 position:relative;
148}
149
150#side-nav .toggle-list ul {
151 margin:0;
152 display:none;
153}
154
155#side-nav .toggle-list div {
156 display:block;
157}
158
159#index-links .selected {
160 background-color: #fff;
161 color: #000;
162 font-weight:normal;
163 text-decoration:none;
164}
165
166#index-links {
167 padding:7px 0 4px 10px;
168}
169
170/* nav tree */
171
172#nav-tree ul {
173 padding:5px 0 1.5em;
174}
175
176#side-nav #nav-tree ul li a,
177#side-nav #nav-tree ul li span.no-children {
178 padding: 0 0 0 0;
179 margin: 0;
180}
181
182#nav-tree .plus {
183 margin: 0 3px 0 0;
184}
185
186#nav-tree ul ul {
187 list-style: none;
188 margin: 0;
189 padding: 0 0 0 0;
190}
191
192#nav-tree ul li {
193 margin: 0;
194 padding: 0 0 0 0;
195 white-space: nowrap;
196}
197
198#nav-tree .children_ul {
199 margin:0;
200}
201
202#nav-tree a.nolink {
203 color: black;
204 text-decoration: none;
205}
206
207#nav-tree span.label {
208 width: 100%;
209}
210
211#nav-tree {
212 overflow-x: auto;
213 overflow-y: scroll;
214}
215
216#nav-swap {
217 font-size:10px;
218 line-height:10px;
219 margin-left:1em;
220 text-decoration:none;
221 display:block;
222}
223
224#tree-link {
225
226}
227
228/* DOCUMENT BODY */
229
230#doc-content {
231 overflow:auto;
232}
Scott Mainee629d92010-02-05 14:30:08 -0800233
The Android Open Source Project88b60792009-03-03 19:28:42 -0800234#jd-header {
235 background-color: #E2E2E2;
236 padding: 7px 15px;
237}
238
239#jd-header h1 {
240 margin: 0 0 10px;
241 font-size:1.7em;
242}
243
244#jd-header .crumb {
245 font-size:.9em;
246 line-height:1em;
247 color:#777;
248}
249
250#jd-header .crumb a,
251#jd-header .crumb a:visited {
252 text-decoration:none;
253 color:#777;
254}
255
256#jd-header .crumb a:hover {
257 text-decoration:underline;
258}
259
260#jd-header table {
261 margin:0;
262 padding:0;
263}
264
265#jd-header td {
266 border:none;
267 padding:0;
268 vertical-align:top;
269}
270
271#jd-header.guide-header {
272 background-color:#fff;
273 color:#435a6e;
274 height:50px;
275}
276
277#jd-descr {
278 position:relative;
279}
280
281/* summary tables for reference pages */
282.jd-sumtable {
Scott Main25fda192009-08-04 11:26:30 -0700283 margin: .5em 1em 1em 1em;
284 width:95%; /* consistent table widths; within IE's quirks */
285 font-size:.9em;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800286}
287
288.jd-sumtable a {
289 text-decoration:none;
290}
291
292.jd-sumtable a:hover {
293 text-decoration:underline;
294}
295
296/* the link inside a sumtable for "Show All/Hide All" */
297.toggle-all {
298 display:block;
299 float:right;
300 font-weight:normal;
301 font-size:0.9em;
302}
303
304/* adjustments for in/direct subclasses tables */
305.jd-sumtable-subclasses {
306 margin: 1em 0 0 0;
307 max-width:968px;
308}
309
310/* extra space between end of method name and open-paren */
311.sympad {
312 margin-right: 2px;
313}
314
315/* right alignment for the return type in sumtable */
316.jd-sumtable .jd-typecol {
317 text-align:right;
318}
319
320/* adjustments for the expando table-in-table */
321.jd-sumtable-expando {
322 margin:.5em 0;
323 padding:0;
324}
325
326/* a div that holds a short description */
327.jd-descrdiv {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800328 padding:3px 1em 0 1em;
329 margin:0;
330 border:0;
331}
332
333/* page-top-right container for reference pages (holds
334links to summary tables) */
335#api-info-block {
336 font-size:.8em;
Scott Main25fda192009-08-04 11:26:30 -0700337 padding:6px 10px;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800338 font-weight:normal;
339 float:right;
340 text-align:right;
341 color:#999;
342 max-width:70%;
343}
344
Scott Maindf094242009-07-27 09:47:11 -0700345#api-level-toggle {
Scott Maindf094242009-07-27 09:47:11 -0700346 padding:0 10px;
347 font-size:11px;
Scott Main8e44ae92009-10-30 13:33:39 -0700348 float:right;
Scott Main9b5fdb92009-10-27 15:09:15 -0700349}
350
351#api-level-toggle label.disabled {
Scott Maindf094242009-07-27 09:47:11 -0700352 color:#999;
353}
354
Scott Main7f418a52010-04-23 11:41:30 -0700355div.api-level {
Scott Main25fda192009-08-04 11:26:30 -0700356 font-size:.8em;
Scott Maindf094242009-07-27 09:47:11 -0700357 font-weight:normal;
358 color:#999;
Scott Main25fda192009-08-04 11:26:30 -0700359 float:right;
360 padding:0 7px 0;
361 margin-top:-25px;
Scott Maindf094242009-07-27 09:47:11 -0700362}
363
Scott Main7f418a52010-04-23 11:41:30 -0700364#api-info-block div.api-level {
Scott Main25fda192009-08-04 11:26:30 -0700365 font-size:1.3em;
366 font-weight:bold;
367 float:none;
368 color:#444;
369 padding:0;
370 margin:0;
371}
372
373/* Force link colors for IE6 */
374div.api-level a {
375 color:#999;
376}
377#api-info-block div.api-level a:link {
378 color:#444;
379}
380#api-level-toggle a {
381 color:#999;
382}
383
384div#naMessage {
385 display:none;
386 width:555px;
387 height:0;
388 margin:0 auto;
389}
390
391div#naMessage div {
392 width:450px;
393 position:fixed;
394 margin:50px 0;
395 padding:4em 4em 3em;
396 background:#FFF;
397 background:rgba(255,255,255,0.7);
398 border:1px solid #dddd00;
399}
400/* IE6 can't position fixed */
401* html div#naMessage div { position:absolute; }
402
403div#naMessage strong {
404 font-size:1.1em;
Scott Maindf094242009-07-27 09:47:11 -0700405}
406
407.absent,
408.absent a:link,
409.absent a:visited,
410.absent a:hover,
411.absent * {
Scott Main25fda192009-08-04 11:26:30 -0700412 color:#bbb !important;
Scott Maindf094242009-07-27 09:47:11 -0700413 cursor:default !important;
414 text-decoration:none !important;
415}
416
Scott Main25fda192009-08-04 11:26:30 -0700417#api-level-toggle a,
418.api-level a {
419 color:inherit;
420 text-decoration:none;
421}
422
423#api-level-toggle a:hover,
424.api-level a:hover {
425 color:inherit;
426 text-decoration:underline !important;
427 cursor:pointer !important;
Scott Maindf094242009-07-27 09:47:11 -0700428}
429
430#side-nav li.absent.selected,
Scott Main25fda192009-08-04 11:26:30 -0700431#side-nav li.absent.selected *,
432#side-nav div.label.absent.selected,
433#side-nav div.label.absent.selected * {
434 background-color:#eaeaea !important;
Scott Maindf094242009-07-27 09:47:11 -0700435}
Scott Main25fda192009-08-04 11:26:30 -0700436/* IE6 quirk (won't chain classes, so just keep background blue) */
437* html #side-nav li.selected,
438* html #side-nav li.selected *,
439* html #side-nav div.label.selected,
440* html #side-nav div.label.selected * {
441 background-color: #435a6e !important;
442}
443
444
445.absent h4.jd-details-title,
446.absent h4.jd-details-title * {
447 background-color:#f6f6f6 !important;
448}
449
450.absent img {
451 opacity: .3;
452 filter: alpha(opacity=30);
453 -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
454}
455
Scott Maindf094242009-07-27 09:47:11 -0700456
The Android Open Source Project88b60792009-03-03 19:28:42 -0800457/* applies to a div containing links to summary tables */
458.sum-details-links {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800459 padding:0;
460 font-weight:normal;
461}
462
463.sum-details-links a {
464 text-decoration:none;
465}
466
467.sum-details-links a:hover {
468 text-decoration:underline;
469}
470
471
472/* inheritance table */
473.jd-inheritance-table {
474 border-spacing:0;
475 margin:0;
476 padding:0;
477 font-size:.9em;
478}
479.jd-inheritance-table td {
480 border: none;
481 margin: 0;
482 padding: 0;
483}
484.jd-inheritance-table .jd-inheritance-space {
485 font-weight:bold;
486 width:1em;
487}
488.jd-inheritance-table .jd-inheritance-interface-cell {
489 padding-left: 17px;
490}
491
492#jd-content {
493 padding: 18px 15px;
494}
495
496hr {
497 background-color:#ccc;
Scott Mainb89740f2010-03-24 13:49:49 -0700498 border-color:#fff;
499 margin:2em 0 1em;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800500}
501
502/* DOC CLASSES */
503
504#jd-content h1 {
505/*sdk page*/
506 font-size:1.6em;
507 color:#336666;
508 margin:0 0 .5em;
509}
510
511#jd-content h2 {
512 font-size:1.45em;
513 color:#111;
514 border-top:2px solid #ccc;
515 padding: .5em 0 0;
Scott Main7b6cee72010-03-29 09:50:34 -0700516 margin: 2em 0 1em 0;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800517}
518
519#jd-content h3 {
Scott Maina16d7d82011-02-03 18:11:05 -0800520 font-size:1.3em;
521 color:#3a3a3a;
522 padding: 0;
523 margin: 1.5em 0 .65em 0;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800524}
525
526#jd-content h4 {
527 font-size:1.1em;
Scott Maina16d7d82011-02-03 18:11:05 -0800528 color:#3a3a3a;
529 padding: 0;
530 margin: 1.25em 0 .65em 0;
531}
532
533#jd-content h5 {
534 font-size:1.0em;
535 color:#3a3a3a;
536 padding: 0;
537 margin: 1em 0 .65em 0;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800538}
539
540#jd-content .small-header {
541 font-size:1em;
542 color:#000;
543 font-weight:bold;
544 border:none;
545 padding:0;
546 margin:1em 0 .5em;
547 position:inherit;
548}
549
Scott Main7b6cee72010-03-29 09:50:34 -0700550#jd-content table {
551 margin: 0 0 1em 1em;
552}
553
The Android Open Source Project88b60792009-03-03 19:28:42 -0800554#jd-content img {
555 margin: 0 0 1em 1em;
556}
557
558#jd-content li img,
559#jd-content dd img {
560 margin:.5em 0 0 1em;
561}
562
563.nolist {
564 list-style:none;
565 padding:0;
Scott Main9b547922009-05-13 17:50:33 -0700566 margin:0 0 1em 1em;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800567}
568
569.nolist li {
Scott Main9b547922009-05-13 17:50:33 -0700570 padding:0 0 2px;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800571 margin:0;
572}
573
574h4 .normal {
575 font-size:.9em;
576 font-weight:normal;
577}
578
Scott Mainee629d92010-02-05 14:30:08 -0800579.caps {
580 font-variant:small-caps;
581 font-size:1.2em;
582}
583
584dl.tag-list dl.atn-list {
585 padding:0 0 0 2em;
586}
587
The Android Open Source Project88b60792009-03-03 19:28:42 -0800588.jd-details {
589/* border:1px solid #669999;
590 padding:4px; */
591 margin:0 0 1em;
592}
593
594/* API reference: a container for the
595.tagdata blocks that make up the detailed
596description */
597.jd-details-descr {
598 padding:0;
599 margin:.5em .25em;
600}
601
Scott Main7f418a52010-04-23 11:41:30 -0700602/* API reference: a block containing
The Android Open Source Project88b60792009-03-03 19:28:42 -0800603a detailed description, a params table,
604seealso list, etc */
605.jd-tagdata {
606 margin:.5em 1em;
607}
608
Scott Maindf094242009-07-27 09:47:11 -0700609.jd-tagdata p {
610 margin:0 0 1em 1em;
611}
612
The Android Open Source Project88b60792009-03-03 19:28:42 -0800613/* API reference: adjustments to
614the detailed description block */
615.jd-tagdescr {
616 margin:.25em 0 .75em 0;
617 line-height:1em;
618}
619
620.jd-tagdescr p {
621 margin:.5em 0;
622 padding:0;
623
624}
625
626.jd-tagdescr ol,
627.jd-tagdescr ul {
628 margin:0 2.5em;
629 padding:0;
630}
631
632.jd-tagdescr table,
633.jd-tagdescr img {
634 margin:.25em 1em;
635}
636
637.jd-tagdescr li {
638margin:0 0 .25em 0;
639padding:0;
640}
641
642/* API reference: heading marking
643the details section for constants,
644attrs, methods, etc. */
645h4.jd-details-title {
646 font-size:1.15em;
647 background-color: #E2E2E2;
648 margin:1.5em 0 .6em;
Scott Main25fda192009-08-04 11:26:30 -0700649 padding:3px 95px 3px 3px; /* room for api-level */
The Android Open Source Project88b60792009-03-03 19:28:42 -0800650}
651
652h4.jd-tagtitle {
653 margin:0;
654}
655
656/* API reference: heading for "Parameters", "See Also", etc.,
657in details sections */
658h5.jd-tagtitle {
659 margin:0 0 .25em 0;
660 font-size:1em;
661}
662
663.jd-tagtable {
664 margin:0;
665}
666
667.jd-tagtable td,
668.jd-tagtable th {
669 border:none;
670 background-color:#fff;
671 vertical-align:top;
672 font-weight:normal;
673 padding:2px 10px;
674}
675
676.jd-tagtable th {
677 font-style:italic;
678}
679
680#jd-content table h2 {
681 background-color: #d6d6d6;
682 font-size: 1.1em;
683 margin:0 0 10px;
684 padding:5px;
685 left:0;
686 width:auto;
687}
688
689div.special {
690 padding: .5em 1em 1em 1em;
691 margin: 0 0 1em;
Scott Main462cc372009-10-23 16:19:37 -0700692 background-color: #DAF3FC;
693 border:1px solid #d3ecf5;
694 border-radius:5px;
695 -moz-border-radius:5px;
696 -webkit-border-radius:5px;
697}
698
The Android Open Source Project88b60792009-03-03 19:28:42 -0800699div.special p {
700 margin: .5em 0 0 0;
701}
702
703div.special ol {
704 margin: 0;
705}
706
707div.special ol li {
708 margin: 0;
709 padding: 0;
710}
711
712#jd-content div.special h2,
713#jd-content div.special h3 {
714 color:#669999;
715 font-size:1.2em;
716 border:none;
717 margin:0 0 .5em;
718 padding:0;
719}
Scott Main9e541302009-04-20 11:15:26 -0700720
Scott Mainbc547022011-10-03 13:01:43 -0700721#jd-content div.special.reference h2,
722#jd-content div.special.reference h3,
723#jd-content div.special.reference h4 {
724 color:#000;
725 font-size:1em;
726 border:none;
727 font-weight:bold;
728 margin:.5em 0;
729 padding:0;
730}
731
Scott Main63e9ccd2010-11-18 12:28:44 -0800732p.note, div.note,
733p.caution, div.caution,
734p.warning, div.warning {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800735 margin: 1em;
736 padding: 0 0 0 .5em;
737 border-left: 4px solid;
738}
739
Scott Main63e9ccd2010-11-18 12:28:44 -0800740p.special-note,
741div.special-note {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800742 background-color:#EBF3DB;
743 padding:10px 20px;
744 margin:0 0 1em;
745}
746
Scott Main63e9ccd2010-11-18 12:28:44 -0800747p.note,
748div.note {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800749 border-color: #99aacc;
750}
The Android Open Source Project88b60792009-03-03 19:28:42 -0800751
Scott Main63e9ccd2010-11-18 12:28:44 -0800752p.warning,
753div.warning {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800754 border-color: #aa0033;
755}
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700756
Scott Main63e9ccd2010-11-18 12:28:44 -0800757p.caution,
758div.caution {
Dirk Dougherty4e4c9192009-05-12 15:32:35 -0700759 border-color: #ffcf00;
760}
Scott Main9b547922009-05-13 17:50:33 -0700761
Scott Main63e9ccd2010-11-18 12:28:44 -0800762li .note,
763li .caution,
764li .warning {
Scott Main7f418a52010-04-23 11:41:30 -0700765 margin: .5em 0 0 0;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800766 padding: .2em .5em .2em .9em;
767}
768
Scott Main63e9ccd2010-11-18 12:28:44 -0800769/* Makes sure the first paragraph does not add top-whitespace within the box*/
770li .note>p:first-child,
771li .caution>p:first-child,
772li .warning>p:first-child {
773 margin-top:0;
774 padding-top:0;
775}
776
The Android Open Source Project88b60792009-03-03 19:28:42 -0800777dl.xml dt {
778 font-variant:small-caps;
779 font-size:1.2em;
780}
781
782dl.xml dl {
783 padding:0;
784}
785
786dl.xml dl dt {
787 font-variant:normal;
788 font-size:1em;
789}
790
791.listhead li {
792 font-weight: bold;
793}
Scott Main483cf382009-12-09 18:08:32 -0800794
The Android Open Source Project88b60792009-03-03 19:28:42 -0800795.listhead li *, /*ie*/.listhead li li {
796 font-weight: normal;
797}
798
799ol.no-style,
800ul.no-style {
801 list-style:none;
802 padding-left:1em;
803}
804
Scott Main287987d2011-02-22 08:32:40 -0800805.new,
806.new-child {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800807 font-size: .78em;
808 font-weight: bold;
Scott Main3494d9b2010-05-10 08:18:26 -0700809 color: #ff3d3d;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800810 text-decoration: none;
Dirk Doughertyfce6b452009-10-16 17:14:33 -0700811 vertical-align:top;
812 line-height:.9em;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800813}
814
Scott Main287987d2011-02-22 08:32:40 -0800815.toggle-list.open .new-child {
816 display:none;
817}
818
The Android Open Source Project88b60792009-03-03 19:28:42 -0800819pre.classic {
820 background-color:transparent;
821 border:none;
822 padding:0;
823}
824
Scott Maind72731d2010-04-15 16:34:41 -0700825p.img-caption {
826 margin: -0.5em 0 1em 1em; /* matches default img left-margin */
827}
828
Scott Main483cf382009-12-09 18:08:32 -0800829div.figure {
830 float:right;
Scott Mainb89740f2010-03-24 13:49:49 -0700831 clear:right;
Scott Maina1b358a2010-06-24 16:36:54 -0700832 margin:1em 0 0 0;
833 padding:0 0 0 3em;
Scott Main7b6cee72010-03-29 09:50:34 -0700834 background-color:#fff;
Scott Main483cf382009-12-09 18:08:32 -0800835 /* width must be defined w/ an inline style matching the image width */
836}
837
Scott Maind72731d2010-04-15 16:34:41 -0700838#jd-content
839div.figure img {
840 margin: 0 0 1em;
841}
842
843div.figure p.img-caption {
844 margin: -0.5em 0 1em 0;
Scott Main7b6cee72010-03-29 09:50:34 -0700845}
846
847p.table-caption {
848 margin: 0 0 0.5em 1em; /* matches default table left-margin */
Scott Main483cf382009-12-09 18:08:32 -0800849}
The Android Open Source Project88b60792009-03-03 19:28:42 -0800850
Scott Maine5781192011-01-12 14:33:58 -0800851
852/* toggle for misc content (such as long sample code)
853 see toggleContent() script in android-developer-docs.js */
854.toggle-content.closed .toggle-content-toggleme {
855 display:none;
856}
857
Scott Main0a53dc42011-01-12 16:50:00 -0800858.toggle-content a[href="#"] {
Scott Maine5781192011-01-12 14:33:58 -0800859 text-decoration:none;
Scott Maina16d7d82011-02-03 18:11:05 -0800860 color:inherit;
Scott Maine5781192011-01-12 14:33:58 -0800861}
862
Scott Main1000e352011-02-14 10:39:28 -0800863.toggle-content-toggleme {
864 padding-bottom:1px; /* fixes animation bounce due to margins */
865}
866
Scott Maine5781192011-01-12 14:33:58 -0800867#jd-content .toggle-content img.toggle-content-img {
868 margin:0;
869}
870
871
The Android Open Source Project88b60792009-03-03 19:28:42 -0800872/* BEGIN quickview sidebar element styles */
873
874#qv-wrapper {
875 float: right;
Scott Main67c2a962010-03-16 17:04:22 -0700876 width:310px; /* +35px padding */
The Android Open Source Project88b60792009-03-03 19:28:42 -0800877 background-color:#fff;
878 margin:-48px 0 2px 0;
879 padding:0 0 20px 35px;
880}
881
882#qv {
883 background-color:#fff;
884 border:4px solid #dee8f1;
885 margin:0;
Scott Main67c2a962010-03-16 17:04:22 -0700886 padding:0 5px 5px;
887 width:292px; /* +10px padding; +8px border */
The Android Open Source Project88b60792009-03-03 19:28:42 -0800888 font-size:.9em;
889}
890
891#qv ol {
892 list-style:none;
893 padding: 0;
894}
895
896#qv ol ol{
897 list-style:none;
Scott Main9b547922009-05-13 17:50:33 -0700898 padding: 0 0 0 12px;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800899 margin:0;
900}
901
902#qv ul {
903 padding: 0 10px 0 2em;
904}
905
906#qv li {
Scott Main9b547922009-05-13 17:50:33 -0700907 padding: 0 10px 3px;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800908 line-height: 1.2em;
909}
910
Scott Main9b547922009-05-13 17:50:33 -0700911#qv li li {
912 padding: 3px 10px 0;
913}
914
The Android Open Source Project88b60792009-03-03 19:28:42 -0800915#qv ul li {
916 padding: 0 10px 0 0;
917}
918
919#qv li.selected a {
920 color:#555;
921 text-decoration:none;
922}
923
Scott Main9269a712010-06-25 16:09:24 -0700924#qv a,
925#qv a code {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800926 color:#cc6600;
927}
928
929#qv p {
930 margin:8px 0 0;
931 padding:0 10px;
932}
933
The Android Open Source Project88b60792009-03-03 19:28:42 -0800934#jd-content #qv h2 {
935 font-size:1.05em;
936 font-weight:bold;
937 margin:12px 0 .25em 0;
938 padding:0 10px;
939 background-color:transparent;
940 color:#7BB026;
941 border:none;
942 left:0;
943 z-index:1;
944}
945
Scott Mainbefeb8e2011-03-04 09:45:40 -0800946#qv-extra #rule {
947 padding: 0 10px;
948 margin: 0;
949}
950
951#qv-sub-rule {
952 padding: 5px 15px 10px;
953 margin: 0;
954}
955
956#jd-content
957#qv-sub-rule h2 {
958 margin: 0 0 .5em 0;
959}
960
The Android Open Source Project88b60792009-03-03 19:28:42 -0800961/* END quickview sidebar element styles */
962
963/* Begin sidebox sidebar element styles */
964
965.sidebox-wrapper {
Scott Maind72731d2010-04-15 16:34:41 -0700966 float:right;
967 clear:right;
968 width:310px; /* +35px padding */
The Android Open Source Project88b60792009-03-03 19:28:42 -0800969 background-color:#fff;
Scott Maind72731d2010-04-15 16:34:41 -0700970 margin:0;
971 padding:0 0 20px 35px;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800972}
973
Scott Main84f8a5e2010-03-24 17:20:39 -0700974.sidebox {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800975 border-left:1px solid #dee8f1;
976 background-color:#ffffee;
Scott Maind72731d2010-04-15 16:34:41 -0700977 margin:0;
Scott Main67c2a962010-03-16 17:04:22 -0700978 padding:8px 12px;
Scott Maind72731d2010-04-15 16:34:41 -0700979 font-size:0.9em;
980 width:285px; /* +24px padding; +1px border */
The Android Open Source Project88b60792009-03-03 19:28:42 -0800981}
982
Scott Main84f8a5e2010-03-24 17:20:39 -0700983.sidebox p {
Dirk Doughertyd77248a2010-08-25 15:07:39 -0700984 margin-bottom: .75em;
The Android Open Source Project88b60792009-03-03 19:28:42 -0800985}
986
Scott Main84f8a5e2010-03-24 17:20:39 -0700987.sidebox ul {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800988 padding: 0 0 0 1.5em;
989}
990
Scott Main84f8a5e2010-03-24 17:20:39 -0700991.sidebox li ul {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800992 margin-top:0;
993 margin-bottom:.1em;
994}
995
Scott Main84f8a5e2010-03-24 17:20:39 -0700996.sidebox li {
The Android Open Source Project88b60792009-03-03 19:28:42 -0800997padding:0 0 0 0em;
998}
999
1000#jd-content .sidebox h2,
Scott Main7f418a52010-04-23 11:41:30 -07001001#jd-content .sidebox h3,
1002#jd-content .sidebox h4,
1003#jd-content .sidebox h5 {
The Android Open Source Project88b60792009-03-03 19:28:42 -08001004 border:none;
1005 font-size:1em;
1006 margin:0;
Scott Main67c2a962010-03-16 17:04:22 -07001007 padding:0 0 8px;
The Android Open Source Project88b60792009-03-03 19:28:42 -08001008 left:0;
1009 z-index:0;
1010}
1011
Scott Main84f8a5e2010-03-24 17:20:39 -07001012.sidebox hr {
The Android Open Source Project88b60792009-03-03 19:28:42 -08001013 background-color:#ccc;
1014 border:none;
1015}
1016
1017/* End sidebox sidebar element styles */
1018
Scott Main629b0f02011-07-08 16:17:02 -07001019/* BEGIN developer training bar styles */
1020
1021div#tb-wrapper {
1022 float: right;
1023 width:480px; /* +25px padding = 505 */
1024 background-color:#fff;
1025 margin:-48px 0 2px 0;
1026 padding:0 0 20px 25px;
1027}
1028
1029div#tb {
1030 margin:0;
1031 padding:15px;
1032 width:450px; /* +15px padding = 480 */
1033 font-size:.9em;
1034 background:#e9e9e9;
1035 border-radius:5px;
1036 -moz-border-radius:5px;
1037 -webkit-border-radius:5px;
1038}
1039
1040div#tb h2 {
1041 font-size:1.3em;
1042 font-weight:bold;
1043 margin:12px 0 .25em 0;
1044 padding:10px 0;
1045 background-color:transparent;
1046 border:none;
1047}
1048
1049div.download-box a.button {
1050 color:#eee;
1051 font-weight:bold;
1052 font-size:1.1em;
1053 text-decoration:none;
1054 height:40px;
1055 line-height:40px;
1056 padding:5px 10px;
1057 border:2px solid #99be27;
1058 border-radius:5px;
1059 -moz-border-radius:5px;
1060 -webkit-border-radius:5px;
1061 /* thanks http://www.colorzilla.com/gradient-editor/ */
1062 background: #aed33c; /* Old browsers */
1063 background: -moz-linear-gradient(top, #aed33c 20%, #a1c730 80%); /* FF3.6+ */
1064 background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#aed33c), color-stop(80%,#a1c730)); /* Chrome,Safari4+ */
1065 background: -webkit-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* Chrome10+,Safari5.1+ */
1066 background: -o-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* Opera11.10+ */
1067 background: -ms-linear-gradient(top, #aed33c 20%,#a1c730 80%); /* IE10+ */
1068 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#AED33C', endColorstr='#A1C730',GradientType=0 ); /* IE6-9 */
1069 background: linear-gradient(top, #aed33c 20%,#a1c730 80%); /* W3C */
1070}
1071
1072div.download-box a.button:hover {
1073 border:2px solid #b2d841;
1074}
1075
1076div.download-box a.button:active {
1077 background: #a1c730; /* Old browsers */
1078 background: -moz-linear-gradient(top, #a1c730 15%, #aed33c 70%); /* FF3.6+ */
1079 background: -webkit-gradient(linear, left top, left bottom, color-stop(15%,#a1c730), color-stop(70%,#aed33c)); /* Chrome,Safari4+ */
1080 background: -webkit-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* Chrome10+,Safari5.1+ */
1081 background: -o-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* Opera11.10+ */
1082 background: -ms-linear-gradient(top, #a1c730 15%,#aed33c 70%); /* IE10+ */
1083 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a1c730', endColorstr='#aed33c',GradientType=0 ); /* IE6-9 */
1084 background: linear-gradient(top, #a1c730 15%,#aed33c 70%); /* W3C */
1085}
1086
1087div.download-box p.filename {
1088 font-size:0.8em;
1089 color:#888;
1090 margin:0 0 0 12px;
1091}
1092
1093/* End developer training bar */
1094
Dirk Dougherty29eafde2009-05-26 08:40:40 -07001095/* BEGIN image and caption styles (originally for UI Guidelines docs) */
1096
1097table.image-caption {
1098 padding:0;
1099 margin:.5em 0;
1100 border:0;
1101}
1102
1103td.image-caption-i {
1104 font-size:92%;
Scott Main7b6cee72010-03-29 09:50:34 -07001105 padding:0 5px;
Dirk Dougherty29eafde2009-05-26 08:40:40 -07001106 margin:0;
1107 border:0;
1108}
1109
1110td.image-caption-i img {
1111 padding:0 1em;
1112 margin:0;
1113}
1114
1115.image-list {
1116 width:24px;
1117 text-align:center;
1118}
1119
Dirk Dougherty29eafde2009-05-26 08:40:40 -07001120td.image-caption-c {
1121 font-size:92%;
1122 padding:1em 2px 2px 2px;
1123 margin:0;
1124 border:0;
1125 width:350px;
1126}
1127
1128.grad-rule-top {
1129background-image:url(images/grad-rule-qv.png);
1130background-repeat:no-repeat;
1131padding-top:1em;
1132margin-top:0;
1133}
1134
1135.image-caption-nested {
1136 margin-top:0;
1137 padding:0 0 0 1em;
1138}
1139
1140.image-caption-nested td {
1141 padding:0 4px 2px 0;
1142 margin:0;
1143 border:0;
1144}
1145
1146/* END image and caption styles */
1147
The Android Open Source Project88b60792009-03-03 19:28:42 -08001148/* table of contents */
1149
1150ol.toc {
1151 margin: 0 0 1em 0;
1152 padding: 0;
1153 list-style: none;
1154 font-size:95%;
1155}
1156
1157ol.toc li {
1158 font-weight: bold;
1159 margin: 0 0 .5em 1em;
1160 padding: 0;
1161}
1162
1163ol.toc li p {
1164 font-weight: normal;
1165}
1166
1167ol.toc li ol {
1168 margin: 0;
1169 padding: 0;
1170}
Scott Main63e9ccd2010-11-18 12:28:44 -08001171
The Android Open Source Project88b60792009-03-03 19:28:42 -08001172ol.toc li li {
1173 padding: 0;
1174 margin: 0 0 0 1em;
1175 font-weight: normal;
1176 list-style: none;
1177}
1178
1179table ol.toc {
1180 margin-left: 0;
1181}
1182
1183.columns td {
1184 padding:0 5px;
1185 border:none;
1186}
1187
1188/* link table */
1189.jd-linktable {
1190 margin: 0 0 1em;
1191 border-bottom: 1px solid #888;
1192}
1193.jd-linktable th,
1194.jd-linktable td {
1195 padding: 3px 5px;
1196 vertical-align: top;
1197 text-align: left;
1198 border:none;
1199}
1200.jd-linktable tr {
1201 background-color: #fff;
1202}
1203.jd-linktable td {
1204 border-top: 1px solid #888;
1205 background-color: inherit;
1206}
1207.jd-linktable td p {
1208 padding: 0 0 5px;
1209}
1210.jd-linktable .jd-linkcol {
1211}
1212.jd-linktable .jd-descrcol {
1213}
1214.jd-linktable .jd-typecol {
1215 text-align:right;
1216}
1217.jd-linktable .jd-valcol {
1218}
1219.jd-linktable .jd-commentrow {
1220 border-top:none;
1221 padding-left:25px;
1222}
1223.jd-deprecated-warning {
1224 margin-top: 0;
1225 margin-bottom: 10px;
1226}
1227
1228tr.alt-color {
1229 background-color: #f6f6f6;
1230}
1231
1232/* expando trigger */
1233#jd-content .jd-expando-trigger-img {
1234 margin:0;
1235}
1236
1237/* jd-expando */
1238.jd-inheritedlinks {
1239 padding:0 0 0 13px
1240}
1241
1242/* SDK PAGE */
1243table.download tr {
1244 background-color:#d9d9d9;
1245}
1246
1247table.download tr.alt-color {
1248 background-color:#ededed;
1249}
1250
1251table.download td,
1252table.download th {
1253 border:2px solid #fff;
1254 padding:10px 5px;
1255}
1256
1257table.download th {
1258 background-color:#6d8293;
1259 color:#fff;
1260}
1261
1262/* INLAY 180 COPY and 240PX EXTENSION */
1263/* modified to 43px so that all browsers eliminate the package panel h-scroll */
Scott Main7f418a52010-04-23 11:41:30 -07001264.g-tpl-240 .g-unit,
1265.g-unit .g-tpl-240 .g-unit,
The Android Open Source Project88b60792009-03-03 19:28:42 -08001266.g-unit .g-unit .g-tpl-240 .g-unit {
1267 display: block;
1268 margin: 0 0 0 243px;
1269 width: auto;
1270 float: none;
1271}
1272.g-unit .g-unit .g-tpl-240 .g-first,
1273.g-unit .g-tpl-240 .g-first,
1274.g-tpl-240 .g-first {
1275 display: block;
1276 margin: 0;
1277 width: 243px;
1278 float: left;
1279}
1280/* 240px alt */
Scott Main7f418a52010-04-23 11:41:30 -07001281.g-tpl-240-alt .g-unit,
1282.g-unit .g-tpl-240-alt .g-unit,
The Android Open Source Project88b60792009-03-03 19:28:42 -08001283.g-unit .g-unit .g-tpl-240-alt .g-unit {
1284 display: block;
1285 margin: 0 243px 0 0;
1286 width: auto;
1287 float: none;
1288}
1289.g-unit .g-unit .g-tpl-240-alt .g-first,
1290.g-unit .g-tpl-240-alt .g-first,
1291.g-tpl-240-alt .g-first {
1292 display: block;
1293 margin: 0;
1294 width: 243px;
1295 float: right;
1296}
1297
Scott Mainfd85d422011-01-07 12:08:09 -08001298/* 200px */
1299.g-tpl-200 .g-unit,
1300.g-unit .g-tpl-200 .g-unit,
1301.g-unit .g-unit .g-tpl-200 .g-unit {
1302 display: block;
1303 margin: 0 0 0 200px;
1304 width: auto;
1305 float: none;
1306}
1307.g-unit .g-unit .g-tpl-200 .g-first,
1308.g-unit .g-tpl-200 .g-first,
1309.g-tpl-200 .g-first {
1310 display: block;
1311 margin: 0;
1312 width: 200px;
1313 float: left;
1314}
1315/* 200px alt */
1316.g-tpl-200-alt .g-unit,
1317.g-unit .g-tpl-200-alt .g-unit,
1318.g-unit .g-unit .g-tpl-200-alt .g-unit {
1319 display: block;
1320 margin: 0 200px 0 0;
1321 width: auto;
1322 float: none;
1323}
1324.g-unit .g-unit .g-tpl-200-alt .g-first,
1325.g-unit .g-tpl-200-alt .g-first,
1326.g-tpl-200-alt .g-first {
1327 display: block;
1328 margin: 0;
1329 width: 200px;
1330 float: right;
1331}
1332
1333/* 190px */
1334.g-tpl-190 .g-unit,
1335.g-unit .g-tpl-190 .g-unit,
1336.g-unit .g-unit .g-tpl-190 .g-unit {
1337 display: block;
1338 margin: 0 0 0 190px;
1339 width: auto;
1340 float: none;
1341}
1342.g-unit .g-unit .g-tpl-190 .g-first,
1343.g-unit .g-tpl-190 .g-first,
1344.g-tpl-190 .g-first {
1345 display: block;
1346 margin: 0;
1347 width: 190px;
1348 float: left;
1349}
1350/* 190px alt */
1351.g-tpl-190-alt .g-unit,
1352.g-unit .g-tpl-190-alt .g-unit,
1353.g-unit .g-unit .g-tpl-190-alt .g-unit {
1354 display: block;
1355 margin: 0 190px 0 0;
1356 width: auto;
1357 float: none;
1358}
1359.g-unit .g-unit .g-tpl-190-alt .g-first,
1360.g-unit .g-tpl-190-alt .g-first,
1361.g-tpl-190-alt .g-first {
1362 display: block;
1363 margin: 0;
1364 width: 190px;
1365 float: right;
1366}
1367
The Android Open Source Project88b60792009-03-03 19:28:42 -08001368/* 180px */
Scott Main7f418a52010-04-23 11:41:30 -07001369.g-tpl-180 .g-unit,
1370.g-unit .g-tpl-180 .g-unit,
The Android Open Source Project88b60792009-03-03 19:28:42 -08001371.g-unit .g-unit .g-tpl-180 .g-unit {
1372 display: block;
1373 margin: 0 0 0 180px;
1374 width: auto;
1375 float: none;
1376}
1377.g-unit .g-unit .g-tpl-180 .g-first,
1378.g-unit .g-tpl-180 .g-first,
1379.g-tpl-180 .g-first {
1380 display: block;
1381 margin: 0;
1382 width: 180px;
1383 float: left;
1384}
1385/* 180px alt */
Scott Main7f418a52010-04-23 11:41:30 -07001386.g-tpl-180-alt .g-unit,
1387.g-unit .g-tpl-180-alt .g-unit,
The Android Open Source Project88b60792009-03-03 19:28:42 -08001388.g-unit .g-unit .g-tpl-180-alt .g-unit {
1389 display: block;
1390 margin: 0 180px 0 0;
1391 width: auto;
1392 float: none;
1393}
1394.g-unit .g-unit .g-tpl-180-alt .g-first,
1395.g-unit .g-tpl-180-alt .g-first,
1396.g-tpl-180-alt .g-first {
1397 display: block;
1398 margin: 0;
1399 width: 180px;
1400 float: right;
1401}
1402
Scott Main63e9ccd2010-11-18 12:28:44 -08001403
The Android Open Source Project88b60792009-03-03 19:28:42 -08001404/* JQUERY RESIZABLE STYLES */
1405.ui-resizable { position: relative; }
1406.ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; z-index:1; }
1407.ui-resizable .ui-resizable-handle { display: block; }
Scott Main67c2a962010-03-16 17:04:22 -07001408body .ui-resizable-disabled .ui-resizable-handle { display: none; }
1409body .ui-resizable-autohide .ui-resizable-handle { display: none; }
1410.ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px;
1411 background: transparent url("images/resizable-s2.gif") repeat scroll center top; }
1412.ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%;
1413 background: transparent url("images/resizable-e2.gif") repeat scroll right center; }
The Android Open Source Project88b60792009-03-03 19:28:42 -08001414
1415@media print {
1416
1417 body {
1418 overflow:visible;
1419 }
1420
1421 #header {
1422 height:60px;
1423 }
1424
1425 #headerLeft {
Dirk Dougherty18467172009-04-15 11:31:36 -07001426 padding:0;
1427 }
1428
Scott Main54161d12009-08-18 19:00:11 -07001429 #header-tabs,
1430 #headerRight,
1431 #side-nav,
1432 #api-info-block {
The Android Open Source Project88b60792009-03-03 19:28:42 -08001433 display:none;
1434 }
1435
1436 #body-content {
1437 position:inherit;
1438 }
Scott Main63e9ccd2010-11-18 12:28:44 -08001439
The Android Open Source Project88b60792009-03-03 19:28:42 -08001440 #doc-content {
1441 margin-left:0 !important;
1442 height:auto !important;
1443 width:auto !important;
1444 overflow:inherit;
1445 display:inline;
1446 }
1447
1448 #jd-header {
1449 padding:10px 0;
1450 }
1451
1452 #jd-content {
1453 padding:15px 0 0;
1454 }
1455
1456 #footer {
1457 float:none;
1458 margin:2em 0 0;
1459 }
1460
1461 h4.jd-details-title {
1462 border-bottom:1px solid #666;
1463 }
1464
1465 pre {
1466 /* these allow lines to break (if there's a white space) */
1467 overflow: visible;
1468 text-wrap: unrestricted;
1469 white-space: -moz-pre-wrap; /* Moz */
1470 white-space: -pre-wrap; /* Opera 4-6 */
1471 white-space: -o-pre-wrap; /* Opera 7 */
1472 white-space: pre-wrap; /* CSS3 */
1473 word-wrap: break-word; /* IE 5.5+ */
1474 }
1475
Scott Main7f418a52010-04-23 11:41:30 -07001476 h1, h2, h3, h4, h5, h6 {
The Android Open Source Project88b60792009-03-03 19:28:42 -08001477 page-break-after: avoid;
1478 }
1479
1480 table, img {
1481 page-break-inside: avoid;
1482 }
The Android Open Source Project88b60792009-03-03 19:28:42 -08001483}