Toggles
Toggle Switch
Browser must support
:checked
pseudo class on checkbox element. For older browsers set css oninput.toggle-switch
toposition: static
and hide the.toggle-switch-bar
element to display a regular checkbox.
Toggle Switches with Icons
Add an icon to the switch for the on position with
<span class="button-icon button-icon-on icon-volume-up toggle-switch-icon"></span>
.Add an icon to the switch for the off position with
<span class="button-icon button-icon-off icon-volume-off toggle-switch-icon"></span>
.Substitute
icon-volume-up
/icon-volume-down
with any font awesome icon.
Toggle Switches with Icons (Alternate)
Add an icon to the switch for the on position with
<span aria-hidden="true" class="icon-ok toggle-switch-icon toggle-switch-icon-on"></span>
.Add an icon to the switch for the off position with
<span aria-hidden="true" class="icon-remove toggle-switch-icon toggle-switch-icon-off"></span>
.Substitute
icon-ok
/icon-remove
with any font awesome icon.