-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy pathindex.html
310 lines (309 loc) · 14.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>awesome bootstrap checkbox demo</title>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="build.css"/>
</head>
<body>
<div class="container my-5">
<h1 class="text-center">Awesome Bootstrap Checkbox v1.0.0</h1>
<p class="lead text-center">Pure CSS way to make inputs look prettier
<br>with <a href="https://getbootstrap.com/" target="_blank" rel="nofollow">Bootstrap 5</a> support and <strong><strong>No Javascript!</strong></strong></p>
<h2 class="mt-5">Checkboxes</h2>
<form role="form">
<div class="row">
<div class="col-md-4">
<fieldset>
<legend>
Basic
</legend>
<p>
Supports bootstrap theme colors: <code>.abc-checkbox-primary</code>, <code>.abc-checkbox-info</code> etc.
</p>
<div class="form-check abc-checkbox">
<input class="form-check-input" id="checkbox1" type="checkbox">
<label class="form-check-label" for="checkbox1">
Default
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-primary">
<input class="form-check-input" id="checkbox2" type="checkbox" checked>
<label class="form-check-label" for="checkbox2">
Primary
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-success">
<input class="form-check-input" id="checkbox3" type="checkbox">
<label class="form-check-label" for="checkbox3">
Success
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-info">
<input class="form-check-input" id="checkbox4" type="checkbox">
<label class="form-check-label" for="checkbox4">
Info
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-warning">
<input class="form-check-input" id="checkbox5" type="checkbox" checked>
<label class="form-check-label" for="checkbox5">
Warning
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-danger">
<input class="form-check-input" id="checkbox6" type="checkbox" checked>
<label class="form-check-label" for="checkbox6">
Check me out
</label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Circled
</legend>
<p>
<code>.abc-checkbox-circle</code> for roundness.
</p>
<div class="form-check abc-checkbox abc-checkbox-circle">
<input class="form-check-input" id="checkbox7" type="checkbox">
<label class="form-check-label" for="checkbox7">
Simply Rounded
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-info abc-checkbox-circle">
<input class="form-check-input" id="checkbox8" type="checkbox" checked>
<label class="form-check-label" for="checkbox8">
Me too
</label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Disabled
</legend>
<p>
Disabled state also supported.
</p>
<div class="form-check abc-checkbox">
<input class="form-check-input" id="checkbox9" type="checkbox" disabled>
<label class="form-check-label" for="checkbox9">
Can't check this
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-success">
<input class="form-check-input" id="checkbox10" type="checkbox" disabled checked>
<label class="form-check-label" for="checkbox10">
This too
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-warning abc-checkbox-circle">
<input class="form-check-input" id="checkbox11" type="checkbox" disabled checked>
<label class="form-check-label" for="checkbox11">
And this
</label>
</div>
</fieldset>
</div>
</div>
<div class="row mt-3">
<div class="col-md-4">
<fieldset>
<legend>
Without label text
</legend>
<div class="form-check abc-checkbox">
<input class="form-check-input" type="checkbox" id="singleCheckbox1" value="option1" aria-label="Single checkbox One">
<label class="form-check-label" for="singleCheckbox1"></label>
</div>
<div class="form-check abc-checkbox abc-checkbox-primary">
<input class="form-check-input" type="checkbox" id="singleCheckbox2" value="option2" checked aria-label="Single checkbox Two">
<label class="form-check-label" for="singleCheckbox2"></label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Indeterminate state
</legend>
<div class="form-check abc-checkbox abc-checkbox-primary">
<input class="form-check-input" id="indeterminateCheckbox" type="checkbox" onclick="changeState(this)">
<label class="form-check-label" for="indeterminateCheckbox"></label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Inline checkboxes
</legend>
<div class="form-check abc-checkbox form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
<label class="form-check-label" for="inlineCheckbox1"> One </label>
</div>
<div class="form-check abc-checkbox abc-checkbox-success form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option1" checked>
<label class="form-check-label" for="inlineCheckbox2"> Two </label>
</div>
<div class="form-check abc-checkbox form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option1">
<label class="form-check-label" for="inlineCheckbox3"> Three </label>
</div>
</fieldset>
</div>
</div>
</form>
<h2 class="mt-5">Radios</h2>
<form role="form">
<div class="row">
<div class="col-md-4">
<fieldset>
<legend>
Basic
</legend>
<p>
Supports bootstrap theme colors: <code>.abc-radio-primary</code>, <code>.abc-radio-danger</code> etc.
</p>
<div class="row">
<div class="col-sm-6">
<div class="form-check abc-radio">
<input class="form-check-input" type="radio" name="radio1" id="radio1" value="option1" checked>
<label class="form-check-label" for="radio1">
Small
</label>
</div>
<div class="form-check abc-radio">
<input class="form-check-input" type="radio" name="radio1" id="radio2" value="option2">
<label class="form-check-label" for="radio2">
Big
</label>
</div>
</div>
<div class="col-sm-6">
<div class="form-check abc-radio abc-radio-danger">
<input class="form-check-input" type="radio" name="radio2" id="radio3" value="option1">
<label class="form-check-label" for="radio3">
Next
</label>
</div>
<div class="form-check abc-radio abc-radio-danger">
<input class="form-check-input" type="radio" name="radio2" id="radio4" value="option2" checked>
<label class="form-check-label" for="radio4">
One
</label>
</div>
</div>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Disabled
</legend>
<p>
Disabled state also supported.
</p>
<div class="form-check abc-radio abc-radio-danger">
<input class="form-check-input" type="radio" name="radio3" id="radio5" value="option1" disabled>
<label class="form-check-label" for="radio5">
Next
</label>
</div>
<div class="form-check abc-radio">
<input class="form-check-input" type="radio" name="radio3" id="radio6" value="option2" checked disabled>
<label class="form-check-label" for="radio6">
One
</label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
As Checkboxes
</legend>
<p>
Radios can be made to look like checkboxes.
</p>
<div class="form-check abc-checkbox abc-checkbox">
<input class="form-check-input" type="radio" name="radio4" id="radio7" value="option1" checked>
<label class="form-check-label" for="radio7">
Default
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-success">
<input class="form-check-input" type="radio" name="radio4" id="radio8" value="option2">
<label class="form-check-label" for="radio8">
Success
</label>
</div>
<div class="form-check abc-checkbox abc-checkbox-danger">
<input class="form-check-input" type="radio" name="radio4" id="radio9" value="option3">
<label class="form-check-label" for="radio9">
Danger
</label>
</div>
</fieldset>
</div>
</div>
<div class="row mt-3">
<div class="col-md-4">
<fieldset>
<legend>
Without label text
</legend>
<div class="form-check abc-radio">
<input class="form-check-input" type="radio" id="singleRadio1" value="option1" name="radioSingle1" aria-label="Single radio One">
<label class="form-check-label" for="singleRadio1"></label>
</div>
<div class="form-check abc-radio abc-radio-success">
<input class="form-check-input" type="radio" id="singleRadio2" value="option2" name="radioSingle1" checked aria-label="Single radio Two">
<label class="form-check-label" for="singleRadio2"></label>
</div>
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<legend>
Inline radios
</legend>
<div class="form-check abc-radio abc-radio-info form-check-inline">
<input class="form-check-input" type="radio" id="inlineRadio1" value="option1" name="radioInline" checked>
<label class="form-check-label" for="inlineRadio1"> Inline One </label>
</div>
<div class="form-check abc-radio form-check-inline">
<input class="form-check-input" type="radio" id="inlineRadio2" value="option2" name="radioInline">
<label class="form-check-label" for="inlineRadio2"> Inline Two </label>
</div>
</fieldset>
</div>
</div>
</form>
<form role="form">
<div class="row mt-3">
<div class="col-12">
<fieldset>
<p class="text-center">
Made by <a href="https://flatlogic.com/" target="_blank" rel="nofollow">Flatlogic</a>
</p>
</fieldset>
</div>
</div>
</form>
</div>
<script type="text/javascript">
function changeState(el) {
if (el.readOnly) el.checked=el.readOnly=false;
else if (!el.checked) el.readOnly=el.indeterminate=true;
}
</script>
</body>
</html>