_icheck-bootstrap.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Plugin: iCheck Bootstrap
  3. * ------------------------
  4. */
  5. // iCheck colors (theme colors)
  6. @each $name, $color in $theme-colors {
  7. .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):hover + label::before,
  8. .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
  9. border-color: #{$color};
  10. }
  11. .icheck-#{$name} > input:first-child:checked + label::before,
  12. .icheck-#{$name} > input:first-child:checked + input[type="hidden"] + label::before {
  13. background-color: #{$color};
  14. border-color: #{$color};
  15. }
  16. }
  17. // iCheck colors (colors)
  18. @each $name, $color in $colors {
  19. .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):hover + label::before,
  20. .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):hover + input[type="hidden"] + label::before {
  21. border-color: #{$color};
  22. }
  23. .icheck-#{$name} > input:first-child:checked + label::before,
  24. .icheck-#{$name} > input:first-child:checked + input[type="hidden"] + label::before {
  25. background-color: #{$color};
  26. border-color: #{$color};
  27. }
  28. }