normalize-rails 3.0.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94db39d2f403b1a2cccbcd8f81257c2d9d6dad3e
4
- data.tar.gz: aa64d3ae2b6f3fcb185f07c9a8ad482130640071
3
+ metadata.gz: c2d2f69ea8578ed933a9c17d2647dc825ca13780
4
+ data.tar.gz: 3c6d83c2e75b17d783c5016cf0343fca3cd1e567
5
5
  SHA512:
6
- metadata.gz: dce8fecc142c13b9d72d655c30920c6ac02684f65880c8bf0e44da168fabccdcb55e54b3cf7a366fc4c0939d32c390e5601e95ed7e136a0531a882bb6177a489
7
- data.tar.gz: 77ee8d6534b20c4afda5f3596bcef6a28bed107ac89624833cfc9634fac1fe3c94f04de6116e4574fd803be3b5ca00612cc276e285afc9b35ed3d19522faf2e3
6
+ metadata.gz: 0da206f668d3377f1604015f56a62858c32585bbb22a8a3bb30609d901aa4d4e5107fd988dc8f7fc4cb704d5d4f6a5bb2ec79c8c605a6393b028e8b423202043
7
+ data.tar.gz: b5eba69936fe7ceeaf343deb105c52393770fbe3d82b0669e3b3c8c7774b8c0ebf8d6f6c6c4bdf3365d852ddb445200d8ba45d0d0471f1f7a3db6bea822a0781
data/LICENSE CHANGED
@@ -1 +1,21 @@
1
- Public domain
1
+ # The MIT License (MIT)
2
+
3
+ Copyright © Mark McConachie and Paul Beattie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  module Normalize
2
2
  module Rails
3
- VERSION = "3.0.3"
3
+ VERSION = "4.0.0"
4
4
  end
5
5
  end
@@ -1 +1 @@
1
- @import 'normalize-rails/normalize'
1
+ @import 'normalize-rails/normalize';
@@ -1 +1 @@
1
- @import 'normalize-rails/normalize'
1
+ @import 'normalize-rails/normalize';
@@ -1,9 +1,8 @@
1
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
1
+ /*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  /**
4
- * 1. Set default font family to sans-serif.
5
- * 2. Prevent iOS and IE text size adjust after device orientation change,
6
- * without disabling user zoom.
4
+ * 1. Change the default font family in all browsers (opinionated).
5
+ * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
7
6
  */
8
7
 
9
8
  html {
@@ -13,7 +12,7 @@ html {
13
12
  }
14
13
 
15
14
  /**
16
- * Remove default margin.
15
+ * Remove the margin in all browsers (opinionated).
17
16
  */
18
17
 
19
18
  body {
@@ -24,44 +23,39 @@ body {
24
23
  ========================================================================== */
25
24
 
26
25
  /**
27
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
28
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
29
- * and Firefox.
30
- * Correct `block` display not defined for `main` in IE 11.
26
+ * Add the correct display in IE 9-.
27
+ * 1. Add the correct display in Edge, IE, and Firefox.
28
+ * 2. Add the correct display in IE.
31
29
  */
32
30
 
33
31
  article,
34
32
  aside,
35
- details,
33
+ details, /* 1 */
36
34
  figcaption,
37
35
  figure,
38
36
  footer,
39
37
  header,
40
- hgroup,
41
- main,
38
+ main, /* 2 */
42
39
  menu,
43
40
  nav,
44
41
  section,
45
- summary {
42
+ summary { /* 1 */
46
43
  display: block;
47
44
  }
48
45
 
49
46
  /**
50
- * 1. Correct `inline-block` display not defined in IE 8/9.
51
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
47
+ * Add the correct display in IE 9-.
52
48
  */
53
49
 
54
50
  audio,
55
51
  canvas,
56
52
  progress,
57
53
  video {
58
- display: inline-block; /* 1 */
59
- vertical-align: baseline; /* 2 */
54
+ display: inline-block;
60
55
  }
61
56
 
62
57
  /**
63
- * Prevent modern browsers from displaying `audio` without controls.
64
- * Remove excess height in iOS 5 devices.
58
+ * Add the correct display in iOS 4-7.
65
59
  */
66
60
 
67
61
  audio:not([controls]) {
@@ -70,12 +64,20 @@ audio:not([controls]) {
70
64
  }
71
65
 
72
66
  /**
73
- * Address `[hidden]` styling not present in IE 8/9/10.
74
- * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
67
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
75
68
  */
76
69
 
77
- [hidden],
78
- template {
70
+ progress {
71
+ vertical-align: baseline;
72
+ }
73
+
74
+ /**
75
+ * Add the correct display in IE 10-.
76
+ * 1. Add the correct display in IE.
77
+ */
78
+
79
+ template, /* 1 */
80
+ [hidden] {
79
81
  display: none;
80
82
  }
81
83
 
@@ -83,7 +85,7 @@ template {
83
85
  ========================================================================== */
84
86
 
85
87
  /**
86
- * Remove the gray background color from active links in IE 10.
88
+ * Remove the gray background on active links in IE 10.
87
89
  */
88
90
 
89
91
  a {
@@ -91,37 +93,49 @@ a {
91
93
  }
92
94
 
93
95
  /**
94
- * Improve readability of focused elements when they are also in an
95
- * active/hover state.
96
+ * Remove the outline on focused links when they are also active or hovered
97
+ * in all browsers (opinionated).
96
98
  */
97
99
 
98
100
  a:active,
99
101
  a:hover {
100
- outline: 0;
102
+ outline-width: 0;
101
103
  }
102
104
 
103
105
  /* Text-level semantics
104
106
  ========================================================================== */
105
107
 
106
108
  /**
107
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
109
+ * 1. Remove the bottom border in Firefox 39-.
110
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
108
111
  */
109
112
 
110
113
  abbr[title] {
111
- border-bottom: 1px dotted;
114
+ border-bottom: none; /* 1 */
115
+ text-decoration: underline; /* 2 */
116
+ text-decoration: underline dotted; /* 2 */
112
117
  }
113
118
 
114
119
  /**
115
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
120
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
116
121
  */
117
122
 
118
123
  b,
119
124
  strong {
120
- font-weight: bold;
125
+ font-weight: inherit;
121
126
  }
122
127
 
123
128
  /**
124
- * Address styling not present in Safari and Chrome.
129
+ * Add the correct font weight in Chrome, Edge, and Safari.
130
+ */
131
+
132
+ b,
133
+ strong {
134
+ font-weight: bolder;
135
+ }
136
+
137
+ /**
138
+ * Add the correct font style in Android 4.3-.
125
139
  */
126
140
 
127
141
  dfn {
@@ -129,8 +143,8 @@ dfn {
129
143
  }
130
144
 
131
145
  /**
132
- * Address variable `h1` font-size and margin within `section` and `article`
133
- * contexts in Firefox 4+, Safari, and Chrome.
146
+ * Correct the font size and margin on `h1` elements within `section` and
147
+ * `article` contexts in Chrome, Firefox, and Safari.
134
148
  */
135
149
 
136
150
  h1 {
@@ -139,16 +153,16 @@ h1 {
139
153
  }
140
154
 
141
155
  /**
142
- * Address styling not present in IE 8/9.
156
+ * Add the correct background and color in IE 9-.
143
157
  */
144
158
 
145
159
  mark {
146
- background: #ff0;
160
+ background-color: #ff0;
147
161
  color: #000;
148
162
  }
149
163
 
150
164
  /**
151
- * Address inconsistent and variable font size in all browsers.
165
+ * Add the correct font size in all browsers.
152
166
  */
153
167
 
154
168
  small {
@@ -156,7 +170,8 @@ small {
156
170
  }
157
171
 
158
172
  /**
159
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
173
+ * Prevent `sub` and `sup` elements from affecting the line height in
174
+ * all browsers.
160
175
  */
161
176
 
162
177
  sub,
@@ -167,27 +182,27 @@ sup {
167
182
  vertical-align: baseline;
168
183
  }
169
184
 
170
- sup {
171
- top: -0.5em;
172
- }
173
-
174
185
  sub {
175
186
  bottom: -0.25em;
176
187
  }
177
188
 
189
+ sup {
190
+ top: -0.5em;
191
+ }
192
+
178
193
  /* Embedded content
179
194
  ========================================================================== */
180
195
 
181
196
  /**
182
- * Remove border when inside `a` element in IE 8/9/10.
197
+ * Remove the border on images inside links in IE 10-.
183
198
  */
184
199
 
185
200
  img {
186
- border: 0;
201
+ border-style: none;
187
202
  }
188
203
 
189
204
  /**
190
- * Correct overflow not hidden in IE 9/10/11.
205
+ * Hide the overflow in IE.
191
206
  */
192
207
 
193
208
  svg:not(:root) {
@@ -198,179 +213,146 @@ svg:not(:root) {
198
213
  ========================================================================== */
199
214
 
200
215
  /**
201
- * Address margin not present in IE 8/9 and Safari.
216
+ * 1. Correct the inheritance and scaling of font size in all browsers.
217
+ * 2. Correct the odd `em` font sizing in all browsers.
202
218
  */
203
219
 
204
- figure {
205
- margin: 1em 40px;
206
- }
207
-
208
- /**
209
- * Address differences between Firefox and other browsers.
210
- */
211
-
212
- hr {
213
- box-sizing: content-box;
214
- height: 0;
220
+ code,
221
+ kbd,
222
+ pre,
223
+ samp {
224
+ font-family: monospace, monospace; /* 1 */
225
+ font-size: 1em; /* 2 */
215
226
  }
216
227
 
217
228
  /**
218
- * Contain overflow in all browsers.
229
+ * Add the correct margin in IE 8.
219
230
  */
220
231
 
221
- pre {
222
- overflow: auto;
232
+ figure {
233
+ margin: 1em 40px;
223
234
  }
224
235
 
225
236
  /**
226
- * Address odd `em`-unit font size rendering in all browsers.
237
+ * 1. Add the correct box sizing in Firefox.
238
+ * 2. Show the overflow in Edge and IE.
227
239
  */
228
240
 
229
- code,
230
- kbd,
231
- pre,
232
- samp {
233
- font-family: monospace, monospace;
234
- font-size: 1em;
241
+ hr {
242
+ box-sizing: content-box; /* 1 */
243
+ height: 0; /* 1 */
244
+ overflow: visible; /* 2 */
235
245
  }
236
246
 
237
247
  /* Forms
238
248
  ========================================================================== */
239
249
 
240
250
  /**
241
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
242
- * styling of `select`, unless a `border` property is set.
243
- */
244
-
245
- /**
246
- * 1. Correct color not being inherited.
247
- * Known issue: affects color of disabled elements.
248
- * 2. Correct font properties not being inherited.
249
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
251
+ * Change font properties to `inherit` in all browsers (opinionated).
250
252
  */
251
253
 
252
254
  button,
253
255
  input,
254
- optgroup,
255
256
  select,
256
257
  textarea {
257
- color: inherit; /* 1 */
258
- font: inherit; /* 2 */
259
- margin: 0; /* 3 */
258
+ font: inherit;
260
259
  }
261
260
 
262
261
  /**
263
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
262
+ * Restore the font weight unset by the previous rule.
264
263
  */
265
264
 
266
- button {
267
- overflow: visible;
265
+ optgroup {
266
+ font-weight: bold;
268
267
  }
269
268
 
270
269
  /**
271
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
272
- * All other form control elements do not inherit `text-transform` values.
273
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
274
- * Correct `select` style inheritance in Firefox.
270
+ * Show the overflow in IE.
271
+ * 1. Show the overflow in Edge.
272
+ * 2. Show the overflow in Edge, Firefox, and IE.
275
273
  */
276
274
 
277
275
  button,
278
- select {
279
- text-transform: none;
276
+ input, /* 1 */
277
+ select { /* 2 */
278
+ overflow: visible;
280
279
  }
281
280
 
282
281
  /**
283
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
284
- * and `video` controls.
285
- * 2. Correct inability to style clickable `input` types in iOS.
286
- * 3. Improve usability and consistency of cursor style between image-type
287
- * `input` and others.
282
+ * Remove the margin in Safari.
283
+ * 1. Remove the margin in Firefox and Safari.
288
284
  */
289
285
 
290
286
  button,
291
- html input[type="button"], /* 1 */
292
- input[type="reset"],
293
- input[type="submit"] {
294
- -webkit-appearance: button; /* 2 */
295
- cursor: pointer; /* 3 */
296
- }
297
-
298
- /**
299
- * Re-set default cursor for disabled elements.
300
- */
301
-
302
- button[disabled],
303
- html input[disabled] {
304
- cursor: default;
287
+ input,
288
+ select,
289
+ textarea { /* 1 */
290
+ margin: 0;
305
291
  }
306
292
 
307
293
  /**
308
- * Remove inner padding and border in Firefox 4+.
294
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
295
+ * 1. Remove the inheritance of text transform in Firefox.
309
296
  */
310
297
 
311
- button::-moz-focus-inner,
312
- input::-moz-focus-inner {
313
- border: 0;
314
- padding: 0;
298
+ button,
299
+ select { /* 1 */
300
+ text-transform: none;
315
301
  }
316
302
 
317
303
  /**
318
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
319
- * the UA stylesheet.
304
+ * Change the cursor in all browsers (opinionated).
320
305
  */
321
306
 
322
- input {
323
- line-height: normal;
307
+ button,
308
+ [type="button"],
309
+ [type="reset"],
310
+ [type="submit"] {
311
+ cursor: pointer;
324
312
  }
325
313
 
326
314
  /**
327
- * It's recommended that you don't attempt to style these elements.
328
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
329
- *
330
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
331
- * 2. Remove excess padding in IE 8/9/10.
315
+ * Restore the default cursor to disabled elements unset by the previous rule.
332
316
  */
333
317
 
334
- input[type="checkbox"],
335
- input[type="radio"] {
336
- box-sizing: border-box; /* 1 */
337
- padding: 0; /* 2 */
318
+ [disabled] {
319
+ cursor: default;
338
320
  }
339
321
 
340
322
  /**
341
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
342
- * `font-size` values of the `input`, it causes the cursor style of the
343
- * decrement button to change from `default` to `text`.
323
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
324
+ * controls in Android 4.
325
+ * 2. Correct the inability to style clickable types in iOS.
344
326
  */
345
327
 
346
- input[type="number"]::-webkit-inner-spin-button,
347
- input[type="number"]::-webkit-outer-spin-button {
348
- height: auto;
328
+ button,
329
+ html [type="button"], /* 1 */
330
+ [type="reset"],
331
+ [type="submit"] {
332
+ -webkit-appearance: button; /* 2 */
349
333
  }
350
334
 
351
335
  /**
352
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
336
+ * Remove the inner border and padding in Firefox.
354
337
  */
355
338
 
356
- input[type="search"] {
357
- -webkit-appearance: textfield; /* 1 */
358
- box-sizing: content-box; /* 2 */
339
+ button::-moz-focus-inner,
340
+ input::-moz-focus-inner {
341
+ border: 0;
342
+ padding: 0;
359
343
  }
360
344
 
361
345
  /**
362
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
363
- * Safari (but not Chrome) clips the cancel button when the search input has
364
- * padding (and `textfield` appearance).
346
+ * Restore the focus styles unset by the previous rule.
365
347
  */
366
348
 
367
- input[type="search"]::-webkit-search-cancel-button,
368
- input[type="search"]::-webkit-search-decoration {
369
- -webkit-appearance: none;
349
+ button:-moz-focusring,
350
+ input:-moz-focusring {
351
+ outline: 1px dotted ButtonText;
370
352
  }
371
353
 
372
354
  /**
373
- * Define consistent border, margin, and padding.
355
+ * Change the border, margin, and padding in all browsers (opinionated).
374
356
  */
375
357
 
376
358
  fieldset {
@@ -380,17 +362,23 @@ fieldset {
380
362
  }
381
363
 
382
364
  /**
383
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
384
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
365
+ * 1. Correct the text wrapping in Edge and IE.
366
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
367
+ * 3. Remove the padding so developers are not caught out when they zero out
368
+ * `fieldset` elements in all browsers.
385
369
  */
386
370
 
387
371
  legend {
388
- border: 0; /* 1 */
389
- padding: 0; /* 2 */
372
+ box-sizing: border-box; /* 1 */
373
+ color: inherit; /* 2 */
374
+ display: table; /* 1 */
375
+ max-width: 100%; /* 1 */
376
+ padding: 0; /* 3 */
377
+ white-space: normal; /* 1 */
390
378
  }
391
379
 
392
380
  /**
393
- * Remove default vertical scrollbar in IE 8/9/10/11.
381
+ * Remove the default vertical scrollbar in IE.
394
382
  */
395
383
 
396
384
  textarea {
@@ -398,27 +386,39 @@ textarea {
398
386
  }
399
387
 
400
388
  /**
401
- * Don't inherit the `font-weight` (applied by a rule above).
402
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
389
+ * 1. Add the correct box sizing in IE 10-.
390
+ * 2. Remove the padding in IE 10-.
403
391
  */
404
392
 
405
- optgroup {
406
- font-weight: bold;
393
+ [type="checkbox"],
394
+ [type="radio"] {
395
+ box-sizing: border-box; /* 1 */
396
+ padding: 0; /* 2 */
407
397
  }
408
398
 
409
- /* Tables
410
- ========================================================================== */
399
+ /**
400
+ * Correct the cursor style of increment and decrement buttons in Chrome.
401
+ */
402
+
403
+ [type="number"]::-webkit-inner-spin-button,
404
+ [type="number"]::-webkit-outer-spin-button {
405
+ height: auto;
406
+ }
411
407
 
412
408
  /**
413
- * Remove most spacing between table cells.
409
+ * Correct the odd appearance of search inputs in Chrome and Safari.
414
410
  */
415
411
 
416
- table {
417
- border-collapse: collapse;
418
- border-spacing: 0;
412
+ [type="search"] {
413
+ -webkit-appearance: textfield;
419
414
  }
420
415
 
421
- td,
422
- th {
423
- padding: 0;
416
+ /**
417
+ * Remove the inner padding and cancel buttons in Chrome on OS X and
418
+ * Safari on OS X.
419
+ */
420
+
421
+ [type="search"]::-webkit-search-cancel-button,
422
+ [type="search"]::-webkit-search-decoration {
423
+ -webkit-appearance: none;
424
424
  }
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: 3.0.3
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Gallagher
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-01 00:00:00.000000000 Z
13
+ date: 2016-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.4.5
69
+ rubygems_version: 2.5.1
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Normalize.css is a customisable CSS file that makes browsers render all elements