diff options
author | Scott Main <smain@google.com> | 2010-11-18 12:28:44 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2010-11-18 13:54:40 -0800 |
commit | 63e9ccd1d6685b5551d836775928383117bebb11 (patch) | |
tree | e9d6aa7350c8493ece52668c45859ce8fa5b9b7d | |
parent | c5a07ce038d7aeb62a5c02886cd2ecbf56687e9d (diff) | |
download | build-63e9ccd1d6685b5551d836775928383117bebb11.zip build-63e9ccd1d6685b5551d836775928383117bebb11.tar.gz build-63e9ccd1d6685b5551d836775928383117bebb11.tar.bz2 |
docs: revise stylesheet to allow "notes" in divs, not just paragraphs
Change-Id: Ia78a82dd330a4f31076b74ce86237af3aca1ba2e
-rw-r--r-- | tools/droiddoc/templates-sdk/assets/android-developer-docs.css | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/android-developer-docs.css b/tools/droiddoc/templates-sdk/assets/android-developer-docs.css index 733216c..c544451 100644 --- a/tools/droiddoc/templates-sdk/assets/android-developer-docs.css +++ b/tools/droiddoc/templates-sdk/assets/android-developer-docs.css @@ -730,39 +730,51 @@ div.special ol li { padding:0; } -p.note, p.caution, p.warning { +p.note, div.note, +p.caution, div.caution, +p.warning, div.warning { margin: 1em; padding: 0 0 0 .5em; border-left: 4px solid; } -p.special-note { +p.special-note, +div.special-note { background-color:#EBF3DB; padding:10px 20px; margin:0 0 1em; } -p.note { +p.note, +div.note { border-color: #99aacc; } -p.warning { +p.warning, +div.warning { border-color: #aa0033; } -p.caution { +p.caution, +div.caution { border-color: #ffcf00; } -p.warning b, p.warning strong { - font-weight: bold; -} - -li p.note, li p.warning { +li .note, +li .caution, +li .warning { margin: .5em 0 0 0; padding: .2em .5em .2em .9em; } +/* Makes sure the first paragraph does not add top-whitespace within the box*/ +li .note>p:first-child, +li .caution>p:first-child, +li .warning>p:first-child { + margin-top:0; + padding-top:0; +} + dl.xml dt { font-variant:small-caps; font-size:1.2em; @@ -1054,7 +1066,7 @@ ol.toc li ol { margin: 0; padding: 0; } - + ol.toc li li { padding: 0; margin: 0 0 0 1em; @@ -1216,7 +1228,7 @@ table.download th { float: right; } - + /* JQUERY RESIZABLE STYLES */ .ui-resizable { position: relative; } .ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; z-index:1; } @@ -1252,7 +1264,7 @@ body .ui-resizable-autohide .ui-resizable-handle { display: none; } #body-content { position:inherit; } - + #doc-content { margin-left:0 !important; height:auto !important; |