@hidoo/styleunit

v1.0.0-alpha.9

The unit oriented CSS framework implemented in Sass.

unit-icon

The icon unit.

The core module.

The default style.

default
<span class="unit-icon"></span>

The type module.

The additional modifiers.

unit-icon--type-example-a
Example a type (Type: svg)
unit-icon--type-example-b
Example b type (Type: svg, Options: responsive: true)
unit-icon--type-example-c
Example c type (Type: image, Options: use2x: true)
unit-icon--type-example-d
Example d type (Type: image, Options: responsive: true, use2x: "sm")
<!-- single -->
<span class="unit-icon  {{modifier_class}}"></span>
<!-- a child -->
<a href="javascript:;">
  <span class="unit-icon  {{modifier_class}}"></span>
</a>
<!-- a child (current) -->
<a class="is-current" href="#">
  <span class="unit-icon  {{modifier_class}}"></span>
</a>
<!-- button child (disabled) -->
<button disabled="disabled">
  <span class="unit-icon  {{modifier_class}}"></span>
</button>