ionica 0.4.2 → 0.4.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: b8cb348f731f4bca85a9b2150ee40032417852e0
4
- data.tar.gz: 1e66d115370dbe5fa8f56e4b6172b48fbb23df98
3
+ metadata.gz: ab7045cc29f602c0d06cdaadac59c3dbbdbcae19
4
+ data.tar.gz: 2930cbef679d23d7bc2939164e3de4ba511847ad
5
5
  SHA512:
6
- metadata.gz: 9e86cbbc4d43608f3fe9cd5cfa40d47c5ba8a5e4d10816995b0bb3f5c04d688bb5aa3a5b3c95bb7e0737484a9ea12ca65428e7f38c25a7466ab7a584ed86c49d
7
- data.tar.gz: acedfcb5aeff0a46ada8c16cac6d64bd2e566714c84ee2df841395985d9d262567ee38bf254db437946094242183d9e9e2e93bf64a0982e7761217c6f3f8a0a9
6
+ metadata.gz: 838d6b9e37f005b7fed5ead27f90dc396b21f21d55e81c3cd745718659ad8575096779521162997e19e83ce3dbdf65416a58c7a0cc6e2f5f4182538398f2f85d
7
+ data.tar.gz: f566d9811cfbfc1cef8e8c779a671cc4d098fab8ba7b2628c00c3133ace165ece8fe7ef1f11d699becb49f88cee8e95e59fd55f307742d15c0560345b107deb3
@@ -80,6 +80,11 @@
80
80
  @error "First argument of a column has to be a list, number or a string"
81
81
  @return 0
82
82
 
83
+ @function guard-against-zero($value, $default: 1)
84
+ @if $value == 0
85
+ @return $default
86
+ @return $value
87
+
83
88
  $DEFAULT_RESOLUTION: 768
84
89
  $DEFAULT_IDENTIFIER: "amplify-ionica-grid-default-identifier"
85
90
  $DEFAULT_CLASSNAME: "amplify-ionica-grid-default-classname"
@@ -327,10 +332,10 @@ $DEFAULT_CLASSNAME: "amplify-ionica-grid-default-classname"
327
332
 
328
333
  @mixin remove-this-dynamic-column($column_weight, $total_grid_weight, $offset, $resolution, $orientation, $grid)
329
334
  @if $offset < $total_grid_weight / 2
330
- $distance: -100% - ($offset/$column_weight) * 101%
335
+ $distance: -100% - ($offset/guard-against-zero($column_weight)) * 101%
331
336
  @include offscreen-left($distance, $resolution, $orientation, percentage-column($column_weight, $total_grid_weight), $grid)
332
337
  @else
333
- $distance: ($total_grid_weight - $offset)/$column_weight * 101%
338
+ $distance: ($total_grid_weight - $offset)/guard-against-zero($column_weight) * 101%
334
339
  @include offscreen-right($distance, $resolution, $orientation, percentage-column($column_weight, $total_grid_weight), $grid)
335
340
 
336
341
  @mixin remove-this-static-column($column_width, $resolution, $orientation, $index, $grid)
@@ -1,4 +1,4 @@
1
1
  module Ionica
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ionica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomislav Pesut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-29 00:00:00.000000000 Z
12
+ date: 2015-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties