@import "mixins/components.toggles"; .c-toggle { @include toggle; input:not(:checked) + .c-toggle__track { @include toggle__track--unchecked; .c-toggle__handle { @include toggle__handle--unchecked; } } input:disabled + .c-toggle__track { @include toggle__track--disabled; .c-toggle__handle { @include toggle__handle--disabled; } } } .c-toggle--primary .c-toggle__track { @include toggle__track--primary; } .c-toggle--secondary .c-toggle__track { @include toggle__track--secondary; } .c-toggle--success .c-toggle__track { @include toggle__track--success; } .c-toggle--error .c-toggle__track { @include toggle__track--error; } .c-toggle input { @include toggle__checkbox; } .c-toggle__track { @include toggle__track; } .c-toggle__handle { @include toggle__handle; }