This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
style-guide.html
588 lines (556 loc) · 23.6 KB
/
style-guide.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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta tags -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<!-- stylesheets -->
<link rel="stylesheet" type="text/css" media="all" href="styles-compiled/application.css"/>
<!-- conditional comments -->
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="all" href="styles-compiled/ie.css" />
<![endif]-->
<!-- print stylesheet -->
<link rel="stylesheet" type="text/css" media="print" href="styles-compiled/print.css"/>
<!-- external styles -->
<!-- <link rel="stylesheet" type="text/css" media="all" href="scripts/lib/jquery-ui/1.8.18/themes/redmond/jquery-ui.redmond.css"/> -->
<!-- Favicons and touch icons -->
<!-- For retina-display iPads -->
<link href="images/apple-touch-icon-xlarge.png" rel="apple-touch-icon-precomposed" sizes="144x144" type="image/png"/>
<!-- For retina-display iPhones -->
<link href="images/apple-touch-icon-large.png" rel="apple-touch-icon-precomposed" sizes="114x114" type="image/png"/>
<!-- For iPad 1 -->
<link href="images/apple-touch-icon-medium.png" rel="apple-touch-icon-precomposed" sizes="72x72" type="image/png"/>
<!-- For iPhone 3G, iPod Touch and Android -->
<link href="images/apple-touch-icon-small.png" rel="apple-touch-icon-precomposed" type="image/png"/>
<!-- For Nokia -->
<link href="images/apple-touch-icon-small.png" rel="shortcut icon"/>
<!-- For everything else -->
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<!-- header javascript -->
<!-- stand-alone utilities -->
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/55_utils.js">
</script>
<script type="text/javascript">
document.getElementsByTagName("html")[0].className += fiftyfive.util.getIEClass();
// scroll to hide iPhone URL bar; from http://remysharp.com/2010/08/05/doing-it-right-skipping-the-iphone-url-bar/
/iphone/i.test(navigator.userAgent) && !location.hash && setTimeout(function () {
if (!pageYOffset) window.scrollTo(0, 1);
}, 1000);
</script>
<!-- HTML5 and media query polyfill for IE8 and below -->
<script src="scripts/lib/shivs-custom.js" type="text/javascript"></script>
<title>CSS3/HTML5 scaffolding style guide</title>
</head>
<body id="style-guide">
<div id="page">
<header id="intro">
<h1>CSS3/HTML5 scaffolding style guide</h1>
<p>This page contains the style guide for your application: the colors, typography, and common widget styles. The guide's structure and organization borrows heavily from the <a href="http://twitter.github.com/bootstrap/" title="Bootstrap, from Twitter">Twitter bootstrap</a>.</p>
</header> <!-- /#intro -->
<section id="examples">
<section class="colors group">
<h1>Colors</h1>
<div class="explanation">
<p>The color palette for the application and a description of each color's usage.</p>
</div> <!-- /.explanation -->
<div class="example">
<table>
<thead>
<tr>
<th class="color-name">Name</th>
<th class="swatch"> </th>
<th class="hex-code">Hex code</th>
<th class="usage">Usage/notes</th>
</tr>
</thead>
<tbody>
<tr>
<td class="color-name">Eggplant purple</td>
<td class="swatch eggplant-purple"> </td>
<td class="hex-code">#4a1a2b</td>
<td class="usage">
Visited link
</td>
</tr>
<tr>
<td class="color-name">Teal</td>
<td class="swatch teal"> </td>
<td class="hex-code">#207861</td>
<td class="usage">
Subheading
</td>
</tr>
<tr>
<td class="color-name">Leaf green</td>
<td class="swatch leaf-green"> </td>
<td class="hex-code">#9fad00</td>
<td class="usage">
Success feedback
</td>
</tr>
<tr>
<td class="color-name">Bright yellow</td>
<td class="swatch bright-yellow"> </td>
<td class="hex-code">#ffcc00</td>
<td class="usage">
Warning feedback
</td>
</tr>
<tr>
<td class="color-name">Orange</td>
<td class="swatch orange"> </td>
<td class="hex-code">#ff8400</td>
<td class="usage">
Buttons
</td>
</tr>
<tr>
<td class="color-name">Blue</td>
<td class="swatch blue"> </td>
<td class="hex-code">#1673a1</td>
<td class="usage">
Link
</td>
</tr>
<tr>
<td class="color-name">Red</td>
<td class="swatch red"> </td>
<td class="hex-code">#e53b19</td>
<td class="usage">
Error feedback
</td>
</tr>
<tr>
<td class="color-name">Charcoal</td>
<td class="swatch charcoal"> </td>
<td class="hex-code">#444444</td>
<td class="usage">
Body text
</td>
</tr>
<tr>
<td class="color-name">Grey</td>
<td class="swatch grey"> </td>
<td class="hex-code">#808080</td>
<td class="usage">
Secondary text
</td>
</tr>
<tr>
<td class="color-name">Silver</td>
<td class="swatch silver"> </td>
<td class="hex-code">#c0c0c0</td>
<td class="usage">
Disabled text, disabled buttons
</td>
</tr>
<tr>
<td class="color-name">Greyish white</td>
<td class="swatch greyish-white"> </td>
<td class="hex-code">#f0f0f0</td>
<td class="usage">
Accent background
</td>
</tr>
</tbody>
</table>
</div> <!-- /.example -->
</section> <!-- /.colors -->
<section class="typography group">
<h1>Typography</h1>
<div class="explanation">
<h2>Headings and copy</h2>
<p>Styles for textual content: headings, paragraphs, lists, etc.</p>
</div> <!-- /.explanation -->
<div class="example">
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<p>Lorem ipsum dolor sit amet, <a href="http://google.com/">consectetur adipiscing</a> elit. Nam molestie, erat quis posuere vestibulum, ipsum erat hendrerit enim, id hendrerit eros orci quis augue. Maecenas <strong>vehicula</strong> molestie lectus. <em>Aliquam a nisi</em> tellus. Suspendisse pharetra pharetra mauris, vel accumsan orci consectetur non.</p>
<blockquote>
<p>Curabitur at urna mauris. Donec <em>varius</em>, est sit amet vulputate tristique, orci lectus pulvinar libero, vel venenatis ligula est at arcu. Sed in dui vitae mauris ultrices iaculis.</p>
<p>Curabitur bibendum eros sit amet <a href="http://google.com/">elit lacinia</a> imperdiet. Sed venenatis dictum <strong>interdum</strong>. Praesent sit amet vehicula ligula. Aliquam erat volutpat. Suspendisse velit dolor, ullamcorper at gravida at, congue tincidunt mi.</p>
</blockquote>
<div class="columns group">
<div class="column">
<h2>Ordered list</h2>
<ol>
<li>Suspendisse potenti.</li>
<li>Maecenas vestibulum
<ol>
<li>Aliquam ante libero,</li>
<li>pretium ac cursus malesuada</li>
</ol>
</li>
<li>auctor a leo</li>
</ol>
</div> <!-- /.column -->
<div class="column">
<h2>Unordered list</h2>
<ul>
<li>Suspendisse potenti.</li>
<li>Maecenas vestibulum
<ul>
<li>Aliquam ante libero,</li>
<li>pretium ac cursus malesuada</li>
</ul>
</li>
<li>auctor a leo</li>
</ul>
</div> <!-- /.column -->
<div class="column">
<h2>Definition list</h2>
<dl>
<dt>Maecenas vestibulum</dt>
<dd>Nisl non ligula mattis gravida. Nulla id ipsum ante.</dd>
<dt>Ut tempus mi</dt>
<dd>Sed molestie tincidunt ornare.</dd>
</dl>
</div> <!-- /.column -->
</div> <!-- /.columns -->
</div> <!-- /.example -->
</section> <!-- /.typography -->
<section class="tables group">
<h1>Tables</h1>
<div class="explanation">
Check out the source for our recommendation on marking up tables in a readable, semantic manner.
</div> <!-- /.explanation -->
<div class="example">
<table>
<caption>Your order placed on 09/02/2011</caption>
<thead>
<tr>
<th>Item</th>
<th class="quantity">Quantity</th>
<th class="price">Price</th>
</tr>
</thead>
<!-- Remember that tfoot comes before tbody! -->
<tfoot>
<tr class="total">
<th colspan="2">Total</th>
<th class="price">$47.02</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Widget</td>
<td class="quantity">1</td>
<td class="price">$15.02</td>
</tr>
<tr>
<td>Thingamabob</td>
<td class="quantity">5</td>
<td class="price">$3.00</td>
</tr>
<tr>
<td>Whatchamacallit</td>
<td class="quantity">2</td>
<td class="price">$8.50</td>
</tr>
</tbody>
</table>
</div> <!-- /.example -->
</section> <!-- /.tables -->
<section class="forms group">
<h1>Forms</h1>
<div class="explanation">
<h2>Forms in tables</h2>
<p>We commonly use tables to lay out forms with left- or right-aligned labels. This is the recommended method for desktop applications.</p>
<p>Note how destructive actions like deletion are marked with a class of <code>"destructive"</code> and highlighted visually.</p>
</div> <!-- /.explanation -->
<div class="example">
<form action="." method="get" accept-charset="utf-8">
<table class="form">
<tfoot>
<tr>
<th class="field-label"> </th>
<td class="button-bar">
<input type="submit" class="save" value="Save"/>
<input type="submit" disabled="disabled" class="save-and-new" value="Save + new"/>
<input type="submit" class="destructive delete" value="Delete"/>
<a class="cancel" href="javascript:;">Cancel</a>
</td>
</tr>
</tfoot>
<tbody>
<tr class="section-heading">
<th> </th>
<th>Form section heading</th>
</tr>
<tr>
<th class="field-label">
<label for="text-input-example-1">Text input</label>
</th>
<td class="field">
<input type="text" name="text-input-example" value="" id="text-input-example-1" class="large"/>
<p class="form-help">
Field help text
</p> <!-- /.form-help -->
</td>
</tr>
<tr>
<th class="field-label">
<label for="disabled-text-input-example-1">Disabled text input</label>
</th>
<td class="field">
<input type="text" disabled="disabled" name="disabled-text-input-example" value="Johannes Brahms" id="disabled-text-input-example-1"/>
</td>
</tr>
<tr>
<th class="field-label">
<label for="select-example-1">Select</label>
</th>
<td class="field">
<select name="select-example" id="select-example-1">
<option value="">Choose one</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</td>
</tr>
<tr class="error">
<th class="field-label">
<label for="invalid-text-input-example-1">Invalid input</label>
</th>
<td class="field">
<input type="text" name="invalid-text-input-example" value="" id="invalid-text-input-example-1"/>
<span class="form-help">inline help text</span>
<ul class="error-explanation">
<li>Please enter an email address</li>
</ul>
</td>
</tr>
<tr class="radio-group">
<th class="field-label">
<label>Radio group</label>
</th>
<td class="field">
<label>
<input type="radio" name="radio-group-example" value="choice-1"/>
Choice 1
</label>
<label>
<input type="radio" name="radio-group-example" value="choice-2"/>
Choice 2
</label>
<label>
<input type="radio" name="radio-group-example" value="choice-3"/>
Choice 3
</label>
</td>
</tr>
<tr class="checkbox-group">
<th class="field-label">
<label>Checkbox group</label>
</th>
<td class="field">
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-1"/>
Longer choice 1
</label>
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-2"/>
Longer choice 2
</label>
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-3"/>
Longer choice 3
</label>
</td>
</tr>
<tr>
<th class="field-label">
<label for="textarea-example-1">Textarea</label>
</th>
<td class="field">
<textarea name="textarea-example" id="textarea-example-1" rows="5" cols="40"></textarea>
</td>
</tr>
</tbody>
</table>
</form>
</div> <!-- /.example -->
<div class="explanation">
<h2>Stacked forms</h2>
<p>Top-aligned form labels tend to reduce form-completion times the most and are best used when the data being requested is well-known to the user and requires minimum thought. Top-aligned labels should also be used for mobile applications.</p>
</div> <!-- /.explanation -->
<div class="example">
<form action="." method="get" accept-charset="utf-8">
<fieldset class="stacked">
<legend class="section-heading">
Form section heading
</legend>
<div class="field">
<label for="text-input-example-2">Text input</label>
<input type="text" name="text-input-example" value="" id="text-input-example-2" class="large"/>
<p class="form-help">
Field help text
</p> <!-- /.form-help -->
</div> <!-- /.field -->
<div class="field">
<label for="disabled-text-input-example-2">Disabled text input</label>
<input type="text" disabled="disabled" name="disabled-text-input-example" value="Johannes Brahms" id="disabled-text-input-example-2"/>
</div> <!-- /.field -->
<div class="field">
<label for="select-example-2">Select</label>
<select name="select-example" id="select-example-2">
<option value="">Choose one</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div> <!-- /.field -->
<div class="field error">
<label for="invalid-text-input-example-2">Invalid input</label>
<input type="text" name="invalid-text-input-example" value="" id="invalid-text-input-example-2"/>
<span class="form-help">inline help text</span>
<ul class="error-explanation">
<li>Please enter an email address</li>
</ul>
</div> <!-- /.field -->
<div class="field radio-group">
<label>Radio group</label>
<label>
<input type="radio" name="radio-group-example" value="choice-1"/>
Choice 1
</label>
<label>
<input type="radio" name="radio-group-example" value="choice-2"/>
Choice 2
</label>
<label>
<input type="radio" name="radio-group-example" value="choice-3"/>
Choice 3
</label>
</div> <!-- /.field -->
<div class="field checkbox-group">
<label>Checkbox group</label>
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-1"/>
Longer choice 1
</label>
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-2"/>
Longer choice 2
</label>
<label>
<input type="checkbox" name="checkbox-group-example" value="choice-3"/>
Longer choice 3
</label>
</div> <!-- /.field -->
<div class="field">
<label for="textarea-example-2">Textarea</label>
<textarea name="textarea-example" id="textarea-example-2" rows="5" cols="40"></textarea>
</div> <!-- /.field -->
<div class="button-bar group">
<input type="submit" class="save" value="Save"/>
<input type="submit" disabled="disabled" class="save-and-new" value="Save + new"/>
<input type="submit" class="destructive delete" value="Delete"/>
<a class="cancel" href="javascript:;">Cancel</a>
</div>
</fieldset>
</form>
</div> <!-- /.example -->
</section> <!-- /.forms -->
<section class="pagination-styles group">
<h1>Pagination</h1>
<div class="explanation">
<p>Pagination styles should ensure that individual links are well spaced and large enough to be suitable touch targets.</p>
</div> <!-- /.explanation -->
<div class="example">
<nav class="pagination">
<span class="first">
<a href="javascript:;">« First</a>
</span>
<span class="prev">
<a href="javascript:;" rel="prev">‹ Prev</a>
</span>
<span class="page">
<a href="javascript:;" rel="prev">1</a>
</span>
<span class="page current">
2
</span>
<span class="page">
<a href="javascript:;" rel="next">3</a>
</span>
<span class="page">
<a href="javascript:;">4</a>
</span>
<span class="page gap">...</span>
<span class="next">
<a href="javascript:;" rel="next">Next ›</a>
</span>
<span class="last">
<a href="javascript:;">Last »</a>
</span>
</nav>
</div> <!-- /.example -->
</section> <!-- /.pagination -->
<section class="alerts group">
<h1>Alerts</h1>
<div class="explanation">
<p>Styles for alerts and messages. The icons are provided by <a href="http://www.famfamfam.com/lab/icons/silk/" title="famfamfam.com: Silk Icons">famfamfam</a>.</p>
</div> <!-- /.explanation -->
<div class="example">
<ul class="alerts">
<li class="message success">
Your profile was successfully saved.
</li>
<li class="message warning">
You have only 5MB of remaining free space.
</li>
<li class="message error">
Please correct the errors below.
</li>
</ul> <!-- /.alerts -->
</div> <!-- /.example -->
</section> <!-- /.alerts -->
</section> <!-- /#examples -->
</div> <!-- /#page -->
<!-- all other javascript goes at the end of the body -->
<!-- libraries -->
<script type="text/javascript" src="scripts/lib/jquery.js">
</script>
<!-- <script type="text/javascript" src="scripts/lib/jquery-ui.js">
</script>
<script type="text/javascript" src="scripts/lib/jquery-ui.widget.js">
</script> -->
<!-- utilities and library extensions -->
<!-- uncomment as necessary -->
<!-- <script type="text/javascript" src="scripts/lib/fiftyfive-utils/cookies.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/dump.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/strftime.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/feature-detect.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/jquery.55_utils.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/jquery.ui.forminputplaceholdertext.js">
</script>
<script type="text/javascript" src="scripts/lib/fiftyfive-utils/jquery.ui.unsupportedbrowserwarning.js">
</script> -->
<script type="text/javascript" src="scripts/common.js">
</script>
<!-- page- or feature-specific javascript -->
<!-- <script type="text/javascript" src="scripts/style-guide.js">
</script> -->
<!-- onload javascript -->
<script type="text/javascript">
(function($) {
$(function() {
FiftyfiveExample.commonInit();
});
})(jQuery);
</script>
</body>
</html>