-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
414 lines (411 loc) · 18.3 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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!doctype html>
<html class="" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Type CSS Framework</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700|Libre+Baskerville:400,400i,700" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/type.css">
<link rel="stylesheet" href="css/display.css">
</head>
<body id="container">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<header>
<h1>Type CSS Framework</h1>
<p>Simple CSS for displaying text in a readable format</p>
</header>
<nav role="navigation">
<div class="navbar">
<div class="navbar-item"><a href="#about">About</a></div>
<div class="navbar-item"><a href="#grid">Grid</a></div>
<div class="navbar-item"><a href="#typography">Typography</a></div>
<div class="navbar-item"><a href="#buttons">Buttons</a></div>
<div class="navbar-item"><a href="#forms">Forms</a></div>
<div class="navbar-item"><a href="#tables">Tables</a></div>
<div class="navbar-item"><a href="#cards">Cards</a></div>
<div class="navbar-item"><a href="#utilities">Utilities</a></div>
</div>
</nav>
<main>
<section id="about">
<div class="row">
<div class="col">
<h2>About</h2>
<p>Type CSS is designed to create minimalist, functional, and easily consumable web pages. Best used for displaying text content, its purpose is to create webpages where form follows function. Text content should be easy to read, and
avoid complex interactions and interfaces. Type CSS achieves this goal through lightweight pages and CSS, easily digested typography, and carefully considered design decisions that maximize consumption of information.</p>
<h3>Download</h3>
<p>Clone from <a href="https://github.com/alexgoff/Type-CSS" target="_blank">GitHub</a></p>
<p>Download a <a href="https://github.com/alexgoff/Type-CSS/archive/master.zip" target="_blank">copy</a></p>
</div>
</div>
</section>
<section id="grid">
<div class="row">
<div class="col">
<h2>Grid</h2>
<p>The grid system in Type CSS is built on flexbox and can have a variable number of columns per row. In addition to the standard layout agnostic column, Type CSS also includes a flexbox-based 12 column grid.</p>
</div>
</div>
<div class="row">
<div class="col">
<p>Variable width <code>.col</code> class</p>
</div>
</div>
<div class="row">
<div class="col col-bg"><code>.col</code></div>
</div>
<div class="row">
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
</div>
<div class="row">
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
</div>
<div class="row">
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
<div class="col col-bg"><code>.col</code></div>
</div>
<div class="row">
<div class="col">
<p>Fixed width <code>.col-*</code> classes</p>
</div>
</div>
<div class="row">
<div class="col-1 col-bg"><code>.col-1</code></div>
<div class="col-11 col-bg"><code>.col-11</code></div>
</div>
<div class="row">
<div class="col-2 col-bg"><code>.col-2</code></div>
<div class="col-10 col-bg"><code>.col-10</code></div>
</div>
<div class="row">
<div class="col-3 col-bg"><code>.col-3</code></div>
<div class="col-9 col-bg"><code>.col-9</code></div>
</div>
<div class="row">
<div class="col-4 col-bg"><code>.col-4</code></div>
<div class="col-8 col-bg"><code>.col-8</code></div>
</div>
<div class="row">
<div class="col-5 col-bg"><code>.col-5</code></div>
<div class="col-7 col-bg"><code>.col-7</code></div>
</div>
<div class="row">
<div class="col-6 col-bg"><code>.col-6</code></div>
<div class="col-6 col-bg"><code>.col-6</code></div>
</div>
<div class="row">
<div class="col-7 col-bg"><code>.col-7</code></div>
<div class="col-5 col-bg"><code>.col-5</code></div>
</div>
<div class="row">
<div class="col-8 col-bg"><code>.col-8</code></div>
<div class="col-4 col-bg"><code>.col-4</code></div>
</div>
<div class="row">
<div class="col-9 col-bg"><code>.col-9</code></div>
<div class="col-3 col-bg"><code>.col-3</code></div>
</div>
<div class="row">
<div class="col-10 col-bg"><code>.col-10</code></div>
<div class="col-2 col-bg"><code>.col-2</code></div>
</div>
<div class="row">
<div class="col-11 col-bg"><code>.col-11</code></div>
<div class="col-1 col-bg"><code>.col-1</code></div>
</div>
<div class="row">
<div class="col-12 col-bg"><code>.col-12</code></div>
</div>
<div class="row">
<div class="col">
<h3>Grid Layout Utilities</h3>
<h4>Order</h4>
<p>Normal order</p>
</div>
</div>
<div class="row">
<div class="col col-bg">1</div>
<div class="col col-bg">2</div>
<div class="col col-bg">3</div>
<div class="col col-bg">4</div>
<div class="col col-bg">5</div>
</div>
<div class="row">
<div class "col">
<p>Reverse order <code>.reverse</code> class</p>
</div>
</div>
<div class="row reverse">
<div class="col col-bg">1</div>
<div class="col col-bg">2</div>
<div class="col col-bg">3</div>
<div class="col col-bg">4</div>
<div class="col col-bg">5</div>
</div>
<div class="row">
<div class="col">
<h4>Alignment</h4>
<p>Start <code>-start</code> class</p>
</div>
</div>
<div class="row start">
<div class="col-4 col-bg"><code>.col-4</code></div>
</div>
<div class="row">
<div class="col">
<p>Center <code>-center</code> class</p>
</div>
</div>
<div class="row center">
<div class="col-4 col-bg"><code>.col-4</code></div>
</div>
<div class="row">
<div class="col">
<p>End <code>.end</code> class</p>
</div>
</div>
<div class="row end">
<div class="col-4 col-bg"><code>.col-4</code></div>
</div>
<div class="row">
<div class="col">
<h4>Spacing</h4>
<p>Around <code>.around</code> class</p>
</div>
</div>
<div class="row around">
<div class="col-2 col-bg"><code>.col-2</code></div>
<div class="col-2 col-bg"><code>.col-2</code></div>
<div class="col-2 col-bg"><code>.col-2</code></div>
</div>
<div class="row">
<div class="col">
<p>Between <code>.between</code> class</p>
</div>
</div>
<div class="row between">
<div class="col-2 col-bg"><code>.col-2</code></div>
<div class="col-2 col-bg"><code>.col-2</code></div>
<div class="col-2 col-bg"><code>.col-2</code></div>
</div>
</section>
<section id="typography">
<div class="row">
<div class="col">
<h2>Typography</h2>
<p>Type CSS is based on <code>rem</code> units of measure. The base font-size is defined in the root <code>html</code> element as <code>font-size: 16px</code> which forces a uniform size that matches most browsers defaults, along with
being large enough for easy reading by many users.</p>
</div>
</div>
<div class="row">
<div class="col">
<p>The base font is Lato imported from Google Fonts, set at <code>16px</code> font-sizing, with a line height of <code>1.5</code>. Body copy uses <code>#444</code> as its display color.</p>
<p>Headings use Libre Baskerville imported from Google Fonts, sized based on major third ratios with the <code><h1></code> tag set at <code>2.5em</code> scaling down to <code><h6></code> set at <code>0.75em</code>. Headings
use <code>#222</code> as its display color</p>
<p><a href="#random">Anchor text</a></p>
<p><strong>Strong</strong></p>
<p><em>Emphasis</em></p>
<p><u>Underline</u></p>
</div>
<div class="col">
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</div>
</div>
<div class="row">
<div class="col">
<ul>
<li>List Item #1</li>
<li>List Item #2</li>
<li>List Item #3</li>
</ul>
</div>
<div class="col">
<ol>
<li>List Item #1</li>
<li>List Item #2</li>
<li>List Item #3</li>
</ol>
</div>
</div>
</section>
<section id="buttons">
<div class="row">
<div class="col">
<h2>Buttons</h2>
<p>Type CSS includes two styles of buttons, a plain standard button for the <code><button></code> element, <code><input></code> elements, and the <code>.button</code> class; and a highlighted <code>.button-primary</code> class</p>
</div>
</div>
<div class="row">
<div class="col">
<button>Button</button>
<a href="#" class="button">Anchor Button</a>
<input type="submit" value="Submit Input">
<input type="button" value="Button Input">
</div>
</div>
<div class="row">
<div class="col">
<button class="button-primary">Button</button>
<a href="#" class="button-primary">Anchor Button</a>
<input type="submit" value="Submit Input" class="button-primary">
<input type="button" value="Button Input" class="button-primary">
</div>
</div>
</section>
<section id="forms">
<div class="row">
<div class="col">
<h2>Forms</h2>
</div>
</div>
<form>
<div class="row">
<div class="col-6">
<label for="textInputExample">Text Input</label>
<input type="text" placeholder="Full name" id="textInputExample">
</div>
<div class="col-6">
<label for="emailInputExample">Email Input</label>
<input type="email" placeholder="[email protected]" id="emailInputExample">
</div>
</div>
<div class="row">
<div class="col">
<label for="textareaExample">Text Area</label>
<textarea placeholder="Some text here..." id="textareaExample"></textarea>
</div>
</div>
<div class="row">
<div class="col">
<label for="selectExample">Select Dropdown</label>
<select id="selectExample">
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
<option value="Option 3">Option 3</option>
</select>
</div>
</div>
<div class="row">
<div class="col">
<input type="submit" value="Submit Input" class="button-primary">
</div>
</div>
</form>
</section>
<section id="tables">
<div class="row">
<div class="col">
<h2>Tables</h2>
<p>Simple table styling is provided so that tables will fill the width of their container and have a basic, minimal styling.</p>
</div>
</div>
<div class="row">
<div class="col">
<table>
<thead>
<tr>
<th>#1</th>
<th>#2</th>
<th>#3</th>
<th>#4</th>
</tr>
</thead>
<tbody>
<tr>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section id="cards">
<div class="row">
<div class="col">
<h2>Cards</h2>
<p>Cards are a widespread part of modern interface design. They can be used for a variety of purposes, <a href="https://material.io/guidelines/components/cards.html" target="_blank" title="material.io cards">material.io</a> describes
them as:</p>
<blockquote>
Cards may contain a photo, text, and a link about a single subject. They may display content containing elements of varying size, such as photos with captions of variable length.
</blockquote>
<p>There is one basic card style included in Type CSS that mimicks paper. Cards can be used in conjunction with the grid scaffolding and other components to form a wide range of UI elements</p>
</div>
</div>
<div class="row">
<div class="col-4 card">
<h3>Class</h3>
<p>Cards are created using the <code>.card</code> class</p>
</div>
<div class="col-4 card">
<h3>Layout</h3>
<p>Cards are can be used with layout classes such as rows and grid scaffolding to make complex layouts.</p>
</div>
<div class="col-4 card">
<img class="img-responsive" src="img/b_w_architecture.jpg" alt="Black and white photo of the interior of a large modern building">
</div>
</div>
</section>
<section id="utilities">
<div class="row">
<div class="col">
<h2>Utility Classes</h2>
</div>
</div>
<div class="row">
<div class="col-9">
<h3>Responsive Images</h3>
<p><code>.img-responsive</code> class forces images to fill the width of their container and scale with it.</p>
</div>
<div class="col-3">
<img class="img-responsive" src="img/img_demo.jpg" alt="Belfry tower">
</div>
</div>
<div class="row">
<div class="col">
<h3>Layout classes</h3>
<p><code>.left</code> and <code>.right</code> float elements to their respective positions.</p>
</div>
</div>
</section>
</main>
<footer>
<div class="row">
<div class="col end">
© Alex Goff 2016-2017
</div>
</div>
</footer>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="js/menu-toggle.js"></script>
</html>