singularity-extras 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/singularity-extras.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 0.0.
|
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-
|
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
|