btn-danger on switch will make it red for on and black for off

pull/4/head
Mark McDowall 11 years ago committed by kay.one
parent 091ec312c8
commit a6e54a627e

@ -4,9 +4,17 @@
.toggle { .toggle {
.slide-button { .slide-button {
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight); .buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
&.btn-danger {
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
}
} }
input:first-of-type:checked ~ .slide-button { input:first-of-type:checked ~ .slide-button {
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight); .buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
&.btn-danger {
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
}
} }
} }

@ -23,7 +23,7 @@
<span>No</span> <span>No</span>
</p> </p>
<div class="btn btn-primary slide-button"/> <div class="btn slide-button btn-danger"/>
</label> </label>
<span class="help-inline-checkbox"> <span class="help-inline-checkbox">

Loading…
Cancel
Save