From 1c94066a56dc1953be260f3e9c95a480d63c6553 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Wed, 3 Dec 2008 10:27:56 -0600 Subject: Fixing first-child issues --- xslt/mallard/html/mal2html-block.xsl | 63 ++++++----- xslt/mallard/html/mal2html-css.xsl | 200 ++++++++++++++++++----------------- xslt/mallard/html/mal2html-table.xsl | 8 +- 3 files changed, 146 insertions(+), 125 deletions(-) (limited to 'xslt') diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl index 34166ec..a6af0cd 100644 --- a/xslt/mallard/html/mal2html-block.xsl +++ b/xslt/mallard/html/mal2html-block.xsl @@ -156,12 +156,13 @@ div.title { -
-    
-      
-        first-child
-      
-    
+  
+    
+      code
+      
+         first-child
+      
+    
     
       
         
@@ -183,12 +184,13 @@ div.title {
 
 
 
-  
- - - first-child - - +
+ + comment + + first-child + +
@@ -221,12 +223,13 @@ div.title { -
- - - first-child - - +
+ + figure + + first-child + +
-

- - - first-child - - +

+ + p + + first-child + +

@@ -261,11 +265,12 @@ div.title {
- - - first-child - - + + synopsis + + first-child + +
diff --git a/xslt/mallard/html/mal2html-css.xsl b/xslt/mallard/html/mal2html-css.xsl index 633002a..0867506 100644 --- a/xslt/mallard/html/mal2html-css.xsl +++ b/xslt/mallard/html/mal2html-css.xsl @@ -98,46 +98,25 @@ body { padding: 12px; min-height: 100%; } - -body.status-stub { background-color: - - - - ; } -body.status-draft { background-color: - - - - ; } -body.status-incomplete { background-color: - - - - ; } -body.status-review { background-color: - - - - ; } -div.version { - margin: 0 0 1em 0; - padding: 0.5em 1em 0.5em 1em; - max-width: 48em; - -moz-border-radius: 6px; - border: solid 1px +div, pre, p, li { margin: 1em 0 0 0; padding: 0; } +.first-child { margin-top: 0; } +a { + text-decoration: none; + color: - + ; - background-color: +} +a:visited { + color: - + ; } -div.version p.version { - margin-top: 0.2em; -} +a:hover { text-decoration: underline; } + div.body { margin: 0; padding: 1em; @@ -208,116 +187,147 @@ div.pagelink div.title { font-size: 1em; color: inherit; } -div.pagelink div.title span.status { - font-size: 0.83em; - font-weight: normal; - padding-left: 0.2em; - padding-right: 0.2em; - color: +div.pagelink { + margin: 0; + padding: 0.5em; + -moz-border-radius: 6px; + border: solid 1px - + ; - border: solid 1px +} +div.pagelink:hover { + border-color: - + + + ; + background-color: + + ; } -div.pagelink div.title span.status-stub { background-color: +div.pagelinksep { + margin: 0.5em; + list-style-type: none; + max-width: 24em; + border-bottom: solid 1px + + + + ; +} + + + + + + + + + + + +body.status-stub { background-color: ; } -div.pagelink div.title span.status-draft { background-color: +body.status-draft { background-color: ; } -div.pagelink div.title span.status-incomplete { background-color: +body.status-incomplete { background-color: ; } -div.pagelink div.title span.status-review { background-color: +body.status-review { background-color: ; } -div.pagelink div.desc { - margin-top: 0.2em; - color: +div.version { + margin: 0 0 1em 0; + padding: 0.5em 1em 0.5em 1em; + max-width: 48em; + -moz-border-radius: 6px; + border: solid 1px - + ; -} -div.pagelink { - margin: 0; - padding: 0.5em; - -moz-border-radius: 6px; - border: solid 1px + background-color: - + ; } -div.pagelink:hover { - border-color: +div.version p.version { margin-top: 0.2em; } +div.pagelink div.title span.status { + font-size: 0.83em; + font-weight: normal; + padding-left: 0.2em; + padding-right: 0.2em; + color: - + ; - background-color: + border: solid 1px - + ; } - -div.pagelinksep { - margin: 0.5em; - list-style-type: none; - max-width: 24em; - border-bottom: solid 1px +div.pagelink div.title span.status-stub { background-color: - + - ; -} - -div, pre, p, li { margin: 1em 0 0 0; padding: 0; } -.first-child { margin-top: 0; } -a { - text-decoration: none; - color: + ; } +div.pagelink div.title span.status-draft { background-color: - + - ; -} -a:visited { + ; } +div.pagelink div.title span.status-incomplete { background-color: + + + + ; } +div.pagelink div.title span.status-review { background-color: + + + + ; } +div.pagelink div.desc { + margin-top: 0.2em; color: - + ; } -a:hover { text-decoration: underline; } - -