better censor mark styling
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
<xsl:choose>
|
||||
<xsl:when
|
||||
test="img | generate_piechart | p | div | table | section | ol | ul | pre">
|
||||
<fo:block xsl:use-attribute-sets="censoredblock">[ CENSORED ]</fo:block>
|
||||
<fo:block xsl:use-attribute-sets="censoredblock">
|
||||
<xsl:call-template name="checkIfLast"/>
|
||||
<xsl:text>[ CENSORED ]</xsl:text></fo:block>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<fo:inline xsl:use-attribute-sets="censoredtext">[ CENSORED ]</fo:inline>
|
||||
|
||||
@@ -63,9 +63,7 @@
|
||||
<xsl:attribute name="background-color">black</xsl:attribute>
|
||||
<xsl:attribute name="color"><xsl:value-of select="$color_moderate"/></xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
<xsl:attribute-set name="censoredblock" use-attribute-sets="censoredtext">
|
||||
<xsl:attribute name="padding">5mm</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
<xsl:attribute-set name="censoredblock" use-attribute-sets="censoredtext"/>
|
||||
<xsl:attribute-set name="censoredtext">
|
||||
<xsl:attribute name="background-color">black</xsl:attribute>
|
||||
<xsl:attribute name="color">white</xsl:attribute>
|
||||
|
||||
Reference in New Issue
Block a user