cherry-pick from master: I615602a3d8f9970e36399b98dadb5e2f03638444
docs: various stylesheet changes
indent tables
revise figure class
add caption classes for tables and images
add styles for xml reference docs (used by resource types docs)
tweak styles for the icon tables to eliminate obscure 'caption' class
Change-Id: I23f53d884f39a5f6a4b45172186e0d1c7619da30
diff --git a/tools/droiddoc/templates/assets/android-developer-docs.css b/tools/droiddoc/templates/assets/android-developer-docs.css
index 47a30a3..98f2d5e 100644
--- a/tools/droiddoc/templates/assets/android-developer-docs.css
+++ b/tools/droiddoc/templates/assets/android-developer-docs.css
@@ -100,7 +100,6 @@
#side-nav li a+a {
padding: 0;
}
-
/*second level (nested) list*/
#side-nav li li li a {
padding: 0 0 0 28px;
@@ -518,8 +517,7 @@
color:#111;
border-top:2px solid #ccc;
padding: .5em 0 0;
- margin: 1.5em 0 1em 0;
- max-width:968px;
+ margin: 2em 0 1em 0;
}
#jd-content h3 {
@@ -545,6 +543,10 @@
position:inherit;
}
+#jd-content table {
+ margin: 0 0 1em 1em;
+}
+
#jd-content img {
margin: 0 0 1em 1em;
}
@@ -807,13 +809,17 @@
div.figure {
float:right;
clear:right;
- padding:0 0 20px 20px;
+ padding:1em 0 1em 2em;
+ background-color:#fff;
/* width must be defined w/ an inline style matching the image width */
}
-#jd-content div.figure img {
- display:block;
- margin:0 0 10px 0;
+p.img-caption {
+ margin: -0.5em 0 1em 1em; /* matches default img left-margin */
+}
+
+p.table-caption {
+ margin: 0 0 0.5em 1em; /* matches default table left-margin */
}
/* BEGIN quickview sidebar element styles */
@@ -967,7 +973,7 @@
td.image-caption-i {
font-size:92%;
- padding:0;
+ padding:0 5px;
margin:0;
border:0;
}
@@ -982,10 +988,6 @@
text-align:center;
}
-.image-list .caption {
- margin:0 2px;
-}
-
td.image-caption-c {
font-size:92%;
padding:1em 2px 2px 2px;