File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,20 @@ $check-icon: $fa-var-check !default;
20
20
}
21
21
}
22
22
23
+ @mixin checkbox-variant-indeterminate ($parent , $color ) {
24
+ #{$parent } input [type = " checkbox" ]:indeterminate + label ,
25
+ #{$parent } input [type = " radio" ]:indeterminate + label {
26
+ & ::before {
27
+ background-color : $color ;
28
+ border-color : $color ;
29
+ }
30
+ & ::after {
31
+ background-color : #fff ;
32
+ }
33
+ }
34
+ }
35
+
36
+
23
37
24
38
.checkbox {
25
39
padding-left : 20px ;
@@ -73,6 +87,17 @@ $check-icon: $fa-var-check !default;
73
87
content : $check-icon ;
74
88
}
75
89
90
+ & :indeterminate + label ::after {
91
+ display : block ;
92
+ content : " " ;
93
+ width : 10px ;
94
+ height : 3px ;
95
+ background-color : #555555 ;
96
+ border-radius : 2px ;
97
+ margin-left : -16.5px ;
98
+ margin-top : 7px ;
99
+ }
100
+
76
101
& :disabled + label {
77
102
opacity : 0.65 ;
78
103
@@ -99,6 +124,13 @@ $check-icon: $fa-var-check !default;
99
124
@include checkbox-variant (' .checkbox-warning' , $brand-warning );
100
125
@include checkbox-variant (' .checkbox-success' , $brand-success );
101
126
127
+
128
+ @include checkbox-variant-indeterminate (' .checkbox-primary' , $brand-primary );
129
+ @include checkbox-variant-indeterminate (' .checkbox-danger' , $brand-danger );
130
+ @include checkbox-variant-indeterminate (' .checkbox-info' , $brand-info );
131
+ @include checkbox-variant-indeterminate (' .checkbox-warning' , $brand-warning );
132
+ @include checkbox-variant-indeterminate (' .checkbox-success' , $brand-success );
133
+
102
134
//
103
135
// Radios
104
136
// --------------------------------------------------
You can’t perform that action at this time.
0 commit comments