compass-normalize-plugin 0.2.2 → 0.2.3

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,8 @@
1
+ v0.2.3 [May 6 2012]
2
+ - - - - - - - - - - -
3
+
4
+ - Changes configuration variables to compass standard naming scheme.
5
+
1
6
  v0.2.2 [Apr 2 2012]
2
7
  - - - - - - - - - - -
3
8
 
data/README.md CHANGED
@@ -35,11 +35,11 @@ different browsers. The default configuration includes support for all browsers.
35
35
  variables can be set to either `true` of `false` (default is `true`):
36
36
 
37
37
  // Internet Explorer
38
- $include-ie-normalization
39
- $include-ie6-normalization
40
- $include-ie7-normalization
41
- $include-ie8-normalization
42
- $include-ie9-normalization
38
+ $legacy-support-for-ie
39
+ $legacy-support-for-ie6
40
+ $legacy-support-for-ie7
41
+ $legacy-support-for-ie8
42
+ $legacy-support-for-ie9
43
43
 
44
44
  // Firefox
45
45
  $include-ff-normalization
@@ -57,7 +57,7 @@ variables can be set to either `true` of `false` (default is `true`):
57
57
  $include-op-normalization
58
58
 
59
59
  The settings are processed using or, thus settings $include-ie-normalization: true; will include
60
- all IE normalization, even if $include-ie6-normalization is set to false.
60
+ all IE normalization, even if $legacy-support-for-ie6 is set to false.
61
61
 
62
62
  ## Available mixins and imports
63
63
  <table>
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  Echoe.new('compass-normalize-plugin', open('VERSION').read) do |p|
8
8
  p.summary = "Makes browsers render HTML elements consistently and in line with modern standards."
9
9
  p.description = "This is a normalize.css extension for the Compass framework."
10
- p.url = "https://github.com/jroettger/compass-normalize-plugin"
10
+ p.url = "http://jroettger.github.com/compass-normalize-plugin/"
11
11
  p.author = "Johannes Roettger"
12
12
  p.email = "johannes@roettger.us"
13
13
  p.dependencies = ["compass >=0.11.1"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1,15 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.version = "0.2.2"
5
- s.date = %q{2012-04-02}
4
+ s.version = "0.2.3"
5
+ s.date = %q{2012-05-06}
6
6
 
7
7
  s.name = %q{compass-normalize-plugin}
8
8
  s.authors = ["Johannes Roettger", "Nicolas Gallagher", "Jonathan Neal"]
9
9
  s.summary = %q{Makes browsers render HTML elements consistently and in line with modern standards.}
10
10
  s.description = %q{This is a normalize.css extension for the Compass framework.}
11
11
  s.email = %q{johannes@roettger.us}
12
- s.homepage = %q{https://github.com/jroettger/compass-normalize-plugin}
12
+ s.homepage = %q{http://jroettger.github.com/compass-normalize-plugin/}
13
13
 
14
14
  s.files = [
15
15
  "CHANGELOG.md",
data/scss/_config.scss CHANGED
@@ -7,14 +7,27 @@ $include-ie7-normalization: true !default;
7
7
  $include-ie8-normalization: true !default;
8
8
  $include-ie9-normalization: true !default;
9
9
 
10
+ // For compatibility with compass variables
11
+ $legacy-support-for-ie: $include-ie-normalization;
12
+ $legacy-support-for-ie6: $include-ie6-normalization;
13
+ $legacy-support-for-ie7: $include-ie7-normalization;
14
+ $legacy-support-for-ie8: $include-ie8-normalization;
15
+ $legacy-support-for-ie9: $include-ie9-normalization;
16
+
10
17
  // Firefox
11
18
  $include-ff-normalization: true !default;
19
+ $include-ff3-normalization: true !default;
20
+ $include-ff4-normalization: true !default;
12
21
 
13
22
  // Safari
14
23
  $include-sa-normalization: true !default;
24
+ $include-sa4-normalization: true !default;
25
+ $include-sa5-normalization: true !default;
15
26
 
16
27
  // iOS
17
28
  $include-ios-normalization: true !default;
29
+ $include-ios4-normalization: true !default;
30
+ $include-ios5-normalization: true !default;
18
31
 
19
32
  // Chrome
20
33
  $include-chr-normalization: true !default;
@@ -1,8 +1,8 @@
1
1
  @mixin normalize-base {
2
2
  html {
3
- @if ($include-ie-normalization
4
- or $include-ie6-normalization
5
- or $include-ie7-normalization) {
3
+ @if ($legacy-support-for-ie
4
+ or $legacy-support-for-ie6
5
+ or $legacy-support-for-ie7) {
6
6
  // Corrects text resizing oddly in IE6/7 when body font-size is set using em units
7
7
  // http://clagnut.com/blog/348/#c790
8
8
  font-size: 100%;
@@ -25,9 +25,9 @@
25
25
  font-family: sans-serif;
26
26
  }
27
27
 
28
- @if ($include-ie-normalization
29
- or $include-ie6-normalization
30
- or $include-ie7-normalization) {
28
+ @if ($legacy-support-for-ie
29
+ or $legacy-support-for-ie6
30
+ or $legacy-support-for-ie7) {
31
31
  // Addresses margins handled incorrectly in IE6/7
32
32
  body {
33
33
  margin: 0;
@@ -1,25 +1,25 @@
1
1
  @mixin normalize-embedded {
2
2
  img {
3
- @if ($include-ie-normalization
4
- or $include-ie6-normalization
5
- or $include-ie7-normalization
6
- or $include-ie8-normalization
7
- or $include-ie9-normalization
8
- or $include-ff-normalization) {
3
+ @if ($legacy-support-for-ie
4
+ or $legacy-support-for-ie6
5
+ or $legacy-support-for-ie7
6
+ or $legacy-support-for-ie8
7
+ or $legacy-support-for-ie9
8
+ or $include-ff-normalization
9
+ or $include-ff3-normalization) {
9
10
  // Removes border when inside 'a' element in IE6/7/8/9, FF3
10
11
  border: 0;
11
12
  }
12
13
 
13
- @if ($include-ie-normalization
14
- or $include-ie7-normalization) {
14
+ @if ($legacy-support-for-ie
15
+ or $legacy-support-for-ie7) {
15
16
  // Improves image quality when scaled in IE7
16
17
  // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
17
18
  -ms-interpolation-mode: bicubic;
18
19
  }
19
20
  }
20
21
 
21
- @if ($include-ie-normalization
22
- or $include-ie9-normalization) {
22
+ @if $legacy-support-for-ie9 {
23
23
  // Corrects overflow displayed oddly in IE9
24
24
  svg:not(:root) {
25
25
  overflow: hidden;
@@ -1,10 +1,11 @@
1
1
  @mixin normalize-figures {
2
- @if ($include-ie-normalization
3
- or $include-ie6-normalization
4
- or $include-ie7-normalization
5
- or $include-ie8-normalization
6
- or $include-ie9-normalization
2
+ @if ($legacy-support-for-ie
3
+ or $legacy-support-for-ie6
4
+ or $legacy-support-for-ie7
5
+ or $legacy-support-for-ie8
6
+ or $legacy-support-for-ie9
7
7
  or $include-sa-normalization
8
+ or $include-sa5-normalization
8
9
  or $include-op-normalization) {
9
10
  // Addresses margin not present in IE6/7/8/9, S5, O11
10
11
  figure {
@@ -1,7 +1,7 @@
1
1
  @mixin normalize-forms {
2
- @if ($include-ie-normalization
3
- or $include-ie6-normalization
4
- or $include-ie7-normalization) {
2
+ @if ($legacy-support-for-ie
3
+ or $legacy-support-for-ie6
4
+ or $legacy-support-for-ie7) {
5
5
  // Corrects margin displayed oddly in IE6/7
6
6
  form {
7
7
  margin: 0;
@@ -16,11 +16,11 @@
16
16
  }
17
17
 
18
18
  legend {
19
- @if ($include-ie-normalization
20
- or $include-ie6-normalization
21
- or $include-ie7-normalization
22
- or $include-ie8-normalization
23
- or $include-ie9-normalization) {
19
+ @if ($legacy-support-for-ie
20
+ or $legacy-support-for-ie6
21
+ or $legacy-support-for-ie7
22
+ or $legacy-support-for-ie8
23
+ or $legacy-support-for-ie9) {
24
24
  // Corrects color not being inherited in IE6/7/8/9
25
25
  border: 0;
26
26
  padding: 0;
@@ -31,9 +31,9 @@
31
31
  white-space: normal;
32
32
  }
33
33
 
34
- @if ($include-ie-normalization
35
- or $include-ie6-normalization
36
- or $include-ie7-normalization) {
34
+ @if ($legacy-support-for-ie
35
+ or $legacy-support-for-ie6
36
+ or $legacy-support-for-ie7) {
37
37
  // Corrects alignment displayed oddly in IE6/7
38
38
  *margin-left: -7px;
39
39
  }
@@ -46,9 +46,9 @@
46
46
  // Corrects font size not being inherited in all browsers
47
47
  font-size: 100%;
48
48
 
49
- @if ($include-ie-normalization
50
- or $include-ie6-normalization
51
- or $include-ie7-normalization
49
+ @if ($legacy-support-for-ie
50
+ or $legacy-support-for-ie6
51
+ or $legacy-support-for-ie7
52
52
  or $include-ff-normalization
53
53
  or $include-sa-normalization
54
54
  or $include-chr-normalization) {
@@ -81,8 +81,8 @@
81
81
  -webkit-appearance: button;
82
82
  }
83
83
 
84
- @if ($include-ie-normalization
85
- or $include-ie7-normalization) {
84
+ @if ($legacy-support-for-ie
85
+ or $legacy-support-for-ie7) {
86
86
  // Removes inner spacing in IE7 without affecting normal text inputs
87
87
  // Known issue: inner spacing remains in IE6
88
88
  *overflow: visible;
@@ -97,22 +97,22 @@
97
97
 
98
98
  input[type="checkbox"],
99
99
  input[type="radio"] {
100
- @if ($include-ie-normalization
101
- or $include-ie8-normalization
102
- or $include-ie9-normalization) {
100
+ @if ($legacy-support-for-ie
101
+ or $legacy-support-for-ie8
102
+ or $legacy-support-for-ie9) {
103
103
  // Addresses box sizing set to content-box in IE8/9
104
104
  box-sizing: border-box;
105
105
  }
106
106
 
107
- @if ($include-ie-normalization
108
- or $include-ie8-normalization
109
- or $include-ie9-normalization) {
107
+ @if ($legacy-support-for-ie
108
+ or $legacy-support-for-ie8
109
+ or $legacy-support-for-ie9) {
110
110
  // Removes excess padding in IE8/9
111
111
  padding: 0;
112
112
  }
113
113
 
114
- @if ($include-ie-normalization
115
- or $include-ie7-normalization) {
114
+ @if ($legacy-support-for-ie
115
+ or $legacy-support-for-ie7) {
116
116
  // Removes excess padding in IE7
117
117
  // Known issue: excess padding remains in IE6
118
118
  *height: 13px;
@@ -154,11 +154,11 @@
154
154
  }
155
155
 
156
156
  textarea {
157
- @if ($include-ie-normalization
158
- or $include-ie6-normalization
159
- or $include-ie7-normalization
160
- or $include-ie8-normalization
161
- or $include-ie9-normalization) {
157
+ @if ($legacy-support-for-ie
158
+ or $legacy-support-for-ie6
159
+ or $legacy-support-for-ie7
160
+ or $legacy-support-for-ie8
161
+ or $legacy-support-for-ie9) {
162
162
  // Removes default vertical scrollbar in IE6/7/8/9
163
163
  overflow: auto;
164
164
  }
@@ -1,7 +1,7 @@
1
1
  @mixin normalize-lists {
2
- @if ($include-ie-normalization
3
- or $include-ie6-normalization
4
- or $include-ie7-normalization) {
2
+ @if ($legacy-support-for-ie
3
+ or $legacy-support-for-ie6
4
+ or $legacy-support-for-ie7) {
5
5
  // Addresses margins set differently in IE6/7
6
6
  dl,
7
7
  menu,
@@ -22,8 +22,8 @@
22
22
  }
23
23
  }
24
24
 
25
- @if ($include-ie-normalization
26
- or $include-ie7-normalization) {
25
+ @if ($legacy-support-for-ie
26
+ or $legacy-support-for-ie7) {
27
27
  // Corrects list images handled incorrectly in IE7
28
28
  nav {
29
29
  ul,
@@ -1,7 +1,7 @@
1
1
  @mixin normalize-typography {
2
- @if ($include-ie-normalization
3
- or $include-ie6-normalization
4
- or $include-ie7-normalization
2
+ @if ($legacy-support-for-ie
3
+ or $legacy-support-for-ie6
4
+ or $legacy-support-for-ie7
5
5
  or $include-ff-normalization
6
6
  or $include-chr-normalization
7
7
  or $include-sa-normalization) {
@@ -38,10 +38,10 @@
38
38
  }
39
39
  }
40
40
 
41
- @if ($include-ie-normalization
42
- or $include-ie7-normalization
43
- or $include-ie8-normalization
44
- or $include-ie9-normalization
41
+ @if ($legacy-support-for-ie
42
+ or $legacy-support-for-ie7
43
+ or $legacy-support-for-ie8
44
+ or $legacy-support-for-ie9
45
45
  or $include-sa-normalization
46
46
  or $include-chr-normalization) {
47
47
  // Addresses styling not present in IE7/8/9, S5, Chrome
@@ -72,11 +72,11 @@
72
72
  }
73
73
  }
74
74
 
75
- @if ($include-ie-normalization
76
- or $include-ie6-normalization
77
- or $include-ie7-normalization
78
- or $include-ie8-normalization
79
- or $include-ie9-normalization) {
75
+ @if ($legacy-support-for-ie
76
+ or $legacy-support-for-ie6
77
+ or $legacy-support-for-ie7
78
+ or $legacy-support-for-ie8
79
+ or $legacy-support-for-ie9) {
80
80
  // Addresses styling not present in IE6/7/8/9
81
81
  mark {
82
82
  background: #ff0;
@@ -84,9 +84,9 @@
84
84
  }
85
85
  }
86
86
 
87
- @if ($include-ie-normalization
88
- or $include-ie6-normalization
89
- or $include-ie7-normalization) {
87
+ @if ($legacy-support-for-ie
88
+ or $legacy-support-for-ie6
89
+ or $legacy-support-for-ie7) {
90
90
  // Addresses margins set differently in IE6/7
91
91
  p,
92
92
  pre {
@@ -94,8 +94,8 @@
94
94
  }
95
95
  }
96
96
 
97
- @if ($include-ie-normalization
98
- or $include-ie6-normalization
97
+ @if ($legacy-support-for-ie
98
+ or $legacy-support-for-ie6
99
99
  or $include-sa-normalization
100
100
  or $include-chr-normalization) {
101
101
  // Corrects font family set oddly in IE6, S4/5, Chrome
@@ -117,9 +117,9 @@
117
117
  word-wrap: break-word;
118
118
  }
119
119
 
120
- @if ($include-ie-normalization
121
- or $include-ie6-normalization
122
- or $include-ie7-normalization) {
120
+ @if ($legacy-support-for-ie
121
+ or $legacy-support-for-ie6
122
+ or $legacy-support-for-ie7) {
123
123
  // Addresses CSS quotes not supported in IE6/7
124
124
  q {
125
125
  quotes: none;
@@ -2,11 +2,11 @@
2
2
 
3
3
  // Configuration
4
4
  // Internet Explorer
5
- $include-ie-normalization: true;
6
- $include-ie6-normalization: true;
7
- $include-ie7-normalization: true;
8
- $include-ie8-normalization: true;
9
- $include-ie9-normalization: true;
5
+ $legacy-support-for-ie: true;
6
+ $legacy-support-for-ie6: true;
7
+ $legacy-support-for-ie7: true;
8
+ $legacy-support-for-ie8: true;
9
+ $legacy-support-for-ie9: true;
10
10
 
11
11
  // Firefox
12
12
  $include-ff-normalization: true;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-normalize-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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-02 00:00:00.000000000 Z
14
+ date: 2012-05-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: compass
18
- requirement: &70133412124100 !ruby/object:Gem::Requirement
18
+ requirement: &70222662674340 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: 0.11.1
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70133412124100
26
+ version_requirements: *70222662674340
27
27
  description: This is a normalize.css extension for the Compass framework.
28
28
  email: johannes@roettger.us
29
29
  executables: []
@@ -50,7 +50,7 @@ files:
50
50
  - templates/project/manifest.rb
51
51
  - templates/project/screen.scss
52
52
  - VERSION
53
- homepage: https://github.com/jroettger/compass-normalize-plugin
53
+ homepage: http://jroettger.github.com/compass-normalize-plugin/
54
54
  licenses: []
55
55
  post_install_message:
56
56
  rdoc_options: []