Policy 1707 commit to LF
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / CSS / bootstrap / docs / _includes / css / type.html
1 <div class="bs-docs-section">
2   <h1 id="type" class="page-header">Typography</h1>
3
4   <!-- Headings -->
5   <h2 id="type-headings">Headings</h2>
6   <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</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>
7   <div class="bs-example bs-example-type" data-example-id="simple-headings">
8     <table class="table">
9       <tbody>
10         <tr>
11           <td><h1>h1. Bootstrap heading</h1></td>
12           <td class="type-info">Semibold 36px</td>
13         </tr>
14         <tr>
15           <td><h2>h2. Bootstrap heading</h2></td>
16           <td class="type-info">Semibold 30px</td>
17         </tr>
18         <tr>
19           <td><h3>h3. Bootstrap heading</h3></td>
20           <td class="type-info">Semibold 24px</td>
21         </tr>
22         <tr>
23           <td><h4>h4. Bootstrap heading</h4></td>
24           <td class="type-info">Semibold 18px</td>
25         </tr>
26         <tr>
27           <td><h5>h5. Bootstrap heading</h5></td>
28           <td class="type-info">Semibold 14px</td>
29         </tr>
30         <tr>
31           <td><h6>h6. Bootstrap heading</h6></td>
32           <td class="type-info">Semibold 12px</td>
33         </tr>
34       </tbody>
35     </table>
36   </div>
37 {% highlight html %}
38 <h1>h1. Bootstrap heading</h1>
39 <h2>h2. Bootstrap heading</h2>
40 <h3>h3. Bootstrap heading</h3>
41 <h4>h4. Bootstrap heading</h4>
42 <h5>h5. Bootstrap heading</h5>
43 <h6>h6. Bootstrap heading</h6>
44 {% endhighlight %}
45
46   <p>Create lighter, secondary text in any heading with a generic <code>&lt;small&gt;</code> tag or the <code>.small</code> class.</p>
47   <div class="bs-example bs-example-type" data-example-id="small-headings">
48     <table class="table">
49       <tbody>
50         <tr>
51           <td><h1>h1. Bootstrap heading <small>Secondary text</small></h1></td>
52         </tr>
53         <tr>
54           <td><h2>h2. Bootstrap heading <small>Secondary text</small></h2></td>
55         </tr>
56         <tr>
57           <td><h3>h3. Bootstrap heading <small>Secondary text</small></h3></td>
58         </tr>
59         <tr>
60           <td><h4>h4. Bootstrap heading <small>Secondary text</small></h4></td>
61         </tr>
62         <tr>
63           <td><h5>h5. Bootstrap heading <small>Secondary text</small></h5></td>
64         </tr>
65         <tr>
66           <td><h6>h6. Bootstrap heading <small>Secondary text</small></h6></td>
67         </tr>
68       </tbody>
69     </table>
70   </div>
71 {% highlight html %}
72 <h1>h1. Bootstrap heading <small>Secondary text</small></h1>
73 <h2>h2. Bootstrap heading <small>Secondary text</small></h2>
74 <h3>h3. Bootstrap heading <small>Secondary text</small></h3>
75 <h4>h4. Bootstrap heading <small>Secondary text</small></h4>
76 <h5>h5. Bootstrap heading <small>Secondary text</small></h5>
77 <h6>h6. Bootstrap heading <small>Secondary text</small></h6>
78 {% endhighlight %}
79
80
81   <!-- Body copy -->
82   <h2 id="type-body-copy">Body copy</h2>
83   <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>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p>
84   <div class="bs-example" data-example-id="body-copy">
85     <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>
86     <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>
87     <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>
88   </div>
89 {% highlight html %}
90 <p>...</p>
91 {% endhighlight %}
92
93   <!-- Body copy .lead -->
94   <h3>Lead body copy</h3>
95   <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
96   <div class="bs-example" data-example-id="lead-copy">
97     <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
98   </div>
99 {% highlight html %}
100 <p class="lead">...</p>
101 {% endhighlight %}
102
103   <!-- Using Less -->
104   <h3>Built with Less</h3>
105   <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>
106
107   <!-- Inline text elements -->
108   <h2 id="type-inline-text">Inline text elements</h2>
109   <h3>Marked text</h3>
110   <p>For highlighting a run of text due to its relevance in another context, use the <code>&lt;mark&gt;</code> tag.</p>
111   <div class="bs-example" data-example-id="simple-mark">
112     <p>You can use the mark tag to <mark>highlight</mark> text.</p>
113   </div>
114 {% highlight html %}
115 You can use the mark tag to <mark>highlight</mark> text.
116 {% endhighlight %}
117
118
119   <h3>Deleted text</h3>
120   <p>For indicating blocks of text that have been deleted use the <code>&lt;del&gt;</code> tag.</p>
121   <div class="bs-example" data-example-id="simple-del">
122     <p><del>This line of text is meant to be treated as deleted text.</del></p>
123   </div>
124 {% highlight html %}
125 <del>This line of text is meant to be treated as deleted text.</del>
126 {% endhighlight %}
127
128   <h3>Strikethrough text</h3>
129   <p>For indicating blocks of text that are no longer relevant use the <code>&lt;s&gt;</code> tag.</p>
130   <div class="bs-example" data-example-id="simple-s">
131     <p><s>This line of text is meant to be treated as no longer accurate.</s></p>
132   </div>
133 {% highlight html %}
134 <s>This line of text is meant to be treated as no longer accurate.</s>
135 {% endhighlight %}
136
137   <h3>Inserted text</h3>
138   <p>For indicating additions to the document use the <code>&lt;ins&gt;</code> tag.</p>
139   <div class="bs-example" data-example-id="simple-ins">
140     <p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
141   </div>
142 {% highlight html %}
143 <ins>This line of text is meant to be treated as an addition to the document.</ins>
144 {% endhighlight %}
145
146   <h3>Underlined text</h3>
147   <p>To underline text use the <code>&lt;u&gt;</code> tag.</p>
148   <div class="bs-example" data-example-id="simple-u">
149     <p><u>This line of text will render as underlined</u></p>
150   </div>
151 {% highlight html %}
152 <u>This line of text will render as underlined</u>
153 {% endhighlight %}
154
155   <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
156
157   <h3>Small text</h3>
158   <p>For de-emphasizing inline or blocks of text, use the <code>&lt;small&gt;</code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code>&lt;small&gt;</code> elements.</p>
159   <p>You may alternatively use an inline element with <code>.small</code> in place of any <code>&lt;small&gt;</code>.</p>
160   <div class="bs-example" data-example-id="simple-small">
161     <p><small>This line of text is meant to be treated as fine print.</small></p>
162   </div>
163 {% highlight html %}
164 <small>This line of text is meant to be treated as fine print.</small>
165 {% endhighlight %}
166
167
168   <h3>Bold</h3>
169   <p>For emphasizing a snippet of text with a heavier font-weight.</p>
170   <div class="bs-example" data-example-id="simple-strong">
171     <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
172   </div>
173 {% highlight html %}
174 <strong>rendered as bold text</strong>
175 {% endhighlight %}
176
177   <h3>Italics</h3>
178   <p>For emphasizing a snippet of text with italics.</p>
179   <div class="bs-example" data-example-id="simple-em">
180     <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
181   </div>
182 {% highlight html %}
183 <em>rendered as italicized text</em>
184 {% endhighlight %}
185
186   <div class="bs-callout bs-callout-info" id="callout-type-b-i-elems">
187     <h4>Alternate elements</h4>
188     <p>Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
189   </div>
190
191   <h2 id="type-alignment">Alignment classes</h2>
192   <p>Easily realign text to components with text alignment classes.</p>
193   <div class="bs-example" data-example-id="text-alignment">
194     <p class="text-left">Left aligned text.</p>
195     <p class="text-center">Center aligned text.</p>
196     <p class="text-right">Right aligned text.</p>
197     <p class="text-justify">Justified text.</p>
198     <p class="text-nowrap">No wrap text.</p>
199   </div>
200 {% highlight html %}
201 <p class="text-left">Left aligned text.</p>
202 <p class="text-center">Center aligned text.</p>
203 <p class="text-right">Right aligned text.</p>
204 <p class="text-justify">Justified text.</p>
205 <p class="text-nowrap">No wrap text.</p>
206 {% endhighlight %}
207
208   <h2 id="type-transformation">Transformation classes</h2>
209   <p>Transform text in components with text capitalization classes.</p>
210   <div class="bs-example" data-example-id="text-capitalization">
211     <p class="text-lowercase">Lowercased text.</p>
212     <p class="text-uppercase">Uppercased text.</p>
213     <p class="text-capitalize">Capitalized text.</p>
214   </div>
215 {% highlight html %}
216 <p class="text-lowercase">Lowercased text.</p>
217 <p class="text-uppercase">Uppercased text.</p>
218 <p class="text-capitalize">Capitalized text.</p>
219 {% endhighlight %}
220
221   <!-- Abbreviations -->
222   <h2 id="type-abbreviations">Abbreviations</h2>
223   <p>Stylized implementation of HTML's <code>&lt;abbr&gt;</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 and to users of assistive technologies.</p>
224
225   <h3>Basic abbreviation</h3>
226   <div class="bs-example" data-example-id="simple-abbr">
227     <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
228   </div>
229 {% highlight html %}
230 <abbr title="attribute">attr</abbr>
231 {% endhighlight %}
232
233   <h3>Initialism</h3>
234   <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
235   <div class="bs-example" data-example-id="simple-initialism">
236     <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
237   </div>
238 {% highlight html %}
239 <abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
240 {% endhighlight %}
241
242
243   <!-- Addresses -->
244   <h2 id="type-addresses">Addresses</h2>
245   <p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p>
246   <div class="bs-example" data-example-id="simple-address">
247     <address>
248       <strong>Twitter, Inc.</strong><br>
249       795 Folsom Ave, Suite 600<br>
250       San Francisco, CA 94107<br>
251       <abbr title="Phone">P:</abbr> (123) 456-7890
252     </address>
253     <address>
254       <strong>Full Name</strong><br>
255       <a href="mailto:#">first.last@example.com</a>
256     </address>
257   </div>
258 {% highlight html %}
259 <address>
260   <strong>Twitter, Inc.</strong><br>
261   795 Folsom Ave, Suite 600<br>
262   San Francisco, CA 94107<br>
263   <abbr title="Phone">P:</abbr> (123) 456-7890
264 </address>
265
266 <address>
267   <strong>Full Name</strong><br>
268   <a href="mailto:#">first.last@example.com</a>
269 </address>
270 {% endhighlight %}
271
272
273   <!-- Blockquotes -->
274   <h2 id="type-blockquotes">Blockquotes</h2>
275   <p>For quoting blocks of content from another source within your document.</p>
276
277   <h3>Default blockquote</h3>
278   <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes, we recommend a <code>&lt;p&gt;</code>.</p>
279   <div class="bs-example" data-example-id="simple-blockquote">
280     <blockquote>
281       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
282     </blockquote>
283   </div>
284 {% highlight html %}
285 <blockquote>
286   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
287 </blockquote>
288 {% endhighlight %}
289
290   <h3>Blockquote options</h3>
291   <p>Style and content changes for simple variations on a standard <code>&lt;blockquote&gt;</code>.</p>
292
293   <h4>Naming a source</h4>
294   <p>Add a <code>&lt;footer&gt;</code> for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
295   <div class="bs-example" data-example-id="blockquote-cite">
296     <blockquote>
297       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
298       <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
299     </blockquote>
300   </div>
301 {% highlight html %}
302 <blockquote>
303   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
304   <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
305 </blockquote>
306 {% endhighlight %}
307
308   <h4>Alternate displays</h4>
309   <p>Add <code>.blockquote-reverse</code> for a blockquote with right-aligned content.</p>
310   <div class="bs-example" style="overflow: hidden;" data-example-id="blockquote-reverse">
311     <blockquote class="blockquote-reverse">
312       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
313       <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
314     </blockquote>
315   </div>
316 {% highlight html %}
317 <blockquote class="blockquote-reverse">
318   ...
319 </blockquote>
320 {% endhighlight %}
321
322
323   <!-- Lists -->
324   <h2 id="type-lists">Lists</h2>
325
326   <h3>Unordered</h3>
327   <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
328   <div class="bs-example" data-example-id="simple-ul">
329     <ul>
330       <li>Lorem ipsum dolor sit amet</li>
331       <li>Consectetur adipiscing elit</li>
332       <li>Integer molestie lorem at massa</li>
333       <li>Facilisis in pretium nisl aliquet</li>
334       <li>Nulla volutpat aliquam velit
335         <ul>
336           <li>Phasellus iaculis neque</li>
337           <li>Purus sodales ultricies</li>
338           <li>Vestibulum laoreet porttitor sem</li>
339           <li>Ac tristique libero volutpat at</li>
340         </ul>
341       </li>
342       <li>Faucibus porta lacus fringilla vel</li>
343       <li>Aenean sit amet erat nunc</li>
344       <li>Eget porttitor lorem</li>
345     </ul>
346   </div>
347 {% highlight html %}
348 <ul>
349   <li>...</li>
350 </ul>
351 {% endhighlight %}
352
353   <h3>Ordered</h3>
354   <p>A list of items in which the order <em>does</em> explicitly matter.</p>
355   <div class="bs-example" data-example-id="simple-ol">
356     <ol>
357       <li>Lorem ipsum dolor sit amet</li>
358       <li>Consectetur adipiscing elit</li>
359       <li>Integer molestie lorem at massa</li>
360       <li>Facilisis in pretium nisl aliquet</li>
361       <li>Nulla volutpat aliquam velit</li>
362       <li>Faucibus porta lacus fringilla vel</li>
363       <li>Aenean sit amet erat nunc</li>
364       <li>Eget porttitor lorem</li>
365     </ol>
366   </div>
367 {% highlight html %}
368 <ol>
369   <li>...</li>
370 </ol>
371 {% endhighlight %}
372
373   <h3>Unstyled</h3>
374   <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>
375   <div class="bs-example" data-example-id="unstyled-list">
376     <ul class="list-unstyled">
377       <li>Lorem ipsum dolor sit amet</li>
378       <li>Consectetur adipiscing elit</li>
379       <li>Integer molestie lorem at massa</li>
380       <li>Facilisis in pretium nisl aliquet</li>
381       <li>Nulla volutpat aliquam velit
382         <ul>
383           <li>Phasellus iaculis neque</li>
384           <li>Purus sodales ultricies</li>
385           <li>Vestibulum laoreet porttitor sem</li>
386           <li>Ac tristique libero volutpat at</li>
387         </ul>
388       </li>
389       <li>Faucibus porta lacus fringilla vel</li>
390       <li>Aenean sit amet erat nunc</li>
391       <li>Eget porttitor lorem</li>
392     </ul>
393   </div>
394 {% highlight html %}
395 <ul class="list-unstyled">
396   <li>...</li>
397 </ul>
398 {% endhighlight %}
399
400   <h3>Inline</h3>
401   <p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.</p>
402   <div class="bs-example" data-example-id="list-inline">
403     <ul class="list-inline">
404       <li>Lorem ipsum</li>
405       <li>Phasellus iaculis</li>
406       <li>Nulla volutpat</li>
407     </ul>
408   </div>
409 {% highlight html %}
410 <ul class="list-inline">
411   <li>...</li>
412 </ul>
413 {% endhighlight %}
414
415   <h3>Description</h3>
416   <p>A list of terms with their associated descriptions.</p>
417   <div class="bs-example" data-example-id="simple-dl">
418     <dl>
419       <dt>Description lists</dt>
420       <dd>A description list is perfect for defining terms.</dd>
421       <dt>Euismod</dt>
422       <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
423       <dd>Donec id elit non mi porta gravida at eget metus.</dd>
424       <dt>Malesuada porta</dt>
425       <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
426     </dl>
427   </div>
428 {% highlight html %}
429 <dl>
430   <dt>...</dt>
431   <dd>...</dd>
432 </dl>
433 {% endhighlight %}
434
435   <h4>Horizontal description</h4>
436   <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side. Starts off stacked like default <code>&lt;dl&gt;</code>s, but when the navbar expands, so do these.</p>
437   <div class="bs-example" data-example-id="horizontal-dl">
438     <dl class="dl-horizontal">
439       <dt>Description lists</dt>
440       <dd>A description list is perfect for defining terms.</dd>
441       <dt>Euismod</dt>
442       <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
443       <dd>Donec id elit non mi porta gravida at eget metus.</dd>
444       <dt>Malesuada porta</dt>
445       <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
446       <dt>Felis euismod semper eget lacinia</dt>
447       <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
448     </dl>
449   </div>
450 {% highlight html %}
451 <dl class="dl-horizontal">
452   <dt>...</dt>
453   <dd>...</dd>
454 </dl>
455 {% endhighlight %}
456
457   <div class="bs-callout bs-callout-info" id="callout-type-dl-truncate">
458     <h4>Auto-truncating</h4>
459     <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>
460   </div>
461 </div>