compass-normalize-plugin 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/compass-normalize-plugin.gemspec +3 -3
- data/scss/normalize/_base.scss +2 -2
- data/scss/normalize/_embedded.scss +3 -3
- data/scss/normalize/_figures.scss +1 -1
- data/scss/normalize/_forms.scss +34 -30
- data/scss/normalize/_html5.scss +5 -4
- data/scss/normalize/_links.scss +2 -2
- data/scss/normalize/_typography.scss +18 -12
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
[v.0.4.1] [Apr 3 2013]
|
2
|
+
- - - - - - - - - - -
|
3
|
+
|
4
|
+
- Synced with Normalize.css version 2.1.0
|
5
|
+
|
1
6
|
[v.0.4.0] [Sep 10 2012]
|
2
7
|
- - - - - - - - - - -
|
3
8
|
|
@@ -47,4 +52,4 @@ Adds support for configurable browser optimization.
|
|
47
52
|
[v0.1.0] [Mar 29 2012]
|
48
53
|
- - - - - - - - - - -
|
49
54
|
|
50
|
-
Initial import of normalize.css
|
55
|
+
Initial import of normalize.css
|
data/README.md
CHANGED
@@ -82,4 +82,4 @@ Public domain
|
|
82
82
|
[Nicolas Gallagher](http://github.com/necolas) and
|
83
83
|
[Jonathan Neal](http://github.com/jonathantneal).
|
84
84
|
* [compass-normalize-plugin](https://github.com/jroettger/compass-normalize-plugin) is a
|
85
|
-
[Compass](http://compass-style.org) plugin by [Johannes
|
85
|
+
[Compass](http://compass-style.org) plugin by [Johannes Zorn](http://github.com/jzorn).
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.version = "0.4.
|
4
|
+
s.version = "0.4.1"
|
5
5
|
s.date = %q{2012-09-10}
|
6
6
|
|
7
7
|
s.name = %q{compass-normalize-plugin}
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.files = [
|
15
15
|
"CHANGELOG.md",
|
16
16
|
"compass-normalize-plugin.gemspec",
|
17
|
-
"lib/normalize.rb",
|
17
|
+
"lib/normalize.rb",
|
18
18
|
"Manifest",
|
19
19
|
"Rakefile",
|
20
20
|
"README.md",
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
"templates/project/screen.scss",
|
36
36
|
"VERSION"
|
37
37
|
]
|
38
|
-
|
38
|
+
|
39
39
|
s.rubygems_version = %q{1.3.6}
|
40
40
|
s.add_dependency(%q<compass>, [">= 0.11.1"])
|
41
41
|
end
|
data/scss/normalize/_base.scss
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@mixin normalize-base {
|
2
2
|
html {
|
3
|
-
//
|
3
|
+
// Set default font family to sans-serif.
|
4
4
|
font-family: sans-serif;
|
5
5
|
|
6
6
|
// Prevents iOS text size adjust after orientation change, without disabling user zoom
|
@@ -17,7 +17,7 @@
|
|
17
17
|
font-family: sans-serif;
|
18
18
|
}
|
19
19
|
|
20
|
-
//
|
20
|
+
// Remove default margin.
|
21
21
|
body {
|
22
22
|
margin: 0;
|
23
23
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@mixin normalize-embedded {
|
2
2
|
img {
|
3
|
-
//
|
4
|
-
border: 0;
|
3
|
+
// Remove border when inside `a` element in IE 8/9.
|
4
|
+
border: 0;
|
5
5
|
}
|
6
6
|
|
7
|
-
//
|
7
|
+
// Correct overflow displayed oddly in IE 9
|
8
8
|
svg:not(:root) {
|
9
9
|
overflow: hidden;
|
10
10
|
}
|
data/scss/normalize/_forms.scss
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
margin: 0 2px;
|
6
6
|
padding: 0.35em 0.625em 0.75em;
|
7
7
|
}
|
8
|
-
|
8
|
+
|
9
9
|
legend {
|
10
|
-
//
|
10
|
+
// Correct color not being inherited in IE 8/9.
|
11
11
|
border: 0;
|
12
12
|
// Remove padding so people aren't caught out if they zero out fieldsets.
|
13
13
|
padding: 0;
|
@@ -17,69 +17,73 @@
|
|
17
17
|
input,
|
18
18
|
select,
|
19
19
|
textarea {
|
20
|
-
//
|
20
|
+
// Correct font family not being inherited in all browsers.
|
21
21
|
font-family: inherit;
|
22
|
-
//
|
22
|
+
// Correct font size not being inherited in all browsers.
|
23
23
|
font-size: 100%;
|
24
|
-
//
|
24
|
+
// Address margins set differently in Firefox 4+, Safari 5, and Chrome
|
25
25
|
margin: 0;
|
26
26
|
}
|
27
27
|
|
28
|
-
//
|
28
|
+
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
29
29
|
// the UA stylesheet.
|
30
30
|
button,
|
31
31
|
input {
|
32
32
|
line-height: normal;
|
33
33
|
}
|
34
34
|
|
35
|
-
//
|
36
|
-
//
|
37
|
-
//
|
38
|
-
|
35
|
+
// Address inconsistent `text-transform` inheritance for `button` and `select`.
|
36
|
+
// All other form control elements do not inherit `text-transform` values.
|
37
|
+
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
38
|
+
// Correct `select` style inheritance in Firefox 4+ and Opera.
|
39
|
+
button,
|
40
|
+
select {
|
41
|
+
text-transform: none;
|
42
|
+
}
|
39
43
|
|
40
|
-
// Avoid the WebKit bug in Android 4.0.* where (
|
44
|
+
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
45
|
+
// 2. Correct inability to style clickable `input` types in iOS.
|
46
|
+
// 3. Improve usability and consistency of cursor style between image-type `input` and others.
|
41
47
|
button,
|
42
|
-
html input[type="button"],
|
48
|
+
html input[type="button"], // 1
|
43
49
|
input[type="reset"],
|
44
50
|
input[type="submit"] {
|
45
|
-
|
46
|
-
|
47
|
-
// Improves usability and consistency of cursor style between image-type `input` and others.
|
48
|
-
cursor: pointer;
|
51
|
+
-webkit-appearance: button; // 2
|
52
|
+
cursor: pointer; // 3
|
49
53
|
}
|
50
54
|
|
51
|
-
// Re-set default cursor for disabled elements.
|
55
|
+
// Re-set default cursor for disabled elements.
|
52
56
|
button[disabled],
|
53
|
-
input[disabled] {
|
57
|
+
html input[disabled] {
|
54
58
|
cursor: default;
|
55
59
|
}
|
56
60
|
|
57
61
|
input[type="checkbox"],
|
58
62
|
input[type="radio"] {
|
59
|
-
//
|
63
|
+
// Address box sizing set to content-box in IE 8/9.
|
60
64
|
box-sizing: border-box;
|
61
|
-
|
62
|
-
//
|
65
|
+
|
66
|
+
// Remove excess padding in IE 8/9.
|
63
67
|
padding: 0;
|
64
68
|
}
|
65
69
|
|
66
70
|
input[type="search"] {
|
67
|
-
//
|
71
|
+
// Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
68
72
|
-webkit-appearance: textfield;
|
69
|
-
|
70
|
-
//
|
73
|
+
|
74
|
+
// Address `box-sizing` set to `border-box` in Safari 5, Chrome (include -moz to future-proof)
|
71
75
|
-webkit-box-sizing: content-box;
|
72
|
-
-moz-box-sizing: content-box;
|
76
|
+
-moz-box-sizing: content-box;
|
73
77
|
box-sizing: content-box;
|
74
78
|
}
|
75
79
|
|
76
|
-
//
|
80
|
+
// Remove inner padding and search cancel button in Safari 5 and Chrome on OS X.
|
77
81
|
input[type="search"]::-webkit-search-decoration,
|
78
82
|
input[type="search"]::-webkit-search-cancel-button {
|
79
83
|
-webkit-appearance: none;
|
80
84
|
}
|
81
85
|
|
82
|
-
//
|
86
|
+
// Remove inner padding and border in Firefox 4+.
|
83
87
|
button::-moz-focus-inner,
|
84
88
|
input::-moz-focus-inner {
|
85
89
|
border: 0;
|
@@ -87,10 +91,10 @@
|
|
87
91
|
}
|
88
92
|
|
89
93
|
textarea {
|
90
|
-
//
|
94
|
+
// Remove default vertical scrollbar in IE 8/9
|
91
95
|
overflow: auto;
|
92
|
-
|
93
|
-
//
|
96
|
+
|
97
|
+
// Improve readability and alignment in all browsers
|
94
98
|
vertical-align: top;
|
95
99
|
}
|
96
100
|
}
|
data/scss/normalize/_html5.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
@mixin normalize-html5 {
|
2
|
-
//
|
2
|
+
// Correct `block` display not defined in IE 8/9.
|
3
3
|
article,
|
4
4
|
aside,
|
5
5
|
details,
|
@@ -8,27 +8,28 @@
|
|
8
8
|
footer,
|
9
9
|
header,
|
10
10
|
hgroup,
|
11
|
+
main,
|
11
12
|
nav,
|
12
13
|
section,
|
13
14
|
summary {
|
14
15
|
display: block;
|
15
16
|
}
|
16
17
|
|
17
|
-
//
|
18
|
+
// Correct `inline-block` display not defined in IE 8/9.
|
18
19
|
audio,
|
19
20
|
canvas,
|
20
21
|
video {
|
21
22
|
display: inline-block;
|
22
23
|
}
|
23
24
|
|
24
|
-
//
|
25
|
+
// Prevent modern browsers from displaying `audio` without controls.
|
25
26
|
// Remove excess height in iOS 5 devices.
|
26
27
|
audio:not([controls]) {
|
27
28
|
display: none;
|
28
29
|
height: 0;
|
29
30
|
}
|
30
31
|
|
31
|
-
//
|
32
|
+
// Address styling not present in IE 8/9.
|
32
33
|
[hidden] {
|
33
34
|
display: none;
|
34
35
|
}
|
data/scss/normalize/_links.scss
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
@mixin normalize-links {
|
2
2
|
a {
|
3
|
-
//
|
3
|
+
// Address `outline` inconsistency between Chrome and other browsers.
|
4
4
|
&:focus {
|
5
5
|
outline: thin dotted;
|
6
6
|
}
|
7
7
|
|
8
|
-
//
|
8
|
+
// Improve readability when focused and also mouse hovered in all browsers.
|
9
9
|
&:hover,
|
10
10
|
&:active {
|
11
11
|
outline: 0;
|
@@ -1,32 +1,40 @@
|
|
1
1
|
@mixin normalize-typography {
|
2
|
-
//
|
2
|
+
// Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari 5, and Chrome.
|
3
3
|
h1 {
|
4
4
|
font-size: 2em;
|
5
|
+
margin: 0.67em 0;
|
5
6
|
}
|
6
7
|
|
7
|
-
//
|
8
|
+
// Address styling not present in IE 8/9, Safari 5, Chrome.
|
8
9
|
abbr[title] {
|
9
10
|
border-bottom: 1px dotted;
|
10
11
|
}
|
11
12
|
|
12
|
-
//
|
13
|
+
// Address style set to `bolder` in Firefox 4+, Safari 5, Chrome.
|
13
14
|
b,
|
14
15
|
strong {
|
15
16
|
font-weight: bold;
|
16
17
|
}
|
17
18
|
|
18
|
-
//
|
19
|
+
// Address styling not present in Safari 5, Chrome.
|
19
20
|
dfn {
|
20
21
|
font-style: italic;
|
21
22
|
}
|
22
23
|
|
23
|
-
//
|
24
|
+
// Address differences between Firefox and other browsers.
|
25
|
+
hr {
|
26
|
+
-moz-box-sizing: content-box;
|
27
|
+
box-sizing: content-box;
|
28
|
+
height: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Address styling not present in IE 8/9
|
24
32
|
mark {
|
25
33
|
background: #ff0;
|
26
34
|
color: #000;
|
27
35
|
}
|
28
36
|
|
29
|
-
//
|
37
|
+
// Correct font family set oddly in Safari 5, and Chrome.
|
30
38
|
code,
|
31
39
|
kbd,
|
32
40
|
pre,
|
@@ -35,24 +43,22 @@
|
|
35
43
|
font-size: 1em;
|
36
44
|
}
|
37
45
|
|
38
|
-
//
|
46
|
+
// Improve readability of pre-formatted text in all browsers
|
39
47
|
pre {
|
40
|
-
white-space: pre;
|
41
48
|
white-space: pre-wrap;
|
42
|
-
word-wrap: break-word;
|
43
49
|
}
|
44
50
|
|
45
|
-
//
|
51
|
+
// Set consistent quote types.
|
46
52
|
q {
|
47
53
|
quotes: "\201C" "\201D" "\2018" "\2019";
|
48
54
|
}
|
49
55
|
|
50
|
-
//
|
56
|
+
// Address inconsistent and variable font size in all browsers.
|
51
57
|
small {
|
52
58
|
font-size: 75%;
|
53
59
|
}
|
54
60
|
|
55
|
-
//
|
61
|
+
// Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
56
62
|
// gist.github.com/413930
|
57
63
|
sub,
|
58
64
|
sup {
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-normalize-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Johannes Roettger
|