compass-normalize-plugin 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +6 -6
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/compass-normalize-plugin.gemspec +3 -3
- data/scss/_config.scss +13 -0
- data/scss/normalize/_base.scss +6 -6
- data/scss/normalize/_embedded.scss +10 -10
- data/scss/normalize/_figures.scss +6 -5
- data/scss/normalize/_forms.scss +29 -29
- data/scss/normalize/_lists.scss +5 -5
- data/scss/normalize/_typography.scss +20 -20
- data/templates/project/screen.scss +5 -5
- metadata +5 -5
data/CHANGELOG.md
CHANGED
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
|
-
$
|
39
|
-
$
|
40
|
-
$
|
41
|
-
$
|
42
|
-
$
|
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 $
|
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 = "
|
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.
|
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.
|
5
|
-
s.date = %q{2012-
|
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{
|
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;
|
data/scss/normalize/_base.scss
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
@mixin normalize-base {
|
2
2
|
html {
|
3
|
-
@if ($
|
4
|
-
or $
|
5
|
-
or $
|
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 ($
|
29
|
-
or $
|
30
|
-
or $
|
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 ($
|
4
|
-
or $
|
5
|
-
or $
|
6
|
-
or $
|
7
|
-
or $
|
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 ($
|
14
|
-
or $
|
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
|
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 ($
|
3
|
-
or $
|
4
|
-
or $
|
5
|
-
or $
|
6
|
-
or $
|
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 {
|
data/scss/normalize/_forms.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@mixin normalize-forms {
|
2
|
-
@if ($
|
3
|
-
or $
|
4
|
-
or $
|
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 ($
|
20
|
-
or $
|
21
|
-
or $
|
22
|
-
or $
|
23
|
-
or $
|
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 ($
|
35
|
-
or $
|
36
|
-
or $
|
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 ($
|
50
|
-
or $
|
51
|
-
or $
|
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 ($
|
85
|
-
or $
|
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 ($
|
101
|
-
or $
|
102
|
-
or $
|
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 ($
|
108
|
-
or $
|
109
|
-
or $
|
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 ($
|
115
|
-
or $
|
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 ($
|
158
|
-
or $
|
159
|
-
or $
|
160
|
-
or $
|
161
|
-
or $
|
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
|
}
|
data/scss/normalize/_lists.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@mixin normalize-lists {
|
2
|
-
@if ($
|
3
|
-
or $
|
4
|
-
or $
|
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 ($
|
26
|
-
or $
|
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 ($
|
3
|
-
or $
|
4
|
-
or $
|
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 ($
|
42
|
-
or $
|
43
|
-
or $
|
44
|
-
or $
|
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 ($
|
76
|
-
or $
|
77
|
-
or $
|
78
|
-
or $
|
79
|
-
or $
|
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 ($
|
88
|
-
or $
|
89
|
-
or $
|
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 ($
|
98
|
-
or $
|
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 ($
|
121
|
-
or $
|
122
|
-
or $
|
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
|
-
$
|
6
|
-
$
|
7
|
-
$
|
8
|
-
$
|
9
|
-
$
|
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.
|
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-
|
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: &
|
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: *
|
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:
|
53
|
+
homepage: http://jroettger.github.com/compass-normalize-plugin/
|
54
54
|
licenses: []
|
55
55
|
post_install_message:
|
56
56
|
rdoc_options: []
|