Skip to content

Commit e14cffc

Browse files
committed
Add indeterminate-state in less
1 parent e8c453d commit e14cffc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

awesome-bootstrap-checkbox.less

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@
1919
}
2020
}
2121

22+
.checkbox-variant-indeterminate(@parent, @color) {
23+
.@{parent} input[type="checkbox"]:indeterminate + label,
24+
.@{parent} input[type="radio"]:indeterminate + label {
25+
&::before {
26+
background-color: @color;
27+
border-color: @color;
28+
}
29+
&::after {
30+
background-color: #fff;
31+
}
32+
}
33+
}
34+
2235

2336
.checkbox{
2437
padding-left: 20px;
@@ -72,6 +85,17 @@
7285
content: @check-icon;
7386
}
7487

88+
&:indeterminate + label::after{
89+
display: block;
90+
content: " ";
91+
width: 10px;
92+
height: 3px;
93+
background-color: #555555;
94+
border-radius: 2px;
95+
margin-left: -16.5px;
96+
margin-top: 7px;
97+
}
98+
7599
&:disabled + label{
76100
opacity: 0.65;
77101

@@ -98,6 +122,12 @@
98122
.checkbox-variant(checkbox-warning, @brand-warning);
99123
.checkbox-variant(checkbox-success, @brand-success);
100124

125+
.checkbox-variant-indeterminate(checkbox-primary, @brand-primary);
126+
.checkbox-variant-indeterminate(checkbox-danger, @brand-danger);
127+
.checkbox-variant-indeterminate(checkbox-info, @brand-info);
128+
.checkbox-variant-indeterminate(checkbox-warning, @brand-warning);
129+
.checkbox-variant-indeterminate(checkbox-success, @brand-success);
130+
101131
//
102132
// Radios
103133
// --------------------------------------------------

0 commit comments

Comments
 (0)