-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathtypography.pug
152 lines (150 loc) · 4.74 KB
/
typography.pug
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
extends ../_layout/default.pug
block breadcrumb
+breadcrumb(
[
{ href: '#', label: 'Home'},
{ label: 'Theme'},
{ label: 'Typography'}
]
)
block view
.card.mb-4
.card-header
| Headings
.card-body
p
| Documentation and examples for Bootstrap typography, including global settings, headings, body text, lists, and more.
table.table
thead
tr
th Heading
th Example
tbody
tr
td
p
code.highlighter-rouge= '<h1></h1>'
td
span.h1 h1. Bootstrap heading
tr
td
p
code.highlighter-rouge= '<h2></h2>'
td
span.h2 h2. Bootstrap heading
tr
td
p
code.highlighter-rouge= '<h3></h3>'
td
span.h3 h3. Bootstrap heading
tr
td
p
code.highlighter-rouge= '<h4></h4>'
td
span.h4 h4. Bootstrap heading
tr
td
p
code.highlighter-rouge= '<h5></h5>'
td
span.h5 h5. Bootstrap heading
tr
td
p
code.highlighter-rouge= '<h6></h6>'
td
span.h6 h6. Bootstrap heading
.card.mb-4
.card-header
| Headings
.card-body
p
code.highlighter-rouge .h1
| through
code.highlighter-rouge .h6
| classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
.bd-example
p.h1 h1. Bootstrap heading
p.h2 h2. Bootstrap heading
p.h3 h3. Bootstrap heading
p.h4 h4. Bootstrap heading
p.h5 h5. Bootstrap heading
p.h6 h6. Bootstrap heading
.card.mb-4
.card-header
| Display headings
.card-body
p
| Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a
strong display heading
| —a larger, slightly more opinionated heading style.
.bd-example.bd-example-type
table.table
tbody
tr
td
span.display-1 Display 1
tr
td
span.display-2 Display 2
tr
td
span.display-3 Display 3
tr
td
span.display-4 Display 4
.card.mb-4
.card-header
| Inline text elements
.card-body
p
| Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a
strong display heading
| —a larger, slightly more opinionated heading style.
.bd-example
p
| You can use the mark tag to
mark highlight
| text.
p
del This line of text is meant to be treated as deleted text.
p
s This line of text is meant to be treated as no longer accurate.
p
ins This line of text is meant to be treated as an addition to the document.
p
u This line of text will render as underlined
p
small This line of text is meant to be treated as fine print.
p
strong This line rendered as bold text.
p
em This line rendered as italicized text.
.card.mb-4
.card-header
| Description list alignment
.card-body
p
| Align terms and descriptions horizontally by using our grid system’s predefined classes (or semantic mixins). For longer terms, you can optionally add a
code.highlighter-rouge .text-truncate
| class to truncate the text with an ellipsis.
.bd-example
dl.row
dt.col-sm-3 Description lists
dd.col-sm-9 A description list is perfect for defining terms.
dt.col-sm-3 Euismod
dd.col-sm-9
p Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
p Donec id elit non mi porta gravida at eget metus.
dt.col-sm-3 Malesuada porta
dd.col-sm-9 Etiam porta sem malesuada magna mollis euismod.
dt.col-sm-3.text-truncate Truncated term is truncated
dd.col-sm-9
| Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
dt.col-sm-3 Nesting
dd.col-sm-9
dl.row
dt.col-sm-4 Nested definition list
dd.col-sm-8 Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc.