@hidoo/styleunit

v1.0.0-alpha.9

The unit oriented CSS framework implemented in Sass.

unit-button

The button unit.

The core module.

The default style.

<!-- with anchor element -->
<a class="unit-button" href="#">
  <span class="unit-button__label  unit-text">Lorem ipsum dolor sit amet.</span>
</a>
<!-- with button element -->
<button class="unit-button">
  <span class="unit-button__label  unit-text">あのイーハトーヴォのすきとおった風。</span>
</button>

The theme module.

The theme modifiers.

<!-- with anchor element -->
<a class="unit-button  {{modifier_class}}" href="#">
  <span class="unit-button__label  unit-text">Lorem ipsum dolor sit amet.</span>
</a>
<!-- with button element -->
<button class="unit-button  {{modifier_class}}">
  <span class="unit-button__label  unit-text">あのイーハトーヴォのすきとおった風。</span>
</button>

The inline module.

The inline modifiers.

<!-- with anchor element -->
<a class="unit-button  unit-button--theme-normal  {{modifier_class}}" href="#">
  <span class="unit-button__label  unit-text">Lorem ipsum dolor sit amet.</span>
</a>
<!-- with button element -->
<button class="unit-button  unit-button--theme-normal  {{modifier_class}}">
  <span class="unit-button__label  unit-text">あのイーハトーヴォのすきとおった風。</span>
</button>