-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathindex.html
242 lines (242 loc) · 11.9 KB
/
index.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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta content='width=device-width' name='viewport'>
<title>Type Scale - A Visual Calculator</title>
<meta content='Preview and choose the right type scale for your project. Experiment with font size, scale and different webfonts.' name='description'>
<meta content='font, size, typography, typographic, typeface, em, ems, px, scale, calculate, calculator, webfont, edit, update, modular scale, preview' name='keywords'>
<link href='style.css' media='all' rel='stylesheet'>
<link href='http://fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic|Libre+Baskerville:400' rel='stylesheet' type='text/css'>
<link href='http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css' rel='stylesheet'>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-409712-10', 'type-scale.com');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- AdPacks.com Ad Code -->
<script type="text/javascript">
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = '//s3.buysellads.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
<!-- End AdPacks.com Ad Code -->
<div class='container stage'>
<div class='cols'>
<div class='col_side'>
<form>
<div class='box'>
<div class='field'>
<label>Base Size</label>
<input class='base_size input_select_all' style='max-width:4em;' type='text'>
<span class='text_muted'>
px = <span class="base_em">1.5</span>em
</span>
</div>
<div class='field'>
<label>Scale</label>
<select class='font_scale'>
<option value='1.414'>1.414 — Augmented Fourth</option>
<option value='1.618'>1.618 — Golden Section</option>
<option value='1.125'>1.125 — Major Second</option>
<option value='1.250'>1.250 — Major Third</option>
<option value='1.667'>1.667 — Major Sixth</option>
<option value='1.875'>1.875 — Major Seventh</option>
<option value='2.500'>2.500 — Major Tenth</option>
<option value='1.067'>1.067 — Minor Second</option>
<option value='1.200'>1.200 — Minor Third</option>
<option value='1.600'>1.600 — Minor Sixth</option>
<option value='1.778'>1.778 — Minor Seventh</option>
<option value='2.000'>2.000 — Octave</option>
<option value='1.333'>1.333 — Perfect Fourth</option>
<option selected='true' value='1.500'>1.500 — Perfect Fifth</option>
</select>
</div>
<div class='field'>
<label>Preview Text</label>
<input class='preview_text input_select_all' type='text' value='A Visual Type Scale'>
</div>
<div class='table_layout'>
<div class='table_cell'>
<h3>Google Webfont</h3>
</div>
<div class='table_cell text_right'>
<a class='font_small' href='http://www.google.com/fonts/' tabindex='-1' target='_blank'>Find Webfont</a>
</div>
</div>
<div class='field'>
<label>Paste Tag</label>
<input class='web_font input_select_all' type='text' value="<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville' rel='stylesheet' type='text/css'>">
</div>
<div class='field'>
<label>Paste CSS</label>
<input class='web_font_name input_select_all' type='text' value="font-family: 'Libre Baskerville', serif;">
</div>
</div>
</form>
<!-- AdPacks.com Zone Code -->
<div id="bsap_1291994" class="bsarocks bsap_0539c68d8c24c7e870a450d4e50e9e0e"></div>
<a href="http://adpacks.com" id="bsap_aplink" class="remove_border_bottom">via Ad Packs</a>
<!-- End AdPacks.com Zone Code -->
</div>
<div class='col_main' style='overflow:hidden;'>
<div class='table_padded'>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_high_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<h1>
<span class='scale_high scale_preview_text'>A Visual Type Scale</span>
</h1>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_high_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_high scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_high_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_high scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_high_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_high scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row scale_base_size'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_high_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_high scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_low_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_low scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_low_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_low scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
<div class='table_row'>
<div class='table_cell text_right cell_collapse'>
<span class='scale_low_label text_muted font_small'></span>
</div>
<div class='table_cell scale_webfont'>
<span class='scale_low scale_preview_text'>A Visual Type Scale</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='content container'>
<div class='cols stage_footer'>
<div class='col_side text_right media_xs_hide'>
<ul class='inline_list'>
<li>
<a class='remove_border_bottom' href='https://twitter.com/jeremybchurch'>
<span class='fa fa-twitter fa-lg'></span>
</a>
</li>
<li>
<a class='remove_border_bottom' href='https://www.google.com/+JeremyChurch'>
<span class='fa fa-google-plus-square fa-lg'></span>
</a>
</li>
<li>
<a class='remove_border_bottom' href='https://github.com/jeremychurch/type-scale'>
<span class='fa fa-github-alt fa-lg'></span>
</a>
</li>
</ul>
</div>
<div class='col_main'>
A type tool by
<ul class='inline_list'>
<li>
<a href='http://j.eremy.net/'>Jeremy Church</a>
</li>
</ul>
</div>
</div>
<div class='cols'>
<div class='col_side media_xs_hide'> </div>
<div class='col_main'>
<div class='content_width font_medium break_large'>
<div class="addthis_toolbox addthis_default_style">
<a class="remove_border_bottom addthis_button_tweet"></a>
<a class="remove_border_bottom addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="remove_border_bottom addthis_button_google_plusone" g:plusone:size="medium"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-5285205508e46c17"></script>
<h2>How to Use</h2>
<p>I like to enter the base font size of my body content. Then I select from the surrounding values for headers and small copy.</p>
<p>There are no rules. Just experiment and have fun. Try using the values for line-height, margins or whatever, and see what works.</p>
<h2>Background</h2>
<p>Most people are familiar with Tim Brown’s <a href="http://modularscale.com/">Modular Scale</a> calculator. The site has raised awareness about scale and helped to improve typography on the web. It’s also the inspiration for this project.</p>
<p>The <em>Modular Scale</em> site has been a great reference over the years, but sometimes it’s difficult to choose the proper scale without a visual reference. I hope to bridge that gap with <em>Type Scale</em>.</p>
<h2>Updates</h2>
<p>I’d like to keep this project current and useful to the community. Please direct ideas and feedback to me on <a href="https://twitter.com/jeremybchurch">Twitter</a> or the <a href="http://j.eremy.net/contact">contact page</a> on my site.</p>
</div>
<div class='break_small'>
<ul class='inline_list'>
<li>
<a class='remove_border_bottom' href='https://twitter.com/jeremybchurch'>
<span class='fa fa-twitter fa-2x'></span>
</a>
</li>
<li>
<a class='remove_border_bottom' href='https://www.google.com/+JeremyChurch'>
<span class='fa fa-google-plus-square fa-2x'></span>
</a>
</li>
<li>
<a class='remove_border_bottom' href='https://github.com/jeremychurch/type-scale'>
<span class='fa fa-github-alt fa-2x'></span>
</a>
</li>
</ul>
</div>
<p class='font_small'>
Created by <a href="http://j.eremy.net/">Jeremy Church</a>
<br>
Project available on <a href="https://github.com/jeremychurch/type-scale">Github</a>. Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a>.
</p>
</div>
</div>
</div>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'></script>
<script src='script.min.js'></script>
</body>
</html>