compass-normalize 1.4.2 → 1.4.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.
@@ -7,13 +7,31 @@
|
|
7
7
|
// 1. Sets default font family to sans-serif.
|
8
8
|
// 2. Prevents iOS text size adjust after orientation change, without disabling
|
9
9
|
// user zoom.
|
10
|
+
// 3. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
|
11
|
+
// `em` units.
|
10
12
|
|
11
13
|
html {
|
14
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
15
|
+
font-size: 100%; // 3
|
16
|
+
}
|
12
17
|
font-family: sans-serif; // 1
|
13
18
|
-webkit-text-size-adjust: 100%; // 2
|
14
19
|
-ms-text-size-adjust: 100%; // 2
|
15
20
|
}
|
16
21
|
|
22
|
+
// Addresses `font-family` inconsistency between `textarea` and other form
|
23
|
+
// elements.
|
24
|
+
|
25
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
26
|
+
html,
|
27
|
+
button,
|
28
|
+
input,
|
29
|
+
select,
|
30
|
+
textarea {
|
31
|
+
font-family: sans-serif;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
17
35
|
// Removes default margin.
|
18
36
|
|
19
37
|
body {
|
@@ -64,6 +64,16 @@ input {
|
|
64
64
|
line-height: normal;
|
65
65
|
}
|
66
66
|
|
67
|
+
// Address inconsistent `text-transform` inheritance for `button` and `select`.
|
68
|
+
// All other form control elements do not inherit `text-transform` values.
|
69
|
+
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
70
|
+
// Correct `select` style inheritance in Firefox 4+ and Opera.
|
71
|
+
|
72
|
+
button,
|
73
|
+
select {
|
74
|
+
text-transform: none;
|
75
|
+
}
|
76
|
+
|
67
77
|
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
68
78
|
// and `video` controls.
|
69
79
|
// 2. Corrects inability to style clickable `input` types in iOS.
|
@@ -88,7 +98,7 @@ input[type="submit"] {
|
|
88
98
|
// Re-set default cursor for disabled elements.
|
89
99
|
|
90
100
|
button[disabled],
|
91
|
-
input[disabled] {
|
101
|
+
html input[disabled] {
|
92
102
|
cursor: default;
|
93
103
|
}
|
94
104
|
|
@@ -4,11 +4,42 @@
|
|
4
4
|
// Typography
|
5
5
|
// ==========================================================================
|
6
6
|
|
7
|
-
//
|
8
|
-
// Safari 5, and Chrome.
|
7
|
+
// Address variable `h1` font-size and margin within `section` and `article`
|
8
|
+
// contexts in Firefox 4+, Safari 5, and Chrome.
|
9
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
10
|
+
// Addresses font sizes and margins set differently in IE 6/7.
|
11
|
+
}
|
9
12
|
|
10
13
|
h1 {
|
11
14
|
font-size: 2em;
|
15
|
+
margin: 0.67em 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
19
|
+
h2 {
|
20
|
+
font-size: 1.5em;
|
21
|
+
margin: 0.83em 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
h3 {
|
25
|
+
font-size: 1.17em;
|
26
|
+
margin: 1em 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
h4 {
|
30
|
+
font-size: 1em;
|
31
|
+
margin: 1.33em 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
h5 {
|
35
|
+
font-size: 0.83em;
|
36
|
+
margin: 1.67em 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
h6 {
|
40
|
+
font-size: 0.67em;
|
41
|
+
margin: 2.33em 0;
|
42
|
+
}
|
12
43
|
}
|
13
44
|
|
14
45
|
// Addresses styling not present in IE 8/9, Safari 5, and Chrome.
|
@@ -36,7 +67,16 @@ dfn {
|
|
36
67
|
font-style: italic;
|
37
68
|
}
|
38
69
|
|
39
|
-
//
|
70
|
+
// Address differences between Firefox and other browsers.
|
71
|
+
// Known issue: no IE 6/7 normalization.
|
72
|
+
|
73
|
+
hr {
|
74
|
+
-moz-box-sizing: content-box;
|
75
|
+
box-sizing: content-box;
|
76
|
+
height: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
// Addresses styling not present in IE 6/7/8/9.
|
40
80
|
|
41
81
|
mark {
|
42
82
|
background: #ff0;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-normalize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: compass
|