[yelp-xsl] [mal2html-page.xsl] Include comment CSS when not in editor mode
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [mal2html-page.xsl] Include comment CSS when not in editor mode
- Date: Thu, 1 Jul 2010 16:16:51 +0000 (UTC)
commit 7beb9e6ddda466edd05a38093c587e948f86776d
Author: Shaun McCance <shaunm gnome org>
Date: Thu Jul 1 12:15:55 2010 -0400
[mal2html-page.xsl] Include comment CSS when not in editor mode
Comments can be explicitly enabled with a processing instruction,
so we should always have the style info available.
xslt/mallard/html/mal2html-page.xsl | 31 +++++++++++++------------------
1 files changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 9a1633b..0a10972 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -724,11 +724,20 @@ div.example {
padding-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
}
-div.cite-comment {
- margin-top: 0.5em;
- color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
+div.comment {
+ padding: 0.5em;
+ border: solid 2px </xsl:text>
+ <xsl:value-of select="$color.red_border"/><xsl:text>;
+ background-color: </xsl:text>
+ <xsl:value-of select="$color.red_background"/><xsl:text>;
+}
+div.comment div.comment {
+ margin: 1em 1em 0 1em;
+}
+div.comment div.cite {
+ margin: 0 0 0.5em 0;
+ font-style: italic;
}
-
ul.tree {
margin: 0; padding: 0;
@@ -789,20 +798,6 @@ div.linkdiv div.desc {
color: </xsl:text>
<xsl:value-of select="$color.text_light"/><xsl:text>;
}
-div.comment {
- padding: 0.5em;
- border: solid 2px </xsl:text>
- <xsl:value-of select="$color.red_border"/><xsl:text>;
- background-color: </xsl:text>
- <xsl:value-of select="$color.red_background"/><xsl:text>;
-}
-div.comment div.comment {
- margin: 1em 1em 0 1em;
-}
-div.comment div.cite {
- margin: 0 0 0.5em 0;
- font-style: italic;
-}
</xsl:text>
</xsl:if>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]