Skip to content

Commit 7d055d3

Browse files
author
mrmrs
committed
Update docs
1 parent 2222861 commit 7d055d3

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

docs/typography/scale/index.html

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@
7272
<article class="ph3 ph5-ns">
7373
<div class="cf mw9 center">
7474
<h3 class="w-100 fl f6 ttu tracked mt0">Type Scale</h3>
75-
<div class="fl w-100 w-50-ns">
76-
<p class="measure f5 f4-ns lh-copy">
75+
<div class="fl w-100 w-two-thirds-l pr3-ns">
76+
<p class="fl w-100 measure f5 f4-ns lh-copy mb3">
7777
Often times, websites devote a non-trivial amount of css to setting
7878
font-size. They declare an unnecessary amount of different
7979
font-sizes that upon inspection, don't come close to resembling a sane type scale.
8080
</p>
81-
<p class="measure f6 f5-ns lh-copy">
81+
<p class="fl w-100 w-50-ns v-top f5 f6-ns lh-copy pr2-ns">
8282
To create and design an easily readable interface, you don't need
83-
more than 40 font-sizes. A simple ratio-based scale with 8 options should suffice.
84-
Using the class extension namespaces you
85-
can set the font-size for any particular breakpoint that you desire.
83+
more than 40 font-sizes. A simple ratio-based scale with 8
84+
options should suffice. Using the class extension namespaces you
85+
can set the font-size for any particular breakpoint that you
86+
desire.
8687
</p>
87-
<p class="measure f6 f5-ns lh-copy">
88+
<p class="fl w-100 w-50-ns measure measure-narrow-ns v-top f5 f6-ns lh-copy pl2-ns">
8889
Don't spend time constantly overriding font-sizes in your css.
8990
If you don't like a default font-size for an element, use the utilities to quickly make the text larger or smaller until it looks just right.
9091
</p>
9192
</div>
92-
<div class="fl pl4-m pl5-l w-100 w-50-ns v-top">
93-
<h4 class="f6 fw6 black-70 lh-title mb0 mt3 pt2">Demo on how to adjust font-size using Tachyons</h4>
93+
<div class="fl w-100 w-third-l v-top">
9494
<div class="ba b--light-gray bg-near-white pa3 mt3-ns">
9595
<div class="aspect-ratio aspect-ratio--8x5 ba b--black-10">
9696
<iframe class="aspect-ratio--object" src="https://player.vimeo.com/video/183819916" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
@@ -99,14 +99,15 @@ <h4 class="f6 fw6 black-70 lh-title mb0 mt3 pt2">Demo on how to adjust font-size
9999
</div>
100100
</div>
101101
</article>
102-
<div class="ph3 ph5-ns bt bn-ns b--black-10 pt4 mb5-ns mv4 mt0-ns pt0-ns pb5">
103-
<blockquote class="f5 f4-m f2-l black-70 lh-copy mh0 pv4 bb bt b--black-20">
104-
<p class="baskerville fw1 measure center">
105-
"The simplest scale is a single note, and sticking with a single note draws more attention to other parameters, such as rhythm and inflection... In the sixteenth century, a series of common sizes developed among European typographers, and the series survived with little change and few additions for 400 years... This is the typographic equivalent of the diatonic scale."
106-
</p>
107-
<p class="dark-gray f5 f4-m f2-l center measure"><span class="f6">Robert Bringhurst - <b>The Elements of Typographic Style</b></span></p>
108-
</blockquote>
109-
<h2 class="f5 b mb4">Font sizes</h2>
102+
<div class="ph3 ph5-ns mt0-ns mb5-ns pt0-ns pb5">
103+
<div class="mw9 center">
104+
<blockquote class="f5 f4-m f2-l black-70 lh-copy mh0 pv4 ph3 bt bb bw1 b--black-05 mv4 mv5-ns db">
105+
<p class="baskerville fw1 measure center">
106+
"The simplest scale is a single note, and sticking with a single note draws more attention to other parameters, such as rhythm and inflection... In the sixteenth century, a series of common sizes developed among European typographers, and the series survived with little change and few additions for 400 years... This is the typographic equivalent of the diatonic scale."
107+
</p>
108+
<p class="dark-gray f5 f4-m f2-l center measure"><span class="f6">Robert Bringhurst - <b>The Elements of Typographic Style</b></span></p>
109+
</blockquote>
110+
<h2 class="f5 b mv4 mt5-ns">Font sizes</h2>
110111
<div class="w-100 overflow-x-auto">
111112
<table>
112113
<tr>
@@ -197,8 +198,12 @@ <h4 class="f6 fw6">Reference</h4>
197198
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size" class="link fw6 blue dim">MDN - Font-size</a>
198199
</div>
199200
</div>
201+
</div>
200202
<section class="bg-white black-70 pv4 mb4 bt bb b--black-40 overflow-container">
201-
<header class="ph3 ph5-ns pt4">
203+
<div class="ph3 ph5-ns pt4">
204+
<div class="mw9 center">
205+
<header>
206+
202207
<h4 class="f4 mv0 fw6 dib mr4">tachyons-type-scale</h4>
203208
<span class="f4 b dib pl0 ml0 mr4">v6.0.1</span>
204209
<span class="f4 b dib pl0 ml0 mr4">242 B</span>
@@ -223,7 +228,7 @@ <h4 class="f4 mv0 fw6 dib mr4">tachyons-type-scale</h4>
223228
<h4 class="f6">Source code</h4>
224229
<kbd>src/_type-scale.css</kbd>
225230
</header>
226-
<pre class="ph3 ph5-ns">
231+
<pre>
227232
<code class="code" style="font-size: .75rem;">
228233
/*
229234

@@ -318,6 +323,8 @@ <h4 class="f6">Source code</h4>
318323

319324
</code>
320325
</pre>
326+
</div>
327+
</div>
321328
</section>
322329
<div class="ph3 ph5-ns pb5">
323330
<article class="pb3">

0 commit comments

Comments
 (0)