-
Notifications
You must be signed in to change notification settings - Fork 0
/
3-navtabs.html
497 lines (447 loc) · 20.2 KB
/
3-navtabs.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bootstrap Practice</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<nav class="nav nav-pills mb-4 flex-wrap">
<a class="nav-link" href="1-general.html">General</a>
<a class="nav-link" href="2-navbar.html">Navbar</a>
<a class="nav-link active" href="3-navtabs.html">Nav-tabs</a>
<a class="nav-link" href="4-buttons.html">Buttons</a>
<a class="nav-link" href="5-carousel.html">Carousel</a>
<a class="nav-link" href="6-thumbnails.html">Thumbnails</a>
<a class="nav-link" href="7-card.html">Card</a>
<a class="nav-link" href="8-utilities.html">Utilities</a>
<a class="nav-link" href="9-modal-card.html">Modal-Card</a>
<a class="nav-link" href="10-alerts.html">Alerts</a>
<a class="nav-link" href="11-forms.html">Forms</a>
<a class="nav-link" href="12-pagination.html">Pagination</a>
<a class="nav-link" href="13-tables.html">Tables</a>
<a class="nav-link" href="14-scrollspy.html">Scrollspy</a>
</nav>
<div class="container">
<div class="row">
<div class="col-xl-4 col-lg-6">
<!-- List-group with active, disabled and badges -->
<h4 class="mb-4">List-group with active, disabled and badges</h4>
<ul class="list-group">
<li class="list-group-item active">
One item
<span class="badge badge-warning badge-pill">14</span>
</li>
<li class="list-group-item">
Two item
<span class="badge badge-secondary badge-pill">22</span>
</li>
<li class="list-group-item">
Three item
<span class="badge badge-secondary badge-pill">1</span>
</li>
<li class="list-group-item">
Four item
<span class="badge badge-secondary badge-pill">1</span>
</li>
<li class="list-group-item">
Five item
<span class="badge badge-secondary badge-pill">1</span>
</li>
<li class="list-group-item">
Six item
<span class="badge badge-secondary badge-pill">1</span>
</li>
</ul>
</div>
<div class="col-xl-4 col-lg-6">
<!-- List-group in <a> and <button> with badges -->
<h4 class="mb-4">List-group in <a> and <button> with badges</h4>
<div class="list-group">
<a class="list-group-item active" href="#">
First item
<span class="badge badge-warning badge-pill">1</span>
</a>
<a class="list-group-item disabled" href="#">
Second item
<span class="badge badge-secondary badge-pill">1</span>
</a>
<a class="list-group-item" href="#">Third item</a>
</div>
<div class="list-group">
<button type="button" class="list-group-item list-group-item-action active">
One item
<span class="badge badge-warning badge-pill">1</span>
</button>
<button type="button" class="list-group-item list-group-item-action">
Two item
<span class="badge badge-secondary badge-pill">1</span>
</button>
<button type="button" class="list-group-item list-group-item-action" disabled>
Three item
</button>
</div>
</div>
<div class="col-xl-4">
<!-- list-group which included <h5>, <p>, and <small> tag -->
<h4 class="mb-4">list-group which included <h5>, <p>, and <small></h4>
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action align-items-start active">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small>3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta at eget metus.</p>
<small>Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta at eget metus.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
<a href="#" class="list-group-item list-group-item-action align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small class="text-muted">3 days ago</small>
</div>
<p class="mb-1">Donec id elit non mi porta at eget metus.</p>
<small class="text-muted">Donec id elit non mi porta.</small>
</a>
</div>
</div>
</div>
<hr />
<div class="row">
<!-- List-group with, colors, active & disabled-->
<h3 class="text-center w-100 mb-4">List-group with, colors, active & disabled</h3>
<div class="col-md-6">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-action">Dapibus ac facilisis in</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-primary">This is a primary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-secondary">This is a secondary list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-success">This is a success list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-danger">This is a danger list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-warning">This is a warning list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-info">This is a info list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-light">This is a light list group item</a>
<a href="#" class="list-group-item list-group-item-action list-group-item-dark">This is a dark list group item</a>
</div>
</div>
<div class="col-md-6">
<div class="list-group">
<a href="#" class="active list-group-item list-group-item-action">Dapibus ac facilisis in</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-primary">This is a primary list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-secondary">This is a secondary list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-success">This is a success list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-danger">This is a danger list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-warning">This is a warning list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-info">This is a info list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-light">This is a light list group item</a>
<a href="#" class="active list-group-item list-group-item-action list-group-item-dark">This is a dark list group item</a>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-4">
<!-- nav with active, disabled and center-->
<h4>Nav with active, disabled and center</h4>
<ul class="nav justify-content-center my-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<!-- nav in <nav> tag with active & disabled-->
<nav class="nav justify-content-end mb-4">
<a class="nav-link active" href="#">Active</a>
<a class="nav-link" href="#">Link</a>
<a class="nav-link disabled" href="#">Disabled</a>
</nav>
<!-- nav with vertical, active & disabled-->
<ul class="nav flex-column mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
<div class="col-lg-4">
<!-- nav-tabs and nav-pills with active & disabled-->
<h4>Nav-tabs and nav-pills with active & disabled</h4>
<ul class="nav nav-tabs my-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropup">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<!-- nav-pills with active & disabled-->
<ul class="nav nav-pills mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<!-- nav with vertical, active & disabled-->
<ul class="nav nav-pills flex-column mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
<div class="col-lg-4">
<!-- nav-pills with nav-fill, nav-justified, divider & justified -->
<h4>nav-pills with nav-fill, nav-justified</h4>
<ul class="nav nav-tabs nav-fill my-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<ul class="nav nav-tabs nav-justified mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Drop</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<ul class="nav nav-pills nav-fill my-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<ul class="nav nav-pills nav-justified mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Drop</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-6">
<!-- nav-tabs with dropdown, stacked & divider -->
<h3>Nav-pills with fill</h3>
<ul class="nav nav-pills nav-fill flex-column flex-md-row my-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu w-100">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<ul class="nav nav-pills nav-justified flex-column flex-md-row mb-4">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu w-100">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<nav class="nav nav-pills flex-column flex-md-row text-sm-center">
<li class="nav-item"><a class="nav-link active" href="#">Active</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</li>
<li class="nav-item"><a class="nav-link disabled" href="#">Disabled</a></li>
</nav>
</div>
<div class="col-md-6">
<!-- nav-tabs with tab-content-->
<h3>Nav-tabs with tab-content</h3>
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-expanded="true">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile">Profile</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu">
<a class="dropdown-item" id="dropdown1-tab" href="#dropdown1" role="tab" data-toggle="tab" aria-controls="dropdown1">@fat</a>
<a class="dropdown-item" id="dropdown2-tab" href="#dropdown2" role="tab" data-toggle="tab" aria-controls="dropdown2">@mdo</a>
</div>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore quam, soluta nisi, quidem a nesciunt! Sit quis nulla architecto quos, quaerat fuga expedita at debitis? Commodi corporis repellat voluptatum velit.</p>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. corporis repellat voluptatum velit.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore quam, soluta nisi, quidem a nesciunt! Sit quis nulla architecto quos, quaerat fuga expedita at debitis? Commodi corporis repellat voluptatum velit.</p>
</div>
<div class="tab-pane fade" id="dropdown1" role="tabpanel" aria-labelledby="dropdown1-tab">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. corporis repellat voluptatum velit.</p>
</div>
<div class="tab-pane fade" id="dropdown2" role="tabpanel" aria-labelledby="dropdown2-tab">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. corporis repellat voluptatum velit.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore quam, soluta nisi, quidem a nesciunt! Sit quis nulla architecto quos, quaerat fuga expedita at debitis? Commodi corporis repellat voluptatum velit.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore quam, soluta nisi, quidem a nesciunt! Sit quis nulla architecto quos, quaerat fuga expedita at debitis? Commodi corporis repellat voluptatum velit.</p>
</div>
</div>
</div>
</div>
<hr>
</div><!-- end container -->
<!-- JavaScript -->
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>