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 +4 -4
- data/app/assets/stylesheets/ionica.sass +7 -2
- data/lib/ionica/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7045cc29f602c0d06cdaadac59c3dbbdbcae19
|
4
|
+
data.tar.gz: 2930cbef679d23d7bc2939164e3de4ba511847ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
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)
|
data/lib/ionica/version.rb
CHANGED
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.
|
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:
|
12
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|