This repository has been archived by the owner on Jan 1, 2019. It is now read-only.
/
index.html
461 lines (430 loc) · 25.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Skeleton-em: Beautiful Boilerplate for Responsive, Mobile-Friendly Development</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="author" content="">
<meta name="description" content="Skeleton: Beautiful Boilerplate for Responsive, Mobile-Friendly Development">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="assets/img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/img/apple-touch-icon-114x114.png">
<link rel="stylesheet" href="assets/css/docs.css">
<!-- Only for one icon... wastefully pulling ALL icons -->
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div class="sidebar">
<nav>
<h3 id="logo">Skeleton-em</h3>
<ul>
<li><a href="#whatAndWhy">What & Why</a></li>
<li><a href="#grid">Grid</a></li>
<li><a href="#typography">Typography</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#mediaQueries">Media Queries</a></li>
<li><a href="#support">Support</a></li>
<li><a href="#examples">Examples</a></li>
<li><a href="#download">Download</a></li>
<li><a href="#licenseandlog">License & Log</a></li>
</ul>
</nav>
</div>
<div class="container">
<div class="sixteen columns">
<header>
<h1>Skeleton-em</h1>
</header>
<hr class="large" />
<div class="doc-section" id="whatAndWhy">
<h3>What Is It? <small>A Beautiful Boilerplate for Responsive, Mobile-Friendly Development</small></h3>
<p>Skeleton-em is a small collection of CSS files that can help you rapidly develop sites that look beautiful at any size, be it a 17" laptop
screen or an iPhone. Skeleton-em is built on three core principles:</p>
<div class="row clearfix">
<div class="four columns alpha">
<img src="assets/img/responsive.jpg" alt="responsive" width="220" height="113" class="scale-with-grid" />
</div>
<div class="twelve columns omega">
<h5>Responsive Grid Down To Mobile</h5>
<p>Skeleton-em has a familiar, lightweight 60rem grid as its base, but elegantly scales down to downsized browser windows, tablets,
mobile phones (in landscape and portrait).<br /> <strong>Go ahead, resize this page!</strong></p>
</div>
</div>
<div class="row clearfix">
<div class="four columns alpha">
<img src="assets/img/fast.jpg" alt="responsive" width="220" height="113" class="scale-with-grid" />
</div>
<div class="twelve columns omega">
<h5>Fast to Start</h5>
<p>Skeleton-em is a tool for rapid development. Get started fast with CSS best practices, a well-structured grid that makes mobile
consideration easy, an organized file structure and super basic UI elements like lightly styled forms, buttons, and more.</p>
</div>
</div>
<div class="row clearfix">
<div class="four columns alpha">
<img src="assets/img/foundation.jpg" alt="responsive" width="220" height="113" class="scale-with-grid" />
</div>
<div class="twelve columns omega">
<h5>Style Agnostic</h5>
<p>Skeleton-em is not a UI framework. It's a development kit that provides the most basic styles as a foundation, but is ready to adopt whatever
your design or style is.</p>
</div>
</div>
</div>
<hr />
<div class="doc-section clearfix" id="grid">
<h3>The Grid</h3>
<p>The original Skeleton base grid is a variation of the 960 grid system. This version uses LESS CSS which allows you to specify the width you want and the
grid adapts, however, the base grid size is 60rem.
The syntax is simple and it's effective cross browser, but the awesome part is that it also has the flexibility to go mobile like a champ.<br />
<strong>Go ahead, resize the browser and watch as the layout reacts!</strong></p>
<div class="example-grid">
<h3>Grid</h3>
<div class="column one alpha">One</div>
<div class="columns fifteen omega">Fifteen</div>
<div class="columns two alpha">Two</div>
<div class="columns fourteen omega">Fourteen</div>
<div class="columns three alpha">Three</div>
<div class="columns thirteen omega">Thirteen</div>
<div class="columns four alpha">Four</div>
<div class="columns twelve omega">Twelve</div>
<div class="columns five alpha">Five</div>
<div class="columns eleven omega">Eleven</div>
<div class="columns six alpha">Six</div>
<div class="columns ten omega">Ten</div>
<div class="columns seven alpha">Seven</div>
<div class="columns nine omega">Nine</div>
<div class="columns eight alpha">Eight</div>
<div class="columns eight omega">Eight</div>
<div class="columns nine alpha">Nine</div>
<div class="columns seven omega">Seven</div>
<div class="columns ten alpha">Ten</div>
<div class="columns six omega">Six</div>
<div class="columns eleven alpha">Eleven</div>
<div class="columns five omega">Five</div>
<div class="columns twelve alpha">Twelve</div>
<div class="columns four omega">Four</div>
<div class="columns thirteen alpha">Thirteen</div>
<div class="columns three omega">Three</div>
<div class="columns fourteen alpha">Fourteen</div>
<div class="columns two omega">Two</div>
<div class="columns fifteen alpha">Fifteen</div>
<div class="column one omega">One</div>
<hr />
<h3>Thirds</h3>
<div class="column one-third alpha">One Third</div>
<div class="column two-thirds omega">Two Thirds</div>
<div class="column two-thirds alpha">Two Thirds</div>
<div class="column one-third omega">One third</div>
<hr />
<h3>Offsets</h3>
<div class="offset-by-seven row">
<div class="column one alpha">One Offset-Seven</div>
<div class="column one omega">One</div>
</div>
<div class="offset-by-six row">
<div class="columns two alpha">Two Offset-Six</div>
<div class="columns two omega">Two</div>
</div>
<div class="offset-by-five row">
<div class="columns three alpha">Three Offset-Five</div>
<div class="columns three omega">Three</div>
</div>
<div class="offset-by-four row">
<div class="columns four alpha">Four Offset-Four</div>
<div class="columns four omega">Four</div>
</div>
<div class="offset-by-three row">
<div class="columns five alpha">Five Offset-Three</div>
<div class="columns five omega">Five</div>
</div>
<div class="offset-by-two row">
<div class="columns six alpha">Six Offset-Two</div>
<div class="columns six omega">Six</div>
</div>
<div class="offset-by-one row">
<div class="columns seven alpha">Seven Offset-One</div>
<div class="columns seven omega">Seven</div>
</div>
</div>
<div class="hidden-code">
<strong>Check the source of this page for an example of the HTML structure</strong>
</div>
</div>
<hr />
<div class="doc-section clearfix" id="typography">
<h3>Typography</h3>
<p>The typography of Skeleton-em is designed to create a strong hierarchy with basic styles. The primary font is the classic Helvetica Neue, but the font
stack can be easily changed with just a couple adjustments.
The document and paragraphs are set at a 1rem base and a 1.625 unitless line height.</p>
<div class="row">
<div class="nine columns alpha headings">
<h1>Heading <h1></h1>
<h2>Heading <h2></h2>
<h3>Heading <h3></h3>
<h4>Heading <h4></h4>
<h5>Heading <h5></h5>
<h6>Heading <h6></h6>
</div>
<div class="seven columns omega">
<blockquote>
<p>This is a blockquote style example. It stands out, but is awesome</p>
<cite>Dave Gamache, Skeleton Creator</cite>
</blockquote>
<blockquote class="right">
<p>Skeleton-Em is amazing! This is a right-aligned blockquote.</p>
<cite>Brandon Brown, Skeleton-Em Creator</cite>
</blockquote>
</div>
</div>
<div class="hidden-code">
<a href="#" class="code-example">Code Example</a>
<gist data-username="dhg" data-id="973460" data-file="typography"></gist>
</div>
</div>
<hr />
<div class="doc-section" id="buttons">
<h3>Buttons</h3>
<p>Skeleton-Em takes on a flat design appearance, and this is evident in the outstanding buttons.</p>
<a href="#" class="button">Click Me For Action</a>
<div class="hidden-code">
<a href="#" class="code-example">Code Example</a>
<gist data-username="dhg" data-id="973448" data-file="buttons"></gist>
</div>
</div>
<hr />
<div class="doc-section clearfix" id="forms">
<h3>Forms</h3>
<p>Forms can be one of the biggest pains for web developers, but just use these dead simple styles and you should be good to go.</p>
<div class="four columns alpha">
<form>
<label for="regularInput">Regular Input</label>
<input type="text" id="regularInput" />
<label for="regularTextarea">Regular Textarea</label>
<textarea id="regularTextarea"></textarea>
<label for="selectList">Select List</label>
<select id="selectList">
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
<option value="Option 3">Option 3</option>
<option value="Option 4">Option 4</option>
</select>
<fieldset>
<legend>Checkboxes</legend>
<label for="regularCheckbox">
<input type="checkbox" id="regularCheckbox" value="checkbox 1" />
<span>Regular Checkbox</span>
</label>
<label for="secondRegularCheckbox">
<input type="checkbox" id="secondRegularCheckbox" value="checkbox 2" />
<span>Regular Checkbox</span>
</label>
</fieldset>
<fieldset>
<legend>Radio Buttons</legend>
<label for="regularRadio">
<input type="radio" name="radios" id="regularRadio" value="radio 1" />
<span>Regular Radio</span>
</label>
<label for="secondRegularRadio">
<input type="radio" name="radios" id="secondRegularRadio" value="radio 2" />
<span>Regular Radio</span>
</label>
</fieldset>
<button type="submit">Submit Form</button>
<button type="submit" class="full-width">Full-width</button>
</form>
</div>
<br class="clear" />
<div class="hidden-code">
<a href="#" class="code-example">Code Example</a>
<gist data-username="dhg" data-id="973455" data-file="forms"></gist>
</div>
</div>
<hr />
<div class="doc-section" id="mediaQueries">
<h3>Media Queries</h3>
<p>Skeleton-em uses a <strong>lot</strong> of media queries to serve the scalable grid, but also for the convenience of styling your site on different
size screens. Skeleton's media queries are almost exclusively targeted at max and min widths rather than device sizes or orientations.
The advantage of this is browsers and future mobile devices that don't map to exact set dimensions will still benefit from the styles.</p>
<p>There are some basic media query debugging tools included, thanks to <a href="https://github.com/cleatsandcode/Media-Queries-Debug-Tools">cleatsandcode</a></p>
<p>The built in media queries include:</p>
<ul class="square">
<li><strong>Smaller than 60rem</strong>: Smaller than the standard base grid 60rem</li>
<li><strong>Tablet Portrait</strong>: Between 768px and 959px</li>
<li><strong>All Mobile Sizes</strong>: Less than 767px</li>
<li><strong>Just Mobile Landscape</strong>: Between 480px and 767px</li>
<li><strong>Just Mobile Portrait</strong>: Less than 479px</li>
</ul>
<div class="hidden-code">
<a href="#" class="code-example">Code Example</a>
<gist data-username="dhg" data-id="973467" data-file="media queries"></gist>
</div>
</div>
<hr />
<div class="doc-section" id="support">
<h3>Support for Skeleton</h3>
<p>Skeleton-em has been tested across as many devices and browsers as I could get my hands on, including those from the original Skeleton project:</p>
<ul class="square add-bottom">
<li>Latest Chrome (Mac/PC)</li>
<li>Latest Safari</li>
<li>Latest Firefox (Mac/PC)</li>
<li>Internet Explorer 10, 9</li>
<li>All iPhone models</li>
<li>Galaxy Nexus, Nexus 4, Optimus G</li>
<li>iPad, iPad Mini, Nexus 7</li>
</ul>
<p>There is a small hiccup though - older non-CSS3 browsers aren't going to respond to the media-queries or the rem units and thus will be served the
standard 960 grid with a px-unit fallback even if they are resized. In the spirit of graceful degradation though, I'm going to let this be instead
of trying to implement a JS solution. If you are interested in one though, try the <a href="https://github.com/scottjehl/Respond">respond.js polyfill</a>.</p>
<p><strong>Notes on IE</strong>: Since the release of jQuery 2.0, I have decided that the natural evolution of Skeleton-em must follow suit. From today forward,
IE version 6-8 will no longer be support through the HTML5-shiv, nor any specific CSS hacks to make it work in these silly browsers. IF you need IE 6-8 support,
consult the original version of <a href="https://github.com/dhgamache/Skeleton/tarball/master">Skeleton</a>.</p>
</div>
<hr />
<div class="doc-section" id="download">
<h3>Downloads</h3>
<p>The Skeleton-em download is a zip file (~225kb) containing all the LESS/CSS groundwork to get started on any web project. </p>
<a href="https://github.com/dhgamache/Skeleton/tarball/master" class="remove-bottom button">Download Skeleton-em 1.2 from Github</a>
<div class="post-button-note half-bottom">or <a href="https://github.com/dhgamache/Skeleton">View Source on Github</a></div>
<p>The file structure for Skeleton-em is:</p>
<ul class="square">
<li><strong>index.html</strong>: This page, which includes some necessary initial markup</li>
<li>
<strong>assets</strong>
<ul class="square">
<li>
<strong>css</strong> <em>(folder)</em>
<ul class="circle">
<li><strong>skeleton.css</strong>: Codekit/LESS compiler output, contains minified output for all styles</li>
<li><strong>docs.css</strong>: Documentation styles output</li>
</ul>
</li>
<li>
<strong>less</strong> <em>(less-css folder)</em>
<ul class="circle">
<li><strong>variables.less</strong>: Variables used throughout Skeleton-em</li>
<li><strong>base.less</strong>: Basic styles of Skeleton-em</li>
<li><strong>skeleton.less</strong>: The glorious Skeleton-em grid</li>
<li><strong>font-face.less</strong>: Where the font-face declarations live, add your own web-fonts here</li>
<li><strong>media-queries.less</strong>: File with a variety of useful media queries</li>
<li><strong>elements.less</strong>: Very useful set of LESS mixins</li>
<li><strong>mixins.less</strong>: Useful custom LESS mixins pull from around the web. Credit where credit is due!</li>
<li><strong>style.less</strong>: Add your extended LESS files here, used to combine and minify all LESS files to skeleton.css</li>
<li><strong>docs.less</strong>: Documentation (this page) styles, do not use!</li>
</ul>
</li>
<li>
<strong>js</strong> <em>(folder)</em>
<ul class="circle">
<li><strong>media-query-debug.js</strong>: Media query debugger</li>
</ul>
</li>
<li>
<strong>fonts</strong> <em>(folder)</em>
<ul class="circle">
<li>Nothing in here, but add your own web-fonts and add them to font-face.less</li>
</ul>
</li>
<li>
<strong>img</strong> <em>(images folder):</em>
<ul class="circle">
<li><strong>favicon.ico</strong>: Standard 16x16 favicon</li>
<li><strong>apple-touch-icon (x3)</strong>: All three sizes of Apple touch icons for iPhone 3/3GS, iPad and iPhone with retina screen</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<hr />
<div class="doc-section" id="licenseandlog">
<h3>License & Changelog</h3>
<p>All parts of Skeleton-em are free to use and abuse under the open-source MIT license. The full licensing language can be found
here: <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>.
Jump over to the <a href="https://github.com/brandonb927/skeleton-em">Skeleton-em Github page</a> and contribute to make Skeleton-em a
better boilerplate for everyone!</p>
<p><strong>Skeleton-em changelog</strong></p>
<ul class="square">
<li>
<strong>V0.3</strong> <em>(14/09/2013)</em>: Updated the half-baked implementation of rem-base values, updated alot!
</li>
<li>
<strong>V0.2</strong> <em>(3/1/2013)</em>: Skeleton-em released with some updates to the original Skeleton code, and rem-based media-queries
and font typography :)
</li>
</ul>
<hr />
</div>
</div><!-- content -->
</div><!-- container -->
<div class="resize"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="assets/js/media-query-debug.js"></script>
<script>
function hideAddressBar() {
setTimeout(function () {
if(!pageYOffset) {
window.scrollTo(0, 1)
}
}, 1000)
}
if (/mobi/i.test(navigator.userAgent) && !location.hash) {
window.addEventListener("load", hideAddressBar())
window.addEventListener("orientationchange", hideAddressBar())
}
// Async load gists
(function(){
var gists = document.getElementsByTagName('gist');
function embed(username, id, file, i, tag) {
window['embed_gist_'+i] = function(gist) {
var tmp = document.createElement('div');
tmp.innerHTML = gist.div;
tag.parentNode.replaceChild(tmp.firstChild, tag);
};
var url = 'https://gist.github.com/'+username+'/'+id+'.json?callback=embed_gist_'+i;
if(file) {
url += '&file='+file;
}
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
document.head.appendChild(script);
}
if(gists.length) {
var css = document.createElement('link');
css.rel = 'stylesheet';
// css.href= 'https://gist.github.com/assets/embed-0af287a4b5c981db301049e56f06e5d3.css'; // Old
css.href= 'https://gist.github.com/assets/embed-8f95cc15c5dcf1117ab18c08ff316641.css';
document.head.appendChild(css);
}
for(var i=0; i<gists.length; i++) {
var username = gists[i].getAttribute('data-username');
var id = gists[i].getAttribute('data-id');
var file = gists[i].getAttribute('data-file');
if(id) {
embed(username, id, file, i, gists[i]);
}
}
})();
$(document).on('click', '.hidden-code, a.code-example, button, input[type=submit], input[type=button]', function(e) {
e.preventDefault();
$(this).children('.gist').slideToggle();
})
.on('click', 'a, button, input[type=submit], input[type=button]', function(e) {
e.preventDefault();
})
var originalText;
$('.example-grid .row').children().hover(
function() {
originalText = $(this).text();
$(this).html($(this).width()+'px');
},
function() {
$(this).html(originalText);
})
</script>
</body>
</html>