singularitygs 1.2.0.rc.3 → 1.2.0.rc.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00c23e3ffa12bb3c8783bc67c2e79acd890951b4
4
- data.tar.gz: 11edba64b464ecbefc234a68710b1540816930fd
3
+ metadata.gz: d706c056c5556341bea512d9cb6210fa4db3b592
4
+ data.tar.gz: d08c1570e84c7a0c942f62a95d4d32c64f17c92d
5
5
  SHA512:
6
- metadata.gz: 0dc401fa4e10888829f3a0d3a6763467ace375ef87a0e01fcd519ff3ce2e6d8b19ab1c2bb96eb94a0e9c95ce1ea68f4f0bcb8b4535e9368f3e0259263944cb1d
7
- data.tar.gz: 26522cd21b16a6d48b4f5093e4bf135644e52878ee04e8691ecb4e6e3b883f0f00f97c653367d88b9a313cb72be0b0ed5dcf43462b2098ae7918414c3f3688b2
6
+ metadata.gz: 7b7c3f9da4cc708a01af3f1fb936323964b1b55506392adca98e81cee554b409e8100ed8e1342f06280a81028234c5e6953175c8d5ed7023e79f694eb6379c67
7
+ data.tar.gz: 37e53f2d01555c72effd9b59aa14e73d1744adf30593c6be406b762ec71b7e85996b1a672421450b1d3ca5ab666917ff58b5e4d50c811ac9cc25588a5ad47901
data/lib/singularitygs.rb CHANGED
@@ -4,6 +4,6 @@ require 'breakpoint'
4
4
  Compass::Frameworks.register("singularitygs", :path => "#{File.dirname(__FILE__)}/..")
5
5
 
6
6
  module SingularityGS
7
- VERSION = "1.2.0.rc.3"
8
- DATE = "2014-01-17"
7
+ VERSION = "1.2.0.rc.6"
8
+ DATE = "2014-02-11"
9
9
  end
@@ -9,7 +9,10 @@ $Singularity-Settings: (
9
9
  'direction': 'ltr',
10
10
  'mobile first': true,
11
11
  'include border box': false,
12
- 'include clearfix': false
12
+ 'include clearfix': false,
13
+ 'background grid color': chocolate,
14
+ 'asymmetric output': 'isolation',
15
+ 'debug': false
13
16
  );
14
17
 
15
18
  //////////////////////////////
@@ -45,6 +45,10 @@
45
45
  'options': $options
46
46
  );
47
47
 
48
+ @if sgs-get('debug') != false {
49
+ -sgs-span-settings: inspect($Span-Map);
50
+ }
51
+
48
52
 
49
53
  @if function-exists('output-#{$output-style}') {
50
54
  $Left: ();
@@ -114,3 +114,22 @@
114
114
  $Options: if(length($Options) > 0, $Options, null);
115
115
  @include grid-span($Span, $Location, $grid, $gutter, 'isolation', $gutter-style, $Options);
116
116
  }
117
+
118
+ //////////////////////////////
119
+ // Happy Syntax of Asymmetric Grids
120
+ //
121
+ // Makes working with asymmetric grids easier!
122
+ //////////////////////////////
123
+ @mixin asymmetric-span($Location, $Span: false, $grid: false, $gutter: false, $gutter-style: false, $from: false, $output-style: false) {
124
+
125
+ $Span: if($Span != false, $Span, 1);
126
+ $output-style: if($output-style != false, $output-style, sgs-get('asymmetric output'));
127
+
128
+ $Options: ();
129
+ @if $from {
130
+ $Options: map-merge($Options, ('from': $from));
131
+ }
132
+ $Options: if(length($Options) > 0, $Options, null);
133
+
134
+ @include grid-span($Span, $Location, $grid, $gutter, $output-style, $gutter-style, $Options);
135
+ }
@@ -32,14 +32,6 @@
32
32
  //
33
33
  // Note: Sub-pixel rounding can lead to several pixels of variation between browsers.
34
34
 
35
-
36
- // -----------------------------------------------
37
-
38
- // -----------------------------------------------
39
- // Grid Overlay
40
- $background-grid-color: Chocolate !default;
41
- $show-grid-backgrounds: true !default;
42
-
43
35
  // -----------------------------------------------
44
36
  // Grid Background
45
37
 
@@ -47,10 +39,12 @@ $show-grid-backgrounds: true !default;
47
39
  $columns: null,
48
40
  $gutter: null,
49
41
  $gutter-style: null,
50
- $color: $background-grid-color
42
+ $color: null
51
43
  ) {
52
44
 
53
- @if $show-grid-backgrounds {
45
+ $color: if($color != null, $color, sgs-get('background grid color'));
46
+
47
+ @if sgs-get('debug') != false {
54
48
  $columns: if($columns != null, $columns, sgs-get('grids'));
55
49
  $gutter: if($gutter != null, $gutter, sgs-get('gutters'));
56
50
  $gutter-style: if($gutter-style != null, $gutter-style, sgs-get('gutter styles'));
@@ -68,7 +68,7 @@ $DEPRECATE:singularity-deprecation-warning();
68
68
  // Set Settings
69
69
  //////////////////////////////
70
70
  @function sgs-set($setting, $value) {
71
- @if (str-index($setting, '-') > 0 or str-index($setting, '_') > 0) and str-index($setting, ' ') == 0 {
71
+ @if (str-index($setting, '-') or str-index($setting, '_')) and str-index($setting, ' ') == null {
72
72
  @warn "Words in Singularity settings should be spaces, not dashes or underscores. Please replace dashes and underscores between words with spaces. Settings will not work as expected until changed.";
73
73
  }
74
74
  $singularity: map-merge($singularity, ($setting: $value)) !global;
@@ -2,7 +2,6 @@
2
2
  // Find width, in percentages, of the column span
3
3
  //////////////////////////////
4
4
  @function column-span($span, $location, $grid: null, $gutter: null, $gutter-style: null) {
5
-
6
5
  // Find the grid and gutters
7
6
  $grid: find-grid($grid);
8
7
  $gutter: find-gutter($gutter);
@@ -36,8 +35,10 @@
36
35
  }
37
36
  @else {
38
37
  $total: $location + $span - 1;
39
- @for $i from $location through $total {
40
- $span-and-gutters: $span-and-gutters + nth($grid, $i) + $gutter;
38
+ @if $total != 0 {
39
+ @for $i from $location through $total {
40
+ $span-and-gutters: $span-and-gutters + nth($grid, $i) + $gutter;
41
+ }
41
42
  }
42
43
  }
43
44
  $span-and-gutters: $span-and-gutters - $gutter;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singularitygs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc.3
4
+ version: 1.2.0.rc.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Kellum
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-17 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: breakpoint
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: 2.4.0
48
+ version: '2.4'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 2.4.0
55
+ version: '2.4'
56
56
  description: Advanced responsive grid system for Sass and Compass
57
57
  email:
58
58
  - scott@scottkellum.com