-
Notifications
You must be signed in to change notification settings - Fork 5
/
page-styles.php
7631 lines (6744 loc) · 374 KB
/
page-styles.php
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
<?php
/**
* The template for displaying Twitter Bootstrap Styles.
*
* @package StormBringer
* @since StormBringer 0.0.1
*
* Template Name: Styles
*/
?>
<?php get_header(); ?>
<?php //get_sidebar(); ?>
<div id="content" role="main">
<?php
/**
* stormbringer_content_before hook.
*
* @hooked stormbringer_breadcrumb - 10
*/
do_action( 'stormbringer_content_before' );
?>
<?php if ( have_posts() ) : the_post(); ?>
<?php
get_template_part( 'content', 'page' );
?>
<?php endif; ?>
<div class="bs-docs-section">
<h1 id="type" class="page-header">Typography</h1>
<!-- Headings -->
<h2 id="type-headings">Headings</h2>
<p>All HTML headings, <code><h1></code> through <code><h6></code>, are available.
<code>.h1</code> through
<code>.h6</code> classes are also available, for when you want to match the font styling of a heading
but still want
your text to be displayed inline.</p>
<div class="bs-example bs-example-type">
<table class="table">
<tbody>
<tr>
<td><h1>h1. Bootstrap heading</h1></td>
<td class="type-info">Semibold 36px</td>
</tr>
<tr>
<td><h2>h2. Bootstrap heading</h2></td>
<td class="type-info">Semibold 30px</td>
</tr>
<tr>
<td><h3>h3. Bootstrap heading</h3></td>
<td class="type-info">Semibold 24px</td>
</tr>
<tr>
<td><h4>h4. Bootstrap heading</h4></td>
<td class="type-info">Semibold 18px</td>
</tr>
<tr>
<td><h5>h5. Bootstrap heading</h5></td>
<td class="type-info">Semibold 14px</td>
</tr>
<tr>
<td><h6>h6. Bootstrap heading</h6></td>
<td class="type-info">Semibold 12px</td>
</tr>
</tbody>
</table>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><h1></span>h1. Bootstrap
heading<span class="nt"></h1></span>
<span class="nt"><h2></span>h2. Bootstrap heading<span class="nt"></h2></span>
<span class="nt"><h3></span>h3. Bootstrap heading<span class="nt"></h3></span>
<span class="nt"><h4></span>h4. Bootstrap heading<span class="nt"></h4></span>
<span class="nt"><h5></span>h5. Bootstrap heading<span class="nt"></h5></span>
<span class="nt"><h6></span>h6. Bootstrap
heading<span class="nt"></h6></span></code></pre>
</div>
<p>Create lighter, secondary text in any heading with a generic <code><small></code> tag or the
<code>.small</code> class.</p>
<div class="bs-example bs-example-type">
<table class="table">
<tbody>
<tr>
<td>
<h1>h1. Bootstrap heading
<small>Secondary text</small>
</h1>
</td>
</tr>
<tr>
<td>
<h2>h2. Bootstrap heading
<small>Secondary text</small>
</h2>
</td>
</tr>
<tr>
<td>
<h3>h3. Bootstrap heading
<small>Secondary text</small>
</h3>
</td>
</tr>
<tr>
<td>
<h4>h4. Bootstrap heading
<small>Secondary text</small>
</h4>
</td>
</tr>
<tr>
<td>
<h5>h5. Bootstrap heading
<small>Secondary text</small>
</h5>
</td>
</tr>
<tr>
<td>
<h6>h6. Bootstrap heading
<small>Secondary text</small>
</h6>
</td>
</tr>
</tbody>
</table>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><h1></span>h1. Bootstrap heading
<span class="nt"><small></span>Secondary
text<span class="nt"></small></h1></span>
<span class="nt"><h2></span>h2. Bootstrap heading <span class="nt"><small></span>Secondary
text<span class="nt"></small></h2></span>
<span class="nt"><h3></span>h3. Bootstrap heading <span class="nt"><small></span>Secondary
text<span class="nt"></small></h3></span>
<span class="nt"><h4></span>h4. Bootstrap heading <span class="nt"><small></span>Secondary
text<span class="nt"></small></h4></span>
<span class="nt"><h5></span>h5. Bootstrap heading <span class="nt"><small></span>Secondary
text<span class="nt"></small></h5></span>
<span class="nt"><h6></span>h6. Bootstrap heading <span class="nt"><small></span>Secondary
text<span class="nt"></small></h6></span></code></pre>
</div>
<!-- Body copy -->
<h2 id="type-body-copy">Body copy</h2>
<p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a
<code>line-height</code> of
<strong>1.428</strong>. This is applied to the <code><body></code> and all paragraphs. In
addition, <code><p></code>
(paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p>
<div class="bs-example">
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis
parturient
montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec
ullamcorper nulla non
metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia
odio sem nec
elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
<p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at
eget metus.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><p></span>...<span class="nt"></p></span></code></pre>
</div>
<!-- Body copy .lead -->
<h3>Lead body copy</h3>
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
<div class="bs-example">
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est
non commodo
luctus.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><p</span>
<span class="na">class=</span><span class="s">"lead"</span><span class="nt">></span>...<span class="nt"></p></span></code></pre>
</div>
<!-- Using Less -->
<h3>Built with Less</h3>
<p>The typographic scale is based on two Less variables in <strong>variables.less</strong>:
<code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used
throughout and
the second is the base line-height. We use those variables and some simple math to create the margins,
paddings, and
line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
<!-- Inline text elements -->
<h2 id="type-inline-text">Inline text elements</h2>
<h3>Marked text</h3>
<p>For highlighting a run of text due to its relevance in another context, use the <code><mark></code>
tag.</p>
<div class="bs-example">
<p>You can use the mark tag to
<mark>highlight</mark>
text.
</p>
</div>
<div class="highlight">
<pre><code class="html">You can use the mark tag to
<span class="nt"><mark></span>highlight<span class="nt"></mark></span>
text.</code></pre>
</div>
<h3>Deleted text</h3>
<p>For indicating blocks of text that have been deleted use the <code><del></code> tag.</p>
<div class="bs-example">
<p>
<del>This line of text is meant to be treated as deleted text.</del>
</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><del></span>This line of text is meant to be treated as
deleted
text.<span class="nt"></del></span></code></pre>
</div>
<h3>Strikethrough text</h3>
<p>For indicating blocks of text that are no longer relevant use the <code><s></code> tag.</p>
<div class="bs-example">
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><s></span>This line of text is meant to be treated as no longer
accurate.<span class="nt"></s></span></code></pre>
</div>
<h3>Inserted text</h3>
<p>For indicating additions to the document use the <code><ins></code> tag.</p>
<div class="bs-example">
<p>
<ins>This line of text is meant to be treated as an addition to the document.</ins>
</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><ins></span>This line of text is meant to be treated as an
addition
to the document.<span class="nt"></ins></span></code></pre>
</div>
<h3>Underlined text</h3>
<p>To underline text use the <code><u></code> tag.</p>
<div class="bs-example">
<p><u>This line of text will render as underlined</u></p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><u></span>This line of text will render as
underlined<span class="nt"></u></span></code></pre>
</div>
<p>Make use of HTML's default emphasis tags with lightweight styles.</p>
<h3>Small text</h3>
<p>For de-emphasizing inline or blocks of text, use the <code><small></code> tag to set text at 85%
the size of
the parent. Heading elements receive their own <code>font-size</code> for nested <code>
<small></code>
elements.</p>
<p>You may alternatively use an inline element with <code>.small</code> in place of any <code>
<small></code>.
</p>
<div class="bs-example">
<p>
<small>This line of text is meant to be treated as fine print.</small>
</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><small></span>This line of text is meant to be treated as
fine
print.<span class="nt"></small></span></code></pre>
</div>
<h3>Bold</h3>
<p>For emphasizing a snippet of text with a heavier font-weight.</p>
<div class="bs-example">
<p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><strong></span>rendered as bold
text<span class="nt"></strong></span></code></pre>
</div>
<h3>Italics</h3>
<p>For emphasizing a snippet of text with italics.</p>
<div class="bs-example">
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><em></span>rendered as italicized
text<span class="nt"></em></span></code></pre>
</div>
<div class="bs-callout bs-callout-info">
<h4>Alternate elements</h4>
<p>Feel free to use <code><b></code> and <code><i></code> in HTML5. <code><b></code>
is meant to
highlight words or phrases without conveying additional importance while <code><i></code> is
mostly for
voice, technical terms, etc.</p>
</div>
<h2 id="type-alignment">Alignment classes</h2>
<p>Easily realign text to components with text alignment classes.</p>
<div class="bs-example">
<p class="text-left">Left aligned text.</p>
<p class="text-center">Center aligned text.</p>
<p class="text-right">Right aligned text.</p>
<p class="text-justify">Justified text.</p>
<p class="text-nowrap">No wrap text.</p>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-left"</span><span class="nt">></span>Left
aligned
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-center"</span><span class="nt">></span>Center
aligned
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-right"</span><span class="nt">></span>Right
aligned
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-justify"</span><span class="nt">></span>Justified
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-nowrap"</span><span class="nt">></span>No
wrap
text.<span class="nt"></p></span></code></pre>
</div>
<h2 id="type-transformation">Transformation classes</h2>
<p>Transform text in components with text capitalization classes.</p>
<div class="bs-example">
<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize">Capitalized text.</p>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-lowercase"</span><span class="nt">></span>Lowercased
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-uppercase"</span><span class="nt">></span>Uppercased
text.<span class="nt"></p></span>
<span class="nt"><p</span>
<span class="na">class=</span><span class="s">"text-capitalize"</span><span class="nt">></span>Capitalized
text.<span class="nt"></p></span></code></pre>
</div>
<!-- Abbreviations -->
<h2 id="type-abbreviations">Abbreviations</h2>
<p>Stylized implementation of HTML's <code><abbr></code> element for abbreviations and acronyms to
show the
expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom
border and a
help cursor on hover, providing additional context on hover.</p>
<h3>Basic abbreviation</h3>
<p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute with the
<code><abbr></code>
element.</p>
<div class="bs-example">
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><abbr</span>
<span class="na">title=</span><span class="s">"attribute"</span><span class="nt">></span>attr<span class="nt"></abbr></span></code></pre>
</div>
<h3>Initialism</h3>
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
<div class="bs-example">
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced
bread.</p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><abbr</span> <span class="na">title=</span><span class="s">"HyperText Markup Language"</span>
<span class="na">class=</span><span class="s">"initialism"</span><span class="nt">></span>HTML<span class="nt"></abbr></span></code></pre>
</div>
<!-- Addresses -->
<h2 id="type-addresses">Addresses</h2>
<p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by
ending all
lines with <code><br></code>.</p>
<div class="bs-example">
<address>
<strong>Twitter, Inc.</strong><br>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
<abbr title="Phone">P:</abbr> (123) 456-7890
</address>
<address>
<strong>Full Name</strong><br>
<a href="mailto:#">[email protected]</a>
</address>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><address></span>
<span class="nt"><strong></span>Twitter,
Inc.<span class="nt"></strong><br></span>
795 Folsom Ave, Suite
600<span class="nt"><br></span>
San Francisco, CA 94107<span class="nt"><br></span>
<span class="nt"><abbr</span>
<span class="na">title=</span><span class="s">"Phone"</span><span class="nt">></span>P:<span class="nt"></abbr></span>
(123) 456-7890
<span class="nt"></address></span>
<span class="nt"><address></span>
<span class="nt"><strong></span>Full Name<span class="nt"></strong><br></span>
<span class="nt"><a</span>
<span class="na">href=</span><span class="s">"mailto:#"</span><span class="nt">></span>[email protected]<span class="nt"></a></span>
<span class="nt"></address></span></code></pre>
</div>
<!-- Blockquotes -->
<h2 id="type-blockquotes">Blockquotes</h2>
<p>For quoting blocks of content from another source within your document.</p>
<h3>Default blockquote</h3>
<p>Wrap <code><blockquote></code> around any <abbr title="HyperText Markup Language">HTML</abbr> as
the quote.
For straight quotes, we recommend a <code><p></code>.</p>
<div class="bs-example">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
</blockquote>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><blockquote></span>
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer posuere erat a
ante.<span class="nt"></p></span>
<span class="nt"></blockquote></span></code></pre>
</div>
<h3>Blockquote options</h3>
<p>Style and content changes for simple variations on a standard <code><blockquote></code>.</p>
<h4>Naming a source</h4>
<p>Add a <code><footer></code> for identifying the source. Wrap the name of the source work in <code>
<cite></code>.
</p>
<div class="bs-example">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><blockquote></span>
<span class="nt"><p></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer posuere erat a
ante.<span class="nt"></p></span>
<span class="nt"><footer></span>Someone famous in <span class="nt"><cite</span>
<span class="na">title=</span><span class="s">"Source Title"</span><span class="nt">></span>Source
Title<span class="nt"></cite></footer></span>
<span class="nt"></blockquote></span></code></pre>
</div>
<h4>Alternate displays</h4>
<p>Add <code>.blockquote-reverse</code> for a blockquote with right-aligned content.</p>
<div class="bs-example" style="overflow: hidden;">
<blockquote class="blockquote-reverse">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><blockquote</span>
<span class="na">class=</span><span class="s">"blockquote-reverse"</span><span class="nt">></span>
...
<span class="nt"></blockquote></span></code></pre>
</div>
<!-- Lists -->
<h2 id="type-lists">Lists</h2>
<h3>Unordered</h3>
<p>A list of items in which the order does <em>not</em> explicitly matter.</p>
<div class="bs-example">
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><ul></span>
<span class="nt"><li></span>...<span class="nt"></li></span>
<span class="nt"></ul></span></code></pre>
</div>
<h3>Ordered</h3>
<p>A list of items in which the order <em>does</em> explicitly matter.</p>
<div class="bs-example">
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><ol></span>
<span class="nt"><li></span>...<span class="nt"></li></span>
<span class="nt"></ol></span></code></pre>
</div>
<h3>Unstyled</h3>
<p>Remove the default <code>list-style</code> and left margin on list items (immediate children only).
<strong>This
only applies to immediate children list items</strong>, meaning you will need to add the class
for any nested
lists as well.</p>
<div class="bs-example">
<ul class="list-unstyled">
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span>
<span class="na">class=</span><span class="s">"list-unstyled"</span><span class="nt">></span>
<span class="nt"><li></span>...<span class="nt"></li></span>
<span class="nt"></ul></span></code></pre>
</div>
<h3>Inline</h3>
<p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.
</p>
<div class="bs-example">
<ul class="list-inline">
<li>Lorem ipsum</li>
<li>Phasellus iaculis</li>
<li>Nulla volutpat</li>
</ul>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><ul</span>
<span class="na">class=</span><span class="s">"list-inline"</span><span class="nt">></span>
<span class="nt"><li></span>...<span class="nt"></li></span>
<span class="nt"></ul></span></code></pre>
</div>
<h3>Description</h3>
<p>A list of terms with their associated descriptions.</p>
<div class="bs-example">
<dl>
<dt>Description lists</dt>
<dd>A description list is perfect for defining terms.</dd>
<dt>Euismod</dt>
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
<dt>Malesuada porta</dt>
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
</dl>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><dl></span>
<span class="nt"><dt></span>...<span class="nt"></dt></span>
<span class="nt"><dd></span>...<span class="nt"></dd></span>
<span class="nt"></dl></span></code></pre>
</div>
<h4>Horizontal description</h4>
<p>Make terms and descriptions in <code><dl></code> line up side-by-side. Starts off stacked like
default <code>
<dl></code>s, but when the navbar expands, so do these.</p>
<div class="bs-example">
<dl class="dl-horizontal">
<dt>Description lists</dt>
<dd>A description list is perfect for defining terms.</dd>
<dt>Euismod</dt>
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
<dt>Malesuada porta</dt>
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
<dt>Felis euismod semper eget lacinia</dt>
<dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa
justo sit amet
risus.
</dd>
</dl>
</div>
<div class="highlight"><pre><code class="html"><span class="nt"><dl</span>
<span class="na">class=</span><span class="s">"dl-horizontal"</span><span class="nt">></span>
<span class="nt"><dt></span>...<span class="nt"></dt></span>
<span class="nt"><dd></span>...<span class="nt"></dd></span>
<span class="nt"></dl></span></code></pre>
</div>
<div class="bs-callout bs-callout-info">
<h4>Auto-truncating</h4>
<p>Horizontal description lists will truncate terms that are too long to fit in the left column with
<code>text-overflow</code>.
In narrower viewports, they will change to the default stacked layout.</p>
</div>
</div>
<div class="bs-docs-section">
<h1 id="code" class="page-header">Code</h1>
<h2 id="code-inline">Inline</h2>
<p>Wrap inline snippets of code with <code><code></code>.</p>
<div class="bs-example">
For example, <code><section></code> should be wrapped as inline.
</div>
<div class="highlight">
<pre><code class="html">For example,
<span class="nt"><code></span><span class="ni">&lt;</span>section<span class="ni">&gt;</span><span class="nt"></code></span>
should be wrapped as inline.</code></pre>
</div>
<h2 id="code-user-input">User input</h2>
<p>Use the <code><kbd></code> to indicate input that is typically entered via keyboard.</p>
<div class="bs-example">
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>
</div>
<div class="highlight"><pre><code class="html">To switch directories, type
<span class="nt"><kbd></span>cd<span class="nt"></kbd></span> followed by the name
of the
directory.<span class="nt"><br></span>
To edit settings, press <span class="nt"><kbd><kbd></span>ctrl<span class="nt"></kbd></span>
+ <span class="nt"><kbd></span>,<span class="nt"></kbd></kbd></span></code></pre>
</div>
<h2 id="code-block">Basic block</h2>
<p>Use <code><pre></code> for multiple lines of code. Be sure to escape any angle brackets in the code
for
proper rendering.</p>
<div class="bs-example">
<pre><p>Sample text here...</p></pre>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><pre></span><span class="ni">&lt;</span>p<span class="ni">&gt;</span>Sample
text
here...<span class="ni">&lt;</span>/p<span class="ni">&gt;</span><span class="nt"></pre></span></code></pre>
</div>
<p>You may optionally add the <code>.pre-scrollable</code> class, which will set a max-height of 350px and
provide a
y-axis scrollbar.</p>
<h2 id="code-variables">Variables</h2>
<p>For indicating variables use the <code><var></code> tag.</p>
<div class="bs-example">
<p><var>y</var> = <var>m</var><var>x</var> + <var>b</var></p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><var></span>y<span class="nt"></var></span> =
<span class="nt"><var></span>m<span class="nt"></var><var></span>x<span class="nt"></var></span>
+
<span class="nt"><var></span>b<span class="nt"></var></span></code></pre>
</div>
<h2 id="code-sample-output">Sample output</h2>
<p>For indicating blocks sample output from a program use the <code><samp></code> tag.</p>
<div class="bs-example">
<p><samp>This text is meant to be treated as sample output from a computer program.</samp></p>
</div>
<div class="highlight">
<pre><code class="html"><span class="nt"><samp></span>This text is meant to be treated as sample
output from
a computer program.<span class="nt"></samp></span></code></pre>
</div>
</div>
<div class="bs-docs-section">
<h1 id="tables" class="page-header">Tables</h1>
<h2 id="tables-example">Basic example</h2>
<p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to
any <code>
<table></code>. 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.</p>
<div class="bs-example">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<!-- /example -->
<div class="highlight"><pre><code class="html"><span class="nt"><table</span>
<span class="na">class=</span><span class="s">"table"</span><span class="nt">></span>
...
<span class="nt"></table></span></code></pre>
</div>
<h2 id="tables-striped">Striped rows</h2>
<p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>
<tbody></code>.</p>
<div class="bs-callout bs-callout-danger">
<h4>Cross-browser compatibility</h4>
<p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in
Internet
Explorer 8.</p>
</div>
<div class="bs-example">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<!-- /example -->
<div class="highlight"><pre><code class="html"><span class="nt"><table</span>
<span class="na">class=</span><span class="s">"table table-striped"</span><span class="nt">></span>
...
<span class="nt"></table></span></code></pre>
</div>
<h2 id="tables-bordered">Bordered table</h2>
<p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p>
<div class="bs-example">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>Mark</td>
<td>Otto</td>
<td>@TwBootstrap</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<!-- /example -->
<div class="highlight"><pre><code class="html"><span class="nt"><table</span>
<span class="na">class=</span><span class="s">"table table-bordered"</span><span class="nt">></span>
...
<span class="nt"></table></span></code></pre>
</div>
<h2 id="tables-hover-rows">Hover rows</h2>
<p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code><tbody></code>.
</p>
<div class="bs-example">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<!-- /example -->
<div class="highlight"><pre><code class="html"><span class="nt"><table</span>
<span class="na">class=</span><span class="s">"table table-hover"</span><span class="nt">></span>
...
<span class="nt"></table></span></code></pre>
</div>
<h2 id="tables-condensed">Condensed table</h2>
<p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p>
<div class="bs-example">
<table class="table table-condensed">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>