diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-25 00:31:33 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-26 13:49:43 +0200 |
commit | 8bca37f6c6f708fc5f8c1eb4938648e4f5324d4c (patch) | |
tree | 48317cd72f9d8a39a91e8fe5509c104bf6a9bc8e /help3xsl/online_transform.xsl | |
parent | 3824ac08e61a8f41fde588fd3b6408dec8c244c5 (diff) |
Replace icontable by div + CSS flexbox
Icon tables are detected when the first cell has an image.
Change-Id: I808c814870404dbef696e12c6f30a7611468d2ee
Reviewed-on: https://gerrit.libreoffice.org/53429
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 39ad8471a9..eeac0cfbe4 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -788,7 +788,7 @@ </xsl:choose> </xsl:template> <xsl:template match="tablecell" mode="onecell"><xsl:apply-templates/></xsl:template> -<xsl:template match="tablecell" mode="icontable"><td valign="top"><xsl:apply-templates/></td></xsl:template> +<xsl:template match="tablecell" mode="icontable"><div class="iconcell"><xsl:apply-templates/></div></xsl:template> <xsl:template match="tablecell" mode="embedded"> <xsl:choose> <xsl:when test="paragraph[@role='tablehead']"> @@ -803,7 +803,7 @@ <!-- TABLEROW --> <xsl:template match="tablerow"><tr><xsl:apply-templates /></tr></xsl:template> <xsl:template match="tablerow" mode="onecell"><xsl:apply-templates mode="onecell"/></xsl:template> -<xsl:template match="tablerow" mode="icontable"><tr><xsl:apply-templates mode="icontable"/></tr></xsl:template> +<xsl:template match="tablerow" mode="icontable"><div class="icontable"><xsl:apply-templates mode="icontable"/></div><br/></xsl:template> <xsl:template match="tablerow" mode="embedded"><tr><xsl:apply-templates mode="embedded"/></tr></xsl:template> <!-- TITLE --> @@ -1229,9 +1229,7 @@ </xsl:when> <xsl:when test="descendant::tablecell[1]/descendant::image"> - <table border="0" class="icontable" cellpadding="5" cellspacing="0"> - <xsl:apply-templates mode="icontable"/> - </table> + <xsl:apply-templates mode="icontable"/> </xsl:when> <xsl:when test="@class='wide'"> |