summaryrefslogtreecommitdiffstats
path: root/help3xsl/online_transform.xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2019-01-31 18:27:58 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-02-01 12:11:42 +0100
commitc19fd80def3d34e65302f13863aa8aeb88e2de42 (patch)
treee34596546fd5be5c8002aa24fcd275c019761ebf /help3xsl/online_transform.xsl
parenttdf#121571 Solve cognitive dissonance with note icons and colors (diff)
downloadhelp-c19fd80def3d34e65302f13863aa8aeb88e2de42.tar.gz
help-c19fd80def3d34e65302f13863aa8aeb88e2de42.zip
fix commit 622324ec76e54ea1de99d6cea3debc2389049f5
* SVG images cannot have undefined width and height * pick'd a mistake in setting generic images width and height Change-Id: I9f3e62e535c82d624c5c209b0e000784b2765604 Reviewed-on: https://gerrit.libreoffice.org/67234 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r--help3xsl/online_transform.xsl11
1 files changed, 5 insertions, 6 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 02a166c637..03b20f7088 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -94,6 +94,7 @@
<xsl:variable name="linkpostfix" select="''"/>
<!-- images for notes, tips and warnings -->
+<xsl:variable name="iconsizestyle" select="'width:40px;height=40px;'"/>
<xsl:variable name="note_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/note.svg')"/>
<xsl:variable name="tip_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/tip.svg')"/>
<xsl:variable name="warning_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/warning.svg')"/>
@@ -851,7 +852,7 @@
</xsl:choose>
</xsl:variable>
<div class="{local-name()}">
- <div class="noteicon"><img src="{$imgsrc}" alt="{local-name()}" title="{local-name()}"/></div>
+ <div class="noteicon"><img src="{$imgsrc}" alt="{local-name()}" title="{local-name()}" style="{$iconsizestyle}"/></div>
<div class="notetext"><p id="{@id}"><xsl:apply-templates /></p></div>
</div>
<br/>
@@ -865,7 +866,7 @@
</xsl:choose>
</xsl:variable>
<div class="{local-name()}">
- <div class="noteicon"><img src="{$imgsrc}" alt="{local-name()}" title="{local-name()}"/></div>
+ <div class="noteicon"><img src="{$imgsrc}" alt="{local-name()}" title="{local-name()}" style="{$iconsizestyle}"/></div>
<div class="notetext"><p id="{@id}"><xsl:apply-templates mode="embedded"/></p></div>
</div>
<br/>
@@ -1036,7 +1037,7 @@
<xsl:apply-templates select="$doc//variable[@id=$anchor]" mode="embedded"/>
</xsl:variable>
<div class="{$type}">
- <div class="noteicon"><img src="{$imgsrc}" alt="{$alt}" title="{$alt}"/></div>
+ <div class="noteicon"><img src="{$imgsrc}" alt="{$alt}" title="{$alt}" style="{$iconsizestyle}"/></div>
<div class="notetext"><p><xsl:apply-templates /></p></div>
</div>
<br/>
@@ -1197,9 +1198,7 @@
<xsl:call-template name="convert2px"><xsl:with-param name="value" select="@height"/></xsl:call-template>
</xsl:if>
</xsl:variable>
- <img src="{$src2}" alt="{$alt}" title="{$alt}">
- <xsl:attribute name="style"><xsl:value-of select="$width"/><xsl:value-of select="$height"/></xsl:attribute>
- </img>
+ <img src="{$src2}" alt="{$alt}" title="{$alt}" style="{concat('width:',$width,';height:',$height)}"/>
</xsl:template>
<!-- Insert an object -->