ionica 0.4.1 → 0.4.2
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 +18 -15
- 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: b8cb348f731f4bca85a9b2150ee40032417852e0
|
4
|
+
data.tar.gz: 1e66d115370dbe5fa8f56e4b6172b48fbb23df98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e86cbbc4d43608f3fe9cd5cfa40d47c5ba8a5e4d10816995b0bb3f5c04d688bb5aa3a5b3c95bb7e0737484a9ea12ca65428e7f38c25a7466ab7a584ed86c49d
|
7
|
+
data.tar.gz: acedfcb5aeff0a46ada8c16cac6d64bd2e566714c84ee2df841395985d9d262567ee38bf254db437946094242183d9e9e2e93bf64a0982e7761217c6f3f8a0a9
|
@@ -1,3 +1,4 @@
|
|
1
|
+
// Ionica - Lightweight responsive grid
|
1
2
|
@function _length($number, $unit)
|
2
3
|
$strings: 'px' 'cm' 'mm' '%' 'ch' 'pica' 'in' 'em' 'rem' 'pt' 'pc' 'ex' 'vw' 'vh' 'vmin' 'vmax'
|
3
4
|
$units: 1px 1cm 1mm 1% 1ch 1pica 1in 1em 1rem 1pt 1pc 1ex 1vw 1vh 1vmin 1vmax
|
@@ -54,36 +55,38 @@
|
|
54
55
|
$result: $result + $number
|
55
56
|
|
56
57
|
@return if($minus, $result * -1, $result)
|
57
|
-
|
58
58
|
@function map-length($map)
|
59
59
|
@return length(map-keys($map))
|
60
60
|
|
61
|
+
@function to-percent($number)
|
62
|
+
@return $number * 1%
|
63
|
+
|
61
64
|
@function percentage-column($size, $number_of_columns)
|
62
65
|
@return to-percent($size * (100 / $number_of_columns))
|
63
66
|
|
64
67
|
@function decimal-column($size, $number_of_columns)
|
65
68
|
@return $size / $number_of_columns
|
66
69
|
|
67
|
-
@function to-percent($number)
|
68
|
-
@return $number * 1%
|
69
|
-
|
70
70
|
@function column-has-weight($column)
|
71
71
|
@return type-of($column) == number or (type-of($column) == list and type-of(nth($column, 1)) == number)
|
72
72
|
|
73
73
|
@function column-has-width($column)
|
74
74
|
@return type-of($column) == string
|
75
75
|
|
76
|
+
@function is-last-column($column_index, $grid)
|
77
|
+
@return $column_index == map-get($grid, num_columns)
|
78
|
+
|
76
79
|
@function throw-invalid-weight-argument-error()
|
77
80
|
@error "First argument of a column has to be a list, number or a string"
|
78
81
|
@return 0
|
79
82
|
|
80
|
-
@function is-last-column($column_index, $grid)
|
81
|
-
@return $column_index == map-get($grid, num_columns)
|
82
|
-
|
83
83
|
$DEFAULT_RESOLUTION: 768
|
84
84
|
$DEFAULT_IDENTIFIER: "amplify-ionica-grid-default-identifier"
|
85
85
|
$DEFAULT_CLASSNAME: "amplify-ionica-grid-default-classname"
|
86
86
|
|
87
|
+
@function translate-position($x: 0, $y: 0, $z: 1px)
|
88
|
+
@return translate3d(#{$x}, #{$y}, #{$z})
|
89
|
+
|
87
90
|
@mixin grid-column-styles($transition_duration)
|
88
91
|
transition: transform, $transition_duration
|
89
92
|
position: absolute
|
@@ -338,25 +341,25 @@ $DEFAULT_CLASSNAME: "amplify-ionica-grid-default-classname"
|
|
338
341
|
|
339
342
|
@mixin offscreen-left($distance, $resolution, $orientation, $column_width, $grid, $is_static_column: false)
|
340
343
|
@include w-resolution-or-orientation($resolution, $orientation)
|
341
|
-
transform:
|
344
|
+
transform: translate-position($distance)
|
342
345
|
z-index: 0
|
343
346
|
.no-csstransforms3d &
|
344
347
|
left: -#{$column_width}
|
345
348
|
|
346
349
|
&.slide-in
|
347
|
-
transform:
|
350
|
+
transform: translate-position(100%) translate-position($distance)
|
348
351
|
|
349
352
|
@include shift-core-columns($grid, $column_width, "right", $is_static_column)
|
350
353
|
|
351
354
|
@mixin offscreen-right($distance, $resolution, $orientation, $column_width, $grid, $is_static_column: false)
|
352
355
|
@include w-resolution-or-orientation($resolution, $orientation)
|
353
|
-
transform:
|
356
|
+
transform: translate-position($distance)
|
354
357
|
z-index: 0
|
355
358
|
.no-csstransforms3d &
|
356
359
|
left: 100%
|
357
360
|
|
358
361
|
&.slide-in
|
359
|
-
transform:
|
362
|
+
transform: translate-position(-100%) translate-position($distance)
|
360
363
|
|
361
364
|
@include shift-core-columns($grid, $column_width, "left", $is_static_column)
|
362
365
|
|
@@ -381,13 +384,13 @@ $DEFAULT_CLASSNAME: "amplify-ionica-grid-default-classname"
|
|
381
384
|
@if $is_static_column
|
382
385
|
$p: ($padding * ($total_core_weight / $total_weight) / $weight * 1%)
|
383
386
|
@if $direction == "right"
|
384
|
-
transform:
|
387
|
+
transform: translate-position($x_position) translate-position($p)
|
385
388
|
@if $direction == "left"
|
386
|
-
transform:
|
389
|
+
transform: translate-position($x_position)
|
387
390
|
|
388
391
|
@else
|
389
392
|
@if $direction == "right"
|
390
|
-
transform:
|
393
|
+
transform: translate-position($x_position + ($padding * ($total_core_weight / $total_weight) / $weight * 1%))
|
391
394
|
@if $direction == "left"
|
392
|
-
transform:
|
395
|
+
transform: translate-position(-$x_position - ($padding * ($total_core_weight / $total_weight) / $weight * 1%))
|
393
396
|
|
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.2
|
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-
|
12
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|