summaryrefslogtreecommitdiff
path: root/xslt
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2009-05-03 15:21:45 -0500
committerShaun McCance <shaunm@gnome.org>2009-05-03 15:21:45 -0500
commitbca325a88952f22bd8d7c4b15cd13fd3b91f5490 (patch)
treefc5dd589f8899d3edb58afcc8fc8c74338865c51 /xslt
parent55475c9a21567ae22b5c87de850b20796b6256a4 (diff)
downloadgnome-doc-utils-bca325a88952f22bd8d7c4b15cd13fd3b91f5490.tar.gz
[mallard] Added information and xslt for synopsis and listing
Diffstat (limited to 'xslt')
-rw-r--r--xslt/mallard/html/mal2html-block.xsl33
-rw-r--r--xslt/mallard/html/mal2html-page.xsl2
2 files changed, 18 insertions, 17 deletions
diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl
index fb3fad2..287faa3 100644
--- a/xslt/mallard/html/mal2html-block.xsl
+++ b/xslt/mallard/html/mal2html-block.xsl
@@ -37,16 +37,17 @@ REMARK: Describe this template
<xsl:template name="mal2html.block.css">
<xsl:text>
div.title {
- font-size: 1.2em;
- margin-top: 0;
+ margin: 0 0 0.2em 0;
font-weight: bold;
color: </xsl:text>
<xsl:call-template name="theme.get_color">
<xsl:with-param name="id" select="'text-light'"/>
</xsl:call-template>
<xsl:text>;
- font-weight: bold;
}
+div.desc { margin: 0 0 0.2em 0; }
+div.desc-listing, div.desc-synopsis { font-style: italic; }
+div.desc-figure { margin: 0.2em 0 0 0; }
pre.code {
<!-- FIXME: theme -->
background: url(mallard-icon-code.png) no-repeat top right;
@@ -66,6 +67,8 @@ div.example {
padding-left: 1em;
}
div.figure {
+ margin-left: 1.72em;
+ padding: 4px;
color: </xsl:text>
<xsl:call-template name="theme.get_color">
<xsl:with-param name="id" select="'text-light'"/>
@@ -81,10 +84,11 @@ div.figure {
<xsl:with-param name="id" select="'gray-background'"/>
</xsl:call-template>
<xsl:text>;
- margin-left: 1.72em;
- padding: 4px;
}
div.figure-contents {
+ margin: 0;
+ padding: 0.5em 1em 0.5em 1em;
+ text-align: center;
color: </xsl:text>
<xsl:call-template name="theme.get_color">
<xsl:with-param name="id" select="'text'"/>
@@ -100,15 +104,12 @@ div.figure-contents {
<xsl:with-param name="id" select="'background'"/>
</xsl:call-template>
<xsl:text>;
- padding: 0.5em 1em 0.5em 1em;
+}
+div.listing-contents {
margin: 0;
- text-align: center;
}
-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 {
+ padding: 0.5em 1em 0.5em 1em;
background-color: </xsl:text>
<xsl:call-template name="theme.get_color">
<xsl:with-param name="id" select="'gray-background'"/>
@@ -119,9 +120,10 @@ pre.screen {
<xsl:with-param name="id" select="'gray-border'"/>
</xsl:call-template>
<xsl:text>;
- padding: 0.5em 1em 0.5em 1em;
}
-div.synopsis {
+div.synopsis-contents {
+ margin: 0;
+ padding: 0.5em 1em 0.5em 1em;
border-top: solid 2px;
border-bottom: solid 2px;
border-color: </xsl:text>
@@ -134,7 +136,6 @@ div.synopsis {
<xsl:with-param name="id" select="'gray-background'"/>
</xsl:call-template>
<xsl:text>;
- padding: 0.5em 1em 0.5em 1em;
}
div.synopsis pre.code {
background: none;
@@ -186,7 +187,7 @@ FIXME
<!-- = desc = -->
<xsl:template mode="mal2html.block.mode" match="mal:desc">
- <div class="desc">
+ <div class="desc desc-{local-name(..)}">
<xsl:apply-templates mode="mal2html.inline.mode"/>
</div>
</xsl:template>
@@ -348,7 +349,7 @@ FIXME
</xsl:template>
<xsl:template mode="mal2html.block.mode" match="mal:title">
- <div class="title">
+ <div class="title title-{local-name(..)}">
<xsl:apply-templates mode="mal2html.inline.mode"/>
</div>
</xsl:template>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 2e2d6d0..ee56999 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -426,7 +426,7 @@ REMARK: Describe this template
<!-- = page = -->
<xsl:template match="mal:page">
<div class="header">
- <xsl:apply-templates mode="mal2html.block.mode"
+ <xsl:apply-templates mode="mal2html.title.mode"
select="mal:title | mal:subtitle"/>
</div>
<div class="contents">