diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2010-02-23 12:44:23 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2010-02-23 12:44:23 +1300 |
commit | 2bf6d81a19f11e22b0fcec16be371f8e14ad7d26 (patch) | |
tree | 5a5dd14ea9808dfa2510c4da64cf4d7195f26182 | |
parent | 3f9377a1e037bf5abadaaab36833126e183e438f (diff) | |
download | asciidoc-2bf6d81a19f11e22b0fcec16be371f8e14ad7d26.tar.gz |
xhtml11 backend: Callouts and callout lists display callout icons when the
'icons' attribute is defined. See
http://groups.google.com/group/asciidoc/browse_frm/thread/8eda3ea812968854
-rw-r--r-- | stylesheets/xhtml11.css | 8 | ||||
-rw-r--r-- | xhtml11.conf | 11 |
2 files changed, 17 insertions, 2 deletions
diff --git a/stylesheets/xhtml11.css b/stylesheets/xhtml11.css index 2f93ba1..8696e9c 100644 --- a/stylesheets/xhtml11.css +++ b/stylesheets/xhtml11.css @@ -331,6 +331,14 @@ span.footnote, span.footnoteref { min-width: 100px; } +div.colist td { + padding-right: 0.5em; + padding-bottom: 0.5em; + vertical-align: top; +} +div.colist td img { + margin-top: 0.3em; +} @media print { div#footer-badges { display: none; } diff --git a/xhtml11.conf b/xhtml11.conf index d34736d..801343e 100644 --- a/xhtml11.conf +++ b/xhtml11.conf @@ -118,8 +118,8 @@ latexmath-style=template="latexmathblock",subs=[] {2#}<span class="footnote" id="_footnote_{1}"><br />[{2}]<br /></span>
[callout-inlinemacro]
-# Callout.
-<b><{index}></b>
+ifndef::icons[<b><{index}></b>]
+ifdef::icons[<img src="{iconsdir}/callouts/{index}.png" alt="{index}" />]
# Comment line macros.
[comment-inlinemacro]
@@ -168,9 +168,16 @@ item= text=<p>|</p>
[listtags-callout]
+ifndef::icons[]
list=<div class="colist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div>
item=<li>|</li>
text=<p>|</p>
+endif::icons[]
+ifdef::icons[]
+list=<div class="colist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div>
+item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}" /></td><td>|</td></tr>
+text=|
+endif::icons[]
[listtags-glossary]
list=<div class="dlist{style? {style}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div>
|