compass-excess 0.5.2 → 0.5.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: b7313c8ed6c72be629973d8af04ccaad229f96e9
4
- data.tar.gz: 6b88359fec942a719f11fd1d21f0208c0b82715d
3
+ metadata.gz: 0ce838eb9dbb32fd78ff8ea27a94b32266fa7a79
4
+ data.tar.gz: 32237037b01bebfa4da2fb7130da991dc6913413
5
5
  SHA512:
6
- metadata.gz: 9b244fa299b992eb65e2f6c30c2c420a85963890448f7e2df50e46b2c4fc7fd565c3db2f5c38f1009faab8956d6b73ac305e93413adeea06616ce942c2b736bc
7
- data.tar.gz: 81970ee8700260bed08f9d253396aa1439e3174e3c88e79e5f071ec2a8a2bd05a19b9f2805f5dccc3eaccc3ae08fe70e43a2b238e2ab0f70fa32f73bb5a60c30
6
+ metadata.gz: 4e3e1c172a88cecb36aa2c3daf521d0b761b746af37c5095262ae84c827fe8662164b413747ed2881d77d4dcfde5f463348005b6296ba02c30d7ee019a3e01da
7
+ data.tar.gz: 1f60b7fb805cc31affe45123dbfb583d456d656e2f51691f8e84b34081b620ff0741e3f8977d053839b77eef77ceddbc52544e76d3cc269e6f0b2772f1f3f061
@@ -1,5 +1,5 @@
1
1
  module Compass
2
2
  module Excess
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
5
5
  end
@@ -42,15 +42,21 @@ $line-height-modifiers: (
42
42
  $background-color,
43
43
  $line-height,
44
44
  $line-width,
45
- $line-offset: 0px,
45
+ $line-offset: 0,
46
46
  $platform: default
47
47
  ) {
48
- $line-width: $line-width / 1px;
49
- $line-offset: $line-offset / 1px;
48
+
49
+ @if not unitless($line-width) {
50
+ $line-width: $line-width / 1px;
51
+ }
52
+
53
+ @if not unitless($line-offset) {
54
+ $line-offset: $line-offset / 1px;
55
+ }
56
+
50
57
  $line-height: $line-height * map-get($line-height-modifiers, $platform);
51
58
 
52
59
  @if $line-offset == 0 {
53
- @debug $line-width;
54
60
  $color-stop: percentage(1 - ($line-width / ($line-height * 10)));
55
61
  @include background-image(
56
62
  linear-gradient(
@@ -118,7 +124,7 @@ $line-height-modifiers: (
118
124
  $line-height: 1.8,
119
125
  $stroke-width: 2px,
120
126
  $line-width: 1,
121
- $line-offset: 0px
127
+ $line-offset: 0
122
128
  ) {
123
129
  @include text-underline-line-height($line-height);
124
130
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-excess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Darlow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-17 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass