singularity-extras 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,6 @@ require 'sassy-math'
6
6
  Compass::Frameworks.register("singularity-extras", :path => "#{File.dirname(__FILE__)}/..")
7
7
 
8
8
  module SingularityExtras
9
- VERSION = "0.0.2"
10
- DATE = "2012-04-04"
9
+ VERSION = "0.0.3"
10
+ DATE = "2012-04-24"
11
11
  end
@@ -1,3 +1,4 @@
1
1
  @import "generators/compound";
2
2
  @import "generators/ratio";
3
3
  @import "generators/ratio-spiral";
4
+ @import "generators/snap";
@@ -0,0 +1,16 @@
1
+ // "Snaps" an asymmetric grid to a symmetric one by including gutters in the grid definitions
2
+ // Will only work properly with integer asymmetric grids
3
+ @function snap($grid, $gutter) {
4
+ $holder: ();
5
+
6
+ @each $column in $grid {
7
+ $base: $column;
8
+ $gutters: ($base - 1) * $gutter;
9
+
10
+ $total: $base + $gutters;
11
+
12
+ $holder: append($holder, $total, 'space');
13
+ }
14
+
15
+ @return $holder;
16
+ }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Kellum
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-04 00:00:00 -04:00
18
+ date: 2012-04-24 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -79,6 +79,7 @@ files:
79
79
  - stylesheets/singularity-extras/generators/_compound.scss
80
80
  - stylesheets/singularity-extras/generators/_ratio-spiral.scss
81
81
  - stylesheets/singularity-extras/generators/_ratio.scss
82
+ - stylesheets/singularity-extras/generators/_snap.scss
82
83
  - stylesheets/singularity-extras/helpers/_list-sum.scss
83
84
  - stylesheets/singularity-extras/helpers/_repeat.scss
84
85
  - stylesheets/singularity-extras/helpers/_reverse.scss