compass-normalize-plugin 0.3.2 → 0.4.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ [v.0.4.0] [Sep 10 2012]
2
+ - - - - - - - - - - -
3
+
4
+ - Synced with Normalize.css version 2.0.1
5
+ - Removed now obsolete `legacy` parts.
6
+
1
7
  [v.0.3.2] [Aug 18 2012]
2
8
  - - - - - - - - - - -
3
9
 
@@ -16,29 +22,29 @@ v0.2.4 [May 8 2012]
16
22
  - Improves the handling of legacy support settings.
17
23
 
18
24
 
19
- v0.2.3 [May 6 2012]
25
+ [v0.2.3] [May 6 2012]
20
26
  - - - - - - - - - - -
21
27
 
22
28
  - Changes configuration variables to compass standard naming scheme.
23
29
 
24
- v0.2.2 [Apr 2 2012]
30
+ [v0.2.2] [Apr 2 2012]
25
31
  - - - - - - - - - - -
26
32
 
27
33
  - Updates meta information
28
34
  - Changes indentation to 2 spaces.
29
35
  - Adds project template configuration variables.
30
36
 
31
- v0.2.1 [Mar 31 2012]
37
+ [v0.2.1] [Mar 31 2012]
32
38
  - - - - - - - - - - -
33
39
 
34
40
  Fixes parenthesis.
35
41
 
36
- v0.2.0 [Mar 31 2012]
42
+ [v0.2.0] [Mar 31 2012]
37
43
  - - - - - - - - - - -
38
44
 
39
45
  Adds support for configurable browser optimization.
40
46
 
41
- v0.1.0 [Mar 29 2012]
47
+ [v0.1.0] [Mar 29 2012]
42
48
  - - - - - - - - - - -
43
49
 
44
- Initial import of normalize.css
50
+ Initial import of normalize.css
data/Manifest CHANGED
@@ -4,7 +4,6 @@ lib/normalize.rb
4
4
  Manifest
5
5
  Rakefile
6
6
  README.md
7
- scss/_config.scss
8
7
  scss/_normalize.scss
9
8
  scss/normalize/_base.scss
10
9
  scss/normalize/_embedded.scss
@@ -12,7 +11,6 @@ scss/normalize/_figures.scss
12
11
  scss/normalize/_forms.scss
13
12
  scss/normalize/_html5.scss
14
13
  scss/normalize/_links.scss
15
- scss/normalize/_lists.scss
16
14
  scss/normalize/_tables.scss
17
15
  scss/normalize/_typography.scss
18
16
  templates/project/manifest.rb
data/README.md CHANGED
@@ -27,20 +27,6 @@ or include and use only parts of it:
27
27
  @include normalize-base;
28
28
  // ...
29
29
 
30
- ## Configuration
31
- Version 0.3 removes the option to include browser specific normalization and includes the option to
32
- support browsers that have reached their end of life, namely IE6 - 8 and Firefox 3. It is possible
33
- to override browser version specific values, e.g.:
34
-
35
- // Internet Explorer support, exclude IE6.
36
- $legacy-support-for-ie: true;
37
- $legacy-support-for-ie6: false;
38
- // $legacy-support-for-ie7: false;
39
- // $legacy-support-for-ie8: false;
40
-
41
- // Turn Firefox support off
42
- $legacy-support-for-ff: false;
43
-
44
30
  ## Available mixins and imports
45
31
  <table>
46
32
  <thead>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
@@ -1,8 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.version = "0.3.2"
5
- s.date = %q{2012-08-18}
4
+ s.version = "0.4.0"
5
+ s.date = %q{2012-09-10}
6
6
 
7
7
  s.name = %q{compass-normalize-plugin}
8
8
  s.authors = ["Johannes Roettger", "Nicolas Gallagher", "Jonathan Neal", "'Ley Missailidis" ]
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
19
19
  "Rakefile",
20
20
  "README.md",
21
21
  "scss/",
22
- "scss/_config.scss",
23
22
  "scss/_normalize.scss",
24
23
  "scss/normalize/",
25
24
  "scss/normalize/_base.scss",
@@ -28,7 +27,6 @@ Gem::Specification.new do |s|
28
27
  "scss/normalize/_forms.scss",
29
28
  "scss/normalize/_html5.scss",
30
29
  "scss/normalize/_links.scss",
31
- "scss/normalize/_lists.scss",
32
30
  "scss/normalize/_tables.scss",
33
31
  "scss/normalize/_typography.scss",
34
32
  "templates/",
data/scss/_normalize.scss CHANGED
@@ -1,10 +1,7 @@
1
- @import "config";
2
-
3
1
  @import "normalize/html5";
4
2
  @import "normalize/base";
5
3
  @import "normalize/links";
6
4
  @import "normalize/typography";
7
- @import "normalize/lists";
8
5
  @import "normalize/embedded";
9
6
  @import "normalize/figures";
10
7
  @import "normalize/forms";
@@ -15,7 +12,6 @@
15
12
  @include normalize-base;
16
13
  @include normalize-links;
17
14
  @include normalize-typography;
18
- @include normalize-lists;
19
15
  @include normalize-embedded;
20
16
  @include normalize-figures;
21
17
  @include normalize-forms;
@@ -1,13 +1,9 @@
1
1
  @mixin normalize-base {
2
2
  html {
3
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
4
- // Corrects text resizing oddly in IE6/7 when body `font-size` is set using `em` units.
5
- // http://clagnut.com/blog/348/#c790
6
- font-size: 100%;
7
- }
3
+ // Sets default font family to sans-serif.
4
+ font-family: sans-serif;
8
5
 
9
6
  // Prevents iOS text size adjust after orientation change, without disabling user zoom
10
- // www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
11
7
  -webkit-text-size-adjust: 100%;
12
8
  -ms-text-size-adjust: 100%;
13
9
  }
@@ -21,10 +17,8 @@
21
17
  font-family: sans-serif;
22
18
  }
23
19
 
24
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
25
- // Addresses margins handled incorrectly in IE 6/7
26
- body {
27
- margin: 0;
28
- }
20
+ // Removes default margin.
21
+ body {
22
+ margin: 0;
29
23
  }
30
24
  }
@@ -1,13 +1,7 @@
1
1
  @mixin normalize-embedded {
2
2
  img {
3
- // Removes border when inside `a` element in IE 6/7/8/9, Firefox 3
3
+ // Removes border when inside `a` element in IE 8/9.
4
4
  border: 0;
5
-
6
- @if $legacy-support-for-ie7 {
7
- // Improves image quality when scaled in IE7
8
- // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
9
- -ms-interpolation-mode: bicubic;
10
- }
11
5
  }
12
6
 
13
7
  // Corrects overflow displayed oddly in IE 9
@@ -1,5 +1,5 @@
1
1
  @mixin normalize-figures {
2
- // Addresses margin not present in IE 6/7/8/9, Safari 5, Opera 11.
2
+ // Addresses margin not present in IE 8/9, Safari 5.
3
3
  figure {
4
4
  margin: 0;
5
5
  }
@@ -1,11 +1,4 @@
1
1
  @mixin normalize-forms {
2
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
3
- // Corrects margin displayed oddly in IE 6/7
4
- form {
5
- margin: 0;
6
- }
7
- }
8
-
9
2
  // Define consistent border, margin, and padding.
10
3
  fieldset {
11
4
  border: 1px solid #c0c0c0;
@@ -14,56 +7,45 @@
14
7
  }
15
8
 
16
9
  legend {
17
- // Corrects color not being inherited in IE 6/7/8/9.
18
- border: 0;
10
+ // Corrects color not being inherited in IE 8/9.
11
+ border: 0;
12
+ // Remove padding so people aren't caught out if they zero out fieldsets.
19
13
  padding: 0;
20
-
21
- @if $legacy-support-for-ff3 {
22
- // Corrects text not wrapping in Firefox 3.
23
- white-space: normal;
24
- }
25
-
26
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
27
- // Corrects alignment displayed oddly in IE 6/7
28
- *margin-left: -7px;
29
- }
30
14
  }
31
15
 
32
16
  button,
33
17
  input,
34
18
  select,
35
19
  textarea {
20
+ // Corrects font family not being inherited in all browsers.
21
+ font-family: inherit;
36
22
  // Corrects font size not being inherited in all browsers.
37
23
  font-size: 100%;
38
-
39
- // Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5, Chrome.
24
+ // Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
40
25
  margin: 0;
41
-
42
- // Improves appearance and consistency in all browsers.
43
- vertical-align: baseline;
44
- *vertical-align: middle;
45
26
  }
46
27
 
47
- // Addresses Firefox 3+ setting `line-height` on `input` using `!important` in the UA stylesheet.
28
+ // Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
29
+ // the UA stylesheet.
48
30
  button,
49
31
  input {
50
32
  line-height: normal;
51
33
  }
52
- // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
53
- // 2. Corrects inability to style clickable `input` types in iOS.
54
- // 3. Improves usability and consistency of cursor style between image-type `input` and others.
55
- // 4. Removes inner spacing in IE 7 without affecting normal text inputs. - Known issue: inner spacing remains in IE 6.
56
34
 
35
+ // 1.
36
+ // 2. Corrects inability to style clickable `input` types in iOS.
37
+ // 3. Improves usability and consistency of cursor style between image-type `input` and others.
38
+
39
+
40
+ // Avoid the WebKit bug in Android 4.0.* where (*) destroys native `audio` and `video` controls.
57
41
  button,
58
- html input[type="button"], // 1
42
+ html input[type="button"],
59
43
  input[type="reset"],
60
44
  input[type="submit"] {
61
- -webkit-appearance: button; // 2
62
- cursor: pointer; // 3
63
-
64
- @if $legacy-support-for-ie7 {
65
- *overflow: visible; // 4
66
- }
45
+ // *: Corrects inability to style clickable `input` types in iOS.
46
+ -webkit-appearance: button;
47
+ // Improves usability and consistency of cursor style between image-type `input` and others.
48
+ cursor: pointer;
67
49
  }
68
50
 
69
51
  // Re-set default cursor for disabled elements.
@@ -79,13 +61,6 @@
79
61
 
80
62
  // Removes excess padding in IE 8/9.
81
63
  padding: 0;
82
-
83
- @if $legacy-support-for-ie7 {
84
- // Removes excess padding in IE 7.
85
- // Known issue: excess padding remains in IE 6.
86
- *height: 13px;
87
- *width: 13px;
88
- }
89
64
  }
90
65
 
91
66
  input[type="search"] {
@@ -104,18 +79,15 @@
104
79
  -webkit-appearance: none;
105
80
  }
106
81
 
107
- @if $legacy-support-for-ff3 {
108
- // Removes inner padding and border in Firefox 3+.
109
- // www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
110
- button::-moz-focus-inner,
111
- input::-moz-focus-inner {
112
- border: 0;
113
- padding: 0;
114
- }
82
+ // Removes inner padding and border in Firefox 4+.
83
+ button::-moz-focus-inner,
84
+ input::-moz-focus-inner {
85
+ border: 0;
86
+ padding: 0;
115
87
  }
116
88
 
117
89
  textarea {
118
- // Removes default vertical scrollbar in IE 6/7/8/9
90
+ // Removes default vertical scrollbar in IE 8/9
119
91
  overflow: auto;
120
92
 
121
93
  // Improves readability and alignment in all browsers
@@ -1,5 +1,5 @@
1
1
  @mixin normalize-html5 {
2
- // Corrects `block` display not defined in IE6/7/8/9 & FF3
2
+ // Corrects `block` display not defined in IE 8/9.
3
3
  article,
4
4
  aside,
5
5
  details,
@@ -14,13 +14,11 @@
14
14
  display: block;
15
15
  }
16
16
 
17
- // Corrects `inline-block` display not defined in IE6/7/8/9 and Firefox 3.
17
+ // Corrects `inline-block` display not defined in IE 8/9.
18
18
  audio,
19
19
  canvas,
20
20
  video {
21
21
  display: inline-block;
22
- *display: inline;
23
- *zoom: 1;
24
22
  }
25
23
 
26
24
  // Prevents modern browsers from displaying `audio` without controls
@@ -30,8 +28,7 @@
30
28
  height: 0;
31
29
  }
32
30
 
33
- // Addresses styling for `hidden` attribute not present in IE7/8/9, Firefox 3, and Safari 4
34
- // Known issue: no IE6 support
31
+ // Addresses styling for `hidden` attribute not present in IE 8/9.
35
32
  [hidden] {
36
33
  display: none;
37
34
  }
@@ -6,7 +6,6 @@
6
6
  }
7
7
 
8
8
  // Improves readability when focused and also mouse hovered in all browsers.
9
- // people.opera.com/patrickl/experiments/keyboard/test
10
9
  &:hover,
11
10
  &:active {
12
11
  outline: 0;
@@ -1,78 +1,37 @@
1
1
  @mixin normalize-typography {
2
- // Addresses font sizes and margins set differently in IE 6/7
3
- // Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5, and Chrome.
2
+ // Addresses `h1` font sizes within `section` and `article` in Firefox 4+, Safari 5, and Chrome.
4
3
  h1 {
5
4
  font-size: 2em;
6
- margin: 0.67em 0;
7
5
  }
8
6
 
9
- h2 {
10
- font-size: 1.5em;
11
- margin: 0.83em 0;
12
- }
13
-
14
- h3 {
15
- font-size: 1.17em;
16
- margin: 1em 0;
17
- }
18
-
19
- h4 {
20
- font-size: 1em;
21
- margin: 1.33em 0;
22
- }
23
-
24
- h5 {
25
- font-size: 0.83em;
26
- margin: 1.67em 0;
27
- }
28
-
29
- h6 {
30
- font-size: 0.75em;
31
- margin: 2.33em 0;
32
- }
33
-
34
- // Addresses styling not present in IE 7/8/9, Safari 5, Chrome.
7
+ // Addresses styling not present in IE 8/9, Safari 5, Chrome.
35
8
  abbr[title] {
36
9
  border-bottom: 1px dotted;
37
10
  }
38
11
 
39
- // Addresses style set to 'bolder' in Firefox 3+, Safari 4/5, Chrome.
12
+ // Addresses style set to `bolder` in Firefox 4+, Safari 5, Chrome.
40
13
  b,
41
14
  strong {
42
15
  font-weight: bold;
43
16
  }
44
17
 
45
- blockquote {
46
- margin: 1em 40px;
47
- }
48
-
49
18
  // Addresses styling not present in Safari 5, Chrome.
50
19
  dfn {
51
20
  font-style: italic;
52
21
  }
53
22
 
54
- // Addresses styling not present in IE 6/7/8/9
23
+ // Addresses styling not present in IE 8/9
55
24
  mark {
56
25
  background: #ff0;
57
26
  color: #000;
58
27
  }
59
28
 
60
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
61
- // Addresses margins set differently in IE 6/7
62
- p,
63
- pre {
64
- margin: 1em 0;
65
- }
66
- }
67
-
68
- // Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
69
- // en.wikipedia.org/wiki/User:Davidgothberg/Test59
29
+ // Corrects font family set oddly in Safari 5, and Chrome.
70
30
  code,
71
31
  kbd,
72
32
  pre,
73
33
  samp {
74
34
  font-family: monospace, serif;
75
- _font-family: 'courier new', monospace;
76
35
  font-size: 1em;
77
36
  }
78
37
 
@@ -83,20 +42,12 @@
83
42
  word-wrap: break-word;
84
43
  }
85
44
 
86
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
87
- // Addresses CSS quotes not supported in IE 6/7
88
- q {
89
- quotes: none;
90
- }
91
- }
92
-
93
- // Addresses `quotes` property not supported in Safari 4
94
- q:before,
95
- q:after {
96
- content: '';
97
- content: none;
45
+ // Sets consistent quote types.
46
+ q {
47
+ quotes: "\201C" "\201D" "\2018" "\2019";
98
48
  }
99
49
 
50
+ // Addresses inconsistent and variable font size in all browsers.
100
51
  small {
101
52
  font-size: 75%;
102
53
  }
@@ -1,13 +1,3 @@
1
- // Legacy support for Internet Explorer and Firefox.
2
- // Use $legacy-support-for-ie6, $legacy-support-for-ie7 etc to disable support for specific
3
- // versions.
4
- $legacy-support-for-ie: true;
5
- // $legacy-support-for-ie6: false;
6
- // $legacy-support-for-ie7: false;
7
- // $legacy-support-for-ie8: false;
8
- $legacy-support-for-ff: true;
9
- // $legacy-support-for-ff3: false;
10
-
11
1
  @import "normalize";
12
2
  @include normalize;
13
3
 
metadata CHANGED
@@ -1,43 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: compass-normalize-plugin
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Johannes Roettger
9
14
  - Nicolas Gallagher
10
15
  - Jonathan Neal
11
- - ! '''Ley Missailidis'
16
+ - "'Ley Missailidis"
12
17
  autorequire:
13
18
  bindir: bin
14
19
  cert_chain: []
15
- date: 2012-08-18 00:00:00.000000000 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
20
+
21
+ date: 2012-09-10 00:00:00 Z
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
18
24
  name: compass
19
- requirement: &70237505086080 !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
20
27
  none: false
21
- requirements:
22
- - - ! '>='
23
- - !ruby/object:Gem::Version
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 49
32
+ segments:
33
+ - 0
34
+ - 11
35
+ - 1
24
36
  version: 0.11.1
25
37
  type: :runtime
26
- prerelease: false
27
- version_requirements: *70237505086080
38
+ version_requirements: *id001
28
39
  description: This is a normalize.css extension for the Compass framework.
29
40
  email: johannes@zorn.in
30
41
  executables: []
42
+
31
43
  extensions: []
44
+
32
45
  extra_rdoc_files: []
33
- files:
46
+
47
+ files:
34
48
  - CHANGELOG.md
35
49
  - compass-normalize-plugin.gemspec
36
50
  - lib/normalize.rb
37
51
  - Manifest
38
52
  - Rakefile
39
53
  - README.md
40
- - scss/_config.scss
41
54
  - scss/_normalize.scss
42
55
  - scss/normalize/_base.scss
43
56
  - scss/normalize/_embedded.scss
@@ -45,7 +58,6 @@ files:
45
58
  - scss/normalize/_forms.scss
46
59
  - scss/normalize/_html5.scss
47
60
  - scss/normalize/_links.scss
48
- - scss/normalize/_lists.scss
49
61
  - scss/normalize/_tables.scss
50
62
  - scss/normalize/_typography.scss
51
63
  - templates/project/manifest.rb
@@ -53,27 +65,36 @@ files:
53
65
  - VERSION
54
66
  homepage: http://jzorn.github.com/compass-normalize-plugin/
55
67
  licenses: []
68
+
56
69
  post_install_message:
57
70
  rdoc_options: []
58
- require_paths:
71
+
72
+ require_paths:
59
73
  - lib
60
- required_ruby_version: !ruby/object:Gem::Requirement
74
+ required_ruby_version: !ruby/object:Gem::Requirement
61
75
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ hash: 3
80
+ segments:
81
+ - 0
82
+ version: "0"
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
84
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
72
92
  requirements: []
93
+
73
94
  rubyforge_project:
74
- rubygems_version: 1.8.15
95
+ rubygems_version: 1.8.24
75
96
  signing_key:
76
97
  specification_version: 3
77
- summary: Makes browsers render HTML elements consistently and in line with modern
78
- standards.
98
+ summary: Makes browsers render HTML elements consistently and in line with modern standards.
79
99
  test_files: []
100
+
data/scss/_config.scss DELETED
@@ -1,12 +0,0 @@
1
- // Internet Explorer
2
- // Sets the default value for all Internet Explorer legacy support settings and is not used in the
3
- // mixins.
4
- $legacy-support-for-ie: true !default;
5
- $legacy-support-for-ie6: $legacy-support-for-ie !default;
6
- $legacy-support-for-ie7: $legacy-support-for-ie !default;
7
- $legacy-support-for-ie8: $legacy-support-for-ie !default;
8
-
9
- // Firefox
10
- // Sets the default value for all Firefox legacy support settings and is not used in the mixins.
11
- $legacy-support-for-ff: true !default;
12
- $legacy-support-for-ff3: $legacy-support-for-ff !default;
@@ -1,33 +0,0 @@
1
- @mixin normalize-lists {
2
- @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
3
- // Addresses margins set differently in IE 6/7
4
- dl,
5
- menu,
6
- ol,
7
- ul {
8
- margin: 1em 0;
9
- }
10
-
11
- dd {
12
- margin: 0 0 0 40px;
13
- }
14
-
15
- // Addresses paddings set differently in IE 6/7
16
- menu,
17
- ol,
18
- ul {
19
- padding: 0 0 0 40px;
20
- }
21
- }
22
-
23
- @if $legacy-support-for-ie7 {
24
- // Corrects list images handled incorrectly in IE 7
25
- nav {
26
- ul,
27
- ol {
28
- list-style: none;
29
- list-style-image: none;
30
- }
31
- }
32
- }
33
- }