Form Icon
An icon can be wrapped in the left or right of a form element.
Icon in the Left
To wrap an icon in the left of a form element,
add the .fm-ico-left
class to the .fm
container,
then wrap an icon element inside.
<div class="fm fm-text fm-ico-left fm-small">
<input placeholder="A text field with an icon in the left">
<i class="ico ico-search"></i>
</div>
<div class="fm fm-text fm-ico-left">
<input placeholder="A text field with an icon in the left">
<i class="ico ico-search"></i>
</div>
<div class="fm fm-text fm-ico-left fm-large">
<input placeholder="A text field with an icon in the left">
<i class="ico ico-search"></i>
</div>
Icon in the Right
To wrap an icon in the right of a form element,
add the .fm-ico-right
class to the .fm
container,
then wrap an icon element inside.
mail
mail
mail
<div class="fm fm-select fm-ico-right fm-small">
<select placeholder="A select field with an icon in the right">
<option>Gmail</option>
<option>Hotmail</option>
</select>
<i class="ico material-icons">mail</i>
</div>
<div class="fm fm-select fm-ico-right">
<select placeholder="A select field with an icon in the right">
<option>Gmail</option>
<option>Hotmail</option>
</select>
<i class="ico material-icons">mail</i>
</div>
<div class="fm fm-select fm-ico-right fm-large">
<select placeholder="A select field with an icon in the right">
<option>Gmail</option>
<option>Hotmail</option>
</select>
<i class="ico material-icons">mail</i>
</div>
Sass Variables
$form-element-icon-size-em: 1.286em !default
$form-element-icon-color: $form-element-border-color !default
$form-element-icon-color-on-error: $form-element-border-color-on-error !default
$form-element-icon-color-on-focus: $form-element-border-color-on-focus !default