diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-19 19:26:46 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-04-20 12:33:47 +0200 |
commit | f10b89e1d34ab5faca7c4121dc9d1389617d1ba5 (patch) | |
tree | 81507b0f485e3581c461cfd5b6e52d8199666834 | |
parent | 5de2306da7f9dea5231c0fd1bfd91491cceb646f (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r-- | help3xsl/default.css | 5 | ||||
-rw-r--r-- | help3xsl/online_transform.xsl | 22 |
2 files changed, 25 insertions, 2 deletions
diff --git a/help3xsl/default.css b/help3xsl/default.css index 8d6d3df2d4..c376844777 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 34838a5177..e6d6838b7e 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> |