normalize-scss 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/normalize-scss.gemspec +2 -2
- data/package.json +3 -2
- data/sass/normalize/_vertical-rhythm.scss +16 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23054a29244f0a815cdc528f52208ed639b47fa4
|
4
|
+
data.tar.gz: 730711abe3a3d64f94405e4212661db3c2dc3843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 846203ad31e6b8ab3a48b667f26239b3139aeb3bf4fff5ffe08bec07f611ef1c1870d01f03fe2dfdaba7c313c73559611abe51effb3278a553e5532fff02677f
|
7
|
+
data.tar.gz: 5c2621a06b5f32eee71722a8c6ffa075fe2eaf41c832187572f2ae836b059e57d72fd422a2ac0904c15ab42aed32adbe990453fd8d0d0c367a6873da84c3aa2c
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
For use with… | normalize-scss version
|
6
6
|
-----------------------------|-----------------------
|
7
|
-
Sass 3.4 or libSass | [4.0.
|
7
|
+
Sass 3.4 or libSass | [4.0.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/4.0.3)<br> combining normalize.css v3.0.3 with v1.1.3
|
8
8
|
Ruby Sass 3.3 + Compass 1.0 | [3.0.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/3.0.3)<br> combining normalize.css v3.0.3 with v1.1.3
|
9
9
|
Ruby Sass 3.2 + Compass 0.12 | [2.2.0+normalize.2.1.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/2.2.0%2Bnormalize.2.1.3)<br> combining normalize.css v2.1.3 with v1.1.3
|
10
10
|
|
data/normalize-scss.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.homepage = 'https://github.com/JohnAlbin/normalize-scss'
|
10
10
|
spec.rubyforge_project =
|
11
11
|
|
12
|
-
spec.version = '4.0.
|
13
|
-
spec.date = '2015-11-
|
12
|
+
spec.version = '4.0.3'
|
13
|
+
spec.date = '2015-11-29'
|
14
14
|
spec.licenses = ['GPL-2']
|
15
15
|
|
16
16
|
spec.authors = ['John Albin Wilkins']
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "normalize-scss",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.3",
|
4
4
|
"description": "This is the Sass version of Normalize.css, a collection of HTML element and attribute rulesets to normalize styles across all browsers. This port aims to use a light dusting of Sass to make Normalize even easier to integrate with your website.",
|
5
5
|
"homepage": "https://github.com/JohnAlbin/normalize-scss",
|
6
6
|
"bugs": {
|
@@ -40,6 +40,7 @@
|
|
40
40
|
"chroma-sass": "^1.1.2",
|
41
41
|
"eslint": "^1.9.0",
|
42
42
|
"mocha": "^2.3.4",
|
43
|
-
"sassy-test": "^2.0.0"
|
43
|
+
"sassy-test": "^2.0.0",
|
44
|
+
"typey": "^1.0.0-beta.8"
|
44
45
|
}
|
45
46
|
}
|
@@ -5,17 +5,17 @@
|
|
5
5
|
// CSS. If you are looking for a robust solution, look at the excellent Typey
|
6
6
|
// library. @see https://github.com/jptaranto/typey
|
7
7
|
|
8
|
-
@function normalize-rhythm($value, $relative-to: $base-font-size) {
|
9
|
-
@if unit($value) !=
|
8
|
+
@function normalize-rhythm($value, $relative-to: $base-font-size, $unit: $base-unit) {
|
9
|
+
@if unit($value) != px {
|
10
10
|
@error "The normalize vertical-rhythm module only supports px inputs. The typey library is better.";
|
11
11
|
}
|
12
|
-
@if $
|
12
|
+
@if $unit == rem {
|
13
13
|
@return ($value / $base-font-size) * 1rem;
|
14
14
|
}
|
15
|
-
@else if $
|
15
|
+
@else if $unit == em {
|
16
16
|
@return ($value / $relative-to) * 1em;
|
17
17
|
}
|
18
|
-
@else { // $
|
18
|
+
@else { // $unit == px
|
19
19
|
@return $value;
|
20
20
|
}
|
21
21
|
}
|
@@ -33,20 +33,26 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
@mixin normalize-rhythm($property, $values, $relative-to: $base-font-size) {
|
36
|
+
$value-list: $values;
|
37
|
+
$sep: space;
|
36
38
|
@if type-of($values) == 'list' {
|
37
|
-
$
|
39
|
+
$sep: list-separator($values);
|
38
40
|
}
|
39
41
|
@else {
|
40
|
-
$
|
42
|
+
$value-list: append((), $values);
|
41
43
|
}
|
42
|
-
|
44
|
+
|
43
45
|
$normalized-values: ();
|
46
|
+
$px-fallback: ();
|
44
47
|
|
45
|
-
@each $value in $
|
48
|
+
@each $value in $value-list {
|
49
|
+
$px-value: $value;
|
46
50
|
@if unitless($value) and $value != 0 {
|
47
51
|
$value: $value * normalize-rhythm($base-line-height, $relative-to);
|
52
|
+
$px-value: $px-value * normalize-rhythm($base-line-height, $relative-to, px);
|
48
53
|
}
|
49
|
-
$normalized-values: append($normalized-values, $value);
|
54
|
+
$normalized-values: append($normalized-values, $value, $sep);
|
55
|
+
$px-fallback: append($px-fallback, $px-value, $sep);
|
50
56
|
}
|
51
57
|
@if $base-unit == rem and support-for(ie, 8) {
|
52
58
|
#{$property}: $px-fallback;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: normalize-scss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
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: 2015-11-
|
11
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
|
-
rubyforge_project: 4.0.
|
82
|
+
rubyforge_project: 4.0.3
|
83
83
|
rubygems_version: 2.4.8
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|