[yelp-xsl] [xslt/mallard] Implement sidebar style for notes
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] [xslt/mallard] Implement sidebar style for notes
- Date: Thu, 9 Dec 2010 00:28:47 +0000 (UTC)
commit 173d7225beeeca286827eb74a70296cb5df9010d
Author: Shaun McCance <shaunm gnome org>
Date: Mon Dec 6 19:20:57 2010 -0500
[xslt/mallard] Implement sidebar style for notes
xslt/common/html.xsl | 15 +++++++++++++++
xslt/mallard/html/mal2html-block.xsl | 3 +++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index a31ff79..196c3c3 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -717,6 +717,21 @@ div.note-tip div.inner { background-image: url("</xsl:text>
<xsl:value-of select="$icons.note.tip"/><xsl:text>"); }
div.note-warning div.inner { background-image: url("</xsl:text>
<xsl:value-of select="$icons.note.warning"/><xsl:text>"); }
+div.note-sidebar {
+ float: </xsl:text><xsl:value-of select="$right"/><xsl:text>;
+ max-width: 40%;
+ margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 6px;
+ padding: 6px;
+ border: solid 1px </xsl:text>
+ <xsl:value-of select="$color.gray_border"/><xsl:text>;
+ background-color: </xsl:text>
+ <xsl:value-of select="$color.gray_background"/><xsl:text>;
+}
+div.note-sidebar > div.inner { background-image: none; }
+div.note-sidebar > div.inner > div.title { margin-</xsl:text>
+ <xsl:value-of select="$left"/><xsl:text>: 0px; }
+div.note-sidebar > div.inner > div.contents { margin-</xsl:text>
+ <xsl:value-of select="$left"/><xsl:text>: 0px; }
div.quote {
padding: 0;
background-image: url('</xsl:text>
diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl
index e32ecdd..a8f305e 100644
--- a/xslt/mallard/html/mal2html-block.xsl
+++ b/xslt/mallard/html/mal2html-block.xsl
@@ -243,6 +243,9 @@ in accordance with the Mallard specification on fallback block content.
<xsl:when test="contains(concat(' ', @style, ' '), ' important ')">
<xsl:text>important</xsl:text>
</xsl:when>
+ <xsl:when test="contains(concat(' ', @style, ' '), ' sidebar ')">
+ <xsl:text>sidebar</xsl:text>
+ </xsl:when>
<xsl:when test="contains(concat(' ', @style, ' '), ' tip ')">
<xsl:text>tip</xsl:text>
</xsl:when>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]