Inline
Displays ideogram inside text.
I'm an inlinebutton icon
| I'm an inline
+icon('button')
| button icon
I'm an inline
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
Displays ideogram inside text.
| I'm an inline
+icon('button')
| button icon
I'm an inline
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
Displays ideogram as block.
| I'm block-level
+icon('button', 'block')
| button icon
I'm block-level
<svg class="icon icon--block">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
Width and height equals to parent's font size.
I'm the same iconinside paragraph
h2 I'm an icon
+icon('button')
| inside header
p I'm the same icon
+icon('button')
| inside paragraph
<h2>
I'm an icon
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
inside header
</h2>
<p>
I'm the same icon
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
inside paragraph
</h2>
Sized by predefined metrics.
+icon('button', 'nano')
| nano
br
+icon('button', 'mini')
| mini
br
+icon('button', 'tiny')
| tiny
br
+icon('button', 'small')
| small
br
+icon('button', 'default')
| default
br
+icon('button', 'medium')
| medium
br
+icon('button', 'big')
| big
br
+icon('button', 'large')
| large
br
+icon('button', 'huge')
| huge
br
+icon('button', 'massive')
| massive
br
+icon('button', 'giant')
| giant
<svg class="icon icon--nano">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
nano
<br>
<svg class="icon icon--mini">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
mini
<br>
<svg class="icon icon--tiny">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
tiny
<br>
<svg class="icon icon--small">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
small
<br>
<svg class="icon icon--default">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
default
<br>
<svg class="icon icon--medium">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
medium
<br>
<svg class="icon icon--big">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
big
<br>
<svg class="icon icon--large">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
large
<br>
<svg class="icon icon--huge">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
huge
<br>
<svg class="icon icon--massive">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
massive
<br>
<svg class="icon icon--giant">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
giant
<br>
Adds left and right margin.
| I'm fitted
+icon('button')
| button icon (default)
br
| I'm an optical-spaced
+icon('button', 'optical')
| button icon
br
| I'm a padded
+icon('button', 'padded')
| button icon
br
| I'm a relaxed
+icon('button', 'relaxed')
| button icon
br
+icon('button', 'initial')
| I'm an icon that starts a line
I'm fitted
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon (default)
<br>
I'm an optical-spaced
<svg class="icon icon--optical">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
<br>
I'm an padded
<svg class="icon icon--padded">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
<br>
I'm an relaxed
<svg class="icon icon--relaxed">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
button icon
<br>
<svg class="icon icon--initial">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
I'm an icon that starts a line
Inherits parent's fill
attribute value.
div(style="fill: maroon")
| I'm
+icon('button')
| maroon icon
<div style="fill: maroon">
I'm
<svg class="icon">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
maroon icon
</div>
Can be one of predefined colors.
| I'm
+icon('button', 'primary', 'padded')
| primary colored padded icon
I'm
<svg class="icon icon--primary icon--padded">
<use xlink:href="../img/vectors.svg#icon-button"></use>
</svg>
primary colored padded icon