Skip to content

Commit

Permalink
Added an invisible backing rectangle to each icon to make them easier…
Browse files Browse the repository at this point in the history
… to select in Pencil.
  • Loading branch information
nathanielw committed Nov 30, 2015
1 parent 3aaf854 commit 35dd733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stylesheet.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@
<Transform>scale($box.w/<xsl:value-of select="$svg/@width" />, $box.h/<xsl:value-of select="$svg/@height" />)</Transform>
<Fill>$fillColor</Fill>
</For>
<For ref="bgRect">
<Box>$box</Box>
</For>
</Behaviors>
<p:Content xmlns:p="http://www.evolus.vn/Namespace/Pencil" xmlns="http://www.w3.org/2000/svg">
<rect id="bgRect" style="fill: #000000; fill-opacity: 0; stroke: none;" x="0" y="0" />
<g id="icon">
<xsl:apply-templates select="$svg/*"/>
</g>
Expand Down

0 comments on commit 35dd733

Please # to comment.