archetype-base-normalize 1.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +16 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/CHANGELOG.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/README.md +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/VERSION +0 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/lib/archetype-base-normalize.rb +9 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/lib/archetype-base-normalize/version.rb +3 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/stylesheets/archetype/base/_normalize.scss +659 -0
- data/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/templates/project/manifest.rb +4 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 48c2ca0ee6319c537b477570026b070a6233bf18
|
4
|
+
data.tar.gz: a261aa241c00f28a418306136d1435370f412b6a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 37bad7f85d2e6b9d267e63d856744e3d153e01acaa7769b77542da729e1ee9ce16a16cab89dcfaa8af3c316a65112aa782b391d511c9257c26f375175b40cf75
|
7
|
+
data.tar.gz: de9f7519ff87de52af4991685b2a1d227da772cd2d41065fb7f73135fa2d90537a1fc45c9cdf9213b220a9250f84309baf0ce3fd8123ae7e9968ed886b5c81a8
|
data/LICENSE
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Archetype
|
2
|
+
Copyright (c) 2013 LinkedIn Corp. All rights reserved.
|
3
|
+
Apache Software License 2.0
|
4
|
+
|
5
|
+
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
you may not use this file except in compliance with the License.
|
8
|
+
You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,659 @@
|
|
1
|
+
$a-blackhole: require-archetype-module(archetype/core);
|
2
|
+
|
3
|
+
$a-blackhole: register-archetype-module(archetype/base/normalize);
|
4
|
+
|
5
|
+
// normalize.css v3.0.0 | MIT License | git.io/normalize
|
6
|
+
|
7
|
+
@mixin base-normalize-text-adjust() {
|
8
|
+
/**
|
9
|
+
* 0. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
10
|
+
* http://clagnut.com/blog/348/#c790
|
11
|
+
* 1. Sets default font family to sans-serif.
|
12
|
+
* 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
13
|
+
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
14
|
+
*/
|
15
|
+
html {
|
16
|
+
// legacy
|
17
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
18
|
+
font-size: 100%; /* 0 */
|
19
|
+
}
|
20
|
+
font-family: sans-serif; /* 1 */
|
21
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
22
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin base-normalize-page() {
|
28
|
+
/**
|
29
|
+
* Removes default margin.
|
30
|
+
*/
|
31
|
+
|
32
|
+
body {
|
33
|
+
margin: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// @category base
|
38
|
+
@mixin base-normalize-html5() {
|
39
|
+
/* HTML5 display definitions
|
40
|
+
========================================================================== */
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
44
|
+
* Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
|
45
|
+
* Correct `block` display not defined for `main` in IE 11.
|
46
|
+
*/
|
47
|
+
|
48
|
+
article,
|
49
|
+
aside,
|
50
|
+
details,
|
51
|
+
figcaption,
|
52
|
+
figure,
|
53
|
+
footer,
|
54
|
+
header,
|
55
|
+
hgroup,
|
56
|
+
main,
|
57
|
+
nav,
|
58
|
+
section,
|
59
|
+
summary {
|
60
|
+
display: block;
|
61
|
+
}
|
62
|
+
|
63
|
+
/**
|
64
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
65
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
66
|
+
*/
|
67
|
+
|
68
|
+
audio,
|
69
|
+
canvas,
|
70
|
+
progress,
|
71
|
+
video {
|
72
|
+
@include inline-block(baseline, baseline);
|
73
|
+
}
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
77
|
+
* Remove excess height in iOS 5 devices.
|
78
|
+
*/
|
79
|
+
audio:not([controls]) {
|
80
|
+
display: none;
|
81
|
+
height: 0;
|
82
|
+
}
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Address `[hidden]` styling not present in IE 8/9/10.
|
86
|
+
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
87
|
+
*/
|
88
|
+
|
89
|
+
[hidden],
|
90
|
+
template {
|
91
|
+
display: none;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin base-normalize-links() {
|
96
|
+
/* Links
|
97
|
+
========================================================================== */
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Remove the gray background color from active links in IE 10.
|
101
|
+
*/
|
102
|
+
|
103
|
+
a {
|
104
|
+
@include transparent-focusable();
|
105
|
+
}
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Addresses `outline` inconsistency between Chrome and other browsers.
|
109
|
+
*/
|
110
|
+
|
111
|
+
a:focus {
|
112
|
+
outline: thin dotted;
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Improves readability when focused and also mouse hovered in all browsers.
|
117
|
+
*/
|
118
|
+
|
119
|
+
a:active,
|
120
|
+
a:hover {
|
121
|
+
outline: 0;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
@mixin base-normalize-typogrpahy-core() {
|
126
|
+
/**
|
127
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
128
|
+
*/
|
129
|
+
|
130
|
+
code,
|
131
|
+
kbd,
|
132
|
+
pre,
|
133
|
+
samp {
|
134
|
+
font-family: monospace, monospace;
|
135
|
+
font-size: 1em;
|
136
|
+
}
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Improves readability of pre-formatted text in all browsers.
|
140
|
+
* Contain overflow in all browsers.
|
141
|
+
*/
|
142
|
+
|
143
|
+
pre {
|
144
|
+
overflow: auto;
|
145
|
+
white-space: pre;
|
146
|
+
white-space: pre-wrap;
|
147
|
+
word-wrap: break-word;
|
148
|
+
}
|
149
|
+
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Address inconsistent and variable font size in all browsers.
|
153
|
+
*/
|
154
|
+
|
155
|
+
small {
|
156
|
+
font-size: 80%;
|
157
|
+
}
|
158
|
+
|
159
|
+
/**
|
160
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
161
|
+
*/
|
162
|
+
|
163
|
+
sub,
|
164
|
+
sup {
|
165
|
+
font-size: 75%;
|
166
|
+
line-height: 0;
|
167
|
+
position: relative;
|
168
|
+
vertical-align: baseline;
|
169
|
+
}
|
170
|
+
|
171
|
+
sup {
|
172
|
+
top: -0.5em;
|
173
|
+
}
|
174
|
+
|
175
|
+
sub {
|
176
|
+
bottom: -0.25em;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
@mixin base-normalize-typography() {
|
181
|
+
/* =============================================================================
|
182
|
+
Typography
|
183
|
+
========================================================================== */
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Addresses font sizes and margins set differently in IE6/7
|
187
|
+
* Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
|
188
|
+
*/
|
189
|
+
|
190
|
+
h1 {
|
191
|
+
font-size: 2em;
|
192
|
+
margin: 0.67em 0;
|
193
|
+
}
|
194
|
+
|
195
|
+
h2 {
|
196
|
+
font-size: 1.5em;
|
197
|
+
margin: 0.83em 0;
|
198
|
+
}
|
199
|
+
|
200
|
+
h3 {
|
201
|
+
font-size: 1.17em;
|
202
|
+
margin: 1em 0;
|
203
|
+
}
|
204
|
+
|
205
|
+
h4 {
|
206
|
+
font-size: 1em;
|
207
|
+
margin: 1.33em 0;
|
208
|
+
}
|
209
|
+
|
210
|
+
h5 {
|
211
|
+
font-size: 0.83em;
|
212
|
+
margin: 1.67em 0;
|
213
|
+
}
|
214
|
+
|
215
|
+
h6 {
|
216
|
+
font-size: 0.75em;
|
217
|
+
margin: 2.33em 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
/**
|
221
|
+
* Addresses styling not present in IE 8/9, Safari 5, and Chrome.
|
222
|
+
*/
|
223
|
+
|
224
|
+
abbr[title] {
|
225
|
+
border-bottom: 1px dotted;
|
226
|
+
}
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
230
|
+
*/
|
231
|
+
|
232
|
+
b,
|
233
|
+
strong {
|
234
|
+
font-weight: bold;
|
235
|
+
}
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Addresses styling not present in Safari 5 and Chrome.
|
239
|
+
*/
|
240
|
+
|
241
|
+
dfn {
|
242
|
+
font-style: italic;
|
243
|
+
}
|
244
|
+
|
245
|
+
/**
|
246
|
+
* Address differences between Firefox and other browsers.
|
247
|
+
*/
|
248
|
+
|
249
|
+
hr {
|
250
|
+
-moz-box-sizing: content-box;
|
251
|
+
box-sizing: content-box;
|
252
|
+
height: 0;
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Addresses styling not present in IE 8/9.
|
258
|
+
*/
|
259
|
+
|
260
|
+
mark {
|
261
|
+
background: #ff0;
|
262
|
+
color: #000;
|
263
|
+
}
|
264
|
+
|
265
|
+
blockquote {
|
266
|
+
margin: 1em 40px;
|
267
|
+
}
|
268
|
+
|
269
|
+
/**
|
270
|
+
* Addresses margins set differently in IE6/7
|
271
|
+
*/
|
272
|
+
|
273
|
+
p,
|
274
|
+
pre {
|
275
|
+
margin: 1em 0;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
@mixin base-normalize-lists() {
|
280
|
+
// legacy
|
281
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
282
|
+
/* =============================================================================
|
283
|
+
Lists
|
284
|
+
========================================================================== */
|
285
|
+
|
286
|
+
/**
|
287
|
+
* Addresses margins set differently in IE6/7
|
288
|
+
*/
|
289
|
+
|
290
|
+
dl,
|
291
|
+
menu,
|
292
|
+
ol,
|
293
|
+
ul {
|
294
|
+
margin: 1em 0;
|
295
|
+
}
|
296
|
+
|
297
|
+
dd {
|
298
|
+
margin: 0 0 0 40px;
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Addresses paddings set differently in IE6/7
|
303
|
+
*/
|
304
|
+
|
305
|
+
menu,
|
306
|
+
ol,
|
307
|
+
ul {
|
308
|
+
padding: 0 0 0 40px;
|
309
|
+
}
|
310
|
+
|
311
|
+
/**
|
312
|
+
* Corrects list images handled incorrectly in IE7
|
313
|
+
*/
|
314
|
+
|
315
|
+
nav ul,
|
316
|
+
nav ol {
|
317
|
+
list-style: none;
|
318
|
+
list-style-image: none;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
@mixin base-normalize-image() {
|
324
|
+
/**
|
325
|
+
* 1. Remove border when inside 'a' element in IE6/7/8/9, FF3
|
326
|
+
* 2. (legacy) Improve image quality when scaled in IE7
|
327
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
328
|
+
*/
|
329
|
+
|
330
|
+
img {
|
331
|
+
border: 0; /* 1 */
|
332
|
+
// legacy
|
333
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
334
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
|
339
|
+
@mixin base-normalize-embed() {
|
340
|
+
/* =============================================================================
|
341
|
+
Embedded content
|
342
|
+
========================================================================== */
|
343
|
+
@include base-normalize-image();
|
344
|
+
|
345
|
+
/**
|
346
|
+
* Correct overflow not hidden in IE 9/10/11.
|
347
|
+
*/
|
348
|
+
|
349
|
+
svg:not(:root) {
|
350
|
+
overflow: hidden;
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
354
|
+
@mixin base-normalize-figures() {
|
355
|
+
/* =============================================================================
|
356
|
+
Figures
|
357
|
+
========================================================================== */
|
358
|
+
|
359
|
+
/**
|
360
|
+
* Address margin not present in IE6/7/8/9 ans Safari
|
361
|
+
*/
|
362
|
+
|
363
|
+
figure {
|
364
|
+
margin: 1em 40px;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
@mixin base-normalize-fieldset() {
|
369
|
+
/**
|
370
|
+
* Define consistent border, margin, and padding.
|
371
|
+
*/
|
372
|
+
|
373
|
+
fieldset {
|
374
|
+
border: 1px solid #c0c0c0;
|
375
|
+
margin: 0 2px;
|
376
|
+
padding: 0.35em 0.625em 0.75em;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
@mixin base-normalize-forms() {
|
381
|
+
/* =============================================================================
|
382
|
+
Forms
|
383
|
+
========================================================================== */
|
384
|
+
|
385
|
+
/**
|
386
|
+
* (legacy) Corrects margin displayed oddly in IE6/7
|
387
|
+
*/
|
388
|
+
|
389
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
390
|
+
form {
|
391
|
+
margin: 0;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
/**
|
396
|
+
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
397
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
398
|
+
* 3. (legacy) Correct alignment displayed oddly in IE6/7
|
399
|
+
*/
|
400
|
+
|
401
|
+
legend {
|
402
|
+
border: 0; /* 1 */
|
403
|
+
padding: 0; /* 2 */
|
404
|
+
// legacy
|
405
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
406
|
+
*margin-left: -7px; /* 3 */
|
407
|
+
}
|
408
|
+
}
|
409
|
+
|
410
|
+
/**
|
411
|
+
* 1. Correct color not being inherited.
|
412
|
+
* 2. Correct font properties not being inherited.
|
413
|
+
* Known issue: affects color of disabled elements.
|
414
|
+
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
415
|
+
* 4. (legacy) Improves appearance and consistency in all browsers
|
416
|
+
*/
|
417
|
+
|
418
|
+
button,
|
419
|
+
input,
|
420
|
+
optgroup,
|
421
|
+
select,
|
422
|
+
textarea {
|
423
|
+
color: inherit; /* 1 */
|
424
|
+
font: inherit; /* 2 */
|
425
|
+
margin: 0; /* 3 */
|
426
|
+
vertical-align: baseline; /* 4 */
|
427
|
+
// legacy
|
428
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
429
|
+
*vertical-align: middle; /* 4 */
|
430
|
+
}
|
431
|
+
}
|
432
|
+
|
433
|
+
/**
|
434
|
+
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
435
|
+
*/
|
436
|
+
|
437
|
+
button {
|
438
|
+
overflow: visible;
|
439
|
+
}
|
440
|
+
|
441
|
+
/**
|
442
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
443
|
+
* All other form control elements do not inherit `text-transform` values.
|
444
|
+
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
445
|
+
* Correct `select` style inheritance in Firefox.
|
446
|
+
*/
|
447
|
+
|
448
|
+
button,
|
449
|
+
select {
|
450
|
+
text-transform: none;
|
451
|
+
}
|
452
|
+
|
453
|
+
/**
|
454
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
455
|
+
* and `video` controls.
|
456
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
457
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
458
|
+
* `input` and others.
|
459
|
+
* 4. (legacy) Removes inner spacing in IE7 without affecting normal text inputs
|
460
|
+
*/
|
461
|
+
|
462
|
+
button,
|
463
|
+
html input[type="button"], /* 1 */
|
464
|
+
input[type="reset"],
|
465
|
+
input[type="submit"] {
|
466
|
+
-webkit-appearance: button; /* 2 */
|
467
|
+
cursor: pointer; /* 3 */
|
468
|
+
// legacy
|
469
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
470
|
+
*overflow: visible; /* 4 */
|
471
|
+
}
|
472
|
+
}
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Re-set default cursor for disabled elements.
|
476
|
+
*/
|
477
|
+
|
478
|
+
button[disabled],
|
479
|
+
html input[disabled] {
|
480
|
+
cursor: default;
|
481
|
+
}
|
482
|
+
|
483
|
+
/**
|
484
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
485
|
+
* the UA stylesheet.
|
486
|
+
*/
|
487
|
+
|
488
|
+
input {
|
489
|
+
line-height: normal;
|
490
|
+
}
|
491
|
+
|
492
|
+
/**
|
493
|
+
* It's recommended that you don't attempt to style these elements.
|
494
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
495
|
+
*
|
496
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
497
|
+
* 2. Remove excess padding in IE 8/9/10.
|
498
|
+
* 3. Removes excess padding in IE7
|
499
|
+
* known issue: excess padding remains in IE6
|
500
|
+
*/
|
501
|
+
|
502
|
+
input[type="checkbox"],
|
503
|
+
input[type="radio"] {
|
504
|
+
box-sizing: border-box; /* 1 */
|
505
|
+
padding: 0; /* 2 */
|
506
|
+
// legacy
|
507
|
+
@if(support-legacy-browser('ie', '7', $threshold: $critical-usage-threshold)) {
|
508
|
+
*height: 13px; /* 3 */
|
509
|
+
*width: 13px; /* 3 */
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
/**
|
514
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
515
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
516
|
+
* decrement button to change from `default` to `text`.
|
517
|
+
*/
|
518
|
+
|
519
|
+
input[type="number"]::-webkit-inner-spin-button,
|
520
|
+
input[type="number"]::-webkit-outer-spin-button {
|
521
|
+
height: auto;
|
522
|
+
}
|
523
|
+
|
524
|
+
/**
|
525
|
+
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
526
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
527
|
+
* (include `-moz` to future-proof).
|
528
|
+
*/
|
529
|
+
|
530
|
+
input[type="search"] {
|
531
|
+
-webkit-appearance: textfield; /* 1 */
|
532
|
+
-moz-box-sizing: content-box;
|
533
|
+
-webkit-box-sizing: content-box; /* 2 */
|
534
|
+
box-sizing: content-box;
|
535
|
+
}
|
536
|
+
|
537
|
+
/**
|
538
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
539
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
540
|
+
* padding (and `textfield` appearance).
|
541
|
+
*/
|
542
|
+
|
543
|
+
input[type="search"]::-webkit-search-cancel-button,
|
544
|
+
input[type="search"]::-webkit-search-decoration {
|
545
|
+
-webkit-appearance: none;
|
546
|
+
}
|
547
|
+
|
548
|
+
/**
|
549
|
+
* Remove inner padding and border in Firefox 4+.
|
550
|
+
*/
|
551
|
+
|
552
|
+
button::-moz-focus-inner,
|
553
|
+
input::-moz-focus-inner {
|
554
|
+
border: 0;
|
555
|
+
padding: 0;
|
556
|
+
}
|
557
|
+
|
558
|
+
/**
|
559
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
560
|
+
* 2. Improves readability and alignment in all browsers
|
561
|
+
*/
|
562
|
+
|
563
|
+
textarea {
|
564
|
+
overflow: auto; /* 1 */
|
565
|
+
vertical-align: top; /* 2 */
|
566
|
+
}
|
567
|
+
|
568
|
+
/**
|
569
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
570
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
571
|
+
*/
|
572
|
+
|
573
|
+
optgroup {
|
574
|
+
font-weight: bold;
|
575
|
+
}
|
576
|
+
|
577
|
+
}
|
578
|
+
|
579
|
+
@mixin base-normalize-ime() {
|
580
|
+
/* =============================================================================
|
581
|
+
IME mode
|
582
|
+
========================================================================== */
|
583
|
+
input[data-ime-mode-disabled],
|
584
|
+
input[type=file] {
|
585
|
+
ime-mode: disabled !important;
|
586
|
+
}
|
587
|
+
}
|
588
|
+
|
589
|
+
@mixin base-normalize-table() {
|
590
|
+
/* ==========================================================================
|
591
|
+
Tables
|
592
|
+
========================================================================== */
|
593
|
+
|
594
|
+
/**
|
595
|
+
* Remove most spacing between table cells.
|
596
|
+
*/
|
597
|
+
|
598
|
+
table {
|
599
|
+
border-collapse: collapse;
|
600
|
+
border-spacing: 0;
|
601
|
+
}
|
602
|
+
|
603
|
+
td,
|
604
|
+
th {
|
605
|
+
padding: 0;
|
606
|
+
}
|
607
|
+
}
|
608
|
+
|
609
|
+
// -------------------------
|
610
|
+
// base-normalize() provides the main entry point to incorporate the behaviors of normalize.css onto the page.
|
611
|
+
// @mixin base-normalize
|
612
|
+
// @param $exclude {List} the list of features to exclude from the reset
|
613
|
+
// @link http://github.com/necolas/normalize.css
|
614
|
+
@mixin base-normalize($exclude: ()) {
|
615
|
+
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
|
616
|
+
$exclude: -archetype-list($exclude);
|
617
|
+
@if(not index($exclude, normalize-html5)) {
|
618
|
+
@include base-normalize-html5();
|
619
|
+
}
|
620
|
+
@if(not index($exclude, normalize-text-adjust)) {
|
621
|
+
@include base-normalize-text-adjust();
|
622
|
+
}
|
623
|
+
@if(not index($exclude, normalize-page)) {
|
624
|
+
@include base-normalize-page();
|
625
|
+
}
|
626
|
+
@if(not index($exclude, normalize-links)) {
|
627
|
+
@include base-normalize-links();
|
628
|
+
}
|
629
|
+
@if(not index($exclude, normalize-typography)) {
|
630
|
+
@include base-normalize-typography();
|
631
|
+
}
|
632
|
+
@if(not index($exclude, normalize-typography-core)) {
|
633
|
+
@include base-normalize-typogrpahy-core();
|
634
|
+
}
|
635
|
+
@if(not index($exclude, normalize-lists)) {
|
636
|
+
@include base-normalize-lists();
|
637
|
+
}
|
638
|
+
@if(not index($exclude, normalize-image)) {
|
639
|
+
@include base-normalize-image();
|
640
|
+
}
|
641
|
+
@if(not index($exclude, normalize-embeds)) {
|
642
|
+
@include base-normalize-embed();
|
643
|
+
}
|
644
|
+
@if(not index($exclude, normalize-figures)) {
|
645
|
+
@include base-normalize-figures();
|
646
|
+
}
|
647
|
+
@if(not index($exclude, normalize-forms)) {
|
648
|
+
@include base-normalize-forms();
|
649
|
+
}
|
650
|
+
@if(not index($exclude, normalize-fieldset)) {
|
651
|
+
@include base-normalize-fieldset();
|
652
|
+
}
|
653
|
+
@if(not index($exclude, normalize-tables)) {
|
654
|
+
@include base-normalize-table();
|
655
|
+
}
|
656
|
+
@if(not index($exclude, normalize-ime)) {
|
657
|
+
@include base-normalize-ime();
|
658
|
+
}
|
659
|
+
}
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: archetype-base-normalize
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.alpha.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eugene ONeill
|
8
|
+
- LinkedIn
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: archetype
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.0.0.alpha.1
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 1.0.0.alpha.1
|
28
|
+
description: An Archetype extension that provides hooks into using Normalize.css'
|
29
|
+
CSS reset
|
30
|
+
email: oneill.eugene@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/CHANGELOG.md"
|
36
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/README.md"
|
37
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/VERSION"
|
38
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/lib/archetype-base-normalize.rb"
|
39
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/lib/archetype-base-normalize/version.rb"
|
40
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/stylesheets/archetype/base/_normalize.scss"
|
41
|
+
- "/Users/eoneill/workspace/archetype/extensions/archetype-base-normalize/templates/project/manifest.rb"
|
42
|
+
- LICENSE
|
43
|
+
homepage: http://www.archetypecss.com/extensions/archetype-base-normalize
|
44
|
+
licenses:
|
45
|
+
- Apache License (2.0)
|
46
|
+
metadata: {}
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.3.1
|
61
|
+
requirements: []
|
62
|
+
rubyforge_project:
|
63
|
+
rubygems_version: 2.2.2
|
64
|
+
signing_key:
|
65
|
+
specification_version: 4
|
66
|
+
summary: Archetype Normalize.css Extension
|
67
|
+
test_files: []
|
68
|
+
has_rdoc:
|