normalize-rails 0.0.1 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Normalize-Rails
2
2
 
3
- Integrates [normalize.css](http://necolas.github.com/normalize.css/) with the rails assett pipeline.
3
+ Integrates [normalize.css](http://necolas.github.com/normalize.css/) with the rails asset pipeline.
4
4
 
5
5
  Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.
6
6
 
@@ -27,7 +27,7 @@ And then in your application.css
27
27
  *= require normalize-rails
28
28
  *= require_tree .
29
29
 
30
- Add it before require_tree so that you can override any of it's styles.
30
+ Add it before require_tree so that you can override any of its styles.
31
31
 
32
32
  ## Contributing
33
33
 
data/Rakefile CHANGED
@@ -1,2 +1,14 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+ require 'open-uri'
4
+
5
+ desc "Download the latest normalize.css"
6
+ task :update do
7
+ url = "https://raw.github.com/necolas/normalize.css/master/normalize.css"
8
+ outputfile = "vendor/assets/stylesheets/normalize-rails/normalize.css"
9
+
10
+ open(outputfile, 'wb') do |file|
11
+ file << open(url).read
12
+ end
13
+
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Normalize
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -1,11 +1,11 @@
1
- /*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
1
+ /*! normalize.css v2.0.1 | MIT License | git.io/normalize */
2
2
 
3
- /* =============================================================================
3
+ /* ==========================================================================
4
4
  HTML5 display definitions
5
5
  ========================================================================== */
6
6
 
7
7
  /*
8
- * Corrects block display not defined in IE6/7/8/9 & FF3
8
+ * Corrects `block` display not defined in IE 8/9.
9
9
  */
10
10
 
11
11
  article,
@@ -23,20 +23,18 @@ summary {
23
23
  }
24
24
 
25
25
  /*
26
- * Corrects inline-block display not defined in IE6/7/8/9 & FF3
26
+ * Corrects `inline-block` display not defined in IE 8/9.
27
27
  */
28
28
 
29
29
  audio,
30
30
  canvas,
31
31
  video {
32
32
  display: inline-block;
33
- *display: inline;
34
- *zoom: 1;
35
33
  }
36
34
 
37
35
  /*
38
- * Prevents modern browsers from displaying 'audio' without controls
39
- * Remove excess height in iOS5 devices
36
+ * Prevents modern browsers from displaying `audio` without controls.
37
+ * Remove excess height in iOS 5 devices.
40
38
  */
41
39
 
42
40
  audio:not([controls]) {
@@ -45,59 +43,43 @@ audio:not([controls]) {
45
43
  }
46
44
 
47
45
  /*
48
- * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
49
- * Known issue: no IE6 support
46
+ * Addresses styling for `hidden` attribute not present in IE 8/9.
50
47
  */
51
48
 
52
49
  [hidden] {
53
50
  display: none;
54
51
  }
55
52
 
56
-
57
- /* =============================================================================
53
+ /* ==========================================================================
58
54
  Base
59
55
  ========================================================================== */
60
56
 
61
57
  /*
62
- * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
63
- * http://clagnut.com/blog/348/#c790
64
- * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
65
- * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
58
+ * 1. Sets default font family to sans-serif.
59
+ * 2. Prevents iOS text size adjust after orientation change, without disabling
60
+ * user zoom.
66
61
  */
67
62
 
68
63
  html {
69
- font-size: 100%; /* 1 */
64
+ font-family: sans-serif; /* 1 */
70
65
  -webkit-text-size-adjust: 100%; /* 2 */
71
66
  -ms-text-size-adjust: 100%; /* 2 */
72
67
  }
73
68
 
74
69
  /*
75
- * Addresses font-family inconsistency between 'textarea' and other form elements.
76
- */
77
-
78
- html,
79
- button,
80
- input,
81
- select,
82
- textarea {
83
- font-family: sans-serif;
84
- }
85
-
86
- /*
87
- * Addresses margins handled incorrectly in IE6/7
70
+ * Removes default margin.
88
71
  */
89
72
 
90
73
  body {
91
74
  margin: 0;
92
75
  }
93
76
 
94
-
95
- /* =============================================================================
77
+ /* ==========================================================================
96
78
  Links
97
79
  ========================================================================== */
98
80
 
99
81
  /*
100
- * Addresses outline displayed oddly in Chrome
82
+ * Addresses `outline` inconsistency between Chrome and other browsers.
101
83
  */
102
84
 
103
85
  a:focus {
@@ -105,57 +87,29 @@ a:focus {
105
87
  }
106
88
 
107
89
  /*
108
- * Improves readability when focused and also mouse hovered in all browsers
109
- * people.opera.com/patrickl/experiments/keyboard/test
90
+ * Improves readability when focused and also mouse hovered in all browsers.
110
91
  */
111
92
 
112
- a:hover,
113
- a:active {
93
+ a:active,
94
+ a:hover {
114
95
  outline: 0;
115
96
  }
116
97
 
117
-
118
- /* =============================================================================
98
+ /* ==========================================================================
119
99
  Typography
120
100
  ========================================================================== */
121
101
 
122
102
  /*
123
- * Addresses font sizes and margins set differently in IE6/7
124
- * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
103
+ * Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
104
+ * Safari 5, and Chrome.
125
105
  */
126
106
 
127
107
  h1 {
128
108
  font-size: 2em;
129
- margin: 0.67em 0;
130
- }
131
-
132
- h2 {
133
- font-size: 1.5em;
134
- margin: 0.83em 0;
135
- }
136
-
137
- h3 {
138
- font-size: 1.17em;
139
- margin: 1em 0;
140
- }
141
-
142
- h4 {
143
- font-size: 1em;
144
- margin: 1.33em 0;
145
- }
146
-
147
- h5 {
148
- font-size: 0.83em;
149
- margin: 1.67em 0;
150
- }
151
-
152
- h6 {
153
- font-size: 0.75em;
154
- margin: 2.33em 0;
155
109
  }
156
110
 
157
111
  /*
158
- * Addresses styling not present in IE7/8/9, S5, Chrome
112
+ * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
159
113
  */
160
114
 
161
115
  abbr[title] {
@@ -163,20 +117,16 @@ abbr[title] {
163
117
  }
164
118
 
165
119
  /*
166
- * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
167
- */
120
+ * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
121
+ */
168
122
 
169
123
  b,
170
124
  strong {
171
125
  font-weight: bold;
172
126
  }
173
127
 
174
- blockquote {
175
- margin: 1em 40px;
176
- }
177
-
178
128
  /*
179
- * Addresses styling not present in S5, Chrome
129
+ * Addresses styling not present in Safari 5 and Chrome.
180
130
  */
181
131
 
182
132
  dfn {
@@ -184,7 +134,7 @@ dfn {
184
134
  }
185
135
 
186
136
  /*
187
- * Addresses styling not present in IE6/7/8/9
137
+ * Addresses styling not present in IE 8/9.
188
138
  */
189
139
 
190
140
  mark {
@@ -192,31 +142,21 @@ mark {
192
142
  color: #000;
193
143
  }
194
144
 
195
- /*
196
- * Addresses margins set differently in IE6/7
197
- */
198
-
199
- p,
200
- pre {
201
- margin: 1em 0;
202
- }
203
145
 
204
146
  /*
205
- * Corrects font family set oddly in IE6, S4/5, Chrome
206
- * en.wikipedia.org/wiki/User:Davidgothberg/Test59
147
+ * Corrects font family set oddly in Safari 5 and Chrome.
207
148
  */
208
149
 
209
- pre,
210
150
  code,
211
151
  kbd,
152
+ pre,
212
153
  samp {
213
154
  font-family: monospace, serif;
214
- _font-family: 'courier new', monospace;
215
155
  font-size: 1em;
216
156
  }
217
157
 
218
158
  /*
219
- * Improves readability of pre-formatted text in all browsers
159
+ * Improves readability of pre-formatted text in all browsers.
220
160
  */
221
161
 
222
162
  pre {
@@ -226,31 +166,23 @@ pre {
226
166
  }
227
167
 
228
168
  /*
229
- * 1. Addresses CSS quotes not supported in IE6/7
230
- * 2. Addresses quote property not supported in S4
169
+ * Sets consistent quote types.
231
170
  */
232
171
 
233
- /* 1 */
234
-
235
172
  q {
236
- quotes: none;
173
+ quotes: "\201C" "\201D" "\2018" "\2019";
237
174
  }
238
175
 
239
- /* 2 */
240
-
241
- q:before,
242
- q:after {
243
- content: '';
244
- content: none;
245
- }
176
+ /*
177
+ * Addresses inconsistent and variable font size in all browsers.
178
+ */
246
179
 
247
180
  small {
248
- font-size: 75%;
181
+ font-size: 80%;
249
182
  }
250
183
 
251
184
  /*
252
- * Prevents sub and sup affecting line-height in all browsers
253
- * gist.github.com/413930
185
+ * Prevents `sub` and `sup` affecting `line-height` in all browsers.
254
186
  */
255
187
 
256
188
  sub,
@@ -269,98 +201,44 @@ sub {
269
201
  bottom: -0.25em;
270
202
  }
271
203
 
272
-
273
- /* =============================================================================
274
- Lists
275
- ========================================================================== */
276
-
277
- /*
278
- * Addresses margins set differently in IE6/7
279
- */
280
-
281
- dl,
282
- menu,
283
- ol,
284
- ul {
285
- margin: 1em 0;
286
- }
287
-
288
- dd {
289
- margin: 0 0 0 40px;
290
- }
291
-
292
- /*
293
- * Addresses paddings set differently in IE6/7
294
- */
295
-
296
- menu,
297
- ol,
298
- ul {
299
- padding: 0 0 0 40px;
300
- }
301
-
302
- /*
303
- * Corrects list images handled incorrectly in IE7
304
- */
305
-
306
- nav ul,
307
- nav ol {
308
- list-style: none;
309
- list-style-image: none;
310
- }
311
-
312
-
313
- /* =============================================================================
204
+ /* ==========================================================================
314
205
  Embedded content
315
206
  ========================================================================== */
316
207
 
317
208
  /*
318
- * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
319
- * 2. Improves image quality when scaled in IE7
320
- * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
209
+ * Removes border when inside `a` element in IE 8/9.
321
210
  */
322
211
 
323
212
  img {
324
- border: 0; /* 1 */
325
- -ms-interpolation-mode: bicubic; /* 2 */
213
+ border: 0;
326
214
  }
327
215
 
328
216
  /*
329
- * Corrects overflow displayed oddly in IE9
217
+ * Corrects overflow displayed oddly in IE 9.
330
218
  */
331
219
 
332
220
  svg:not(:root) {
333
221
  overflow: hidden;
334
222
  }
335
223
 
336
-
337
- /* =============================================================================
224
+ /* ==========================================================================
338
225
  Figures
339
226
  ========================================================================== */
340
227
 
341
228
  /*
342
- * Addresses margin not present in IE6/7/8/9, S5, O11
229
+ * Addresses margin not present in IE 8/9 and Safari 5.
343
230
  */
344
231
 
345
232
  figure {
346
233
  margin: 0;
347
234
  }
348
235
 
349
-
350
- /* =============================================================================
236
+ /* ==========================================================================
351
237
  Forms
352
238
  ========================================================================== */
353
239
 
354
240
  /*
355
- * Corrects margin displayed oddly in IE6/7
356
- */
357
-
358
- form {
359
- margin: 0;
360
- }
361
-
362
- /*
363
- * Define consistent border, margin, and padding
241
+ * Define consistent border, margin, and padding.
364
242
  */
365
243
 
366
244
  fieldset {
@@ -370,61 +248,58 @@ fieldset {
370
248
  }
371
249
 
372
250
  /*
373
- * 1. Corrects color not being inherited in IE6/7/8/9
374
- * 2. Corrects text not wrapping in FF3
375
- * 3. Corrects alignment displayed oddly in IE6/7
251
+ * 1. Corrects color not being inherited in IE 8/9.
252
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
376
253
  */
377
254
 
378
255
  legend {
379
256
  border: 0; /* 1 */
380
- padding: 0;
381
- white-space: normal; /* 2 */
382
- *margin-left: -7px; /* 3 */
257
+ padding: 0; /* 2 */
383
258
  }
384
259
 
385
260
  /*
386
- * 1. Corrects font size not being inherited in all browsers
387
- * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
388
- * 3. Improves appearance and consistency in all browsers
261
+ * 1. Corrects font family not being inherited in all browsers.
262
+ * 2. Corrects font size not being inherited in all browsers.
263
+ * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
389
264
  */
390
265
 
391
266
  button,
392
267
  input,
393
268
  select,
394
269
  textarea {
395
- font-size: 100%; /* 1 */
396
- margin: 0; /* 2 */
397
- vertical-align: baseline; /* 3 */
398
- *vertical-align: middle; /* 3 */
270
+ font-family: inherit; /* 1 */
271
+ font-size: 100%; /* 2 */
272
+ margin: 0; /* 3 */
399
273
  }
400
274
 
401
275
  /*
402
- * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
276
+ * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
277
+ * the UA stylesheet.
403
278
  */
404
279
 
405
280
  button,
406
281
  input {
407
- line-height: normal; /* 1 */
282
+ line-height: normal;
408
283
  }
409
284
 
410
285
  /*
411
- * 1. Improves usability and consistency of cursor style between image-type 'input' and others
412
- * 2. Corrects inability to style clickable 'input' types in iOS
413
- * 3. Removes inner spacing in IE7 without affecting normal text inputs
414
- * Known issue: inner spacing remains in IE6
286
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
287
+ * and `video` controls.
288
+ * 2. Corrects inability to style clickable `input` types in iOS.
289
+ * 3. Improves usability and consistency of cursor style between image-type
290
+ * `input` and others.
415
291
  */
416
292
 
417
293
  button,
418
- input[type="button"],
294
+ html input[type="button"], /* 1 */
419
295
  input[type="reset"],
420
296
  input[type="submit"] {
421
- cursor: pointer; /* 1 */
422
297
  -webkit-appearance: button; /* 2 */
423
- *overflow: visible; /* 3 */
298
+ cursor: pointer; /* 3 */
424
299
  }
425
300
 
426
301
  /*
427
- * Re-set default cursor for disabled elements
302
+ * Re-set default cursor for disabled elements.
428
303
  */
429
304
 
430
305
  button[disabled],
@@ -433,23 +308,20 @@ input[disabled] {
433
308
  }
434
309
 
435
310
  /*
436
- * 1. Addresses box sizing set to content-box in IE8/9
437
- * 2. Removes excess padding in IE8/9
438
- * 3. Removes excess padding in IE7
439
- Known issue: excess padding remains in IE6
311
+ * 1. Addresses box sizing set to `content-box` in IE 8/9.
312
+ * 2. Removes excess padding in IE 8/9.
440
313
  */
441
314
 
442
315
  input[type="checkbox"],
443
316
  input[type="radio"] {
444
317
  box-sizing: border-box; /* 1 */
445
318
  padding: 0; /* 2 */
446
- *height: 13px; /* 3 */
447
- *width: 13px; /* 3 */
448
319
  }
449
320
 
450
321
  /*
451
- * 1. Addresses appearance set to searchfield in S5, Chrome
452
- * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
322
+ * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
323
+ * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
324
+ * (include `-moz` to future-proof).
453
325
  */
454
326
 
455
327
  input[type="search"] {
@@ -460,17 +332,17 @@ input[type="search"] {
460
332
  }
461
333
 
462
334
  /*
463
- * Removes inner padding and search cancel button in S5, Chrome on OS X
335
+ * Removes inner padding and search cancel button in Safari 5 and Chrome
336
+ * on OS X.
464
337
  */
465
338
 
466
- input[type="search"]::-webkit-search-decoration,
467
- input[type="search"]::-webkit-search-cancel-button {
339
+ input[type="search"]::-webkit-search-cancel-button,
340
+ input[type="search"]::-webkit-search-decoration {
468
341
  -webkit-appearance: none;
469
342
  }
470
343
 
471
344
  /*
472
- * Removes inner padding and border in FF3+
473
- * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
345
+ * Removes inner padding and border in Firefox 4+.
474
346
  */
475
347
 
476
348
  button::-moz-focus-inner,
@@ -480,8 +352,8 @@ input::-moz-focus-inner {
480
352
  }
481
353
 
482
354
  /*
483
- * 1. Removes default vertical scrollbar in IE6/7/8/9
484
- * 2. Improves readability and alignment in all browsers
355
+ * 1. Removes default vertical scrollbar in IE 8/9.
356
+ * 2. Improves readability and alignment in all browsers.
485
357
  */
486
358
 
487
359
  textarea {
@@ -489,13 +361,12 @@ textarea {
489
361
  vertical-align: top; /* 2 */
490
362
  }
491
363
 
492
-
493
- /* =============================================================================
364
+ /* ==========================================================================
494
365
  Tables
495
366
  ========================================================================== */
496
367
 
497
368
  /*
498
- * Remove most spacing between table cells
369
+ * Remove most spacing between table cells.
499
370
  */
500
371
 
501
372
  table {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-04-13 00:00:00.000000000 Z
14
+ date: 2012-11-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
18
- requirement: &70336026700860 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,12 @@ dependencies:
23
23
  version: '0'
24
24
  type: :development
25
25
  prerelease: false
26
- version_requirements: *70336026700860
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
27
32
  description: Normalize.css is an alternative to CSS resets
28
33
  email:
29
34
  - mark@markmcconachie.com
@@ -56,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
61
  version: '0'
57
62
  segments:
58
63
  - 0
59
- hash: -4490088686394396388
64
+ hash: -118831154646941148
60
65
  required_rubygems_version: !ruby/object:Gem::Requirement
61
66
  none: false
62
67
  requirements:
@@ -65,10 +70,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
70
  version: '0'
66
71
  segments:
67
72
  - 0
68
- hash: -4490088686394396388
73
+ hash: -118831154646941148
69
74
  requirements: []
70
75
  rubyforge_project:
71
- rubygems_version: 1.8.11
76
+ rubygems_version: 1.8.23
72
77
  signing_key:
73
78
  specification_version: 3
74
79
  summary: Normalize.css is a customisable CSS file that makes browsers render all elements