-
Notifications
You must be signed in to change notification settings - Fork 4
/
typography.html
242 lines (205 loc) · 10 KB
/
typography.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
---
layout: default
title: Typography
subnav:
- Headers
- Emphasis
- Alignment
- Lists
- Links
---
<section id="Headers">
<h2 class="m-b-1-xs">Headers and Text Sizing</h2>
<p class="m-b-2-xs">Headers are built using typical html elements <code>h1 - h6</code>. To give ourselves a bit more control, we've created utility classes for applying different sizes to the default elements so that we can control markup hierarchy while still applying the sizes we want visually (<code>.text-0-xs</code>, <code>.text-1-xs</code>, <code>.text-2-xs</code>, <code>.text-3-xs</code>, <code>.text-4-xs</code>, <code>.text-5-xs</code>, <code>.text-6-xs</code>). By default, headers have no margin/padding applied to them and are bold.</p>
<div><code>h1, .text-0-xs</code> <em class="m-l-05-xs">3.75rem, 60px</em></div>
<div class="m-b-2-xs"><h1 class="text-0-xs">Treehouse is an online school that teaches you code</h1></div>
<div><code>h1, .text-1-xs</code> <em class="m-l-05-xs">3rem, 48px</em></div>
<div class="m-b-2-xs"><h1>Treehouse is an online school that teaches you code</h1></div>
<div><code>h2, .text-2-xs</code> <em class="m-l-05-xs">2.25rem, 36px</em></div>
<div class="m-b-2-xs"><h2>Treehouse is an online school that teaches you code</h2></div>
<div><code>h3, .text-3-xs</code> <em class="m-l-05-xs">1.5rem, 24px</em></div>
<div class="m-b-2-xs"><h3>Treehouse is an online school that teaches you code</h3></div>
<div><code>h4, .text-4-xs</code> <em class="m-l-05-xs">1.25rem, 18px</em></div>
<div class="m-b-2-xs"><h4>Treehouse is an online school that teaches you code</h4></div>
<div><code>h5, .text-5-xs</code> <em class="m-l-05-xs">1rem, 16px</em></div>
<div class="m-b-2-xs"><h5>Treehouse is an online school that teaches you code</h5></div>
<div><code>h6, .text-6-xs</code> <em class="m-l-05-xs">0.875rem, 14px</em></div>
<div class="m-b-2-xs"><h6>Treehouse is an online school that teaches you code</h6></div>
<div><code>p</code> <em class="m-l-05-xs">1rem, 16px</em></div>
<div class="m-b-2-xs"><p>Treehouse is an online school that teaches you code</p></div>
<div class="guide-code">
<pre><code class="language-html"><h1 class="text-0-xs">Treehouse is an online school that teaches you code</h1>
<p class="text-0-xs">Treehouse is an online school that teaches you code</p>
<h1>Treehouse is an online school that teaches you code</h1>
<p class="text-1-xs">Treehouse is an online school that teaches you code</p>
<h2>Treehouse is an online school that teaches you code</h2>
<p class="text-2-xs">Treehouse is an online school that teaches you code</p>
<h3>Treehouse is an online school that teaches you code</h3>
<p class="text-3-xs">Treehouse is an online school that teaches you code</p>
<h4>Treehouse is an online school that teaches you code</h4>
<p class="text-4-xs">Treehouse is an online school that teaches you code</p>
<h5>Treehouse is an online school that teaches you code</h5>
<p class="text-5-xs">Treehouse is an online school that teaches you code</p>
<h6>Treehouse is an online school that teaches you code</h6>
<p>Treehouse is an online school that teaches you code</p></code></pre>
</div>
<div class="border-mid-xs m-b-1-xs p-1-xs">
<p class="text-6-xs text-5-sm text-4-md text-3-lg">
<span class="inline-block-xs hide-sm">.text-6-xs</span>
<span class="hide-xs hide-md inline-block-sm">.text-5-sm</span>
<span class="hide-xs hide-lg inline-block-md">.text-4-md</span>
<span class="hide-xs inline-block-lg">.text-3-lg</span>
<span class="m-r-1-xs p-r-1-xs border-r-dark-xs"></span>
Resize your browser to see this text size change.
</p>
</div>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><div class="border-mid-xs m-b-3-xs p-1-xs">
<p class="text-6-xs text-5-sm text-4-md text-3-lg">
<span class="inline-block-xs hide-sm">.text-6-xs</span>
<span class="hide-xs hide-md inline-block-sm">.text-5-sm</span>
<span class="hide-xs hide-lg inline-block-md">.text-4-md</span>
<span class="hide-xs inline-block-lg">.text-3-lg</span>
<span class="m-r-1-xs p-r-1-xs border-r-dark-xs"></span>
Resize your browser to see this text size change.
</p>
</div></code></pre>
</div>
</section>
<section id="Emphasis">
<h2 class="m-b-1-xs">Emphasis</h2>
<p class="m-b-2-xs">Using the following tags will add some emphasis to your text elements</p>
<div><code>.regular</code></div>
<p class="bold"><span class="regular">Treehouse is</span> an online school that teaches you code</p>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><p class="bold"><span class="regular">Treehouse is</span> an online school that teaches you code</p></code></pre>
</div>
<div><code>strong, .bold</code></div>
<p class="bold">Treehouse is an online school that teaches you code</p>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><p class="bold">Treehouse is an online school that teaches you code</p></code></pre>
</div>
<div><code>em, .italic</code></div>
<p class="italic">Treehouse is an online school that teaches you code</p>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><p class="italic">Treehouse is an online school that teaches you code</p></code></pre>
</div>
<div><code>.caps</code></div>
<p class="caps">Treehouse is an online school that teaches you code</p>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><p class="caps">Treehouse is an online school that teaches you code</p></code></pre>
</div>
</section>
<section id="Alignment">
<h2 class="m-b-1-xs">Text Alignment</h2>
<p class="m-b-2-xs">Use the following classes to control text alignment in your layouts.</p>
<div><code>.text-left</code></div>
<div class="p-2-xs border-mid-xs">
<p class="text-left-xs">Left aligned text</p>
</div>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><div class="p-2-xs border-mid-xs">
<p class="text-left-xs">Left aligned text</p>
</div></code></pre>
</div>
<div><code>.text-right-xs</code></div>
<div class="p-2-xs border-mid-xs">
<p class="text-right-xs">Right aligned text</p>
</div>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><div class="p-2-xs border-mid-xs">
<p class="text-right-xs">Right aligned text</p>
</div></code></pre>
</div>
<div><code>.text-center-xs</code></div>
<div class="p-2-xs border-mid-xs">
<p class="text-center-xs">Center aligned text</p>
</div>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><div class="p-2-xs border-mid-xs">
<p class="text-center-xs">Center aligned text</p>
</div></code></pre>
</div>
<div><code>.text-justify-xs</code></div>
<div class="p-2-xs border-mid-xs">
<p class="text-justify-xs">Justified aligned text. Aenean lacinia bibendum nulla sed consectetur. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas faucibus mollis interdum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
</div>
<div class="guide-code m-b-3-xs">
<pre><code class="language-html"><div class="p-2-xs border-mid-xs">
<p class="text-justify-xs">Justified aligned text ...</p>
</div></code></pre>
</div>
</section>
<section id="Lists">
<h2 class="m-b-1-xs">Lists</h2>
<p class="m-b-2-xs">Leap comes with basic styles for unordered and ordered lists. You can remove the styling on either of them by using the class, <code>.list-unstyled</code>.</p>
<div class="m-b-2-xs">
<div><code>ul</code></div>
<ul>
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
</div>
<div class="m-b-2-xs">
<div><code>ol</code></div>
<ol>
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
</div>
<div class="m-b-2-xs">
<div><code>.list-unstyled</code></div>
<ul class="list-unstyled">
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
</div>
<div class="m-b-2-xs">
<div><code>.list-lined</code></div>
<ul class="list-lined">
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
</div>
<div class="guide-code">
<pre><code class="language-html"><ul>
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
<ol>
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
<ul class="list-unstyled">
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul>
<ul class="list-lined">
<li>List item 1</li>
<li>List item 2 </li>
<li>List item 3</li>
<li>List item 4</li>
</ul></code></pre>
</div>
</section>
<section id="Links">
<h2 class="m-b-1-xs">Links</h2>
<p class="m-b-2-xs">This is the default styling for text links. <code>a</code> tags are styled with the <code>blue-light</code> color initially, and darken to a <code>blue-medium</code> color on <code>:hover</code> and <code>:active</code> states.</p>
<div class="m-b-2-xs">
<a href="">This is a link.</a>
</div>
</section>