-
Notifications
You must be signed in to change notification settings - Fork 3
/
bootstrap.yaml
1643 lines (1543 loc) · 52.5 KB
/
bootstrap.yaml
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
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
types:
tooltiptags: &TOOLTIPTAGS global
# label - because of "<input radio"
buttons: &BUTTONS [button, a, input, label]
headers: &H1H6 [h1, h2, h3, h4, h5, h6]
# GRID SYSTEM
grid: &GRID
col-xs-1: Horizontal at all times
col-xs-2: Horizontal at all times
col-xs-3: Horizontal at all times
col-xs-4: Horizontal at all times
col-xs-5: Horizontal at all times
col-xs-6: Horizontal at all times
col-xs-7: Horizontal at all times
col-xs-8: Horizontal at all times
col-xs-9: Horizontal at all times
col-xs-10: Horizontal at all times
col-xs-11: Horizontal at all times
col-xs-12: Horizontal at all times
col-sm-1: 750px.\nColumn width ~62px
col-sm-2: 750px.\nColumn width ~62px
col-sm-3: 750px.\nColumn width ~62px
col-sm-4: 750px.\nColumn width ~62px
col-sm-5: 750px.\nColumn width ~62px
col-sm-6: 750px.\nColumn width ~62px
col-sm-7: 750px.\nColumn width ~62px
col-sm-8: 750px.\nColumn width ~62px
col-sm-9: 750px.\nColumn width ~62px
col-sm-10: 750px.\nColumn width ~62px
col-sm-11: 750px.\nColumn width ~62px
col-sm-12: 750px.\nColumn width ~62px
col-md-1: 970px.\nColumn width ~81px
col-md-2: 970px.\nColumn width ~81px
col-md-3: 970px.\nColumn width ~81px
col-md-4: 970px.\nColumn width ~81px
col-md-5: 970px.\nColumn width ~81px
col-md-6: 970px.\nColumn width ~81px
col-md-7: 970px.\nColumn width ~81px
col-md-8: 970px.\nColumn width ~81px
col-md-9: 970px.\nColumn width ~81px
col-md-10: 970px.\nColumn width ~81px
col-md-11: 970px.\nColumn width ~81px
col-md-12: 970px.\nColumn width ~81px
col-lg-1: 1170px.\nColumn width ~97px
col-lg-2: 1170px.\nColumn width ~97px
col-lg-3: 1170px.\nColumn width ~97px
col-lg-4: 1170px.\nColumn width ~97px
col-lg-5: 1170px.\nColumn width ~97px
col-lg-6: 1170px.\nColumn width ~97px
col-lg-7: 1170px.\nColumn width ~97px
col-lg-8: 1170px.\nColumn width ~97px
col-lg-9: 1170px.\nColumn width ~97px
col-lg-10: 1170px.\nColumn width ~97px
col-lg-11: 1170px.\nColumn width ~97px
col-lg-12: 1170px.\nColumn width ~97px
col-xs-offset-1: Increase the left margin of a column
col-xs-offset-2: Increase the left margin of a column
col-xs-offset-3: Increase the left margin of a column
col-xs-offset-4: Increase the left margin of a column
col-xs-offset-5: Increase the left margin of a column
col-xs-offset-6: Increase the left margin of a column
col-xs-offset-7: Increase the left margin of a column
col-xs-offset-8: Increase the left margin of a column
col-xs-offset-9: Increase the left margin of a column
col-xs-offset-10: Increase the left margin of a column
col-xs-offset-11: Increase the left margin of a column
col-xs-offset-12: Increase the left margin of a column
col-sm-offset-1: Increase the left margin of a column
col-sm-offset-2: Increase the left margin of a column
col-sm-offset-3: Increase the left margin of a column
col-sm-offset-4: Increase the left margin of a column
col-sm-offset-5: Increase the left margin of a column
col-sm-offset-6: Increase the left margin of a column
col-sm-offset-7: Increase the left margin of a column
col-sm-offset-8: Increase the left margin of a column
col-sm-offset-9: Increase the left margin of a column
col-sm-offset-10: Increase the left margin of a column
col-sm-offset-11: Increase the left margin of a column
col-sm-offset-12: Increase the left margin of a column
col-md-offset-1: Increase the left margin of a column
col-md-offset-2: Increase the left margin of a column
col-md-offset-3: Increase the left margin of a column
col-md-offset-4: Increase the left margin of a column
col-md-offset-5: Increase the left margin of a column
col-md-offset-6: Increase the left margin of a column
col-md-offset-7: Increase the left margin of a column
col-md-offset-8: Increase the left margin of a column
col-md-offset-9: Increase the left margin of a column
col-md-offset-10: Increase the left margin of a column
col-md-offset-11: Increase the left margin of a column
col-md-offset-12: Increase the left margin of a column
col-lg-offset-1: Increase the left margin of a column
col-lg-offset-2: Increase the left margin of a column
col-lg-offset-3: Increase the left margin of a column
col-lg-offset-4: Increase the left margin of a column
col-lg-offset-5: Increase the left margin of a column
col-lg-offset-6: Increase the left margin of a column
col-lg-offset-7: Increase the left margin of a column
col-lg-offset-8: Increase the left margin of a column
col-lg-offset-9: Increase the left margin of a column
col-lg-offset-10: Increase the left margin of a column
col-lg-offset-11: Increase the left margin of a column
col-lg-offset-12: Increase the left margin of a column
col-xs-push-1:
col-xs-push-2:
col-xs-push-3:
col-xs-push-4:
col-xs-push-5:
col-xs-push-6:
col-xs-push-7:
col-xs-push-8:
col-xs-push-9:
col-xs-push-10:
col-xs-push-11:
col-xs-push-12:
col-sm-push-1:
col-sm-push-2:
col-sm-push-3:
col-sm-push-4:
col-sm-push-5:
col-sm-push-6:
col-sm-push-7:
col-sm-push-8:
col-sm-push-9:
col-sm-push-10:
col-sm-push-11:
col-sm-push-12:
col-md-push-1:
col-md-push-2:
col-md-push-3:
col-md-push-4:
col-md-push-5:
col-md-push-6:
col-md-push-7:
col-md-push-8:
col-md-push-9:
col-md-push-10:
col-md-push-11:
col-md-push-12:
col-lg-push-1:
col-lg-push-2:
col-lg-push-3:
col-lg-push-4:
col-lg-push-5:
col-lg-push-6:
col-lg-push-7:
col-lg-push-8:
col-lg-push-9:
col-lg-push-10:
col-lg-push-11:
col-lg-push-12:
col-xs-pull-1:
col-xs-pull-2:
col-xs-pull-3:
col-xs-pull-4:
col-xs-pull-5:
col-xs-pull-6:
col-xs-pull-7:
col-xs-pull-8:
col-xs-pull-9:
col-xs-pull-10:
col-xs-pull-11:
col-xs-pull-12:
col-sm-pull-1:
col-sm-pull-2:
col-sm-pull-3:
col-sm-pull-4:
col-sm-pull-5:
col-sm-pull-6:
col-sm-pull-7:
col-sm-pull-8:
col-sm-pull-9:
col-sm-pull-10:
col-sm-pull-11:
col-sm-pull-12:
col-md-pull-1:
col-md-pull-2:
col-md-pull-3:
col-md-pull-4:
col-md-pull-5:
col-md-pull-6:
col-md-pull-7:
col-md-pull-8:
col-md-pull-9:
col-md-pull-10:
col-md-pull-11:
col-md-pull-12:
col-lg-pull-1:
col-lg-pull-2:
col-lg-pull-3:
col-lg-pull-4:
col-lg-pull-5:
col-lg-pull-6:
col-lg-pull-7:
col-lg-pull-8:
col-lg-pull-9:
col-lg-pull-10:
col-lg-pull-11:
col-lg-pull-12:
responsive: &RESPONSIVE
visible-xs-block: Extra small devices (<768px).\nSet Visible of component
visible-sm-block: Small devices (>768px).\nSet Visible of component
visible-md-block: Medium devices (>992px).\nSet Visible of component
visible-lg-block: Large devices (>1200px).\nSet Visible of component
visible-xs-inline: Extra small devices (<768px).\nSet Visible of component
visible-sm-inline: Small devices (>768px).\nSet Visible of component
visible-md-inline: Medium devices (>992px).\nSet Visible of component
visible-lg-inline: Large devices (>1200px).\nSet Visible of component
visible-xs-inline-block: Extra small devices (<768px).\nSet Visible of component
visible-sm-inline-block: Small devices (>768px).\nSet Visible of component
visible-md-inline-block: Medium devices (>992px).\nSet Visible of component
visible-lg-inline-block: Large devices (>1200px).\nSet Visible of component
hidden-xs: Hidden for extra small devices (<768px)
hidden-sm: Hidden for small devices (>768px)
hidden-md: Hidden for medium devices (>992px)
hidden-lg: Hidden for large devices (>1200px)
visible-print-block: &TGLPRNCNT Toggling content for print
visible-print-inline: *TGLPRNCNT
visible-print-inline-block: *TGLPRNCNT
hidden-print: *TGLPRNCNT
icons: &GLYPHICONS
glyphicon: |
Base class
Be sure to leave a space between the icon and text for proper padding.
glyphicon-asterisk:
glyphicon-plus:
glyphicon-euro:
glyphicon-minus:
glyphicon-cloud:
glyphicon-envelope:
glyphicon-pencil:
glyphicon-glass:
glyphicon-music:
glyphicon-search:
glyphicon-heart:
glyphicon-star:
glyphicon-star-empty:
glyphicon-user:
glyphicon-film:
glyphicon-th-large:
glyphicon-th:
glyphicon-th-list:
glyphicon-ok:
glyphicon-remove:
glyphicon-zoom-in:
glyphicon-zoom-out:
glyphicon-off:
glyphicon-signal:
glyphicon-cog:
glyphicon-trash:
glyphicon-home:
glyphicon-file:
glyphicon-time:
glyphicon-road:
glyphicon-download-alt:
glyphicon-download:
glyphicon-upload:
glyphicon-inbox:
glyphicon-play-circle:
glyphicon-repeat:
glyphicon-refresh:
glyphicon-list-alt:
glyphicon-lock:
glyphicon-flag:
glyphicon-headphones:
glyphicon-volume-off:
glyphicon-volume-down:
glyphicon-volume-up:
glyphicon-qrcode:
glyphicon-barcode:
glyphicon-tag:
glyphicon-tags:
glyphicon-book:
glyphicon-bookmark:
glyphicon-print:
glyphicon-camera:
glyphicon-font:
glyphicon-bold:
glyphicon-italic:
glyphicon-text-height:
glyphicon-text-width:
glyphicon-align-left:
glyphicon-align-center:
glyphicon-align-right:
glyphicon-align-justify:
glyphicon-list:
glyphicon-indent-left:
glyphicon-indent-right:
glyphicon-facetime-video:
glyphicon-picture:
glyphicon-map-marker:
glyphicon-adjust:
glyphicon-tint:
glyphicon-edit:
glyphicon-share:
glyphicon-check:
glyphicon-move:
glyphicon-step-backward:
glyphicon-fast-backward:
glyphicon-backward:
glyphicon-play:
glyphicon-pause:
glyphicon-stop:
glyphicon-forward:
glyphicon-fast-forward:
glyphicon-step-forward:
glyphicon-eject:
glyphicon-chevron-left:
glyphicon-chevron-right:
glyphicon-plus-sign:
glyphicon-minus-sign:
glyphicon-remove-sign:
glyphicon-ok-sign:
glyphicon-question-sign:
glyphicon-info-sign:
glyphicon-screenshot:
glyphicon-remove-circle:
glyphicon-ok-circle:
glyphicon-ban-circle:
glyphicon-arrow-left:
glyphicon-arrow-right:
glyphicon-arrow-up:
glyphicon-arrow-down:
glyphicon-share-alt:
glyphicon-resize-full:
glyphicon-resize-small:
glyphicon-exclamation-sign:
glyphicon-gift:
glyphicon-leaf:
glyphicon-fire:
glyphicon-eye-open:
glyphicon-eye-close:
glyphicon-warning-sign:
glyphicon-plane:
glyphicon-calendar:
glyphicon-random:
glyphicon-comment:
glyphicon-magnet:
glyphicon-chevron-up:
glyphicon-chevron-down:
glyphicon-retweet:
glyphicon-shopping-cart:
glyphicon-folder-close:
glyphicon-folder-open:
glyphicon-resize-vertical:
glyphicon-resize-horizontal:
glyphicon-hdd:
glyphicon-bullhorn:
glyphicon-bell:
glyphicon-certificate:
glyphicon-thumbs-up:
glyphicon-thumbs-down:
glyphicon-hand-right:
glyphicon-hand-left:
glyphicon-hand-up:
glyphicon-hand-down:
glyphicon-circle-arrow-right:
glyphicon-circle-arrow-left:
glyphicon-circle-arrow-up:
glyphicon-circle-arrow-down:
glyphicon-globe:
glyphicon-wrench:
glyphicon-tasks:
glyphicon-filter:
glyphicon-briefcase:
glyphicon-fullscreen:
glyphicon-dashboard:
glyphicon-paperclip:
glyphicon-heart-empty:
glyphicon-link:
glyphicon-phone:
glyphicon-pushpin:
glyphicon-usd:
glyphicon-gbp:
glyphicon-sort:
glyphicon-sort-by-alphabet:
glyphicon-sort-by-alphabet-alt:
glyphicon-sort-by-order:
glyphicon-sort-by-order-alt:
glyphicon-sort-by-attributes:
glyphicon-sort-by-attributes-alt:
glyphicon-unchecked:
glyphicon-expand:
glyphicon-collapse-down:
glyphicon-collapse-up:
glyphicon-log-in:
glyphicon-flash:
glyphicon-log-out:
glyphicon-new-window:
glyphicon-record:
glyphicon-save:
glyphicon-open:
glyphicon-saved:
glyphicon-import:
glyphicon-export:
glyphicon-send:
glyphicon-floppy-disk:
glyphicon-floppy-saved:
glyphicon-floppy-remove:
glyphicon-floppy-save:
glyphicon-floppy-open:
glyphicon-credit-card:
glyphicon-transfer:
glyphicon-cutlery:
glyphicon-header:
glyphicon-compressed:
glyphicon-earphone:
glyphicon-phone-alt:
glyphicon-tower:
glyphicon-stats:
glyphicon-sd-video:
glyphicon-hd-video:
glyphicon-subtitles:
glyphicon-sound-stereo:
glyphicon-sound-dolby:
glyphicon-sound-5-1:
glyphicon-sound-6-1:
glyphicon-sound-7-1:
glyphicon-copyright-mark:
glyphicon-registration-mark:
glyphicon-cloud-download:
glyphicon-cloud-upload:
glyphicon-tree-conifer:
glyphicon-tree-deciduous:
container: &CONTAINER
container-fluid: Create the fluid layouts in order to utilize the 100% width of the viewport.
container: Fixed-width layout
attributes:
- class:
t: global
v: *GRID
- class:
t: div
v:
row: Predefined grid class
- class:
t: div
v: *CONTAINER
- class:
t: div
v:
clearfix: |
Add the extra clearfix for only the required viewport
“micro clearfix” generates pseudo-elements and sets their display to table. This creates an anonymous table-cell and a new block formatting context that means the :before pseudo-element prevents top-margin collapse. The :after pseudo-element is used to clear the floats. As a result, there is no need to hide any generated content and the total amount of code needed is reduced.
- class:
t: *H1H6
v:
small: Create lighter, secondary text in any heading
# text:
- class:
t: global
v:
text-left: Left aligned text.
text-center: Center aligned text.
text-right: Right aligned text.
text-justify: Justified text.
text-nowrap: No wrap text.
small: |
For de-emphasizing inline or blocks of text, use the <small> tag to set text at 85% the size of the parent.
Heading elements receive their own font-size for nested <small> elements.
text-lowercase: Lowercased text.
text-uppercase: Uppercased text.
text-capitalize: Capitalized text.
- class:
t: abbr
v:
initialism: Add .initialism to an abbreviation for a slightly smaller font-size.
- class:
t: blockquote
v:
blockquote-reverse: A blockquote with right-aligned content
- class:
t: [ul, ol]
v:
list-unstyled: |
Remove the default list-style and left margin on list items (immediate children only).
This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.
list-inline: "Place all list items on a single line with display: inline-block; and some light padding."
- class:
t: dl
v: Make terms and descriptions in <dl> line up side-by-side. Starts off stacked like default <dl>s, but when the navbar expands, so do these.
# tables
- class:
t: table
v:
table: |
For basic styling—light padding and only horizontal dividers.
It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.
table-striped: Striped tables are styled via the :nth-child CSS selector, which is not available in Internet Explorer 8.
table-bordered: Bordered version
table-hover: Enable a hover state on table rows within a <tbody>
table-condensed: Make tables more compact by cutting cell padding in half.
table-responsive: |
Create responsive tables by wrapping any .table in .table-responsive to make them scroll horizontally on small devices (under 768px).
When viewing on anything larger than 768px wide, you will not see any difference in these tables.
- class:
t: [tr, td]
v: [active, success, warning, danger, info]
# - class:
# t: [table, th, td, tr, thead, tbody, tfoot ]
# forms
- class:
t: form
v:
form-inline: |
Left-aligned and inline-block controls.
This only applies to forms within viewports that are at least 768px wide.
form-horizontal: |
Predefined grid classes to align labels and groups of form controls in a horizontal layout.
NO NEED FOR .row
- class:
t: [input, textarea, select]
v:
form-control: "Set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing."
input-lg: &FMMOD modifier classes to decrease or increase the height and font-size of form controls
input-sm: *FMMOD
- class:
t: [label]
v:
sr-only: |
Screen readers will have trouble with your forms if you don't include a label for every input.
For these inline forms, you can hide the labels using the .sr-only class.
<div class="form-group">
<label class="sr-only" for="pwf">Password</label>
<input type="password" class="form-control" id="pwd" placeholder="Password">
</div>
- class:
t: [label]
v:
control-label: |
<div class="form-group">
<label class="control-label" for="myInput">Input with success</label>
<input type="text" class="form-control" id="myInput">
</div>
- class:
t: span
v:
sr-only: |
Screen readers
<span id="err" class="sr-only">(error)</span>
- class:
t: div
v:
form-group: |
Wrap labels and controls in .form-group for optimum spacing.
Don't mix form groups with input groups
form-group-lg: &FMGRMOD Styles to the inputs and labels within a .form-group.
form-group-sm: *FMGRMOD
has-warning: &HASTEXT Any .control-label, .form-control, and .help-block within that element will receive the validation styles.
has-error: *HASTEXT
has-success: *HASTEXT
has-feedback: |
Add right feedback icon.
Feedback icons only work with textual <input class="form-control"> elements
(error)
Ex.
<div class="form-group has-success has-feedback">
<label class="control-label" for="success">Input with success</label>
<input type="text" class="form-control" id="success" aria-describedby="successStatus">
<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
<span id="successStatus" class="sr-only">(success)</span>
</div>
- class:
t: div
v:
disabled: |
To have the <label> for the checkbox or radio also display a "not-allowed" cursor when the user hovers over the label, add the .disabled class to your:
.radio, .radio-inline, .checkbox, .checkbox-inline, or <fieldset>.
For <a> Opera <18, IE11 use JS to disable such link.
- class:
t: [div, label]
v:
radio:
radio-inline:
checkbox:
checkbox-inline:
fieldset:
- class:
t: p
v:
form-control-static: |
Place plain text next to a form label within a form
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<p class="form-control-static">[email protected]</p>
</div>
</div>
# button
- class:
t: *BUTTONS
v:
btn: Highly recommend using the <button> element whenever possible to ensure matching cross-browser rendering.
btn-default:
btn-primary:
btn-success:
btn-info:
btn-warning:
btn-danger:
btn-link: Deemphasize a button by making it look like a link while maintaining button behavior
- class:
t: *BUTTONS
v:
btn-lg: &BTNSIZE Button sizing
btn-sm: *BTNSIZE
btn-xs: *BTNSIZE
btn-block: Create block level buttons—those that span the full width of a parent
active: Pressed button
disabled: |
Disabled state.
For <a> Opera <18, IE11 use JS to disable such link.
# labels
- class:
t: [label, span]
v:
label:
label-default:
label-primary:
label-success:
label-info:
label-warning:
label-danger:
# images
- class:
t: img
v:
img-responsive: |
This applies
{ max-width: 100%; height: auto; }
to the image so that it scales nicely to the parent element.
img-rounded: Adds border-radius:6px to give the image rounded corners.
img-circle: Makes the entire image round by adding border-radius:500px.
img-thumbnail: Adds a bit of padding and a gray border
# helpers
- class:
t: [p, span, div, a]
v:
text-muted: &TXTHELPER |
Contextual colors
Convey meaning through color with a handful of emphasis utility classes.
These may also be applied to links and will darken on hover just like our default link styles.
text-primary: *TXTHELPER
text-success: *TXTHELPER
text-info: *TXTHELPER
text-warning: *TXTHELPER
text-danger: *TXTHELPER
bg-primary: &TXTHELPERBG Contextual backgrounds
bg-success: *TXTHELPERBG
bg-info: *TXTHELPERBG
bg-warning: *TXTHELPERBG
bg-danger: *TXTHELPERBG
- class:
t: [button, a]
v:
close: Generic close icon for dismissing content like modals and alerts.
- class:
t: [p, div, span, a]
v:
pull-left: Float an element to the left with a class
pull-right: Float an element to the right with a class
center-block: Center content blocks
show: Force an element to be shown including for screen readers
hidden: Force an element to be hidden including for screen readers
- class:
t: global
v: *RESPONSIVE
# Accessibility
- class:
t: global
v:
sr-only: Hides an element to all devices except screen readers
sr-only-focusable: Combine with .sr-only to show the element again when it is focused e.g. by a keyboard-only user
text-hide: "Replace an element's text content with a background image."
- class:
t: i
v: *GLYPHICONS
# dropdowns and button group
- class:
t: span
v:
caret: Use carets to indicate dropdown functionality and direction
icon-bar: |
May be used in ".navbar-toggle .collapsed" as collapse toggle button
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
- class:
t: div
v:
dropdown: |
<div class="dropdown">
<button class="btn btn-default dropdown-toggle"
data-toggle="dropdown" aria-expanded="true" id="drMenu1">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="drMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
dropup: <div class="btn-group dropup">
- data-toggle:
t: *BUTTONS
v:
dropdown: |
<button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" role="button" aria-expanded="false">
d: Toggle facility
- class:
t: *BUTTONS
v:
dropdown-toggle:
- class:
t: ul
v:
dropdown-menu: |
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu3">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Regular link</a></li>
<li role="presentation" class="disabled"><a role="menuitem" tabindex="-1" href="#">Disabled link</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another link</a></li>
</ul>
dropdown-menu-right:
dropdown-menu-left:
- class:
t: li
v:
dropdown-header: Add a header to label sections of actions in any dropdown menu.
divider: Add a divider to separate series of links in a dropdown menu.
disabled:
- data-toggle:
t: *BUTTONS
v: collapse
- data-target:
t: *BUTTONS
v:
"#bs-": d
d: |
1. Link to collected nav links, forms, and other content for toggling
2. Activate a modal
<button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button>
- class:
t: div
v:
btn-group: |
Group a series of buttons together on a single line with the button group.
Place a .btn-group within another .btn-group when you want dropdown menus mixed with a series of buttons.
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
btn-toolbar: |
<div class="btn-toolbar">
<div class="btn-group">
btn-group-lg:
btn-group-sm:
btn-group-xs:
btn-group-vertical: Make a set of buttons appear vertically stacked rather than horizontally
btn-group-justified: |
Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.
<div class="btn-group btn-group-justified" role="group"..
# input groups
- class:
t: [ div, span, p ]
v:
input-group: |
Place one add-on or button on either side of an input
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username">
</div>
input-group-lg:
input-group-sm:
input-group-btn: |
Segmented buttons
<div class="input-group">
<div class="input-group-btn">
Button and dropdown menu here
</div>
<input type="text" class="form-control">
</div>
- class:
t: span
v:
input-group-addon: |
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" placeholder="Username">
# Nav
- class:
t: [ul, ol]
v:
nav:
nav-tabs: |
Example with data-toggle
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a></li>
<li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Profile</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="home">...</div>
<div role="tabpanel" class="tab-pane" id="profile">...</div>
</div>
</div>
nav-pills:
nav-stacked: |
Vertically stackable pills
<ul class="nav nav-pills nav-stacked">
..
</ul>
nav-justified:
navbar-nav:
- class:
t: [button, a, div]
v:
navbar-brand: |
Replace the navbar brand with your own image by swapping the text for an <img>.
Since the .navbar-brand has its own padding and height, you may need to override some CSS depending on your image.
<div class="navbar-header">
<a class="navbar-brand"..
- class:
t: li
v:
active: |
<ul class="nav nav-tabs">
<li class="active"><a href=..
<li>..
disabled: |
This class will only change the <a>'s appearance, not its functionality.
Use custom JavaScript to disable links here.
- class:
t: [nav, div]
v:
navbar: |
<nav class="navbar navbar-default"
navbar-default: Opposite to .navbar-inverse
navbar-inverse: Modify the look of the navbar Opposite to .navbar-default
navbar-fixed-top: |
Fixed to top.
Include a .container or .container-fluid to center and pad navbar content.
Also add padding! "body { padding-top: 70px; }" (after bs css)
navbar-fixed-bottom: |
Fixed bottom.
Also add padding! "body { padding-bottom: 70px; }" (after bs css)
navbar-static-top: Create a full-width navbar that scrolls away with the page by adding
- class:
t: form
v:
navbar-form: |
Use the alignment options to decide where it resides within the navbar content.
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
- class:
t: [button, input]
v:
navbar-btn: Add the .navbar-btn class to <button> elements not residing in a <form> to vertically center them in the navbar
- class:
t: [nav, form, a, div, button]
v:
navbar-left: These classes are mixin-ed version of .pull-left
navbar-right: These classes are mixin-ed version of .pull-right
- class:
t: [span, p]
v:
navbar-text: Text inside navbad
- class:
t: div
v:
navbar-header: Header of navbar
navbar-collapse: |
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#FOO"
- class:
t: a
v:
navbar-link: |
Links that are not within the regular navbar navigation component,
use the .navbar-link class to add the proper colors for the default and inverse navbar options.
# breadcrumb
- class:
t: [ul, ol]
v:
breadcrumb: |
Indicate the current page's location within a navigational hierarchy.
Separators are automatically added in CSS through :before and content.
Home / Links / Data
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Library</a></li>
<li class="active">Data</li>
</ol>
# pagination / pager
- class:
t: [ul, ol]
v:
pager: |
By default, the pager centers links.
<nav>
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
</nav>
pagination-lg:
pagination-sm:
pagination: |
Provide pagination links
<nav>
<ul class="pagination">
<li>
<a href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
..etc..
- class:
t: li
v:
previous: &PAGERALIGN |
You can align each link to the sides .pager
<nav>
<ul class="pager">
<li class="previous"><a href="#">Older</a></li>
<li class="next"><a href="#">Newer</a></li>