Skip to content

Commit

Permalink
feat: add border-color for has-danger class #111
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaSavchenko committed Feb 27, 2017
1 parent 8198181 commit abbaefb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions awesome-bootstrap-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,6 @@ input[type="radio"] .styled:checked + label::before {
input[type="checkbox"] .styled:checked + label::after,
input[type="radio"] .styled:checked + label::after {
color: #fff; }

.has-danger .abc-checkbox label:before, .has-danger .abc-radio label:before {
border-color: #d9534f; }
10 changes: 10 additions & 0 deletions awesome-bootstrap-checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,13 @@ input[type="radio"] {
}
}
}

.has-danger {
.abc-checkbox, .abc-radio {
label {
&:before {
border-color: $brand-danger;
}
}
}
}
3 changes: 3 additions & 0 deletions demo/build.css
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,6 @@ input[type="radio"] .styled:checked + label::before {
input[type="checkbox"] .styled:checked + label::after,
input[type="radio"] .styled:checked + label::after {
color: #fff; }

.has-danger .abc-checkbox label:before, .has-danger .abc-radio label:before {
border-color: #d9534f; }

0 comments on commit abbaefb

Please sign in to comment.