[yelp-xsl] mal2html-block: 'plain' note style for getting-started designs



commit 7348879eaf31b3a3b501bd1fd32d73b93d532136
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Mar 3 23:37:19 2013 -0500

    mal2html-block: 'plain' note style for getting-started designs

 xslt/common/html.xsl                 |    5 +++++
 xslt/mallard/html/mal2html-block.xsl |   15 ++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 6c0beb3..dda2a09 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -1053,6 +1053,11 @@ div.note-sidebar > div.inner > div.title { margin-</xsl:text>
   <xsl:value-of select="$left"/><xsl:text>: 0px; }
 div.note-sidebar > div.inner > div.region > div.contents { margin-</xsl:text>
   <xsl:value-of select="$left"/><xsl:text>: 0px; }
+div.note-plain > div.inner { background-image: none; }
+div.note-plain > div.inner > div.title { margin-</xsl:text>
+  <xsl:value-of select="$left"/><xsl:text>: 0px; }
+div.note-plain > div.inner > div.region > div.contents { margin-</xsl:text>
+  <xsl:value-of select="$left"/><xsl:text>: 0px; }
 div.quote {
   padding: 0;
   min-height: </xsl:text>
diff --git a/xslt/mallard/html/mal2html-block.xsl b/xslt/mallard/html/mal2html-block.xsl
index 5a39f78..1a22b20 100644
--- a/xslt/mallard/html/mal2html-block.xsl
+++ b/xslt/mallard/html/mal2html-block.xsl
@@ -385,6 +385,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, ' '), ' plain ')">
+        <xsl:text>plain</xsl:text>
+      </xsl:when>
       <xsl:when test="contains(concat(' ', @style, ' '), ' sidebar ')">
         <xsl:text>Sidebar</xsl:text>
       </xsl:when>
@@ -414,11 +417,13 @@ in accordance with the Mallard specification on fallback block content.
         <xsl:value-of select="$if"/>
       </xsl:if>
     </xsl:attribute>
-    <xsl:attribute name="title">
-      <xsl:call-template name="l10n.gettext">
-        <xsl:with-param name="msgid" select="$notestyle"/>
-      </xsl:call-template>
-    </xsl:attribute>
+    <xsl:if test="$notestyle != 'plain'">
+      <xsl:attribute name="title">
+        <xsl:call-template name="l10n.gettext">
+          <xsl:with-param name="msgid" select="$notestyle"/>
+        </xsl:call-template>
+      </xsl:attribute>
+    </xsl:if>
     <xsl:call-template name="mal2html.ui.expander.data"/>
     <div class="inner">
       <xsl:apply-templates mode="mal2html.block.mode" select="mal:title"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]