singularitygs 1.2.0.rc.1 → 1.2.0.rc.3

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: 77de76920fd546a70587ae4aa397b9e4592a331d
4
- data.tar.gz: 267fa655d9d5556402e516b5195ae54450943a83
3
+ metadata.gz: 00c23e3ffa12bb3c8783bc67c2e79acd890951b4
4
+ data.tar.gz: 11edba64b464ecbefc234a68710b1540816930fd
5
5
  SHA512:
6
- metadata.gz: 6dca4e176cba9e91ad1b01a4ccd7195a9338bbcc87efdedcc90bb106219e92d5b30beb58a79d555e0a2ce4eb10897f7003e1a1a3d72f559608ece8101cb74d8e
7
- data.tar.gz: 14f8bee9514d0277946e55ef883f7fa8e0b28d4992678ee2cfda8cb459555cbaadc58019f0e2000a1ea4c1a779d4c1b6cb375144bbdc78b0876e35cf52a1287e
6
+ metadata.gz: 0dc401fa4e10888829f3a0d3a6763467ace375ef87a0e01fcd519ff3ce2e6d8b19ab1c2bb96eb94a0e9c95ce1ea68f4f0bcb8b4535e9368f3e0259263944cb1d
7
+ data.tar.gz: 26522cd21b16a6d48b4f5093e4bf135644e52878ee04e8691ecb4e6e3b883f0f00f97c653367d88b9a313cb72be0b0ed5dcf43462b2098ae7918414c3f3688b2
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.1"
8
- DATE = "2014-01-12"
7
+ VERSION = "1.2.0.rc.3"
8
+ DATE = "2014-01-17"
9
9
  end
@@ -71,29 +71,43 @@
71
71
  }
72
72
 
73
73
  // Always try and print the Left value
74
- @each $property, $value in $Left {
75
- #{$property}: $value;
76
- }
74
+ @include grid-span-build-exclude($Left, $Exclude, false);
77
75
 
78
76
  // If Direction is Both or RTL, add the RTL attribute selector
79
77
  @if $Direction == 'both' or $Direction == 'rtl' {
80
78
  [dir="rtl"] & {
81
- @each $property, $value in $Right {
82
- @if not index($Exclude, $property) {
83
- #{$property}: $value;
84
- }
85
- }
79
+ @include grid-span-build-exclude($Right, $Exclude, true);
86
80
  }
87
81
  }
88
82
  @else {
89
- @each $property, $value in $Right {
90
- @if not index($Exclude, $property) {
91
- #{$property}: $value;
92
- }
93
- }
83
+ @include grid-span-build-exclude($Right, $Exclude, true);
94
84
  }
95
85
  }
96
86
  @else {
97
87
  @warn "There doesn't appear to be an output style named `#{$output-style}`. Please ensure that the function `output-#{$output-style}` and that the output style `#{$output-style}` are both available before trying to use them.";
98
88
  }
89
+ }
90
+
91
+ @mixin grid-span-build($property, $value) {
92
+ @if type-of($value) != 'map' {
93
+ #{$property}: $value;
94
+ }
95
+ @else {
96
+ @each $prefix, $val in $value {
97
+ #{$property}: $val;
98
+ }
99
+ }
100
+ }
101
+
102
+ @mixin grid-span-build-exclude($properties, $delta, $exclude: false) {
103
+ @each $property, $value in $properties {
104
+ @if $exclude {
105
+ @if not index($delta, $property) {
106
+ @include grid-span-build($property, $value);
107
+ }
108
+ }
109
+ @else {
110
+ @include grid-span-build($property, $value);
111
+ }
112
+ }
99
113
  }
@@ -68,8 +68,8 @@ $DEPRECATE:singularity-deprecation-warning();
68
68
  // Set Settings
69
69
  //////////////////////////////
70
70
  @function sgs-set($setting, $value) {
71
- @if str-index($setting, '-') > 0 {
72
- @warn "Singularity settings should contain spaces, not dashes. Please replace dashes with spaces. Settings will not work as expected until changed.";
71
+ @if (str-index($setting, '-') > 0 or str-index($setting, '_') > 0) and str-index($setting, ' ') == 0 {
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;
75
75
  @return true;
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.1
4
+ version: 1.2.0.rc.3
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-12 00:00:00.000000000 Z
12
+ date: 2014-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass