Note: the scss need Compass to compile correctly
Demo: Codepen (IE 9+)
The utilisation is simple just use the .ios-custom
class on any checkbox.
<input type="checkbox" class="ios-custom" id="switch"/>
<label for="switch"></label>
Has these styles are basically hiding the <input type="checkbox">
and styling the <label>
. The label must follow the input for the styles to apply correctly
####With label
<input type="checkbox" class="ios-custom" id="switch2" checked />
<label for="switch2">I'm a label</label>
####Inverted
<input type="checkbox" class="ios-custom inverted" id="switch_inverted" checked />
<label for="switch_inverted">I'm a label aligned right</label>
####Small
<input type="checkbox" class="ios-custom small" id="switch_small" checked />
<label for="switch_small">I'm small</label>
####Large
<input type="checkbox" class="ios-custom large" id="switch_large" checked />
<label for="switch_large">I'm large</label>
####Colored with the @mixin
$color-name : 'sunflower';
$color-value : #F1C40F;
@include ios-checkbox( $color-name , $color-value );
<div class="sunflower">
<input type="checkbox" class="ios-custom" id="switch_large" checked />
<label for="switch_large">I'm a label</label>
</div>
####or
<input type="checkbox" class="ios-custom sunflower" id="switch_large" checked />
<label for="switch_large">I'm a label</label>