forked from bantikyan/icheck-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_icheck-material-theme.scss
42 lines (36 loc) · 1.18 KB
/
_icheck-material-theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@mixin theme-advanced($border-color, $background-color, $checkbox-checkmark-color, $radio-checkmark-color, $effect-color) {
> input:first-child {
background-color: $effect-color;
&::-ms-check {
background-color: $effect-color;
}
&:not(:checked):not(:disabled):hover {
+ label::before,
+ input[type="hidden"] + label::before {
border-color: $border-color;
}
}
&:checked {
+ label::before,
+ input[type="hidden"] + label::before {
background-color: $background-color;
border-color: $border-color;
}
+ label::after,
+ input[type="hidden"] + label::after {
border-bottom-color: $checkbox-checkmark-color;
border-right-color: $checkbox-checkmark-color;
}
}
}
> input[type="radio"]:first-child:checked {
+ label::after,
+ input[type="hidden"] + label::after {
background-color: $radio-checkmark-color;
}
}
}
@mixin theme($color) {
@include theme-advanced($color, $color, #fff, $color, $color);
}