Skip to content

Commit e8c453d

Browse files
committed
Add indeterminate-state in css
1 parent a628c8a commit e8c453d

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

awesome-bootstrap-checkbox.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@
5151
font-family: "FontAwesome";
5252
content: "\f00c";
5353
}
54+
.checkbox input[type="checkbox"]:indeterminate + label::after,
55+
.checkbox input[type="radio"]:indeterminate + label::after {
56+
display: block;
57+
content: "";
58+
width: 10px;
59+
height: 3px;
60+
background-color: #555555;
61+
border-radius: 2px;
62+
margin-left: -16.5px;
63+
margin-top: 7px;
64+
}
5465
.checkbox input[type="checkbox"]:disabled + label,
5566
.checkbox input[type="radio"]:disabled + label {
5667
opacity: 0.65;
@@ -117,6 +128,61 @@
117128
color: #fff;
118129
}
119130

131+
.checkbox-primary input[type="checkbox"]:indeterminate + label::before,
132+
.checkbox-primary input[type="radio"]:indeterminate + label::before {
133+
background-color: #337ab7;
134+
border-color: #337ab7;
135+
}
136+
137+
.checkbox-primary input[type="checkbox"]:indeterminate + label::after,
138+
.checkbox-primary input[type="radio"]:indeterminate + label::after {
139+
background-color: #fff;
140+
}
141+
142+
.checkbox-danger input[type="checkbox"]:indeterminate + label::before,
143+
.checkbox-danger input[type="radio"]:indeterminate + label::before {
144+
background-color: #d9534f;
145+
border-color: #d9534f;
146+
}
147+
148+
.checkbox-danger input[type="checkbox"]:indeterminate + label::after,
149+
.checkbox-danger input[type="radio"]:indeterminate + label::after {
150+
background-color: #fff;
151+
}
152+
153+
.checkbox-info input[type="checkbox"]:indeterminate + label::before,
154+
.checkbox-info input[type="radio"]:indeterminate + label::before {
155+
background-color: #5bc0de;
156+
border-color: #5bc0de;
157+
}
158+
159+
.checkbox-info input[type="checkbox"]:indeterminate + label::after,
160+
.checkbox-info input[type="radio"]:indeterminate + label::after {
161+
background-color: #fff;
162+
}
163+
164+
.checkbox-warning input[type="checkbox"]:indeterminate + label::before,
165+
.checkbox-warning input[type="radio"]:indeterminate + label::before {
166+
background-color: #f0ad4e;
167+
border-color: #f0ad4e;
168+
}
169+
170+
.checkbox-warning input[type="checkbox"]:indeterminate + label::after,
171+
.checkbox-warning input[type="radio"]:indeterminate + label::after {
172+
background-color: #fff;
173+
}
174+
175+
.checkbox-success input[type="checkbox"]:indeterminate + label::before,
176+
.checkbox-success input[type="radio"]:indeterminate + label::before {
177+
background-color: #5cb85c;
178+
border-color: #5cb85c;
179+
}
180+
181+
.checkbox-success input[type="checkbox"]:indeterminate + label::after,
182+
.checkbox-success input[type="radio"]:indeterminate + label::after {
183+
background-color: #fff;
184+
}
185+
120186
.radio {
121187
padding-left: 20px;
122188
}

0 commit comments

Comments
 (0)