kullandığınız etiketin sonra pseudo-element stil edecek onay kutusu girişine Sınıf ekleme - İçi dolu sınıf veya olmadan. CSS renk anahtar kelimesini ihtiyaç duyacağınız yere koymalıydınız ... ihtiyacınız olan renk için 'indigo'yu değiştirmeliyim.
*** Not - Ligthen ve Darken sınıfları bununla çalışmaz.
.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/
Büyük! Teşekkür ederim! – arnuga3
Sadece bunu denedim ve işe yaramıyor. Değiştiyse bir fikrin var mı? –
@ Stupid.Fat.Cat make it 'label: önce' yerine 'yalancı el – mg87