normalize-scss 2.2.0 → 3.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +3 -2
- data/_normalize.scss +65 -33
- data/bower.json +1 -1
- data/component.json +1 -1
- data/normalize-scss.gemspec +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bccc8ff786df26e1e1c2c747063e98c4bf5ac8c
|
4
|
+
data.tar.gz: 9737515c81304b655900b13cb6176e7b2df47df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 845a022203d910b90389f6acc86a720118b85fee431d1c372a379f8d428522a9d33a8f74a18289f43340c1481a520597953016a92b5427d612edb21db1aa7b4f
|
7
|
+
data.tar.gz: 08190c4e6b1a59e9ac7b9b166d9d446ded9c466a8f019e6db2c278f83b4e05251380923f34f972e8176b41dc8ad660dc52a159af9a87dfcb40cd2385d8c75d4d
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
=== HEAD
|
2
2
|
|
3
|
-
===
|
3
|
+
=== 3.0.0-alpha.1+normalize.2.1.3 (January 22, 2014)
|
4
4
|
|
5
|
+
* Upgrade to Compass 1.0's support module.
|
6
|
+
* Use Compass 1.0.0's improved establish-baseline() mixin.
|
7
|
+
* Use vertical rhythm's $rhythm-unit variable.
|
8
|
+
* Add docs showing proper debug-vertical-alignment() usage.
|
9
|
+
* Fix a bug in Compass 1.0.0-alpha.17 by overriding its support-legacy-browser() function.
|
5
10
|
* Font size of "code, kbd, pre, samp" should always be 1em relative to parent.
|
6
11
|
|
7
12
|
=== 2.1.3 (August 26, 2013)
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
## Latest downloadable version
|
2
2
|
|
3
|
-
The latest release of _normalize.scss is: [
|
4
|
-
|
3
|
+
The latest release of _normalize.scss for Sass 3.3 and Compass 1.0 is: [3.0.0-alpha.1+normalize.2.1.3](https://github.com/JohnAlbin/normalize.css-with-sass-or-compass/archive/3.0.0-alpha.1+normalize.2.1.3.zip).
|
4
|
+
The latest release of _normalize.scss for Sass 3.2 and Compass 0.12 is: [2.1.3](https://github.com/JohnAlbin/normalize.css-with-sass-or-compass/archive/2.1.3.zip).
|
5
|
+
They both combine normalize.css v2.1.3 and normalize v1.1.3.
|
5
6
|
|
6
7
|
## The Compass port of normalize.css
|
7
8
|
|
data/_normalize.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* normalize.scss
|
1
|
+
/* normalize.scss 3.0.0-alpha.1+normalize.2.1.3 | MIT/GPLv2 License | bit.ly/normalize-with-compass */
|
2
2
|
|
3
3
|
|
4
4
|
// =============================================================================
|
@@ -9,7 +9,7 @@
|
|
9
9
|
// @see http://compass-style.org/help/tutorials/best_practices/
|
10
10
|
// =============================================================================
|
11
11
|
|
12
|
-
// These
|
12
|
+
// These 3 variables are copies of ones used in Compass' Vertical Rhythm module.
|
13
13
|
|
14
14
|
// The base font size.
|
15
15
|
$base-font-size: 16px !default;
|
@@ -17,13 +17,22 @@
|
|
17
17
|
// The base line height determines the basic unit of vertical rhythm.
|
18
18
|
$base-line-height: 24px !default;
|
19
19
|
|
20
|
-
//
|
20
|
+
// The length unit in which to output vertical rhythm values.
|
21
|
+
// Supported values: px, em, rem.
|
22
|
+
$rhythm-unit: 'em' !default;
|
21
23
|
|
22
|
-
|
23
|
-
$legacy-support-for-ie6: false !default;
|
24
|
+
// This variable is a copy of the one used in Compass' support module.
|
24
25
|
|
25
|
-
//
|
26
|
-
|
26
|
+
// Optional map of minimum browser versions to support. For example, to
|
27
|
+
// remove support for IE 7 and earlier, set $browser-minimum-versions['ie']
|
28
|
+
// to '8'.
|
29
|
+
$browser-minimum-versions: (
|
30
|
+
'chrome': null,
|
31
|
+
'firefox': null,
|
32
|
+
'ie': null,
|
33
|
+
'safari': null,
|
34
|
+
'opera': null
|
35
|
+
) !default;
|
27
36
|
|
28
37
|
|
29
38
|
// Set this to true to force CSS output to exactly match normalize.css.
|
@@ -49,6 +58,27 @@ $indent-amount: 40px !default;
|
|
49
58
|
@import "compass/typography/vertical_rhythm";
|
50
59
|
|
51
60
|
|
61
|
+
// To work around a bug in Compass 1.0.0-alpha.17, we override Compass'
|
62
|
+
// support-legacy-browser() function with a version of our own.
|
63
|
+
// @TODO Remove this monkey patch after it's fixed in Compass.
|
64
|
+
// @see https://github.com/chriseppstein/compass/pull/1524
|
65
|
+
@function support-legacy-browser($browser, $min-version, $max-version: null, $threshold: $critical-usage-threshold) {
|
66
|
+
@if not index($supported-browsers, $browser) {
|
67
|
+
@return false;
|
68
|
+
}
|
69
|
+
// Check against declared minimums.
|
70
|
+
$min-required-version: map-get($browser-minimum-versions, $browser);
|
71
|
+
@if $min-required-version {
|
72
|
+
@return compare-browser-versions($browser, $max-version or $min-version, $min-required-version) >= 0;
|
73
|
+
} @else {
|
74
|
+
// Check against usage stats.
|
75
|
+
$usage: if($max-version,
|
76
|
+
omitted-usage($browser, $min-version, $max-version),
|
77
|
+
omitted-usage($browser, $min-version));
|
78
|
+
@return $usage > $threshold;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
52
82
|
/* ==========================================================================
|
53
83
|
HTML5 display definitions
|
54
84
|
========================================================================== */
|
@@ -80,7 +110,7 @@ audio,
|
|
80
110
|
canvas,
|
81
111
|
video {
|
82
112
|
display: inline-block;
|
83
|
-
@if
|
113
|
+
@if support-legacy-browser(ie, "7") {
|
84
114
|
*display: inline;
|
85
115
|
*zoom: 1;
|
86
116
|
}
|
@@ -110,29 +140,31 @@ template {
|
|
110
140
|
Base
|
111
141
|
========================================================================== */
|
112
142
|
|
143
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
144
|
+
/**
|
145
|
+
* Establish a vertical rhythm unit using $base-font-size, $base-line-height,
|
146
|
+
* and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
|
147
|
+
* body `font-size` is set using `em` units.
|
148
|
+
*/
|
149
|
+
|
150
|
+
@include establish-baseline();
|
151
|
+
}
|
152
|
+
|
113
153
|
/**
|
114
154
|
* 1. Set default font family to sans-serif.
|
115
155
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
116
156
|
* user zoom.
|
117
|
-
* 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
118
|
-
* `em` units.
|
119
157
|
*/
|
120
158
|
|
121
159
|
html {
|
122
160
|
font-family: $base-font-family; /* 1 */
|
123
|
-
@if not $strict-normalize or $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
124
|
-
font-size: 100% * ($base-font-size / 16px); /* 3 */
|
125
|
-
}
|
126
161
|
-ms-text-size-adjust: 100%; /* 2 */
|
127
162
|
-webkit-text-size-adjust: 100%; /* 2 */
|
128
|
-
|
129
|
-
@
|
130
|
-
/* Establish a vertical rhythm unit using $base-line-height. */
|
131
|
-
@include adjust-leading-to(1);
|
132
|
-
}
|
163
|
+
// Show a background image that can be used to debug your alignments.
|
164
|
+
// @include debug-vertical-alignment();
|
133
165
|
}
|
134
166
|
|
135
|
-
@if
|
167
|
+
@if support-legacy-browser(ie, "7") {
|
136
168
|
/**
|
137
169
|
* Address `font-family` inconsistency between `textarea` and other form
|
138
170
|
* elements.
|
@@ -187,7 +219,7 @@ a:hover {
|
|
187
219
|
Typography
|
188
220
|
========================================================================== */
|
189
221
|
|
190
|
-
@if not $strict-normalize or
|
222
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
191
223
|
/**
|
192
224
|
* Set 1 unit of vertical rhythm on the top and bottom margin.
|
193
225
|
*/
|
@@ -210,11 +242,11 @@ a:hover {
|
|
210
242
|
|
211
243
|
h1 {
|
212
244
|
/* Set the font-size and line-height while keeping a proper vertical rhythm. */
|
213
|
-
@if not $strict-normalize or
|
245
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
214
246
|
@include adjust-font-size-to( $h1-font-size );
|
215
247
|
}
|
216
248
|
@else {
|
217
|
-
font-size:
|
249
|
+
font-size: if($rhythm-unit == "px", $h1-font-size, ($h1-font-size / $base-font-size)#{$rhythm-unit});
|
218
250
|
}
|
219
251
|
|
220
252
|
/* Set 1 unit of vertical rhythm on the top and bottom margins. */
|
@@ -222,7 +254,7 @@ h1 {
|
|
222
254
|
@include trailer(1, $h1-font-size);
|
223
255
|
}
|
224
256
|
|
225
|
-
@if not $strict-normalize or
|
257
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
226
258
|
h2 {
|
227
259
|
@include adjust-font-size-to( $h2-font-size );
|
228
260
|
@include leader(1, $h2-font-size);
|
@@ -306,7 +338,7 @@ kbd,
|
|
306
338
|
pre,
|
307
339
|
samp {
|
308
340
|
font-family: monospace, serif;
|
309
|
-
@if
|
341
|
+
@if support-legacy-browser(ie, "6") {
|
310
342
|
_font-family: 'courier new', monospace;
|
311
343
|
}
|
312
344
|
font-size: 1em;
|
@@ -317,7 +349,7 @@ samp {
|
|
317
349
|
*/
|
318
350
|
|
319
351
|
pre {
|
320
|
-
@if
|
352
|
+
@if support-legacy-browser(ie, "7") {
|
321
353
|
white-space: pre;
|
322
354
|
white-space: pre-wrap;
|
323
355
|
word-wrap: break-word;
|
@@ -367,7 +399,7 @@ sub {
|
|
367
399
|
Lists
|
368
400
|
========================================================================== */
|
369
401
|
|
370
|
-
@if not $strict-normalize or
|
402
|
+
@if not $strict-normalize or support-legacy-browser(ie, "7") {
|
371
403
|
/**
|
372
404
|
* Address margins set differently in IE 6/7.
|
373
405
|
*/
|
@@ -404,7 +436,7 @@ sub {
|
|
404
436
|
}
|
405
437
|
}
|
406
438
|
|
407
|
-
@if
|
439
|
+
@if support-legacy-browser(ie, "7") {
|
408
440
|
/**
|
409
441
|
* Correct list images handled incorrectly in IE 7.
|
410
442
|
*/
|
@@ -426,7 +458,7 @@ sub {
|
|
426
458
|
|
427
459
|
img {
|
428
460
|
border: 0;
|
429
|
-
@if
|
461
|
+
@if support-legacy-browser(ie, "7") {
|
430
462
|
/* Improve image quality when scaled in IE 7. */
|
431
463
|
-ms-interpolation-mode: bicubic;
|
432
464
|
}
|
@@ -456,7 +488,7 @@ figure {
|
|
456
488
|
Forms
|
457
489
|
========================================================================== */
|
458
490
|
|
459
|
-
@if
|
491
|
+
@if support-legacy-browser(ie, "7") {
|
460
492
|
/**
|
461
493
|
* Correct margin displayed oddly in IE 6/7.
|
462
494
|
*/
|
@@ -489,7 +521,7 @@ fieldset {
|
|
489
521
|
legend {
|
490
522
|
border: 0; /* 1 */
|
491
523
|
padding: 0; /* 2 */
|
492
|
-
@if
|
524
|
+
@if support-legacy-browser(ie, "7") {
|
493
525
|
*margin-left: -7px; /* 3 */
|
494
526
|
}
|
495
527
|
}
|
@@ -508,7 +540,7 @@ textarea {
|
|
508
540
|
font-family: inherit; /* 1 */
|
509
541
|
font-size: 100%; /* 2 */
|
510
542
|
margin: 0; /* 3 */
|
511
|
-
@if
|
543
|
+
@if support-legacy-browser(ie, "7") {
|
512
544
|
vertical-align: baseline; /* 4 */
|
513
545
|
*vertical-align: middle; /* 4 */
|
514
546
|
}
|
@@ -552,7 +584,7 @@ input[type="reset"],
|
|
552
584
|
input[type="submit"] {
|
553
585
|
-webkit-appearance: button; /* 2 */
|
554
586
|
cursor: pointer; /* 3 */
|
555
|
-
@if
|
587
|
+
@if support-legacy-browser(ie, "7") {
|
556
588
|
*overflow: visible; /* 4 */
|
557
589
|
}
|
558
590
|
}
|
@@ -577,7 +609,7 @@ input[type="checkbox"],
|
|
577
609
|
input[type="radio"] {
|
578
610
|
@include box-sizing(border-box); /* 1 */
|
579
611
|
padding: 0; /* 2 */
|
580
|
-
@if
|
612
|
+
@if support-legacy-browser(ie, "7") {
|
581
613
|
*height: 13px; /* 3 */
|
582
614
|
*width: 13px; /* 3 */
|
583
615
|
}
|
data/bower.json
CHANGED
data/component.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "normalize-scss",
|
3
3
|
"repo": "JohnAlbin/normalize.css-with-sass-or-compass",
|
4
4
|
"description": "A Sass/Compass version of Normalize.css.",
|
5
|
-
"version": "
|
5
|
+
"version": "3.0.0-alpha.1+normalize.2.1.3",
|
6
6
|
"styles": ["_normalize.scss"],
|
7
7
|
"author": ["Nicolas Gallagher", "John Albin Wilkins"],
|
8
8
|
"license": "GPLv2"
|
data/normalize-scss.gemspec
CHANGED
@@ -9,15 +9,15 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.homepage = 'https://github.com/JohnAlbin/normalize.css-with-sass-or-compass'
|
10
10
|
s.rubyforge_project =
|
11
11
|
|
12
|
-
s.version = '
|
13
|
-
s.date = '2014-01-
|
12
|
+
s.version = '3.0.0.alpha.1'
|
13
|
+
s.date = '2014-01-21'
|
14
14
|
s.licenses = ['GPL-2']
|
15
15
|
|
16
16
|
s.authors = ['John Albin Wilkins']
|
17
17
|
s.email = 'virtually.johnalbin@gmail.com'
|
18
18
|
|
19
|
-
s.add_runtime_dependency('sass',
|
20
|
-
s.add_runtime_dependency('compass', "
|
19
|
+
s.add_runtime_dependency('sass', ">= 3.3.0-rc.1")
|
20
|
+
s.add_runtime_dependency('compass', ">= 1.0.0.alpha.13")
|
21
21
|
|
22
22
|
s.files = %w[
|
23
23
|
_normalize.scss
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: normalize-scss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Albin Wilkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.3.0.pre.rc.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.3.0.pre.rc.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: compass
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0.alpha.13
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.0.alpha.13
|
41
41
|
description: A Sass/Compass version of Normalize.css. This port tracks the parent
|
42
42
|
project very closely.
|
43
43
|
email: virtually.johnalbin@gmail.com
|
@@ -70,11 +70,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '
|
73
|
+
- - '>'
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.3.1
|
76
76
|
requirements: []
|
77
|
-
rubyforge_project:
|
77
|
+
rubyforge_project: 3.0.0.alpha.1
|
78
78
|
rubygems_version: 2.2.0
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|