27 lines
588 B
SCSS
27 lines
588 B
SCSS
@mixin checkbox-variant($parent, $color) {
|
|
#{$parent} input[type="checkbox"]:checked + label,
|
|
#{$parent} input[type="radio"]:checked + label {
|
|
&::before {
|
|
background-color: $color;
|
|
border-color: $color;
|
|
}
|
|
|
|
&::after {
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
@mixin checkbox-variant-indeterminate($parent, $color) {
|
|
#{$parent} input[type="checkbox"]:indeterminate + label,
|
|
#{$parent} input[type="radio"]:indeterminate + label {
|
|
&::before {
|
|
background-color: $color;
|
|
border-color: $color;
|
|
}
|
|
&::after{
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
}
|