<i class="base-icon" title="Base icon">
<svg class="icon" preserveAspectRatio="xMaxYMin">
<use xlink:href="/static/symbol-defs.svg#icon-plus" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"></use>
</svg>
</i>
<i class="base-icon" title="{{ title }}">
<svg class="icon" preserveAspectRatio="xMaxYMin">
<use xlink:href="/static/symbol-defs.svg#icon-{{ symbol }}" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"></use>
</svg>
</i>
{
"symbol": "plus",
"title": "Base icon"
}
.base-icon {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.375rem;
.icon {
display: inline-block;
width: 1em;
height: 1em;
stroke-width: 0;
stroke: currentColor;
fill: currentColor;
}
&--xxl {
.icon {
width: 12rem;
height: 12rem;
}
}
&--xl {
.icon {
width: 8rem;
height: 8rem;
}
}
&--large {
.icon {
width: 4rem;
height: 4rem;
}
}
}
No notes defined.