html5-starter 0.2.9b → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/html5-starter.rb +1 -0
- data/stylesheets/_html5-starter.scss +5 -0
- data/stylesheets/html5-starter/_helpers.scss +78 -0
- data/stylesheets/html5-starter/_normalize.scss +434 -0
- data/stylesheets/html5-starter/_print.scss +68 -0
- data/templates/project/files/404.html +153 -38
- data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-144x144-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
- data/templates/project/files/apple-touch-icon.png +0 -0
- data/templates/project/files/crossdomain.xml +4 -7
- data/templates/project/files/favicon.ico +0 -0
- data/templates/project/files/gitignore.txt +11 -1
- data/templates/project/files/htaccess +48 -13
- data/templates/project/files/humans.txt +12 -13
- data/templates/project/index.html +42 -49
- data/templates/project/javascripts/{script.js → main.js} +0 -5
- data/templates/project/javascripts/plugins.js +12 -9
- data/templates/project/javascripts/{libs/jquery-1.7.1.js → vendor/jquery-1.7.2.js} +655 -517
- data/templates/project/javascripts/vendor/jquery-1.7.2.min.js +4 -0
- data/templates/project/javascripts/{libs → vendor}/modernizr-2.5.3.min.js +0 -0
- data/templates/project/{style.scss → main.scss} +5 -5
- data/templates/project/manifest.rb +9 -10
- data/templates/project/partials/_defaults.scss +10 -0
- metadata +23 -26
- data/lib/html5-boilerplate.rb +0 -1
- data/stylesheets/_html5-boilerplate.scss +0 -5
- data/stylesheets/html5-boilerplate/_helpers.scss +0 -26
- data/stylesheets/html5-boilerplate/_normalize.scss +0 -214
- data/stylesheets/html5-boilerplate/_print.scss +0 -16
- data/templates/project/javascripts/libs/jquery-1.7.1.min.js +0 -4
- data/templates/project/partials/_boilerplate-defaults.scss +0 -19
data/README.md
CHANGED
@@ -16,7 +16,7 @@ Installation
|
|
16
16
|
Starting a project
|
17
17
|
------------------
|
18
18
|
|
19
|
-
compass create my_project -r html5-
|
19
|
+
compass create my_project -r html5-starter -u html5-starter --javascripts-dir js --css-dir css --images-dir img --sass-dir sass
|
20
20
|
|
21
21
|
The `--javascripts-dir`, `--css-dir`, `--images-dir` and `--sass-dir` flags are required to keep consistent with the original HTML5 Starter project layout. If you omit them, be sure to edit your javascript and style tags accordingly in `index.html`.
|
22
22
|
|
@@ -0,0 +1 @@
|
|
1
|
+
Compass::Frameworks.register("html5-starter", :path => "#{File.dirname(__FILE__)}/..")
|
@@ -0,0 +1,78 @@
|
|
1
|
+
@mixin html5-starter-helpers {
|
2
|
+
/*
|
3
|
+
* Image replacement
|
4
|
+
*/
|
5
|
+
|
6
|
+
.ir {
|
7
|
+
border: 0;
|
8
|
+
font: 0/0 a;
|
9
|
+
text-shadow: none;
|
10
|
+
color: transparent;
|
11
|
+
background-color: transparent;
|
12
|
+
}
|
13
|
+
|
14
|
+
/*
|
15
|
+
* Hide from both screenreaders and browsers: h5bp.com/u
|
16
|
+
*/
|
17
|
+
|
18
|
+
.hidden {
|
19
|
+
display: none !important;
|
20
|
+
visibility: hidden;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*
|
24
|
+
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
25
|
+
*/
|
26
|
+
|
27
|
+
.visuallyhidden {
|
28
|
+
border: 0;
|
29
|
+
clip: rect(0 0 0 0);
|
30
|
+
height: 1px;
|
31
|
+
margin: -1px;
|
32
|
+
overflow: hidden;
|
33
|
+
padding: 0;
|
34
|
+
position: absolute;
|
35
|
+
width: 1px;
|
36
|
+
}
|
37
|
+
|
38
|
+
/*
|
39
|
+
* Extends the .visuallyhidden class to allow the element to be focusable
|
40
|
+
* when navigated to via the keyboard: h5bp.com/p
|
41
|
+
*/
|
42
|
+
|
43
|
+
.visuallyhidden.focusable:active,
|
44
|
+
.visuallyhidden.focusable:focus {
|
45
|
+
clip: auto;
|
46
|
+
height: auto;
|
47
|
+
margin: 0;
|
48
|
+
overflow: visible;
|
49
|
+
position: static;
|
50
|
+
width: auto;
|
51
|
+
}
|
52
|
+
|
53
|
+
/*
|
54
|
+
* Hide visually and from screenreaders, but maintain layout
|
55
|
+
*/
|
56
|
+
|
57
|
+
.invisible {
|
58
|
+
visibility: hidden;
|
59
|
+
}
|
60
|
+
|
61
|
+
/*
|
62
|
+
* Contain floats: h5bp.com/q
|
63
|
+
*/
|
64
|
+
|
65
|
+
.clearfix:before,
|
66
|
+
.clearfix:after {
|
67
|
+
content: "";
|
68
|
+
display: table;
|
69
|
+
}
|
70
|
+
|
71
|
+
.clearfix:after {
|
72
|
+
clear: both;
|
73
|
+
}
|
74
|
+
|
75
|
+
.clearfix {
|
76
|
+
*zoom: 1;
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,434 @@
|
|
1
|
+
$line-height: 1.4 !default;
|
2
|
+
$font-family: sans-serif !default;
|
3
|
+
$font-size: 1em !default;
|
4
|
+
$font-color: #222 !default;
|
5
|
+
$link-color: #00e !default;
|
6
|
+
$link-hover-color: #06e !default;
|
7
|
+
$link-visited-color: #551a8b !default;
|
8
|
+
$selection-color: #b3d4fc !default;
|
9
|
+
|
10
|
+
|
11
|
+
@mixin html5-starter-normalize {
|
12
|
+
/* =============================================================================
|
13
|
+
HTML5 display definitions
|
14
|
+
========================================================================== */
|
15
|
+
|
16
|
+
article,
|
17
|
+
aside,
|
18
|
+
details,
|
19
|
+
figcaption,
|
20
|
+
figure,
|
21
|
+
footer,
|
22
|
+
header,
|
23
|
+
hgroup,
|
24
|
+
nav,
|
25
|
+
section,
|
26
|
+
summary {
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
|
30
|
+
audio,
|
31
|
+
canvas,
|
32
|
+
video {
|
33
|
+
display: inline-block;
|
34
|
+
*display: inline;
|
35
|
+
*zoom: 1;
|
36
|
+
}
|
37
|
+
|
38
|
+
audio:not([controls]) {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
[hidden] {
|
43
|
+
display: none;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
/* =============================================================================
|
48
|
+
Base
|
49
|
+
========================================================================== */
|
50
|
+
|
51
|
+
/*
|
52
|
+
* 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
|
53
|
+
* 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
|
54
|
+
*/
|
55
|
+
|
56
|
+
html {
|
57
|
+
font-size: 100%;
|
58
|
+
-webkit-text-size-adjust: 100%;
|
59
|
+
-ms-text-size-adjust: 100%;
|
60
|
+
}
|
61
|
+
|
62
|
+
html,
|
63
|
+
button,
|
64
|
+
input,
|
65
|
+
select,
|
66
|
+
textarea {
|
67
|
+
font-family: $font-family;
|
68
|
+
color: $font-color;
|
69
|
+
}
|
70
|
+
|
71
|
+
body {
|
72
|
+
margin: 0;
|
73
|
+
font-size: $font-size;
|
74
|
+
line-height: $line-height;
|
75
|
+
}
|
76
|
+
|
77
|
+
/*
|
78
|
+
* Remove text-shadow in selection highlight: h5bp.com/i
|
79
|
+
* These selection declarations have to be separate.
|
80
|
+
* Customize the background color to match your design.
|
81
|
+
*/
|
82
|
+
|
83
|
+
::-moz-selection {
|
84
|
+
background: $selection-color;
|
85
|
+
text-shadow: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
::selection {
|
89
|
+
background: $selection-color;
|
90
|
+
text-shadow: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
/* =============================================================================
|
95
|
+
Links
|
96
|
+
========================================================================== */
|
97
|
+
|
98
|
+
a {
|
99
|
+
color: $link-color;
|
100
|
+
}
|
101
|
+
|
102
|
+
a:visited {
|
103
|
+
color: $link-visited-color;
|
104
|
+
}
|
105
|
+
|
106
|
+
a:hover {
|
107
|
+
color: $link-hover-color;
|
108
|
+
}
|
109
|
+
|
110
|
+
a:focus {
|
111
|
+
outline: thin dotted;
|
112
|
+
}
|
113
|
+
|
114
|
+
/*
|
115
|
+
* Improve readability when focused and hovered in all browsers: h5bp.com/h
|
116
|
+
*/
|
117
|
+
|
118
|
+
a:hover,
|
119
|
+
a:active {
|
120
|
+
outline: 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
/* =============================================================================
|
125
|
+
Typography
|
126
|
+
========================================================================== */
|
127
|
+
|
128
|
+
abbr[title] {
|
129
|
+
border-bottom: 1px dotted;
|
130
|
+
}
|
131
|
+
|
132
|
+
b,
|
133
|
+
strong {
|
134
|
+
font-weight: bold;
|
135
|
+
}
|
136
|
+
|
137
|
+
blockquote {
|
138
|
+
margin: 1em 40px;
|
139
|
+
}
|
140
|
+
|
141
|
+
dfn {
|
142
|
+
font-style: italic;
|
143
|
+
}
|
144
|
+
|
145
|
+
hr {
|
146
|
+
display: block;
|
147
|
+
height: 1px;
|
148
|
+
border: 0;
|
149
|
+
border-top: 1px solid #ccc;
|
150
|
+
margin: 1em 0;
|
151
|
+
padding: 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
ins {
|
155
|
+
background: #ff9;
|
156
|
+
color: #000;
|
157
|
+
text-decoration: none;
|
158
|
+
}
|
159
|
+
|
160
|
+
mark {
|
161
|
+
background: #ff0;
|
162
|
+
color: #000;
|
163
|
+
font-style: italic;
|
164
|
+
font-weight: bold;
|
165
|
+
}
|
166
|
+
|
167
|
+
/*
|
168
|
+
* Redeclare monospace font family: h5bp.com/j
|
169
|
+
*/
|
170
|
+
|
171
|
+
pre,
|
172
|
+
code,
|
173
|
+
kbd,
|
174
|
+
samp {
|
175
|
+
font-family: monospace, serif;
|
176
|
+
_font-family: 'courier new', monospace;
|
177
|
+
font-size: 1em;
|
178
|
+
}
|
179
|
+
|
180
|
+
/*
|
181
|
+
* Improve readability of pre-formatted text
|
182
|
+
*/
|
183
|
+
|
184
|
+
pre {
|
185
|
+
white-space: pre;
|
186
|
+
white-space: pre-wrap;
|
187
|
+
word-wrap: break-word;
|
188
|
+
}
|
189
|
+
|
190
|
+
q {
|
191
|
+
quotes: none;
|
192
|
+
}
|
193
|
+
|
194
|
+
q:before,
|
195
|
+
q:after {
|
196
|
+
content: "";
|
197
|
+
content: none;
|
198
|
+
}
|
199
|
+
|
200
|
+
small {
|
201
|
+
font-size: 85%;
|
202
|
+
}
|
203
|
+
|
204
|
+
/*
|
205
|
+
* Position subscript and superscript content without affecting line-height: h5bp.com/k
|
206
|
+
*/
|
207
|
+
|
208
|
+
sub,
|
209
|
+
sup {
|
210
|
+
font-size: 75%;
|
211
|
+
line-height: 0;
|
212
|
+
position: relative;
|
213
|
+
vertical-align: baseline;
|
214
|
+
}
|
215
|
+
|
216
|
+
sup {
|
217
|
+
top: -0.5em;
|
218
|
+
}
|
219
|
+
|
220
|
+
sub {
|
221
|
+
bottom: -0.25em;
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
/* =============================================================================
|
226
|
+
Lists
|
227
|
+
========================================================================== */
|
228
|
+
|
229
|
+
ul,
|
230
|
+
ol {
|
231
|
+
margin: 1em 0;
|
232
|
+
padding: 0 0 0 40px;
|
233
|
+
}
|
234
|
+
|
235
|
+
dd {
|
236
|
+
margin: 0 0 0 40px;
|
237
|
+
}
|
238
|
+
|
239
|
+
nav ul,
|
240
|
+
nav ol {
|
241
|
+
list-style: none;
|
242
|
+
list-style-image: none;
|
243
|
+
margin: 0;
|
244
|
+
padding: 0;
|
245
|
+
}
|
246
|
+
|
247
|
+
|
248
|
+
/* =============================================================================
|
249
|
+
Embedded content
|
250
|
+
========================================================================== */
|
251
|
+
|
252
|
+
/*
|
253
|
+
* 1. Improve image quality when scaled in IE7: h5bp.com/d
|
254
|
+
* 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
|
255
|
+
*/
|
256
|
+
|
257
|
+
img {
|
258
|
+
border: 0;
|
259
|
+
vertical-align: middle;
|
260
|
+
-ms-interpolation-mode: bicubic;
|
261
|
+
}
|
262
|
+
|
263
|
+
/*
|
264
|
+
* Correct overflow not hidden in IE9
|
265
|
+
*/
|
266
|
+
|
267
|
+
svg:not(:root) {
|
268
|
+
overflow: hidden;
|
269
|
+
}
|
270
|
+
|
271
|
+
|
272
|
+
/* =============================================================================
|
273
|
+
Figures
|
274
|
+
========================================================================== */
|
275
|
+
|
276
|
+
figure {
|
277
|
+
margin: 0;
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
/* =============================================================================
|
282
|
+
Forms
|
283
|
+
========================================================================== */
|
284
|
+
|
285
|
+
form {
|
286
|
+
margin: 0;
|
287
|
+
}
|
288
|
+
|
289
|
+
fieldset {
|
290
|
+
border: 0;
|
291
|
+
margin: 0;
|
292
|
+
padding: 0;
|
293
|
+
}
|
294
|
+
|
295
|
+
/*
|
296
|
+
* Indicate that 'label' will shift focus to the associated form element
|
297
|
+
*/
|
298
|
+
|
299
|
+
label {
|
300
|
+
cursor: pointer;
|
301
|
+
}
|
302
|
+
|
303
|
+
/*
|
304
|
+
* 1. Correct color not inheriting in IE6/7/8/9
|
305
|
+
* 2. Correct alignment displayed oddly in IE6/7
|
306
|
+
*/
|
307
|
+
|
308
|
+
legend {
|
309
|
+
border: 0;
|
310
|
+
padding: 0;
|
311
|
+
white-space: normal;
|
312
|
+
*margin-left: -7px;
|
313
|
+
}
|
314
|
+
|
315
|
+
/*
|
316
|
+
* 1. Correct font-size not inheriting in all browsers
|
317
|
+
* 2. Remove margins in FF3/4 S5 Chrome
|
318
|
+
* 3. Define consistent vertical alignment display in all browsers
|
319
|
+
*/
|
320
|
+
|
321
|
+
button,
|
322
|
+
input,
|
323
|
+
select,
|
324
|
+
textarea {
|
325
|
+
font-size: 100%;
|
326
|
+
margin: 0;
|
327
|
+
vertical-align: baseline;
|
328
|
+
*vertical-align: middle;
|
329
|
+
}
|
330
|
+
|
331
|
+
/*
|
332
|
+
* 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
|
333
|
+
*/
|
334
|
+
|
335
|
+
button,
|
336
|
+
input {
|
337
|
+
line-height: normal;
|
338
|
+
}
|
339
|
+
|
340
|
+
/*
|
341
|
+
* 1. Display hand cursor for clickable form elements
|
342
|
+
* 2. Allow styling of clickable form elements in iOS
|
343
|
+
* 3. Correct inner spacing displayed oddly in IE7 (doesn't effect IE6)
|
344
|
+
*/
|
345
|
+
|
346
|
+
button,
|
347
|
+
input[type="button"],
|
348
|
+
input[type="reset"],
|
349
|
+
input[type="submit"] {
|
350
|
+
cursor: pointer;
|
351
|
+
-webkit-appearance: button;
|
352
|
+
*overflow: visible;
|
353
|
+
}
|
354
|
+
|
355
|
+
/*
|
356
|
+
* Re-set default cursor for disabled elements
|
357
|
+
*/
|
358
|
+
|
359
|
+
button[disabled],
|
360
|
+
input[disabled] {
|
361
|
+
cursor: default;
|
362
|
+
}
|
363
|
+
|
364
|
+
/*
|
365
|
+
* Consistent box sizing and appearance
|
366
|
+
*/
|
367
|
+
|
368
|
+
input[type="checkbox"],
|
369
|
+
input[type="radio"] {
|
370
|
+
box-sizing: border-box;
|
371
|
+
padding: 0;
|
372
|
+
*width: 13px;
|
373
|
+
*height: 13px;
|
374
|
+
}
|
375
|
+
|
376
|
+
input[type="search"] {
|
377
|
+
-webkit-appearance: textfield;
|
378
|
+
-moz-box-sizing: content-box;
|
379
|
+
-webkit-box-sizing: content-box;
|
380
|
+
box-sizing: content-box;
|
381
|
+
}
|
382
|
+
|
383
|
+
input[type="search"]::-webkit-search-decoration,
|
384
|
+
input[type="search"]::-webkit-search-cancel-button {
|
385
|
+
-webkit-appearance: none;
|
386
|
+
}
|
387
|
+
|
388
|
+
/*
|
389
|
+
* Remove inner padding and border in FF3/4: h5bp.com/l
|
390
|
+
*/
|
391
|
+
|
392
|
+
button::-moz-focus-inner,
|
393
|
+
input::-moz-focus-inner {
|
394
|
+
border: 0;
|
395
|
+
padding: 0;
|
396
|
+
}
|
397
|
+
|
398
|
+
/*
|
399
|
+
* 1. Remove default vertical scrollbar in IE6/7/8/9
|
400
|
+
* 2. Allow only vertical resizing
|
401
|
+
*/
|
402
|
+
|
403
|
+
textarea {
|
404
|
+
overflow: auto;
|
405
|
+
vertical-align: top;
|
406
|
+
resize: vertical;
|
407
|
+
}
|
408
|
+
|
409
|
+
|
410
|
+
/* =============================================================================
|
411
|
+
Tables
|
412
|
+
========================================================================== */
|
413
|
+
|
414
|
+
table {
|
415
|
+
border-collapse: collapse;
|
416
|
+
border-spacing: 0;
|
417
|
+
}
|
418
|
+
|
419
|
+
td {
|
420
|
+
vertical-align: top;
|
421
|
+
}
|
422
|
+
|
423
|
+
|
424
|
+
/* =============================================================================
|
425
|
+
Chrome Frame Prompt
|
426
|
+
========================================================================== */
|
427
|
+
|
428
|
+
.chromeframe {
|
429
|
+
margin: 0.2em 0;
|
430
|
+
background: #ccc;
|
431
|
+
color: #000;
|
432
|
+
padding: 0.2em 0;
|
433
|
+
}
|
434
|
+
}
|