diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-24 23:52:25 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-26 13:49:04 +0200 |
commit | 3824ac08e61a8f41fde588fd3b6408dec8c244c5 (patch) | |
tree | 380b050f462cff29401b9c371b9345b966d87d18 /help3xsl | |
parent | 7d7b5977dd278ac994a09f935ba43684cdab199a (diff) |
Replace onecell table by a div
Replace table of type onecell by a div + css
Change-Id: I120a85c96b312d206a8f582c69405aeb5fd80a9c
Reviewed-on: https://gerrit.libreoffice.org/53428
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/default.css | 4 | ||||
-rw-r--r-- | help3xsl/online_transform.xsl | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css index 50023f5fc5..ba548c337c 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -133,6 +133,10 @@ pre, /* Table related classes */ +/* Special case of table with one cell*/ +.onecell{ +} + table { box-shadow: rgba(0,0,0,0.1) 0px 1px 3px 0px; border-collapse: collapse; diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 39b656ef01..39ad8471a9 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -787,6 +787,7 @@ </xsl:otherwise> </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="embedded"> <xsl:choose> @@ -801,6 +802,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="embedded"><tr><xsl:apply-templates mode="embedded"/></tr></xsl:template> @@ -1223,9 +1225,7 @@ <xsl:choose> <xsl:when test="count(descendant::tablecell)=1"> - <table border="0" class="onecell" cellpadding="0" cellspacing="0"> - <xsl:apply-templates /> - </table> + <div class="onecell"><xsl:apply-templates mode="onecell"/></div> </xsl:when> <xsl:when test="descendant::tablecell[1]/descendant::image"> |