のスタイルをしますチェックボックスの入力にクラスを追加します。クラスなし。 あなたはCSSカラーキーワードをneedbeとして入れなければなりません...あなたが必要とする色のために私の 'インディゴ'を置き換えてください。
***注 - LigthenクラスとDarkenクラスはこれでは機能しません。
.checkbox-indigo[type="checkbox"] + label:before{
border: 2px solid indigo;
background: transparent;
}
.checkbox-indigo[type="checkbox"]:checked + label:before{
border: 2px solid transparent;
border-bottom: 2px solid indigo;
border-right: 2px solid indigo;
background: transparent;
}
.checkbox-indigo.filled-in[type="checkbox"] + label:after{
border: 2px solid indigo;
background: transparent;
}
.checkbox-indigo.filled-in[type="checkbox"]:checked + label:after{
background: indigo;
}
.checkbox-indigo.filled-in[type="checkbox"]:checked + label:before{
border-top: 2px solid transparent;
border-left: 2px solid transparent;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}
http://embed.plnkr.co/zWaJVtsAVXxs0fVLmxRH/
グレート!ありがとうございました! – arnuga3
私はこれを試しましたが、動作していないようです。それが変更されている場合、任意のアイデア? –
@ Stupid.Fat.Catは 'after'疑似elの代わりに' label:before'にします – mg87