Skip to content

Commit 9152946

Browse files
author
Tim van der Horst
committed
'check-icon' SASS/LESS variable for using a different icon font, or if FA's variables aren't included.
1 parent bdf5c2f commit 9152946

2 files changed

+8
-4
lines changed

awesome-bootstrap-checkbox.less

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// --------------------------------------------------
44

55
@font-family-icon: 'FontAwesome';
6+
@fa-var-check: "\f00c";
7+
@check-icon: @fa-var-check;
68

79
.checkbox-variant(@parent, @color) {
810
.@{parent} input[type="checkbox"]:checked + label,
@@ -67,7 +69,7 @@
6769

6870
&:checked + label::after{
6971
font-family: @font-family-icon;
70-
content: @fa-var-check;
72+
content: @check-icon;
7173
}
7274

7375
&:disabled + label{
@@ -196,7 +198,7 @@ input[type="checkbox"],
196198
input[type="radio"] {
197199
&.styled:checked + label:after {
198200
font-family: @font-family-icon;
199-
content: @fa-var-check;
201+
content: @check-icon;
200202
}
201203
& .styled:checked + label {
202204
&::before {

awesome-bootstrap-checkbox.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55

66
$font-family-icon: 'FontAwesome' !default;
7+
$fa-var-check: "\f00c" !default;
8+
$check-icon: $fa-var-check !default;
79

810
@mixin checkbox-variant($parent, $color) {
911
#{$parent} input[type="checkbox"]:checked + label,
@@ -68,7 +70,7 @@ $font-family-icon: 'FontAwesome' !default;
6870

6971
&:checked + label::after{
7072
font-family: $font-family-icon;
71-
content: $fa-var-check;
73+
content: $check-icon;
7274
}
7375

7476
&:disabled + label{
@@ -198,7 +200,7 @@ input[type="checkbox"],
198200
input[type="radio"] {
199201
&.styled:checked + label:after {
200202
font-family: $font-family-icon;
201-
content: $fa-var-check;
203+
content: $check-icon;
202204
}
203205
& .styled:checked + label {
204206
&::before {

0 commit comments

Comments
 (0)