compass-normalize 1.1.2 → 1.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/README.md +66 -12
- data/stylesheets/_normalize-legacy.scss +14 -0
- data/stylesheets/_normalize-version.scss +13 -0
- data/stylesheets/_normalize.scss +12 -4
- data/stylesheets/{normalize/base.scss → normalize-legacy/_base.scss} +2 -0
- data/stylesheets/normalize-legacy/_embeds.scss +19 -0
- data/stylesheets/normalize-legacy/_figures.scss +11 -0
- data/stylesheets/{normalize/forms.scss → normalize-legacy/_forms.scss} +2 -0
- data/stylesheets/{normalize/html5.scss → normalize-legacy/_html5.scss} +2 -10
- data/stylesheets/normalize-legacy/_links.scss +18 -0
- data/stylesheets/normalize-legacy/_lists.scss +35 -0
- data/stylesheets/normalize-legacy/_tables.scss +11 -0
- data/stylesheets/normalize-legacy/_typography.scss +133 -0
- data/stylesheets/normalize/_base.scss +21 -0
- data/stylesheets/normalize/_embeds.scss +17 -0
- data/stylesheets/normalize/_figures.scss +11 -0
- data/stylesheets/normalize/_forms.scss +107 -0
- data/stylesheets/normalize/_html5.scss +43 -0
- data/stylesheets/normalize/_links.scss +18 -0
- data/stylesheets/normalize/_tables.scss +12 -0
- data/stylesheets/normalize/_typography.scss +86 -0
- data/templates/legacy/manifest.rb +23 -0
- data/templates/legacy/screen.scss +2 -0
- metadata +24 -5
data/README.md
CHANGED
@@ -7,36 +7,90 @@ This simple plugin for [Compass](http://compass-style.org/) enables you to use [
|
|
7
7
|
|
8
8
|
From the command line:
|
9
9
|
|
10
|
-
|
10
|
+
```
|
11
|
+
$ (sudo) gem install compass-normalize
|
12
|
+
```
|
11
13
|
|
12
14
|
You can also install the gem from your local fork:
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
```
|
17
|
+
$ git clone git://github.com/ksmandersen/compass-normalize.git
|
18
|
+
$ rake build
|
19
|
+
$ rake install
|
20
|
+
```
|
21
|
+
|
22
|
+
## Normalize Versions
|
23
|
+
Normalize has two versions, a modern Normalize for Firefox 4+, Chrome, Safari 5+, Opera, and Internet Explorer 8+, and a legacy Normalize with support for all legacy versions of those browsers.
|
18
24
|
|
19
25
|
## Usage
|
26
|
+
|
27
|
+
### Modern Normalize
|
28
|
+
When creating a new project with compass:
|
29
|
+
|
30
|
+
```
|
31
|
+
$ compass create <my_project> -r compass-normalize --using compass-normalize
|
32
|
+
```
|
33
|
+
|
34
|
+
If using an existing project, edit your config.rb and add this line:
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
require 'compass-normalize'
|
38
|
+
```
|
39
|
+
|
40
|
+
To use the normalize plugin, just import and include normalize:
|
41
|
+
|
42
|
+
```scss
|
43
|
+
@import normalize;
|
44
|
+
```
|
45
|
+
|
46
|
+
You can also just import parts you need:
|
47
|
+
|
48
|
+
```scss
|
49
|
+
@import 'normalize/html5';
|
50
|
+
@import 'normalize/base';
|
51
|
+
@import 'normalize/links';
|
52
|
+
@import 'normalize/typography';
|
53
|
+
@import 'normalize/embeds';
|
54
|
+
@import 'normalize/figures';
|
55
|
+
@import 'normalize/forms';
|
56
|
+
@import 'normalize/tables';
|
57
|
+
```
|
58
|
+
|
59
|
+
### Legacy Normalize
|
20
60
|
When creating a new project with compass:
|
21
61
|
|
22
|
-
|
62
|
+
```
|
63
|
+
$ compass create <my_project> -r compass-normalize --using compass-normalize/legacy
|
64
|
+
```
|
23
65
|
|
24
66
|
If using an existing project, edit your config.rb and add this line:
|
25
67
|
|
26
|
-
|
68
|
+
```ruby
|
69
|
+
require 'compass-normalize'
|
70
|
+
```
|
27
71
|
|
28
72
|
To use the normalize plugin, just import and include normalize:
|
29
73
|
|
30
|
-
|
74
|
+
```scss
|
75
|
+
@import normalize-legacy;
|
76
|
+
```
|
31
77
|
|
32
78
|
You can also just import parts you need:
|
33
79
|
|
34
|
-
|
35
|
-
|
36
|
-
|
80
|
+
```scss
|
81
|
+
@import 'normalize-legacy/html5';
|
82
|
+
@import 'normalize-legacy/base';
|
83
|
+
@import 'normalize-legacy/links';
|
84
|
+
@import 'normalize-legacy/typography';
|
85
|
+
@import 'normalize-legacy/lists';
|
86
|
+
@import 'normalize-legacy/embeds';
|
87
|
+
@import 'normalize-legacy/figures';
|
88
|
+
@import 'normalize-legacy/forms';
|
89
|
+
@import 'normalize-legacy/tables';
|
90
|
+
```
|
37
91
|
|
38
92
|
## Acknowledgements
|
39
|
-
Many thanks to [Frederic Hemberger](https://github.com/fhemberger/) who contributed greatly to this project.
|
93
|
+
Many thanks to [Frederic Hemberger](https://github.com/fhemberger/) and [Sam Richard](https://github.com/snugug) who contributed greatly to this project.
|
40
94
|
|
41
95
|
## License
|
42
96
|
This is free and unencumbered software released into the public domain.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Normalize Legacy Version Comment
|
2
|
+
@import 'normalize-version';
|
3
|
+
@include normalize-version($legacy: true);
|
4
|
+
|
5
|
+
// Normalize Legacy Partial Imports
|
6
|
+
@import 'normalize-legacy/html5';
|
7
|
+
@import 'normalize-legacy/base';
|
8
|
+
@import 'normalize-legacy/links';
|
9
|
+
@import 'normalize-legacy/typography';
|
10
|
+
@import 'normalize-legacy/lists';
|
11
|
+
@import 'normalize-legacy/embeds';
|
12
|
+
@import 'normalize-legacy/figures';
|
13
|
+
@import 'normalize-legacy/forms';
|
14
|
+
@import 'normalize-legacy/tables';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@mixin normalize-version($partial: false, $legacy: false) {
|
2
|
+
$version: 'v2.0.1';
|
3
|
+
@if $legacy {
|
4
|
+
$version: 'v1.0.1';
|
5
|
+
}
|
6
|
+
|
7
|
+
@if $partial {
|
8
|
+
/*! normalize.css #{$version} | #{$partial} | MIT License | git.io/normalize */
|
9
|
+
}
|
10
|
+
@else {
|
11
|
+
/*! normalize.css #{$version} | MIT License | git.io/normalize */
|
12
|
+
}
|
13
|
+
}
|
data/stylesheets/_normalize.scss
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
|
1
|
+
// Normalize Version Comment
|
2
|
+
@import 'normalize-version';
|
3
|
+
@include normalize-version;
|
2
4
|
|
3
|
-
|
4
|
-
@import
|
5
|
-
@import
|
5
|
+
// Normalize Partial Imports
|
6
|
+
@import 'normalize/html5';
|
7
|
+
@import 'normalize/base';
|
8
|
+
@import 'normalize/links';
|
9
|
+
@import 'normalize/typography';
|
10
|
+
@import 'normalize/embeds';
|
11
|
+
@import 'normalize/figures';
|
12
|
+
@import 'normalize/forms';
|
13
|
+
@import 'normalize/tables';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@include normalize-version('Embedded Content', true);
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Embedded content
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
8
|
+
// 2. Improves image quality when scaled in IE 7.
|
9
|
+
|
10
|
+
img {
|
11
|
+
border: 0; /* 1 */
|
12
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
13
|
+
}
|
14
|
+
|
15
|
+
// Corrects overflow displayed oddly in IE 9.
|
16
|
+
|
17
|
+
svg:not(:root) {
|
18
|
+
overflow: hidden;
|
19
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@include normalize-version('Figures', true);
|
2
|
+
|
3
|
+
// =============================================================================
|
4
|
+
// Figures
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses margin not present in IE6/7/8/9, S5, O11
|
8
|
+
|
9
|
+
figure {
|
10
|
+
margin: 0;
|
11
|
+
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@include normalize-version('HTML5 Display Definitions', true);
|
2
|
+
|
1
3
|
// =============================================================================
|
2
4
|
// HTML5 display definitions
|
3
5
|
// ========================================================================== */
|
@@ -42,14 +44,4 @@ audio:not([controls]) {
|
|
42
44
|
|
43
45
|
[hidden] {
|
44
46
|
display: none;
|
45
|
-
}
|
46
|
-
|
47
|
-
// =============================================================================
|
48
|
-
// Figures
|
49
|
-
// ==========================================================================
|
50
|
-
|
51
|
-
// Addresses margin not present in IE6/7/8/9, S5, O11
|
52
|
-
|
53
|
-
figure {
|
54
|
-
margin: 0;
|
55
47
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@include normalize-version('Links', true);
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Links
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses `outline` inconsistency between Chrome and other browsers.
|
8
|
+
|
9
|
+
a:focus {
|
10
|
+
outline: thin dotted;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Improves readability when focused and also mouse hovered in all browsers.
|
14
|
+
|
15
|
+
a:active,
|
16
|
+
a:hover {
|
17
|
+
outline: 0;
|
18
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@include normalize-version('Lists', true);
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Lists
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses margins set differently in IE 6/7.
|
8
|
+
|
9
|
+
dl,
|
10
|
+
menu,
|
11
|
+
ol,
|
12
|
+
ul {
|
13
|
+
margin: 1em 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
dd {
|
17
|
+
margin: 0 0 0 40px;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Addresses paddings set differently in IE 6/7.
|
21
|
+
|
22
|
+
menu,
|
23
|
+
ol,
|
24
|
+
ul {
|
25
|
+
padding: 0 0 0 40px;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Corrects list images handled incorrectly in IE 7.
|
29
|
+
|
30
|
+
nav ul,
|
31
|
+
nav ol {
|
32
|
+
list-style: none;
|
33
|
+
list-style-image: none;
|
34
|
+
}
|
35
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@include normalize-version('Tables', true);
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Tables
|
5
|
+
// ==========================================================================
|
6
|
+
// Remove most spacing between table cells.
|
7
|
+
|
8
|
+
table {
|
9
|
+
border-collapse: collapse;
|
10
|
+
border-spacing: 0;
|
11
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
@include normalize-version('Typography', true);
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Typography
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses font sizes and margins set differently in IE 6/7.
|
8
|
+
// Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
|
9
|
+
// and Chrome.
|
10
|
+
|
11
|
+
h1 {
|
12
|
+
font-size: 2em;
|
13
|
+
margin: 0.67em 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
h2 {
|
17
|
+
font-size: 1.5em;
|
18
|
+
margin: 0.83em 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
h3 {
|
22
|
+
font-size: 1.17em;
|
23
|
+
margin: 1em 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
h4 {
|
27
|
+
font-size: 1em;
|
28
|
+
margin: 1.33em 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
h5 {
|
32
|
+
font-size: 0.83em;
|
33
|
+
margin: 1.67em 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
h6 {
|
37
|
+
font-size: 0.75em;
|
38
|
+
margin: 2.33em 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
// Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
|
42
|
+
|
43
|
+
abbr[title] {
|
44
|
+
border-bottom: 1px dotted;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
48
|
+
|
49
|
+
b,
|
50
|
+
strong {
|
51
|
+
font-weight: bold;
|
52
|
+
}
|
53
|
+
|
54
|
+
blockquote {
|
55
|
+
margin: 1em 40px;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Addresses styling not present in Safari 5 and Chrome.
|
59
|
+
|
60
|
+
dfn {
|
61
|
+
font-style: italic;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Addresses styling not present in IE 6/7/8/9.
|
65
|
+
|
66
|
+
mark {
|
67
|
+
background: #ff0;
|
68
|
+
color: #000;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Addresses margins set differently in IE 6/7.
|
72
|
+
|
73
|
+
p,
|
74
|
+
pre {
|
75
|
+
margin: 1em 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
|
79
|
+
|
80
|
+
code,
|
81
|
+
kbd,
|
82
|
+
pre,
|
83
|
+
samp {
|
84
|
+
font-family: monospace, serif;
|
85
|
+
_font-family: 'courier new', monospace;
|
86
|
+
font-size: 1em;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Improves readability of pre-formatted text in all browsers.
|
90
|
+
|
91
|
+
pre {
|
92
|
+
white-space: pre;
|
93
|
+
white-space: pre-wrap;
|
94
|
+
word-wrap: break-word;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Addresses CSS quotes not supported in IE 6/7.
|
98
|
+
|
99
|
+
q {
|
100
|
+
quotes: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
// Addresses `quotes` property not supported in Safari 4.
|
104
|
+
|
105
|
+
q:before,
|
106
|
+
q:after {
|
107
|
+
content: '';
|
108
|
+
content: none;
|
109
|
+
}
|
110
|
+
|
111
|
+
// Addresses inconsistent and variable font size in all browsers.
|
112
|
+
|
113
|
+
small {
|
114
|
+
font-size: 80%;
|
115
|
+
}
|
116
|
+
|
117
|
+
// Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
118
|
+
|
119
|
+
sub,
|
120
|
+
sup {
|
121
|
+
font-size: 75%;
|
122
|
+
line-height: 0;
|
123
|
+
position: relative;
|
124
|
+
vertical-align: baseline;
|
125
|
+
}
|
126
|
+
|
127
|
+
sup {
|
128
|
+
top: -0.5em;
|
129
|
+
}
|
130
|
+
|
131
|
+
sub {
|
132
|
+
bottom: -0.25em;
|
133
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@include normalize-version('Base');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Base
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// 1. Sets default font family to sans-serif.
|
8
|
+
// 2. Prevents iOS text size adjust after orientation change, without disabling
|
9
|
+
// user zoom.
|
10
|
+
|
11
|
+
html {
|
12
|
+
font-family: sans-serif; // 1
|
13
|
+
-webkit-text-size-adjust: 100%; // 2
|
14
|
+
-ms-text-size-adjust: 100%; // 2
|
15
|
+
}
|
16
|
+
|
17
|
+
// Removes default margin.
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@include normalize-version('Embedded Content');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Embedded content
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Removes border when inside `a` element in IE 8/9.
|
8
|
+
|
9
|
+
img {
|
10
|
+
border: 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Corrects overflow displayed oddly in IE 9.
|
14
|
+
|
15
|
+
svg:not(:root) {
|
16
|
+
overflow: hidden;
|
17
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@include normalize-version('Figures');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Figures
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses margin not present in IE 8/9 and Safari 5.
|
8
|
+
|
9
|
+
figure {
|
10
|
+
margin: 0;
|
11
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
@include normalize-version('Forms');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Forms
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Define consistent border, margin, and padding.
|
8
|
+
|
9
|
+
fieldset {
|
10
|
+
border: 1px solid #c0c0c0;
|
11
|
+
margin: 0 2px;
|
12
|
+
padding: 0.35em 0.625em 0.75em;
|
13
|
+
}
|
14
|
+
|
15
|
+
// 1. Corrects color not being inherited in IE 8/9.
|
16
|
+
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
17
|
+
|
18
|
+
legend {
|
19
|
+
border: 0; // 1
|
20
|
+
padding: 0; // 2
|
21
|
+
}
|
22
|
+
|
23
|
+
// 1. Corrects font family not being inherited in all browsers.
|
24
|
+
// 2. Corrects font size not being inherited in all browsers.
|
25
|
+
// 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
|
26
|
+
|
27
|
+
button,
|
28
|
+
input,
|
29
|
+
select,
|
30
|
+
textarea {
|
31
|
+
font-family: inherit; // 1
|
32
|
+
font-size: 100%; // 2
|
33
|
+
margin: 0; // 3
|
34
|
+
}
|
35
|
+
|
36
|
+
// Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
|
37
|
+
// the UA stylesheet.
|
38
|
+
|
39
|
+
button,
|
40
|
+
input {
|
41
|
+
line-height: normal;
|
42
|
+
}
|
43
|
+
|
44
|
+
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
45
|
+
// and `video` controls.
|
46
|
+
// 2. Corrects inability to style clickable `input` types in iOS.
|
47
|
+
// 3. Improves usability and consistency of cursor style between image-type
|
48
|
+
// `input` and others.
|
49
|
+
|
50
|
+
button,
|
51
|
+
html input[type="button"], // 1
|
52
|
+
input[type="reset"],
|
53
|
+
input[type="submit"] {
|
54
|
+
-webkit-appearance: button; // 2
|
55
|
+
cursor: pointer; // 3
|
56
|
+
}
|
57
|
+
|
58
|
+
// Re-set default cursor for disabled elements.
|
59
|
+
|
60
|
+
button[disabled],
|
61
|
+
input[disabled] {
|
62
|
+
cursor: default;
|
63
|
+
}
|
64
|
+
|
65
|
+
// 1. Addresses box sizing set to `content-box` in IE 8/9.
|
66
|
+
// 2. Removes excess padding in IE 8/9.
|
67
|
+
|
68
|
+
input[type="checkbox"],
|
69
|
+
input[type="radio"] {
|
70
|
+
box-sizing: border-box; // 1
|
71
|
+
padding: 0; // 2
|
72
|
+
}
|
73
|
+
|
74
|
+
// 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
75
|
+
// 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
76
|
+
// (include `-moz` to future-proof).
|
77
|
+
|
78
|
+
input[type="search"] {
|
79
|
+
-webkit-appearance: textfield; // 1
|
80
|
+
-moz-box-sizing: content-box;
|
81
|
+
-webkit-box-sizing: content-box; // 2
|
82
|
+
box-sizing: content-box;
|
83
|
+
}
|
84
|
+
|
85
|
+
// Removes inner padding and search cancel button in Safari 5 and Chrome
|
86
|
+
// on OS X.
|
87
|
+
|
88
|
+
input[type="search"]::-webkit-search-cancel-button,
|
89
|
+
input[type="search"]::-webkit-search-decoration {
|
90
|
+
-webkit-appearance: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Removes inner padding and border in Firefox 4+.
|
94
|
+
|
95
|
+
button::-moz-focus-inner,
|
96
|
+
input::-moz-focus-inner {
|
97
|
+
border: 0;
|
98
|
+
padding: 0;
|
99
|
+
}
|
100
|
+
|
101
|
+
// 1. Removes default vertical scrollbar in IE 8/9.
|
102
|
+
// 2. Improves readability and alignment in all browsers.
|
103
|
+
|
104
|
+
textarea {
|
105
|
+
overflow: auto; // 1
|
106
|
+
vertical-align: top; // 2
|
107
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
@include normalize-version('HTML5 Display Definitions');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// HTML5 display definitions
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Corrects `block` display not defined in IE 8/9.
|
8
|
+
|
9
|
+
article,
|
10
|
+
aside,
|
11
|
+
details,
|
12
|
+
figcaption,
|
13
|
+
figure,
|
14
|
+
footer,
|
15
|
+
header,
|
16
|
+
hgroup,
|
17
|
+
nav,
|
18
|
+
section,
|
19
|
+
summary {
|
20
|
+
display: block;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Corrects `inline-block` display not defined in IE 8/9.
|
24
|
+
|
25
|
+
audio,
|
26
|
+
canvas,
|
27
|
+
video {
|
28
|
+
display: inline-block;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Prevents modern browsers from displaying `audio` without controls.
|
32
|
+
// Remove excess height in iOS 5 devices.
|
33
|
+
|
34
|
+
audio:not([controls]) {
|
35
|
+
display: none;
|
36
|
+
height: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Addresses styling for `hidden` attribute not present in IE 8/9.
|
40
|
+
|
41
|
+
[hidden] {
|
42
|
+
display: none;
|
43
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@include normalize-version('Links');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Links
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses `outline` inconsistency between Chrome and other browsers.
|
8
|
+
|
9
|
+
a:focus {
|
10
|
+
outline: thin dotted;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Improves readability when focused and also mouse hovered in all browsers.
|
14
|
+
|
15
|
+
a:active,
|
16
|
+
a:hover {
|
17
|
+
outline: 0;
|
18
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@include normalize-version('Tables');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Tables
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Remove most spacing between table cells.
|
8
|
+
|
9
|
+
table {
|
10
|
+
border-collapse: collapse;
|
11
|
+
border-spacing: 0;
|
12
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
@include normalize-version('Typography');
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Typography
|
5
|
+
// ==========================================================================
|
6
|
+
|
7
|
+
// Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
|
8
|
+
// Safari 5, and Chrome.
|
9
|
+
|
10
|
+
h1 {
|
11
|
+
font-size: 2em;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Addresses styling not present in IE 8/9, Safari 5, and Chrome.
|
15
|
+
|
16
|
+
abbr[title] {
|
17
|
+
border-bottom: 1px dotted;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
21
|
+
|
22
|
+
b,
|
23
|
+
strong {
|
24
|
+
font-weight: bold;
|
25
|
+
}
|
26
|
+
|
27
|
+
// Addresses styling not present in Safari 5 and Chrome.
|
28
|
+
|
29
|
+
dfn {
|
30
|
+
font-style: italic;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Addresses styling not present in IE 8/9.
|
34
|
+
|
35
|
+
mark {
|
36
|
+
background: #ff0;
|
37
|
+
color: #000;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Corrects font family set oddly in Safari 5 and Chrome.
|
41
|
+
|
42
|
+
code,
|
43
|
+
kbd,
|
44
|
+
pre,
|
45
|
+
samp {
|
46
|
+
font-family: monospace, serif;
|
47
|
+
font-size: 1em;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Improves readability of pre-formatted text in all browsers.
|
51
|
+
|
52
|
+
pre {
|
53
|
+
white-space: pre;
|
54
|
+
white-space: pre-wrap;
|
55
|
+
word-wrap: break-word;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Sets consistent quote types.
|
59
|
+
|
60
|
+
q {
|
61
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
62
|
+
}
|
63
|
+
|
64
|
+
// Addresses inconsistent and variable font size in all browsers.
|
65
|
+
|
66
|
+
small {
|
67
|
+
font-size: 80%;
|
68
|
+
}
|
69
|
+
|
70
|
+
// Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
71
|
+
|
72
|
+
sub,
|
73
|
+
sup {
|
74
|
+
font-size: 75%;
|
75
|
+
line-height: 0;
|
76
|
+
position: relative;
|
77
|
+
vertical-align: baseline;
|
78
|
+
}
|
79
|
+
|
80
|
+
sup {
|
81
|
+
top: -0.5em;
|
82
|
+
}
|
83
|
+
|
84
|
+
sub {
|
85
|
+
bottom: -0.25em;
|
86
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
description "A compass plugin for using normalize.css"
|
2
|
+
|
3
|
+
stylesheet 'screen.scss', :media => 'screen, projection'
|
4
|
+
|
5
|
+
help %Q{
|
6
|
+
Please see the normalize.css website for documentation and more information
|
7
|
+
|
8
|
+
http://necolas.github.com/normalize.css/
|
9
|
+
|
10
|
+
For more information on how normalize.css works please visit the wiki
|
11
|
+
|
12
|
+
https://github.com/necolas/normalize.css/wiki
|
13
|
+
}
|
14
|
+
|
15
|
+
welcome_message %Q{
|
16
|
+
Please see the normalize.css website for documentation and more information
|
17
|
+
|
18
|
+
http://necolas.github.com/normalize.css/
|
19
|
+
|
20
|
+
For more information on how normalize.css works please visit the wiki
|
21
|
+
|
22
|
+
https://github.com/necolas/normalize.css/wiki
|
23
|
+
}
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-normalize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.3'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kristian Andersen
|
9
9
|
- Frederic Hemberger
|
10
|
+
- Sam Richard
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2012-
|
14
|
+
date: 2012-08-26 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: compass
|
@@ -39,10 +40,28 @@ extra_rdoc_files: []
|
|
39
40
|
files:
|
40
41
|
- README.md
|
41
42
|
- lib/compass-normalize.rb
|
43
|
+
- stylesheets/_normalize-legacy.scss
|
44
|
+
- stylesheets/_normalize-version.scss
|
42
45
|
- stylesheets/_normalize.scss
|
43
|
-
- stylesheets/normalize/
|
44
|
-
- stylesheets/normalize/
|
45
|
-
- stylesheets/normalize/
|
46
|
+
- stylesheets/normalize/_base.scss
|
47
|
+
- stylesheets/normalize/_embeds.scss
|
48
|
+
- stylesheets/normalize/_figures.scss
|
49
|
+
- stylesheets/normalize/_forms.scss
|
50
|
+
- stylesheets/normalize/_html5.scss
|
51
|
+
- stylesheets/normalize/_links.scss
|
52
|
+
- stylesheets/normalize/_tables.scss
|
53
|
+
- stylesheets/normalize/_typography.scss
|
54
|
+
- stylesheets/normalize-legacy/_base.scss
|
55
|
+
- stylesheets/normalize-legacy/_embeds.scss
|
56
|
+
- stylesheets/normalize-legacy/_figures.scss
|
57
|
+
- stylesheets/normalize-legacy/_forms.scss
|
58
|
+
- stylesheets/normalize-legacy/_html5.scss
|
59
|
+
- stylesheets/normalize-legacy/_links.scss
|
60
|
+
- stylesheets/normalize-legacy/_lists.scss
|
61
|
+
- stylesheets/normalize-legacy/_tables.scss
|
62
|
+
- stylesheets/normalize-legacy/_typography.scss
|
63
|
+
- templates/legacy/manifest.rb
|
64
|
+
- templates/legacy/screen.scss
|
46
65
|
- templates/project/manifest.rb
|
47
66
|
- templates/project/screen.scss
|
48
67
|
homepage: http://github.com/ksmandersen/compass-normalize/
|