-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_LabelledCheckbox.scss
34 lines (31 loc) · 1.21 KB
/
_LabelledCheckbox.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
@import 'Checkbox';
@mixin LabelledCheckbox(
$size: $default-checkbox-size,
$thickness: $default-checkbox-thickness,
$color: $default-checkbox-color,
$border-thickness: $default-checkbox-border-thickness,
$border-radius: $default-checkbox-border-radius,
$desaturate-percentage: $default-checkbox-desaturate-percentage,
$type: $default-checkbox-type) {
input[type=checkbox] {
@include Checkbox(
$size: $size, $thickness: $thickness, $color: $color,
$border-thickness: $border-thickness, $border-radius: $border-radius,
$desaturate-percentage: $desaturate-percentage, $type: $type);
}
&:hover {
cursor: pointer;
input[type=checkbox] + * {
@include CheckboxHover(
$size: $size, $thickness: $thickness, $color: $color,
$border-thickness: $border-thickness, $border-radius: $border-radius,
$desaturate-percentage: $desaturate-percentage, $type: $type);
}
input[type=checkbox]:checked {
@include Checkbox(
$size: $size, $thickness: $thickness, $color: $color,
$border-thickness: $border-thickness, $border-radius: $border-radius,
$desaturate-percentage: $desaturate-percentage, $type: $type);
}
}
}