help3xsl/default.css | 5 +++++ help3xsl/online_transform.xsl | 22 ++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-)
New commits: commit f10b89e1d34ab5faca7c4121dc9d1389617d1ba5 Author: Olivier Hallot <olivier.hal...@libreoffice.org> Date: Thu Apr 19 19:26:46 2018 -0300 New Help: Improve table head rendering Add class to parent <td> of <paragraph role="tablehead"> Change-Id: Ifb9caf4d4ac3ab5e4c750b5bd96260e2dcb298e1 Reviewed-on: https://gerrit.libreoffice.org/53179 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/help3xsl/default.css b/help3xsl/default.css index 8d6d3df2d..c37684477 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -123,6 +123,11 @@ pre, background: #CCF4C6; text-align: center; } +.tableheadcell { + background: #CCF4C6; + vertical-align:top; +} + .howtogetheader { font-weight: bold; border: 1px solid #999999; diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 34838a517..e6d6838b7 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -777,9 +777,27 @@ <xsl:template match="table" mode="embedded"><xsl:call-template name="inserttable"/></xsl:template> <!-- TABLECELL --> -<xsl:template match="tablecell"><td valign="top"><xsl:apply-templates /></td></xsl:template> +<xsl:template match="tablecell"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates /></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates /></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <xsl:template match="tablecell" mode="icontable"><td valign="top"><xsl:apply-templates/></td></xsl:template> -<xsl:template match="tablecell" mode="embedded"><td valign="top"><xsl:apply-templates mode="embedded"/></td></xsl:template> +<xsl:template match="tablecell" mode="embedded"> + <xsl:choose> + <xsl:when test="paragraph[@role='tablehead']"> + <td class='tableheadcell'><xsl:apply-templates mode="embedded"/></td> + </xsl:when> + <xsl:otherwise> + <td><xsl:apply-templates mode="embedded"/></td> + </xsl:otherwise> + </xsl:choose> +</xsl:template> <!-- TABLEROW --> <xsl:template match="tablerow"><tr><xsl:apply-templates /></tr></xsl:template> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits