|
1 |
| -.checkbox { |
| 1 | +.abc-checkbox { |
2 | 2 | padding-left: 20px;
|
3 | 3 | }
|
4 |
| -.checkbox label { |
| 4 | +.abc-checkbox label { |
5 | 5 | display: inline-block;
|
6 | 6 | vertical-align: middle;
|
7 | 7 | position: relative;
|
8 | 8 | padding-left: 5px;
|
9 | 9 | }
|
10 |
| -.checkbox label::before { |
| 10 | +.abc-checkbox label::before { |
11 | 11 | content: "";
|
12 | 12 | display: inline-block;
|
13 | 13 | position: absolute;
|
|
22 | 22 | -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
|
23 | 23 | transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
|
24 | 24 | }
|
25 |
| -.checkbox label::after { |
| 25 | +.abc-checkbox label::after { |
26 | 26 | display: inline-block;
|
27 | 27 | position: absolute;
|
28 | 28 | width: 16px;
|
|
35 | 35 | font-size: 11px;
|
36 | 36 | color: #555555;
|
37 | 37 | }
|
38 |
| -.checkbox input[type="checkbox"], |
39 |
| -.checkbox input[type="radio"] { |
| 38 | +.abc-checkbox input[type="checkbox"], |
| 39 | +.abc-checkbox input[type="radio"] { |
40 | 40 | opacity: 0;
|
41 | 41 | z-index: 1;
|
42 | 42 | }
|
43 |
| -.checkbox input[type="checkbox"]:focus + label::before, |
44 |
| -.checkbox input[type="radio"]:focus + label::before { |
| 43 | +.abc-checkbox input[type="checkbox"]:focus + label::before, |
| 44 | +.abc-checkbox input[type="radio"]:focus + label::before { |
45 | 45 | outline: thin dotted;
|
46 | 46 | outline: 5px auto -webkit-focus-ring-color;
|
47 | 47 | outline-offset: -2px;
|
48 | 48 | }
|
49 |
| -.checkbox input[type="checkbox"]:checked + label::after, |
50 |
| -.checkbox input[type="radio"]:checked + label::after { |
| 49 | +.abc-checkbox input[type="checkbox"]:checked + label::after, |
| 50 | +.abc-checkbox input[type="radio"]:checked + label::after { |
51 | 51 | font-family: "FontAwesome";
|
52 | 52 | content: "\f00c";
|
53 | 53 | }
|
54 |
| -.checkbox input[type="checkbox"]:disabled + label, |
55 |
| -.checkbox input[type="radio"]:disabled + label { |
| 54 | +.abc-checkbox input[type="checkbox"]:indeterminate + label::after, |
| 55 | +.abc-checkbox input[type="radio"]:indeterminate + label::after { |
| 56 | + display: block; |
| 57 | + content: ""; |
| 58 | + width: 10px; |
| 59 | + height: 3px; |
| 60 | + background-color: #555555; |
| 61 | + border-radius: 2px; |
| 62 | + margin-left: -16.5px; |
| 63 | + margin-top: 7px; |
| 64 | +} |
| 65 | +.abc-checkbox input[type="checkbox"]:disabled + label, |
| 66 | +.abc-checkbox input[type="radio"]:disabled + label { |
56 | 67 | opacity: 0.65;
|
57 | 68 | }
|
58 |
| -.checkbox input[type="checkbox"]:disabled + label::before, |
59 |
| -.checkbox input[type="radio"]:disabled + label::before { |
| 69 | +.abc-checkbox input[type="checkbox"]:disabled + label::before, |
| 70 | +.abc-checkbox input[type="radio"]:disabled + label::before { |
60 | 71 | background-color: #eeeeee;
|
61 | 72 | cursor: not-allowed;
|
62 | 73 | }
|
63 |
| -.checkbox.checkbox-circle label::before { |
| 74 | +.abc-checkbox.abc-checkbox-circle label::before { |
64 | 75 | border-radius: 50%;
|
65 | 76 | }
|
66 |
| -.checkbox.checkbox-inline { |
| 77 | +.abc-checkbox.abc-checkbox-inline { |
67 | 78 | margin-top: 0;
|
68 | 79 | }
|
69 | 80 |
|
70 |
| -.checkbox-primary input[type="checkbox"]:checked + label::before, |
71 |
| -.checkbox-primary input[type="radio"]:checked + label::before { |
| 81 | +.abc-checkbox-primary input[type="checkbox"]:checked + label::before, |
| 82 | +.abc-checkbox-primary input[type="radio"]:checked + label::before { |
72 | 83 | background-color: #337ab7;
|
73 | 84 | border-color: #337ab7;
|
74 | 85 | }
|
75 |
| -.checkbox-primary input[type="checkbox"]:checked + label::after, |
76 |
| -.checkbox-primary input[type="radio"]:checked + label::after { |
| 86 | +.abc-checkbox-primary input[type="checkbox"]:checked + label::after, |
| 87 | +.abc-checkbox-primary input[type="radio"]:checked + label::after { |
77 | 88 | color: #fff;
|
78 | 89 | }
|
79 | 90 |
|
80 |
| -.checkbox-danger input[type="checkbox"]:checked + label::before, |
81 |
| -.checkbox-danger input[type="radio"]:checked + label::before { |
| 91 | +.abc-checkbox-danger input[type="checkbox"]:checked + label::before, |
| 92 | +.abc-checkbox-danger input[type="radio"]:checked + label::before { |
82 | 93 | background-color: #d9534f;
|
83 | 94 | border-color: #d9534f;
|
84 | 95 | }
|
85 |
| -.checkbox-danger input[type="checkbox"]:checked + label::after, |
86 |
| -.checkbox-danger input[type="radio"]:checked + label::after { |
| 96 | +.abc-checkbox-danger input[type="checkbox"]:checked + label::after, |
| 97 | +.abc-checkbox-danger input[type="radio"]:checked + label::after { |
87 | 98 | color: #fff;
|
88 | 99 | }
|
89 | 100 |
|
90 |
| -.checkbox-info input[type="checkbox"]:checked + label::before, |
91 |
| -.checkbox-info input[type="radio"]:checked + label::before { |
| 101 | +.abc-checkbox-info input[type="checkbox"]:checked + label::before, |
| 102 | +.abc-checkbox-info input[type="radio"]:checked + label::before { |
92 | 103 | background-color: #5bc0de;
|
93 | 104 | border-color: #5bc0de;
|
94 | 105 | }
|
95 |
| -.checkbox-info input[type="checkbox"]:checked + label::after, |
96 |
| -.checkbox-info input[type="radio"]:checked + label::after { |
| 106 | +.abc-checkbox-info input[type="checkbox"]:checked + label::after, |
| 107 | +.abc-checkbox-info input[type="radio"]:checked + label::after { |
97 | 108 | color: #fff;
|
98 | 109 | }
|
99 | 110 |
|
100 |
| -.checkbox-warning input[type="checkbox"]:checked + label::before, |
101 |
| -.checkbox-warning input[type="radio"]:checked + label::before { |
| 111 | +.abc-checkbox-warning input[type="checkbox"]:checked + label::before, |
| 112 | +.abc-checkbox-warning input[type="radio"]:checked + label::before { |
102 | 113 | background-color: #f0ad4e;
|
103 | 114 | border-color: #f0ad4e;
|
104 | 115 | }
|
105 |
| -.checkbox-warning input[type="checkbox"]:checked + label::after, |
106 |
| -.checkbox-warning input[type="radio"]:checked + label::after { |
| 116 | +.abc-checkbox-warning input[type="checkbox"]:checked + label::after, |
| 117 | +.abc-checkbox-warning input[type="radio"]:checked + label::after { |
107 | 118 | color: #fff;
|
108 | 119 | }
|
109 | 120 |
|
110 |
| -.checkbox-success input[type="checkbox"]:checked + label::before, |
111 |
| -.checkbox-success input[type="radio"]:checked + label::before { |
| 121 | +.abc-checkbox-success input[type="checkbox"]:checked + label::before, |
| 122 | +.abc-checkbox-success input[type="radio"]:checked + label::before { |
112 | 123 | background-color: #5cb85c;
|
113 | 124 | border-color: #5cb85c;
|
114 | 125 | }
|
115 |
| -.checkbox-success input[type="checkbox"]:checked + label::after, |
116 |
| -.checkbox-success input[type="radio"]:checked + label::after { |
| 126 | +.abc-checkbox-success input[type="checkbox"]:checked + label::after, |
| 127 | +.abc-checkbox-success input[type="radio"]:checked + label::after { |
117 | 128 | color: #fff;
|
118 | 129 | }
|
119 | 130 |
|
120 |
| -.radio { |
| 131 | +.abc-checkbox-primary input[type="checkbox"]:indeterminate + label::before, |
| 132 | +.abc-checkbox-primary input[type="radio"]:indeterminate + label::before { |
| 133 | + background-color: #337ab7; |
| 134 | + border-color: #337ab7; |
| 135 | +} |
| 136 | + |
| 137 | +.abc-checkbox-primary input[type="checkbox"]:indeterminate + label::after, |
| 138 | +.abc-checkbox-primary input[type="radio"]:indeterminate + label::after { |
| 139 | + background-color: #fff; |
| 140 | +} |
| 141 | + |
| 142 | +.abc-checkbox-danger input[type="checkbox"]:indeterminate + label::before, |
| 143 | +.abc-checkbox-danger input[type="radio"]:indeterminate + label::before { |
| 144 | + background-color: #d9534f; |
| 145 | + border-color: #d9534f; |
| 146 | +} |
| 147 | + |
| 148 | +.abc-checkbox-danger input[type="checkbox"]:indeterminate + label::after, |
| 149 | +.abc-checkbox-danger input[type="radio"]:indeterminate + label::after { |
| 150 | + background-color: #fff; |
| 151 | +} |
| 152 | + |
| 153 | +.abc-checkbox-info input[type="checkbox"]:indeterminate + label::before, |
| 154 | +.abc-checkbox-info input[type="radio"]:indeterminate + label::before { |
| 155 | + background-color: #5bc0de; |
| 156 | + border-color: #5bc0de; |
| 157 | +} |
| 158 | + |
| 159 | +.abc-checkbox-info input[type="checkbox"]:indeterminate + label::after, |
| 160 | +.abc-checkbox-info input[type="radio"]:indeterminate + label::after { |
| 161 | + background-color: #fff; |
| 162 | +} |
| 163 | + |
| 164 | +.abc-checkbox-warning input[type="checkbox"]:indeterminate + label::before, |
| 165 | +.abc-checkbox-warning input[type="radio"]:indeterminate + label::before { |
| 166 | + background-color: #f0ad4e; |
| 167 | + border-color: #f0ad4e; |
| 168 | +} |
| 169 | + |
| 170 | +.abc-checkbox-warning input[type="checkbox"]:indeterminate + label::after, |
| 171 | +.abc-checkbox-warning input[type="radio"]:indeterminate + label::after { |
| 172 | + background-color: #fff; |
| 173 | +} |
| 174 | + |
| 175 | +.abc-checkbox-success input[type="checkbox"]:indeterminate + label::before, |
| 176 | +.abc-checkbox-success input[type="radio"]:indeterminate + label::before { |
| 177 | + background-color: #5cb85c; |
| 178 | + border-color: #5cb85c; |
| 179 | +} |
| 180 | + |
| 181 | +.abc-checkbox-success input[type="checkbox"]:indeterminate + label::after, |
| 182 | +.abc-checkbox-success input[type="radio"]:indeterminate + label::after { |
| 183 | + background-color: #fff; |
| 184 | +} |
| 185 | + |
| 186 | +.abc-radio { |
121 | 187 | padding-left: 20px;
|
122 | 188 | }
|
123 |
| -.radio label { |
| 189 | +.abc-radio label { |
124 | 190 | display: inline-block;
|
125 | 191 | vertical-align: middle;
|
126 | 192 | position: relative;
|
127 | 193 | padding-left: 5px;
|
128 | 194 | }
|
129 |
| -.radio label::before { |
| 195 | +.abc-radio label::before { |
130 | 196 | content: "";
|
131 | 197 | display: inline-block;
|
132 | 198 | position: absolute;
|
|
141 | 207 | -o-transition: border 0.15s ease-in-out;
|
142 | 208 | transition: border 0.15s ease-in-out;
|
143 | 209 | }
|
144 |
| -.radio label::after { |
| 210 | +.abc-radio label::after { |
145 | 211 | display: inline-block;
|
146 | 212 | position: absolute;
|
147 | 213 | content: " ";
|
|
161 | 227 | -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
|
162 | 228 | transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
|
163 | 229 | }
|
164 |
| -.radio input[type="radio"] { |
| 230 | +.abc-radio input[type="radio"] { |
165 | 231 | opacity: 0;
|
166 | 232 | z-index: 1;
|
167 | 233 | }
|
168 |
| -.radio input[type="radio"]:focus + label::before { |
| 234 | +.abc-radio input[type="radio"]:focus + label::before { |
169 | 235 | outline: thin dotted;
|
170 | 236 | outline: 5px auto -webkit-focus-ring-color;
|
171 | 237 | outline-offset: -2px;
|
172 | 238 | }
|
173 |
| -.radio input[type="radio"]:checked + label::after { |
| 239 | +.abc-radio input[type="radio"]:checked + label::after { |
174 | 240 | -webkit-transform: scale(1, 1);
|
175 | 241 | -ms-transform: scale(1, 1);
|
176 | 242 | -o-transform: scale(1, 1);
|
177 | 243 | transform: scale(1, 1);
|
178 | 244 | }
|
179 |
| -.radio input[type="radio"]:disabled + label { |
| 245 | +.abc-radio input[type="radio"]:disabled + label { |
180 | 246 | opacity: 0.65;
|
181 | 247 | }
|
182 |
| -.radio input[type="radio"]:disabled + label::before { |
| 248 | +.abc-radio input[type="radio"]:disabled + label::before { |
183 | 249 | cursor: not-allowed;
|
184 | 250 | }
|
185 |
| -.radio.radio-inline { |
| 251 | +.abc-radio.radio-inline { |
186 | 252 | margin-top: 0;
|
187 | 253 | }
|
188 | 254 |
|
189 |
| -.radio-primary input[type="radio"] + label::after { |
| 255 | +.abc-radio-primary input[type="radio"] + label::after { |
190 | 256 | background-color: #337ab7;
|
191 | 257 | }
|
192 |
| -.radio-primary input[type="radio"]:checked + label::before { |
| 258 | +.abc-radio-primary input[type="radio"]:checked + label::before { |
193 | 259 | border-color: #337ab7;
|
194 | 260 | }
|
195 |
| -.radio-primary input[type="radio"]:checked + label::after { |
| 261 | +.abc-radio-primary input[type="radio"]:checked + label::after { |
196 | 262 | background-color: #337ab7;
|
197 | 263 | }
|
198 | 264 |
|
199 |
| -.radio-danger input[type="radio"] + label::after { |
| 265 | +.abc-radio-danger input[type="radio"] + label::after { |
200 | 266 | background-color: #d9534f;
|
201 | 267 | }
|
202 |
| -.radio-danger input[type="radio"]:checked + label::before { |
| 268 | +.abc-radio-danger input[type="radio"]:checked + label::before { |
203 | 269 | border-color: #d9534f;
|
204 | 270 | }
|
205 |
| -.radio-danger input[type="radio"]:checked + label::after { |
| 271 | +.abc-radio-danger input[type="radio"]:checked + label::after { |
206 | 272 | background-color: #d9534f;
|
207 | 273 | }
|
208 | 274 |
|
209 |
| -.radio-info input[type="radio"] + label::after { |
| 275 | +.abc-radio-info input[type="radio"] + label::after { |
210 | 276 | background-color: #5bc0de;
|
211 | 277 | }
|
212 |
| -.radio-info input[type="radio"]:checked + label::before { |
| 278 | +.abc-radio-info input[type="radio"]:checked + label::before { |
213 | 279 | border-color: #5bc0de;
|
214 | 280 | }
|
215 |
| -.radio-info input[type="radio"]:checked + label::after { |
| 281 | +.abc-radio-info input[type="radio"]:checked + label::after { |
216 | 282 | background-color: #5bc0de;
|
217 | 283 | }
|
218 | 284 |
|
219 |
| -.radio-warning input[type="radio"] + label::after { |
| 285 | +.abc-radio-warning input[type="radio"] + label::after { |
220 | 286 | background-color: #f0ad4e;
|
221 | 287 | }
|
222 |
| -.radio-warning input[type="radio"]:checked + label::before { |
| 288 | +.abc-radio-warning input[type="radio"]:checked + label::before { |
223 | 289 | border-color: #f0ad4e;
|
224 | 290 | }
|
225 |
| -.radio-warning input[type="radio"]:checked + label::after { |
| 291 | +.abc-radio-warning input[type="radio"]:checked + label::after { |
226 | 292 | background-color: #f0ad4e;
|
227 | 293 | }
|
228 | 294 |
|
229 |
| -.radio-success input[type="radio"] + label::after { |
| 295 | +.abc-radio-success input[type="radio"] + label::after { |
230 | 296 | background-color: #5cb85c;
|
231 | 297 | }
|
232 |
| -.radio-success input[type="radio"]:checked + label::before { |
| 298 | +.abc-radio-success input[type="radio"]:checked + label::before { |
233 | 299 | border-color: #5cb85c;
|
234 | 300 | }
|
235 |
| -.radio-success input[type="radio"]:checked + label::after { |
| 301 | +.abc-radio-success input[type="radio"]:checked + label::after { |
236 | 302 | background-color: #5cb85c;
|
237 | 303 | }
|
238 | 304 |
|
|
0 commit comments