Project

General

Profile

1
.checkbox {
2
  padding-left: 20px;
3
}
4
.checkbox label {
5
  display: inline-block;
6
  vertical-align: middle;
7
  position: relative;
8
  padding-left: 5px;
9
}
10
.checkbox label::before {
11
  content: "";
12
  display: inline-block;
13
  position: absolute;
14
  width: 17px;
15
  height: 17px;
16
  left: 0;
17
  margin-left: -20px;
18
  border: 1px solid #cccccc;
19
  border-radius: 3px;
20
  background-color: #fff;
21
  -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
22
  -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
23
  transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
24
}
25
.checkbox label::after {
26
  display: inline-block;
27
  position: absolute;
28
  width: 16px;
29
  height: 16px;
30
  left: 0;
31
  top: 0;
32
  margin-left: -20px;
33
  padding-left: 3px;
34
  padding-top: 1px;
35
  font-size: 11px;
36
  color: #555555;
37
}
38
.checkbox input[type="checkbox"],
39
.checkbox input[type="radio"] {
40
  opacity: 0;
41
  z-index: 1;
42
}
43
.checkbox input[type="checkbox"]:focus + label::before,
44
.checkbox input[type="radio"]:focus + label::before {
45
  outline: thin dotted;
46
  outline: 5px auto -webkit-focus-ring-color;
47
  outline-offset: -2px;
48
}
49
.checkbox input[type="checkbox"]:checked + label::after,
50
.checkbox input[type="radio"]:checked + label::after {
51
  font-family: "FontAwesome";
52
  content: "\f00c";
53
}
54
.checkbox input[type="checkbox"]:disabled + label,
55
.checkbox input[type="radio"]:disabled + label {
56
  opacity: 0.65;
57
}
58
.checkbox input[type="checkbox"]:disabled + label::before,
59
.checkbox input[type="radio"]:disabled + label::before {
60
  background-color: #eeeeee;
61
  cursor: not-allowed;
62
}
63
.checkbox.checkbox-circle label::before {
64
  border-radius: 50%;
65
}
66
.checkbox.checkbox-inline {
67
  margin-top: 0;
68
}
69

    
70
.checkbox-primary input[type="checkbox"]:checked + label::before,
71
.checkbox-primary input[type="radio"]:checked + label::before {
72
  background-color: #337ab7;
73
  border-color: #337ab7;
74
}
75
.checkbox-primary input[type="checkbox"]:checked + label::after,
76
.checkbox-primary input[type="radio"]:checked + label::after {
77
  color: #fff;
78
}
79

    
80
.checkbox-danger input[type="checkbox"]:checked + label::before,
81
.checkbox-danger input[type="radio"]:checked + label::before {
82
  background-color: #d9534f;
83
  border-color: #d9534f;
84
}
85
.checkbox-danger input[type="checkbox"]:checked + label::after,
86
.checkbox-danger input[type="radio"]:checked + label::after {
87
  color: #fff;
88
}
89

    
90
.checkbox-info input[type="checkbox"]:checked + label::before,
91
.checkbox-info input[type="radio"]:checked + label::before {
92
  background-color: #5bc0de;
93
  border-color: #5bc0de;
94
}
95
.checkbox-info input[type="checkbox"]:checked + label::after,
96
.checkbox-info input[type="radio"]:checked + label::after {
97
  color: #fff;
98
}
99

    
100
.checkbox-warning input[type="checkbox"]:checked + label::before,
101
.checkbox-warning input[type="radio"]:checked + label::before {
102
  background-color: #f0ad4e;
103
  border-color: #f0ad4e;
104
}
105
.checkbox-warning input[type="checkbox"]:checked + label::after,
106
.checkbox-warning input[type="radio"]:checked + label::after {
107
  color: #fff;
108
}
109

    
110
.checkbox-success input[type="checkbox"]:checked + label::before,
111
.checkbox-success input[type="radio"]:checked + label::before {
112
  background-color: #5cb85c;
113
  border-color: #5cb85c;
114
}
115
.checkbox-success input[type="checkbox"]:checked + label::after,
116
.checkbox-success input[type="radio"]:checked + label::after {
117
  color: #fff;
118
}
119

    
120
.radio {
121
  padding-left: 20px;
122
}
123
.radio label {
124
  display: inline-block;
125
  vertical-align: middle;
126
  position: relative;
127
  padding-left: 5px;
128
}
129
.radio label::before {
130
  content: "";
131
  display: inline-block;
132
  position: absolute;
133
  width: 17px;
134
  height: 17px;
135
  left: 0;
136
  margin-left: -20px;
137
  border: 1px solid #cccccc;
138
  border-radius: 50%;
139
  background-color: #fff;
140
  -webkit-transition: border 0.15s ease-in-out;
141
  -o-transition: border 0.15s ease-in-out;
142
  transition: border 0.15s ease-in-out;
143
}
144
.radio label::after {
145
  display: inline-block;
146
  position: absolute;
147
  content: " ";
148
  width: 11px;
149
  height: 11px;
150
  left: 3px;
151
  top: 3px;
152
  margin-left: -20px;
153
  border-radius: 50%;
154
  background-color: #555555;
155
  -webkit-transform: scale(0, 0);
156
  -ms-transform: scale(0, 0);
157
  -o-transform: scale(0, 0);
158
  transform: scale(0, 0);
159
  -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
160
  -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
161
  -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
162
  transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
163
}
164
.radio input[type="radio"] {
165
  opacity: 0;
166
  z-index: 1;
167
}
168
.radio input[type="radio"]:focus + label::before {
169
  outline: thin dotted;
170
  outline: 5px auto -webkit-focus-ring-color;
171
  outline-offset: -2px;
172
}
173
.radio input[type="radio"]:checked + label::after {
174
  -webkit-transform: scale(1, 1);
175
  -ms-transform: scale(1, 1);
176
  -o-transform: scale(1, 1);
177
  transform: scale(1, 1);
178
}
179
.radio input[type="radio"]:disabled + label {
180
  opacity: 0.65;
181
}
182
.radio input[type="radio"]:disabled + label::before {
183
  cursor: not-allowed;
184
}
185
.radio.radio-inline {
186
  margin-top: 0;
187
}
188

    
189
.radio-primary input[type="radio"] + label::after {
190
  background-color: #337ab7;
191
}
192
.radio-primary input[type="radio"]:checked + label::before {
193
  border-color: #337ab7;
194
}
195
.radio-primary input[type="radio"]:checked + label::after {
196
  background-color: #337ab7;
197
}
198

    
199
.radio-danger input[type="radio"] + label::after {
200
  background-color: #d9534f;
201
}
202
.radio-danger input[type="radio"]:checked + label::before {
203
  border-color: #d9534f;
204
}
205
.radio-danger input[type="radio"]:checked + label::after {
206
  background-color: #d9534f;
207
}
208

    
209
.radio-info input[type="radio"] + label::after {
210
  background-color: #5bc0de;
211
}
212
.radio-info input[type="radio"]:checked + label::before {
213
  border-color: #5bc0de;
214
}
215
.radio-info input[type="radio"]:checked + label::after {
216
  background-color: #5bc0de;
217
}
218

    
219
.radio-warning input[type="radio"] + label::after {
220
  background-color: #f0ad4e;
221
}
222
.radio-warning input[type="radio"]:checked + label::before {
223
  border-color: #f0ad4e;
224
}
225
.radio-warning input[type="radio"]:checked + label::after {
226
  background-color: #f0ad4e;
227
}
228

    
229
.radio-success input[type="radio"] + label::after {
230
  background-color: #5cb85c;
231
}
232
.radio-success input[type="radio"]:checked + label::before {
233
  border-color: #5cb85c;
234
}
235
.radio-success input[type="radio"]:checked + label::after {
236
  background-color: #5cb85c;
237
}
238

    
239
input[type="checkbox"].styled:checked + label:after,
240
input[type="radio"].styled:checked + label:after {
241
  font-family: 'FontAwesome';
242
  content: "\f00c";
243
}
244
input[type="checkbox"] .styled:checked + label::before,
245
input[type="radio"] .styled:checked + label::before {
246
  color: #fff;
247
}
248
input[type="checkbox"] .styled:checked + label::after,
249
input[type="radio"] .styled:checked + label::after {
250
  color: #fff;
251
}
    (1-1/1)