normalize-rails 3.0.1 → 8.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7440fac0e7e302878837391d04a9acd5037ce0c2
4
- data.tar.gz: 210d9a09cb0051e682dc8aac23d886478b460e8e
2
+ SHA256:
3
+ metadata.gz: 559f90794f47200f435853a187bd13f96ecf3ae08f094952985cff700b9d7cea
4
+ data.tar.gz: e0bf02d55a75b8a6e80064ca006f36a92f35edfc41ef101243826c5a45d03331
5
5
  SHA512:
6
- metadata.gz: 5b2846aa5b8bb2de0ea2db74a599b5febfbe0acbb8c7a8d0fe287c84447b7303bd73fe77747269cd4b3ce523a4deb2e17bfcbf5222a5c02aae8d9458ee24bf68
7
- data.tar.gz: 7486ed0ab1d1925760733c6adee3006008b3dac4a4c9d9cdd0917bafd74fdf64a8e65fa2a814cdca192267deb584fd402fcf5f9c4c0de9f7e0a8301fcc1254c3
6
+ metadata.gz: f6f43d6dbb63f0966527ea96668de4830719f67ccbc18c143fd5dd69ff13a4ec3a51354ac7caf0096651af19f35515442b889607121148b7450ae08c813f4e4b
7
+ data.tar.gz: a66476bc8d7d62b6fdd0ab269b6ba1ed4c09c1d3c9a5c8890427cb51f8e3eb3f0bfabdcb3164f432e581b88d59aabd24fc0436ac83d8608751ff4f6e909470db
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .c9/
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.
data/README.md CHANGED
@@ -23,8 +23,8 @@ And then execute:
23
23
 
24
24
  And then in your application.css
25
25
 
26
- *= require_self
27
26
  *= require normalize-rails
27
+ *= require_self
28
28
  *= require_tree .
29
29
 
30
30
  Add it before require_tree so that you can override any of its styles.
@@ -1,5 +1,5 @@
1
1
  module Normalize
2
2
  module Rails
3
- VERSION = "3.0.1"
3
+ VERSION = "8.0.1"
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,151 +1,116 @@
1
- /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
2
5
 
3
6
  /**
4
- * 1. Set default font family to sans-serif.
5
- * 2. Prevent iOS text size adjust after orientation change, without disabling
6
- * user zoom.
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
7
9
  */
8
10
 
9
11
  html {
10
- font-family: sans-serif; /* 1 */
11
- -ms-text-size-adjust: 100%; /* 2 */
12
+ line-height: 1.15; /* 1 */
12
13
  -webkit-text-size-adjust: 100%; /* 2 */
13
14
  }
14
15
 
15
- /**
16
- * Remove default margin.
17
- */
18
-
19
- body {
20
- margin: 0;
21
- }
22
-
23
- /* HTML5 display definitions
16
+ /* Sections
24
17
  ========================================================================== */
25
18
 
26
19
  /**
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 and Firefox.
29
- * Correct `block` display not defined for `main` in IE 11.
30
- */
31
-
32
- article,
33
- aside,
34
- details,
35
- figcaption,
36
- figure,
37
- footer,
38
- header,
39
- hgroup,
40
- main,
41
- nav,
42
- section,
43
- summary {
44
- display: block;
45
- }
46
-
47
- /**
48
- * 1. Correct `inline-block` display not defined in IE 8/9.
49
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
20
+ * Remove the margin in all browsers.
50
21
  */
51
22
 
52
- audio,
53
- canvas,
54
- progress,
55
- video {
56
- display: inline-block; /* 1 */
57
- vertical-align: baseline; /* 2 */
23
+ body {
24
+ margin: 0;
58
25
  }
59
26
 
60
27
  /**
61
- * Prevent modern browsers from displaying `audio` without controls.
62
- * Remove excess height in iOS 5 devices.
28
+ * Render the `main` element consistently in IE.
63
29
  */
64
30
 
65
- audio:not([controls]) {
66
- display: none;
67
- height: 0;
31
+ main {
32
+ display: block;
68
33
  }
69
34
 
70
35
  /**
71
- * Address `[hidden]` styling not present in IE 8/9/10.
72
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
73
38
  */
74
39
 
75
- [hidden],
76
- template {
77
- display: none;
40
+ h1 {
41
+ font-size: 2em;
42
+ margin: 0.67em 0;
78
43
  }
79
44
 
80
- /* Links
45
+ /* Grouping content
81
46
  ========================================================================== */
82
47
 
83
48
  /**
84
- * Remove the gray background color from active links in IE 10.
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
85
51
  */
86
52
 
87
- a {
88
- background: transparent;
53
+ hr {
54
+ box-sizing: content-box; /* 1 */
55
+ height: 0; /* 1 */
56
+ overflow: visible; /* 2 */
89
57
  }
90
58
 
91
59
  /**
92
- * Improve readability when focused and also mouse hovered in all browsers.
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
93
62
  */
94
63
 
95
- a:active,
96
- a:hover {
97
- outline: 0;
64
+ pre {
65
+ font-family: monospace, monospace; /* 1 */
66
+ font-size: 1em; /* 2 */
98
67
  }
99
68
 
100
69
  /* Text-level semantics
101
70
  ========================================================================== */
102
71
 
103
72
  /**
104
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
105
- */
106
-
107
- abbr[title] {
108
- border-bottom: 1px dotted;
109
- }
110
-
111
- /**
112
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
73
+ * Remove the gray background on active links in IE 10.
113
74
  */
114
75
 
115
- b,
116
- strong {
117
- font-weight: bold;
76
+ a {
77
+ background-color: transparent;
118
78
  }
119
79
 
120
80
  /**
121
- * Address styling not present in Safari and Chrome.
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
122
83
  */
123
84
 
124
- dfn {
125
- font-style: italic;
85
+ abbr[title] {
86
+ border-bottom: none; /* 1 */
87
+ text-decoration: underline; /* 2 */
88
+ text-decoration: underline dotted; /* 2 */
126
89
  }
127
90
 
128
91
  /**
129
- * Address variable `h1` font-size and margin within `section` and `article`
130
- * contexts in Firefox 4+, Safari, and Chrome.
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
131
93
  */
132
94
 
133
- h1 {
134
- font-size: 2em;
135
- margin: 0.67em 0;
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
136
98
  }
137
99
 
138
100
  /**
139
- * Address styling not present in IE 8/9.
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
140
103
  */
141
104
 
142
- mark {
143
- background: #ff0;
144
- color: #000;
105
+ code,
106
+ kbd,
107
+ samp {
108
+ font-family: monospace, monospace; /* 1 */
109
+ font-size: 1em; /* 2 */
145
110
  }
146
111
 
147
112
  /**
148
- * Address inconsistent and variable font size in all browsers.
113
+ * Add the correct font size in all browsers.
149
114
  */
150
115
 
151
116
  small {
@@ -153,7 +118,8 @@ small {
153
118
  }
154
119
 
155
120
  /**
156
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * all browsers.
157
123
  */
158
124
 
159
125
  sub,
@@ -164,262 +130,220 @@ sup {
164
130
  vertical-align: baseline;
165
131
  }
166
132
 
167
- sup {
168
- top: -0.5em;
169
- }
170
-
171
133
  sub {
172
134
  bottom: -0.25em;
173
135
  }
174
136
 
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
175
141
  /* Embedded content
176
142
  ========================================================================== */
177
143
 
178
144
  /**
179
- * Remove border when inside `a` element in IE 8/9/10.
145
+ * Remove the border on images inside links in IE 10.
180
146
  */
181
147
 
182
148
  img {
183
- border: 0;
184
- }
185
-
186
- /**
187
- * Correct overflow not hidden in IE 9/10/11.
188
- */
189
-
190
- svg:not(:root) {
191
- overflow: hidden;
149
+ border-style: none;
192
150
  }
193
151
 
194
- /* Grouping content
152
+ /* Forms
195
153
  ========================================================================== */
196
154
 
197
155
  /**
198
- * Address margin not present in IE 8/9 and Safari.
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
199
158
  */
200
159
 
201
- figure {
202
- margin: 1em 40px;
203
- }
204
-
205
- /**
206
- * Address differences between Firefox and other browsers.
207
- */
208
-
209
- hr {
210
- -moz-box-sizing: content-box;
211
- box-sizing: content-box;
212
- height: 0;
160
+ button,
161
+ input,
162
+ optgroup,
163
+ select,
164
+ textarea {
165
+ font-family: inherit; /* 1 */
166
+ font-size: 100%; /* 1 */
167
+ line-height: 1.15; /* 1 */
168
+ margin: 0; /* 2 */
213
169
  }
214
170
 
215
171
  /**
216
- * Contain overflow in all browsers.
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
217
174
  */
218
175
 
219
- pre {
220
- overflow: auto;
176
+ button,
177
+ input { /* 1 */
178
+ overflow: visible;
221
179
  }
222
180
 
223
181
  /**
224
- * Address odd `em`-unit font size rendering in all browsers.
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
225
184
  */
226
185
 
227
- code,
228
- kbd,
229
- pre,
230
- samp {
231
- font-family: monospace, monospace;
232
- font-size: 1em;
186
+ button,
187
+ select { /* 1 */
188
+ text-transform: none;
233
189
  }
234
190
 
235
- /* Forms
236
- ========================================================================== */
237
-
238
- /**
239
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
240
- * styling of `select`, unless a `border` property is set.
241
- */
242
-
243
191
  /**
244
- * 1. Correct color not being inherited.
245
- * Known issue: affects color of disabled elements.
246
- * 2. Correct font properties not being inherited.
247
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
192
+ * Correct the inability to style clickable types in iOS and Safari.
248
193
  */
249
194
 
250
195
  button,
251
- input,
252
- optgroup,
253
- select,
254
- textarea {
255
- color: inherit; /* 1 */
256
- font: inherit; /* 2 */
257
- margin: 0; /* 3 */
196
+ [type="button"],
197
+ [type="reset"],
198
+ [type="submit"] {
199
+ -webkit-appearance: button;
258
200
  }
259
201
 
260
202
  /**
261
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
203
+ * Remove the inner border and padding in Firefox.
262
204
  */
263
205
 
264
- button {
265
- overflow: visible;
206
+ button::-moz-focus-inner,
207
+ [type="button"]::-moz-focus-inner,
208
+ [type="reset"]::-moz-focus-inner,
209
+ [type="submit"]::-moz-focus-inner {
210
+ border-style: none;
211
+ padding: 0;
266
212
  }
267
213
 
268
214
  /**
269
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
270
- * All other form control elements do not inherit `text-transform` values.
271
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
272
- * Correct `select` style inheritance in Firefox.
215
+ * Restore the focus styles unset by the previous rule.
273
216
  */
274
217
 
275
- button,
276
- select {
277
- text-transform: none;
218
+ button:-moz-focusring,
219
+ [type="button"]:-moz-focusring,
220
+ [type="reset"]:-moz-focusring,
221
+ [type="submit"]:-moz-focusring {
222
+ outline: 1px dotted ButtonText;
278
223
  }
279
224
 
280
225
  /**
281
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
282
- * and `video` controls.
283
- * 2. Correct inability to style clickable `input` types in iOS.
284
- * 3. Improve usability and consistency of cursor style between image-type
285
- * `input` and others.
226
+ * Correct the padding in Firefox.
286
227
  */
287
228
 
288
- button,
289
- html input[type="button"], /* 1 */
290
- input[type="reset"],
291
- input[type="submit"] {
292
- -webkit-appearance: button; /* 2 */
293
- cursor: pointer; /* 3 */
229
+ fieldset {
230
+ padding: 0.35em 0.75em 0.625em;
294
231
  }
295
232
 
296
233
  /**
297
- * Re-set default cursor for disabled elements.
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ * `fieldset` elements in all browsers.
298
238
  */
299
239
 
300
- button[disabled],
301
- html input[disabled] {
302
- cursor: default;
240
+ legend {
241
+ box-sizing: border-box; /* 1 */
242
+ color: inherit; /* 2 */
243
+ display: table; /* 1 */
244
+ max-width: 100%; /* 1 */
245
+ padding: 0; /* 3 */
246
+ white-space: normal; /* 1 */
303
247
  }
304
248
 
305
249
  /**
306
- * Remove inner padding and border in Firefox 4+.
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
307
251
  */
308
252
 
309
- button::-moz-focus-inner,
310
- input::-moz-focus-inner {
311
- border: 0;
312
- padding: 0;
253
+ progress {
254
+ vertical-align: baseline;
313
255
  }
314
256
 
315
257
  /**
316
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
317
- * the UA stylesheet.
258
+ * Remove the default vertical scrollbar in IE 10+.
318
259
  */
319
260
 
320
- input {
321
- line-height: normal;
261
+ textarea {
262
+ overflow: auto;
322
263
  }
323
264
 
324
265
  /**
325
- * It's recommended that you don't attempt to style these elements.
326
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
327
- *
328
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
329
- * 2. Remove excess padding in IE 8/9/10.
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
330
268
  */
331
269
 
332
- input[type="checkbox"],
333
- input[type="radio"] {
270
+ [type="checkbox"],
271
+ [type="radio"] {
334
272
  box-sizing: border-box; /* 1 */
335
273
  padding: 0; /* 2 */
336
274
  }
337
275
 
338
276
  /**
339
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
340
- * `font-size` values of the `input`, it causes the cursor style of the
341
- * decrement button to change from `default` to `text`.
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
342
278
  */
343
279
 
344
- input[type="number"]::-webkit-inner-spin-button,
345
- input[type="number"]::-webkit-outer-spin-button {
280
+ [type="number"]::-webkit-inner-spin-button,
281
+ [type="number"]::-webkit-outer-spin-button {
346
282
  height: auto;
347
283
  }
348
284
 
349
285
  /**
350
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
351
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
352
- * (include `-moz` to future-proof).
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
353
288
  */
354
289
 
355
- input[type="search"] {
290
+ [type="search"] {
356
291
  -webkit-appearance: textfield; /* 1 */
357
- -moz-box-sizing: content-box;
358
- -webkit-box-sizing: content-box; /* 2 */
359
- box-sizing: content-box;
292
+ outline-offset: -2px; /* 2 */
360
293
  }
361
294
 
362
295
  /**
363
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
364
- * Safari (but not Chrome) clips the cancel button when the search input has
365
- * padding (and `textfield` appearance).
296
+ * Remove the inner padding in Chrome and Safari on macOS.
366
297
  */
367
298
 
368
- input[type="search"]::-webkit-search-cancel-button,
369
- input[type="search"]::-webkit-search-decoration {
299
+ [type="search"]::-webkit-search-decoration {
370
300
  -webkit-appearance: none;
371
301
  }
372
302
 
373
303
  /**
374
- * Define consistent border, margin, and padding.
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
375
306
  */
376
307
 
377
- fieldset {
378
- border: 1px solid #c0c0c0;
379
- margin: 0 2px;
380
- padding: 0.35em 0.625em 0.75em;
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
381
311
  }
382
312
 
383
- /**
384
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
385
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
386
- */
387
-
388
- legend {
389
- border: 0; /* 1 */
390
- padding: 0; /* 2 */
391
- }
313
+ /* Interactive
314
+ ========================================================================== */
392
315
 
393
- /**
394
- * Remove default vertical scrollbar in IE 8/9/10/11.
316
+ /*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
395
318
  */
396
319
 
397
- textarea {
398
- overflow: auto;
320
+ details {
321
+ display: block;
399
322
  }
400
323
 
401
- /**
402
- * Don't inherit the `font-weight` (applied by a rule above).
403
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
324
+ /*
325
+ * Add the correct display in all browsers.
404
326
  */
405
327
 
406
- optgroup {
407
- font-weight: bold;
328
+ summary {
329
+ display: list-item;
408
330
  }
409
331
 
410
- /* Tables
332
+ /* Misc
411
333
  ========================================================================== */
412
334
 
413
335
  /**
414
- * Remove most spacing between table cells.
336
+ * Add the correct display in IE 10+.
415
337
  */
416
338
 
417
- table {
418
- border-collapse: collapse;
419
- border-spacing: 0;
339
+ template {
340
+ display: none;
420
341
  }
421
342
 
422
- td,
423
- th {
424
- padding: 0;
343
+ /**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+ [hidden] {
348
+ display: none;
425
349
  }
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.1
4
+ version: 8.0.1
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: 2014-04-08 00:00:00.000000000 Z
13
+ date: 2020-08-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -65,8 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubyforge_project:
69
- rubygems_version: 2.2.2
68
+ rubygems_version: 3.0.3
70
69
  signing_key:
71
70
  specification_version: 4
72
71
  summary: Normalize.css is a customisable CSS file that makes browsers render all elements