3 * From https://github.com/flatlogic/awesome-bootstrap-checkbox
10 -webkit-touch-callout: none;
11 -webkit-user-select: none;
12 -khtml-user-select: none;
13 -moz-user-select: none;
14 -ms-user-select: none;
17 .checkbox label::before {
19 display: inline-block;
25 border: 1px solid @gray-light;
27 background-color: @body-bg;
28 -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
29 -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
30 transition: border 0.15s ease-in-out, color 0.15s ease-in-out; }
31 .checkbox label::after {
32 display: inline-block;
43 .checkbox input[type="checkbox"] {
45 .checkbox input[type="checkbox"]:checked + label::after {
46 font-family: 'Font Awesome 5 Free';
49 .checkbox input[type="checkbox"]:disabled + label {
51 .checkbox input[type="checkbox"]:disabled + label::before {
52 background-color: @gray-lighter;
53 cursor: not-allowed; }
54 .checkbox.checkbox-circle label::before {
57 .checkbox-primary input[type="checkbox"]:checked + label::before {
58 background-color: @brand-primary;
59 border-color: @brand-primary; }
60 .checkbox-primary input[type="checkbox"]:checked + label::after {
63 .checkbox-danger input[type="checkbox"]:checked + label::before {
64 background-color: @brand-danger;
65 border-color: @brand-danger; }
66 .checkbox-danger input[type="checkbox"]:checked + label::after {
69 .checkbox-info input[type="checkbox"]:checked + label::before {
70 background-color: @brand-info;
71 border-color: @brand-info; }
72 .checkbox-info input[type="checkbox"]:checked + label::after {
75 .checkbox-warning input[type="checkbox"]:checked + label::before {
76 background-color: @brand-warning;
77 border-color: @brand-warning; }
78 .checkbox-warning input[type="checkbox"]:checked + label::after {
81 .checkbox-success input[type="checkbox"]:checked + label::before {
82 background-color: @brand-success;
83 border-color: @brand-success; }
84 .checkbox-success input[type="checkbox"]:checked + label::after {
87 /* before is the outer cicle */
88 /* after is the inner circle.. */
93 display: inline-block;
96 .radio label::before {
98 display: inline-block;
104 border: 1px solid @gray-light;
106 background-color: @body-bg;
107 -webkit-transition: border 0.15s ease-in-out;
108 -o-transition: border 0.15s ease-in-out;
109 transition: border 0.15s ease-in-out; }
110 .radio label::after {
111 display: inline-block;
120 background-color: @body-bg;
121 -webkit-transform: scale(0, 0);
122 -ms-transform: scale(0, 0);
123 -o-transform: scale(0, 0);
124 transform: scale(0, 0);
125 -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
126 -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
127 -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
128 transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
130 .radio input[type="radio"] {
133 .radio input[type="radio"]:checked + label::after {
134 -webkit-transform: scale(1, 1);
135 -ms-transform: scale(1, 1);
136 -o-transform: scale(1, 1);
137 transform: scale(1, 1);
138 background-color: @gray;
140 .radio input[type="radio"]:disabled + label {
142 .radio input[type="radio"]:disabled + label::before {
143 cursor: not-allowed; }
145 .radio-primary input[type="radio"] + label::after {
146 background-color: @body-bg; }
147 .radio-primary input[type="radio"]:checked + label::before {
148 border-color: @brand-primary; }
149 .radio-primary input[type="radio"]:checked + label::after {
150 background-color: @brand-primary; }
152 .radio-danger input[type="radio"] + label::after {
153 background-color: @brand-danger; }
154 .radio-danger input[type="radio"]:checked + label::before {
155 border-color: @brand-danger; }
156 .radio-danger input[type="radio"]:checked + label::after {
157 background-color: @brand-danger; }
161 .radio-info input[type="radio"] + label::after {
162 background-color: @body-bg;
164 .radio-info input[type="radio"]:checked + label::before {
165 border-color: @brand-info; }
166 .radio-info input[type="radio"]:checked + label::after {
167 background-color: @brand-info; }
169 .radio-warning input[type="radio"] + label::after {
170 background-color: @body-bg; }
171 .radio-warning input[type="radio"]:checked + label::before {
172 border-color: @brand-warning; }
173 .radio-warning input[type="radio"]:checked + label::after {
174 background-color: @brand-warning; }
176 .radio-success input[type="radio"] + label::after {
177 background-color: @body-bg; }
178 .radio-success input[type="radio"]:checked + label::before {
179 border-color: @brand-success; }
180 .radio-success input[type="radio"]:checked + label::after {
181 background-color: @brand-success; }
183 .checkbox.checkbox-inline,
184 .radio.radio-inline {