Patch 2: some fixes to the developer-docs stylesheet....
Patch 3: add "Since:" to the api level info
Patch 4: fix packages page and styles to reveal class summary
Squashed commit of the following:
commit 8fcdcb8dcbe9b93688f5eb1020654848d3242675
Author: Scott Main <smain@google.com>
Date: Mon Jul 27 09:33:45 2009 -0700
remove the toggle selector from the header.
this will be added in a later change with the rest of the toggle script
commit 2423b30ee46c12f92051c4f2a096532e55752c46
Author: Scott Main <smain@google.com>
Date: Fri Jul 24 16:29:21 2009 -0700
Implement API Level styles.
This changes the way we show the API Level for a given package/class/member.
It also provides hooks in the document to allow us to restyle items
based on a user-selected API Level (show/hide available items).
More changes to provide the toggling feature will come soon.
commit efd94b33071070f0dfc2045131b81cbdfe078468
Author: Scott Main <smain@google.com>
Date: Mon Jul 27 09:33:45 2009 -0700
remove the toggle selector from the header.
this will be added in a later change with the rest of the toggle script
commit 3fb79313232c993f700ee90a94f59dcca275fb0b
Author: Scott Main <smain@google.com>
Date: Fri Jul 24 16:29:21 2009 -0700
Implement API Level styles.
This changes the way we show the API Level for a given package/class/member.
It also provides hooks in the document to allow us to restyle items
based on a user-selected API Level (show/hide available items).
More changes to provide the toggling feature will come soon.
diff --git a/tools/droiddoc/templates/assets/android-developer-docs.css b/tools/droiddoc/templates/assets/android-developer-docs.css
index cf44b26..e5489e6 100644
--- a/tools/droiddoc/templates/assets/android-developer-docs.css
+++ b/tools/droiddoc/templates/assets/android-developer-docs.css
@@ -321,7 +321,6 @@
/* a div that holds a short description */
.jd-descrdiv {
- width:100%;
padding:3px 1em 0 1em;
margin:0;
border:0;
@@ -340,6 +339,50 @@
max-width:70%;
}
+#api-level-toggle {
+ float:right;
+ padding:0 10px;
+ font-size:11px;
+ color:#999;
+}
+
+h4.jd-details-title .api-level,
+div#jd-header .api-level {
+ font-size:12px;
+ font-weight:normal;
+ color:#999;
+ position:absolute;
+ top:5px;
+ right:5px;
+}
+
+div#jd-header .api-level {
+ position:relative;
+ float:right;
+ margin-top:-1.7em;
+}
+
+.absent,
+.absent a:link,
+.absent a:visited,
+.absent a:hover,
+.absent * {
+ color:#aaa !important;
+ background-color:#f6f6f6 !important;
+ cursor:default !important;
+ text-decoration:none !important;
+}
+
+#side-nav li.absent,
+#side-nav li.absent * {
+ background-color:#fff !important;
+}
+
+#side-nav li.absent.selected,
+#side-nav li.absent.selected * {
+ background-color:#eee !important;
+}
+
/* applies to a div containing links to summary tables */
.sum-details-links {
margin:0 .5em;
@@ -471,6 +514,10 @@
margin:.5em 1em;
}
+.jd-tagdata p {
+ margin:0 0 1em 1em;
+}
+
/* API reference: adjustments to
the detailed description block */
.jd-tagdescr {
@@ -508,6 +555,7 @@
background-color: #E2E2E2;
margin:1.5em 0 .6em;
padding:3px;
+ position:relative; /* so the api level can be absolute */
}
h4.jd-tagtitle {