Skip to content

Commit e6c6fff

Browse files
author
mrmrs
committed
Update docs for text-align.
1 parent 3162c15 commit e6c6fff

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

docs/typography/text-align/index.html

+13-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</header>
4343

4444
<main class="">
45-
<article class="bg-near-white bt b--black-10 ph3 pt3 ph5-ns">
45+
<article class="bg-near-white bt b--black-10 pa3 ph5-ns">
4646
<h4 class="f4 mv0 fw6 dib mr4">text-align</h4>
4747
<span class="f4 b dib pl0 ml0 mr4">v2.0.3</span>
4848
<span class="f4 b dib pl0 ml0 mr4">146 B</span>
@@ -64,22 +64,29 @@ <h4 class="f4 mv0 fw6 dib mr4">text-align</h4>
6464
<dd class="db pl0 ml0 f4 f2-ns b">1</dd>
6565
</dl>
6666
</div>
67+
<p class="measure f4 f3-ns lh-copy">
68+
Designing for readability across infinite screen-sizes
69+
often times requires setting elements to have different text-alignments across breakpoints.
70+
</p>
71+
<p class="measure f5 f4-ns lh-copy">
72+
These are simple utilities for setting text-alignment to the left, right, or center of an element.
73+
</p>
6774
</article>
6875
<div class="ph3 ph5-ns pt4 pb5">
69-
<h2 class="f3 bold">Examples</h2>
70-
<h3 class="f5 book pt4 caps">Text Align Left</h3>
76+
<h2 class="f3 b">Examples</h2>
77+
<h3 class="f5 fw4 pt4 caps">Text Align Left</h3>
7178
<p class="measure bg-black-10">
7279
Aligned Left
7380
</p>
74-
<h3 class="f5 book pt4 caps">Text Align Right</h3>
81+
<h3 class="f5 fw4 pt4 caps">Text Align Right</h3>
7582
<p class="tr measure bg-black-10">
7683
Aligned Right
7784
</p>
78-
<h3 class="f5 book pt4 caps">Text Align Center</h3>
85+
<h3 class="f5 fw4 pt4 caps">Text Align Center</h3>
7986
<p class="tc measure bg-black-10">
8087
Aligned to the center
8188
</p>
82-
<h3 class="f5 book pt4 caps">Justified Text</h3>
89+
<h3 class="f5 fw4 pt4 caps">Justified Text</h3>
8390
<p class="tj measure bg-black-10">
8491
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
8592
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At

src/templates/docs/text-align/index.html

+13-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<%= siteHeader %>
1717
<main class="">
18-
<article class="bg-near-white bt b--black-10 ph3 pt3 ph5-ns">
18+
<article class="bg-near-white bt b--black-10 pa3 ph5-ns">
1919
<h4 class="f4 mv0 fw6 dib mr4"><%= name %></h4>
2020
<span class="f4 b dib pl0 ml0 mr4">v<%= moduleVersion %></span>
2121
<span class="f4 b dib pl0 ml0 mr4"><%= moduleSize %></span>
@@ -37,22 +37,29 @@ <h4 class="f4 mv0 fw6 dib mr4"><%= name %></h4>
3737
<dd class="db pl0 ml0 f4 f2-ns b"><%= moduleObj.rules.size.average %></dd>
3838
</dl>
3939
</div>
40+
<p class="measure f4 f3-ns lh-copy">
41+
Designing for readability across infinite screen-sizes
42+
often times requires setting elements to have different text-alignments across breakpoints.
43+
</p>
44+
<p class="measure f5 f4-ns lh-copy">
45+
These are simple utilities for setting text-alignment to the left, right, or center of an element.
46+
</p>
4047
</article>
4148
<div class="ph3 ph5-ns pt4 pb5">
42-
<h2 class="f3 bold">Examples</h2>
43-
<h3 class="f5 book pt4 caps">Text Align Left</h3>
49+
<h2 class="f3 b">Examples</h2>
50+
<h3 class="f5 fw4 pt4 caps">Text Align Left</h3>
4451
<p class="measure bg-black-10">
4552
Aligned Left
4653
</p>
47-
<h3 class="f5 book pt4 caps">Text Align Right</h3>
54+
<h3 class="f5 fw4 pt4 caps">Text Align Right</h3>
4855
<p class="tr measure bg-black-10">
4956
Aligned Right
5057
</p>
51-
<h3 class="f5 book pt4 caps">Text Align Center</h3>
58+
<h3 class="f5 fw4 pt4 caps">Text Align Center</h3>
5259
<p class="tc measure bg-black-10">
5360
Aligned to the center
5461
</p>
55-
<h3 class="f5 book pt4 caps">Justified Text</h3>
62+
<h3 class="f5 fw4 pt4 caps">Justified Text</h3>
5663
<p class="tj measure bg-black-10">
5764
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
5865
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At

0 commit comments

Comments
 (0)