Skip to content

Commit 51c483e

Browse files
author
Sergey
committed
Issue flatlogic#7 fixed
Now works in Opera 11,12... Added class="styled" for checkboxes.
1 parent 48387cf commit 51c483e

4 files changed

+237
-161
lines changed

awesome-bootstrap-checkbox.less

+15
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,18 @@
189189
.radio-variant(radio-info, @brand-info);
190190
.radio-variant(radio-warning, @brand-warning);
191191
.radio-variant(radio-success, @brand-success);
192+
193+
input[type="checkbox"] {
194+
&.styled:checked + label:after {
195+
font-family: 'FontAwesome';
196+
content: "\f00c";
197+
}
198+
& .styled:checked + label {
199+
&::before {
200+
color: #fff;
201+
}
202+
&::after {
203+
color: #fff;
204+
}
205+
}
206+
}

awesome-bootstrap-checkbox.scss

+16
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,19 @@ $font-family-icon: 'FontAwesome' !default;
189189
@include radio-variant('.radio-info', $brand-info);
190190
@include radio-variant('.radio-warning', $brand-warning);
191191
@include radio-variant('.radio-success', $brand-success);
192+
193+
194+
input[type="checkbox"] {
195+
&.styled:checked + label:after {
196+
font-family: 'FontAwesome';
197+
content: "\f00c";
198+
}
199+
& .styled:checked + label {
200+
&::before {
201+
color: #fff;
202+
}
203+
&::after {
204+
color: #fff;
205+
}
206+
}
207+
}

0 commit comments

Comments
 (0)