forked from scottparry/Workless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·521 lines (415 loc) · 19.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
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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js" lang="en"> <![endif]-->
<head>
<meta charset="utf-8">
<!-- You can use .htaccess and remove these lines to avoid edge case issues. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>❖ Workless</title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="keywords" content="">
<!-- Mobile viewport optimized -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Adaptive Images -->
<script type="text/javascript">
var device_width=screen.width;var device_height=screen.height;if(device_width>device_height){ai_width=device_width;}else{ai_width=device_height;}document.cookie='resolution='+ai_width+'; expires=; path=/';
</script>
<!-- CSS. No need to specify the media attribute unless specifically targeting a media type, leaving blank implies media=all -->
<link rel="stylesheet" href="assets/css/plugins.css">
<link rel="stylesheet" href="assets/css/workless.css">
<!-- End CSS-->
<!-- Googlelicious -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold" type="text/css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,bold" type="text/css" />
<!-- Load up some favicons -->
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="apple-touch-icon" href="apple-touch-icon-precomposed.png">
<link rel="apple-touch-icon" href="apple-touch-icon-57x57-precomposed.png">
<link rel="apple-touch-icon" href="apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon" href="apple-touch-icon-114x114-precomposed.png">
<!-- All JavaScript at the bottom, except for Modernizr / Respond. Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries -->
<script src="assets/js/libs/modernizr.js"></script>
</head>
<body onload="prettyPrint()">
<!-- Topbar -->
<div class="topbar">
<ul>
<li><a href="#scaffold">Scaffolding</a></li>
<li><a href="#help">Helpers</a></li>
<li><a href="#">Github</a></li>
</ul>
</div>
<!-- End top bar-->
<!-- container -->
<div class="container">
<!-- main -->
<div id="main">
<hr>
<header>
<div id="logo">
<a href="#"><h1>❖ Workless</h1></a>
</div>
<nav id="primary">
<ul>
<li>
<a href="#">Options</a>
<ul>
<li><a href="#scaffold">Scaffolding</a></li>
<li><a href="#help">Helpers</a></li>
</ul>
</li>
<li><a href="#">Github</a></li>
</ul>
</nav>
</header>
<hr>
<section>
<h3>What is Workless?</h3>
<p>
When designing/developing a new application we all have our own way of doing things, using frameworks, grid systems, saved code snippets etc..., but what we usually have in common is the fact that we end up repeating lots of tasks for each project.
</p>
<p>
Workless aims to help you by offering a basic HTML5 base template filled with goodies to get you up and running on every project you do as quickly as possible.
</p>
<p>
At it's core Workless is simply a mashup of all the things I like about <a class="tooltip" title="Visit HTML5 Boilerplate" href="https://github.com/paulirish/html5-boilerplate" title="HTML5 Boilerplate">HTML5 Boilerplate</a> and <a class="tooltip" title="Visit Twitter Bootstrap" href="https://github.com/twitter/bootstrap" title="Twitter Bootstrap">Twitter Bootstrap</a> with some additional stuff which I tend to use on every project such as PrettyPhoto for lightboxes, Tipsy for tooltips, Prettify for styling and colorizing code and various other bits and pieces.
</p>
<p>
Workless comes with responsive media queries setup for <span class="highlight">'Mobile Portrait'</span>, <span class="highlight">'Mobile Landscape'</span>, <span class="highlight">'Tablet Portrait'</span>, <span class="highlight">'Tablet Landscape/Small Browser'</span> and <span class="highlight">'Large Browser'</span>, you can demo the effect right now by simply scaling your browser window. The blue button above the logo will show what query is running.
<p>
Remember, this isn't a 'Use this, its great!', it's simply a way I found to improve my workflow and cut down on repetitive tasks in every project. Feel free to use/abuse and hack into something that fits your workflow.
</p>
</section>
<hr>
<section>
<h3>Adaptive Images</h3>
<p>
Adaptive images is simply a small PHP script that resizes images based on the screen resolution. This prevents users on mobile devices downloading full size images meant for web. I.E: Web image = 500kb, Mobile image = 30kb.
</p>
<img src="ai-images/workless.jpg" alt="Workless" />
</section>
<hr>
<!-- Scaffolding -->
<section id="scaffold">
<h3>Scaffolding</h3>
<p>
Scaffolding simply refers to referencing an available class that helps you build(scaffold) layouts/grids as quickly as possible!
</p>
<hr>
<div>
<div class="one_third">
<h4>Default grid system</h4>
<p>
Although I'm not a fan of grid systems and prefer to hand code elements, I have included a basic grid system with Workless to create columns. I'm also not a fan of the naming conventions in most grid systems: 'grid_12 row_6 pull_7'
</p>
<p>
WTF!?!
</p>
<p>
I prefer a cleaner, semantic, logical naming system for classes, such as 'one_half' or 'one_third' etc...
</p>
</div>
<div class="two_third">
<h4>Example markup</h4>
<p>Creating layouts with grids is easy, simply add the relevant class to the div and away you go!</p>
<pre class="prettyprint linenums">
<div class="one_third">
...
</div>
<div class="two_third">
...
</div>
</pre>
</div>
</div>
<hr>
<div class="one_full">
<h4>1 Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum. </p>
</div>
<hr>
<div>
<div class="one_half">
<h4>½ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_half">
<h4>½ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
</div>
<hr>
<div>
<div class="one_third">
<h4>⅓ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_third">
<h4>⅓ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_third">
<h4>⅓ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
</div>
<hr>
<div>
<div class="one_third">
<h4>⅓ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="two_third">
<h4>⅔ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
</div>
<hr>
<div>
<div class="one_quarter">
<h4>¼ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_quarter">
<h4>¼ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_quarter">
<h4>¼ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
<div class="one_quarter">
<h4>¼ Grid</h4>
<p>
Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus. In pellentesque faucibus vestibulum.</p>
</div>
</div>
</section>
<div class="hr top"><a href="#">↑ top</a></div>
<section id="help">
<h3>Helpers</h3>
<p>
Again, helpers simply reference available classes that help you to create things such as CSS3 buttons, tabs, alerts, pagination etc... Simply reference the class and away you go!
</p>
<hr>
<div class="one_full">
<h4>Alerts</h4>
<div class="one_half">
<div class="alert error"><a class="close" href="#">×</a>This is an error alert!</div>
<div class="alert warning"><a class="close" href="#">×</a>This is a warning alert!</div>
<div class="alert success"><a class="close" href="#">×</a>This is a success alert!</div>
<div class="alert info"><a class="close" href="#">×</a>This is an info alert!</div>
</div>
<div class="one_half">
<div class="block-message error"><a class="close" href="#">×</a>This is a block-message error alert!</div>
<div class="block-message warning"><a class="close" href="#">×</a>This is a block-message warning alert!</div>
<div class="block-message success"><a class="close" href="#">×</a>This is a block-message success alert!</div>
<div class="block-message info"><a class="close" href="#">×</a>This is a block-message info alert!</div>
</div>
</div>
<hr>
<div class="one_full">
<div class="one_half">
<h4>CSS3 Buttons</h4>
<ul>
<li class="btn red inline"><a href="#">Red</a></li>
<li class="btn orange inline"><a href="#">Orange</a></li>
<li class="btn green inline"><a href="#">Green</a></li>
<li class="btn blue inline"><a href="#">Blue</a></li>
</ul>
</div>
<div class="one_half">
<h4>Pill Buttons</h4>
<ul class="pill">
<li class="active inline"><a href="#">Home</a></li>
<li class="inline"><a href="#">Profile</a></li>
<li class="inline"><a href="#">Messages</a></li>
</ul>
</div>
</div>
<hr>
<div class="one_full">
<div class="one_half">
<h4>Tabs</h4>
<ul class="tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
</ul>
</div>
<div class="one_half pagination">
<h4>Pagination</h4>
<ul>
<li class="prev disabled"><a href="#">← Prev</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li class="next"><a href="#">Next →</a></li>
</ul>
</div>
</div>
<hr>
<div class="one_full">
<h4>Forms</h4>
<p>
All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons. We also use jQuery Uniform to give selects and checkboxes some nice styling.
</p>
<form>
<fieldset>
<legend>Example form legend</legend>
<input name="" size="30" type="text" placeholder="Text Input" />
<br>
<select class="chzn" name="">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<br>
<select class="chzn" name="">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<br>
<input class="disabled" name="" size="30" type="text" placeholder="Disabled input here… carry on." disabled />
<br>
<input class="error" name="" size="30" type="text" placeholder="Error Text Input" />
<span class="help-inline">Small snippet of help text</span>
</fieldset>
<fieldset>
<legend>Example form legend</legend>
<div class="input-prepend">
<span class="">@</span>
<input name="" size="16" type="text" placeholder="Text Input" />
</div>
<div class="input-prepend">
<input type="checkbox" name="" value="" />
<input name="" size="16" type="text" placeholder="Text Input" />
</div>
<div class="input-append">
<input class="" name="" size="16" type="text" placeholder="Text Input" />
<input type="checkbox" name="" checked="checked" />
</div>
<input class="input-file" name="fileInput" type="file" />
</fieldset>
<fieldset>
<legend>Example form legend</legend>
<label>List of Options</label>
<ul class="inputs-list">
<li>
<label>
<input type="checkbox" name="" value="" />
<span>Option one is this and that—be sure to include why it’s great</span>
</label>
</li>
<li>
<label>
<input type="checkbox" name="" value="" />
<span>Option two can also be checked and included in form results</span>
</label>
</li>
<li>
<label>
<input type="checkbox" name="" value="" />
<span>Option three can—yes, you guessed it—also be checked and included in form results</span>
</label>
</li>
<li>
<label class="disabled">
<input type="checkbox" name="" value="" disabled />
<span>Option four cannot be checked as it is disabled.</span>
</label>
</li>
</ul>
<label>Date Range</label>
<div class="inline-inputs">
<input type="text" placeholder="May 1, 2011" />
<input type="text" placeholder="12:00am" />
to
<input type="text" placeholder="May 8, 2011" />
<input type="text" placeholder="11:59pm" />
<span class="help-inline">All times are shown as GMT.</span>
</div>
<label for="textarea">Textarea</label>
<div class="input">
<textarea class="" id="textarea" name="textarea"></textarea>
</div>
<label>List of Options</label>
<ul class="inputs-list">
<li>
<label>
<input type="checkbox" name="optionsCheckboxes" value="option1" />
<span>Option one is this and that—be sure to include why it’s great</span>
</label>
</li>
<li>
<label>
<input type="checkbox" name="optionsCheckboxes" value="option2" />
<span>Option two can also be checked and included in form results</span>
</label>
</li>
</ul>
<p>
<input type="submit" value="Submit" />
<input type="button" value="Button" />
<input type="reset" value="Reset" />
<button>Button</button>
</p>
<div class="actions">
<button type="submit" class="btn blue">Save Changes</button> <button type="reset" class="btn gray">Cancel</button>
</div>
</fieldset>
</form>
</div>
</section>
<footer>
<p>Copyright © 2011. All Rights Reserved.</p>
</footer>
</div>
<!-- /main -->
</div>
<!-- /container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery.js"><\/script>')</script>
<!-- Scripts -->
<script defer src="assets/js/plugins.js"></script>
<script defer src="assets/js/script.js"></script>
<!-- End Scripts -->
<!-- Change UA-XXXXX-X to be your site's ID -->
<script>
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
Modernizr.load({
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
});
</script>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>