singularity-extras 0.0.1 → 0.0.2

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.1"
9
+ VERSION = "0.0.2"
10
10
  DATE = "2012-04-04"
11
11
  end
@@ -1,3 +1,4 @@
1
1
  @import "singularity-extras/helpers";
2
2
  @import "singularity-extras/generators";
3
- @import "singularity-extras/output";
3
+ @import "singularity-extras/output";
4
+ @import "singularity-extras/layouts";
@@ -0,0 +1 @@
1
+ @import "layouts/layout";
@@ -32,7 +32,7 @@
32
32
  // add the counter value to the compound grid list, reset counter
33
33
  // this marks where one column ends and a new one begins
34
34
  @if $add-col {
35
- $compound-grid: join($compound-grid, $compound-counter, comma);
35
+ $compound-grid: join($compound-grid, $compound-counter);
36
36
  $compound-counter: 1;
37
37
  }
38
38
  // if no column is added, bump up counter
@@ -6,7 +6,7 @@
6
6
 
7
7
  @for $i from 0 through $steps - 1 {
8
8
  $xr: $x * pow($ratio, $i);
9
- $return: append($return, $xr, comma);
9
+ $return: append($return, $xr);
10
10
  }
11
11
 
12
12
  @if $start == 'small' and $ratio < 1 {
@@ -0,0 +1,28 @@
1
+ //////////////////////////////
2
+ // Wrapper mixin for overriding the global contexts as a block
3
+ //////////////////////////////
4
+ @mixin layout($grid: false, $gutter: false, $output-style: false) {
5
+ // Private holder for current global context
6
+ $layout-private-grid-holder: $grids;
7
+ $layout-private-gutter-holder: $gutters;
8
+ $layout-private-output-holder: $output;
9
+
10
+ // Overides current global contexts, but only if needed
11
+ @if $grid != false {
12
+ $grids: $grid;
13
+ }
14
+ @if $gutter != false {
15
+ $gutters: $gutter;
16
+ }
17
+ @if $output-style != false {
18
+ $output: $output-style;
19
+ }
20
+
21
+ // All the things!
22
+ @content;
23
+
24
+ // Resets global contexts
25
+ $grids: $layout-private-grid-holder;
26
+ $gutters: $layout-private-gutter-holder;
27
+ $output: $layout-private-output-holder;
28
+ }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Kellum
@@ -74,6 +74,7 @@ files:
74
74
  - stylesheets/_singularity-extras.scss
75
75
  - stylesheets/singularity-extras/_generators.scss
76
76
  - stylesheets/singularity-extras/_helpers.scss
77
+ - stylesheets/singularity-extras/_layouts.scss
77
78
  - stylesheets/singularity-extras/_output.scss
78
79
  - stylesheets/singularity-extras/generators/_compound.scss
79
80
  - stylesheets/singularity-extras/generators/_ratio-spiral.scss
@@ -81,6 +82,7 @@ files:
81
82
  - stylesheets/singularity-extras/helpers/_list-sum.scss
82
83
  - stylesheets/singularity-extras/helpers/_repeat.scss
83
84
  - stylesheets/singularity-extras/helpers/_reverse.scss
85
+ - stylesheets/singularity-extras/layouts/_layout.scss
84
86
  has_rdoc: true
85
87
  homepage: http://singularity.gs
86
88
  licenses: []