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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 198600c83041c851ccc5c4c97455b849e2d2018b
4
- data.tar.gz: 12e23c05a21a50fb173eea2fa3c015d43c06893c
3
+ metadata.gz: 23054a29244f0a815cdc528f52208ed639b47fa4
4
+ data.tar.gz: 730711abe3a3d64f94405e4212661db3c2dc3843
5
5
  SHA512:
6
- metadata.gz: 1b5e910fca3c739d8602bc3fbbfbb1192b1059e7a179bdd5ce84549d9d524534b1e26380e973a3f56cd9192ddc7e4516b8cfa35a486499b1b89d2e694f6ab24a
7
- data.tar.gz: b22604bcd523b58851e51ac6432358bd4a6d8e7913a1d28692a614377d37d3282ecd102682662a511eeed1ea8f521726ebb6b902b5bfd22371d5879352f0f27e
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.2](https://github.com/JohnAlbin/normalize-scss/releases/tag/4.0.2)<br> combining normalize.css v3.0.3 with v1.1.3
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
 
@@ -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.2'
13
- spec.date = '2015-11-24'
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.2",
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) != 'px' {
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 $base-unit == rem {
12
+ @if $unit == rem {
13
13
  @return ($value / $base-font-size) * 1rem;
14
14
  }
15
- @else if $base-unit == em {
15
+ @else if $unit == em {
16
16
  @return ($value / $relative-to) * 1em;
17
17
  }
18
- @else { // $base-unit == px
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
- $px-fallback: $values;
39
+ $sep: list-separator($values);
38
40
  }
39
41
  @else {
40
- $px-fallback: append((), $values);
42
+ $value-list: append((), $values);
41
43
  }
42
- $sep: list-separator($px-fallback);
44
+
43
45
  $normalized-values: ();
46
+ $px-fallback: ();
44
47
 
45
- @each $value in $px-fallback {
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.2
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-24 00:00:00.000000000 Z
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.2
82
+ rubyforge_project: 4.0.3
83
83
  rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4