Using the Inline SVG Icons
==========================

Every svg icon stored in base/mpulsweb/templates/svg_icons/svg_icons.mako has an
id. With these id's you can add the different inline svg icons to your HTML.

<svg class="svg-class">
  <title>${_('Back to: Logbook')}</title>
  <use xlink:href="#svg-id" />
</svg>

The <title> tag is optional to show a description of the icon on hover.

In the class svg-class the following things can be specified:

 * height: 22px;
 * width: 22px;
 * fill: #00529E;
 * stroke: #00529E;



Add new inline svg icons
------------------------

In this structure the new svg symbols are added:

<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
    <symbol id="svg-id" viewBox="0 0 22 22">
    <path d="..." style="..."  transform=""/>
    </symbol>
</svg>


It is important that the viewBox is the same as that of the SVG icon you
created.

The <path> must be copied from the created SVG icon. Multiple <path> can be
combined in one or more <g> tags. The <g> tags can have attributes too. All this
must be copied into the inline SVG.

If a color for fill or stroke is specified in style it must be deleted. If not,
they cannot be controlled from the css.

In <path> you can delete information like inkscape:... and id. These are not
needed for displaying.

If you are not sure if you need an attribute you can test if the icon looks the
same without the attribute.

<path> with an own class or id can be controlled separately by css.
