From 6b43e99cfbe6c0e1cb419f8b46a45c146a3d364a Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Sat, 2 May 2009 17:58:27 -0500 Subject: Adding listing & fixing first-child issues for mal2html.block.mode --- xslt/mallard/html/mal2html-block.xsl | 96 ++++++++++++++++++++++++++---------- xslt/mallard/html/mal2html-css.xsl | 5 +- xslt/mallard/html/mal2html-page.xsl | 9 +++- 3 files changed, 80 insertions(+), 30 deletions(-) (limited to 'xslt') diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl index 8d1d205..fb3fad2 100644 --- a/xslt/mallard/html/mal2html-block.xsl +++ b/xslt/mallard/html/mal2html-block.xsl @@ -106,6 +106,8 @@ div.figure-contents { } div.figure div.title { margin: 0 0 4px 0; } div.figure div.desc { margin: 4px 0 0 0; } +div.listing div.title { font-size: 1em; margin: 0 0 4px 0; } +div.listing div.desc { margin: 0 0 4px 0; font-style: italic; } pre.screen { background-color: @@ -150,12 +152,13 @@ FIXME --> +
     
       
-      
+      
          first-child
       
     
@@ -184,32 +187,35 @@ FIXME
 
 
   
- +
- + + + + +
comment - + first-child - -
-
- - - -
- + + + + + + +
@@ -234,39 +240,63 @@ FIXME +
example - + first-child - + + + + +
+
figure - + first-child
- + + + + +
- - -
- + + + +
+ + listing + + first-child + + + + +
+ + + + + +
@@ -275,10 +305,11 @@ FIXME +

p - + first-child @@ -288,24 +319,35 @@ FIXME - + + + + +

synopsis - + first-child - + + +
+ + + + + +
- - +
diff --git a/xslt/mallard/html/mal2html-css.xsl b/xslt/mallard/html/mal2html-css.xsl index fae4f96..65b673c 100644 --- a/xslt/mallard/html/mal2html-css.xsl +++ b/xslt/mallard/html/mal2html-css.xsl @@ -331,7 +331,10 @@ div.comment { div.comment div.comment { margin: 1em 0 0 1em; } -div.comment div.cite { margin: 0; font-style: italic; } +div.comment div.cite { + margin: 0 0 0.5em 0; + font-style: italic; +}
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl index 855f940..2e2d6d0 100644 --- a/xslt/mallard/html/mal2html-page.xsl +++ b/xslt/mallard/html/mal2html-page.xsl @@ -447,7 +447,7 @@ REMARK: Describe this template
-
@@ -465,8 +465,13 @@ REMARK: Describe this template
+ + + + + - + -- cgit v1.2.1