singularitygs 1.3.0 → 1.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8ed425cf36235e58ab1ee29978fc5b1e97e4beb
4
- data.tar.gz: d2755f5438f669c9e5fabb82c90e787d8720be46
3
+ metadata.gz: abb9b77eb89564812ea18968e3d9845d394843de
4
+ data.tar.gz: 31191e29db09bf70faa60e326e50ef4894ad4ae6
5
5
  SHA512:
6
- metadata.gz: e633e19db9e123599842b1101de98e1c516d043a950cdb7017db0f947eb2b09fdb9a747f254365e7cc71fd55fe108214107278a930d4c678ea19af0980c13585
7
- data.tar.gz: 1a60264828d8383d777693e23a606fa452e7d2cef1f68ec6f138e60597fcb19d3bd72ffa8fd8725d0c0af734dbced0dd1f121a56777c6b8865007adcb9488822
6
+ metadata.gz: 89e8cbecaa1780b586c876573d0780a401b7f527559e966c728444247a0df838f32d73eb6ae52d712fee059fc6c45376d344fffa1e5f7d7bf764eaa0033848bb
7
+ data.tar.gz: b0facd16278b69eb818105f900d4330fa2b561868c68950504db428d1d79e6dfc0dbe5f080b692e621915abdb0e39a01033dc9c3cc0b354b70de9a5c061db6e3
data/lib/singularitygs.rb CHANGED
@@ -12,6 +12,6 @@ else
12
12
  end
13
13
 
14
14
  module SingularityGS
15
- VERSION = "1.3.0"
16
- DATE = "2014-08-11"
15
+ VERSION = "1.4.0"
16
+ DATE = "2014-08-23"
17
17
  end
@@ -2,6 +2,29 @@
2
2
  // Wrapper mixin for overriding the global contexts as a block
3
3
  //////////////////////////////
4
4
  @mixin layout($grid: false, $gutter: false, $output-style: false, $gutter-style: false) {
5
+
6
+ @if type-of($grid) == 'map' {
7
+ $layout: $grid;
8
+ @if map-has-key($layout, 'grid') {
9
+ $grid: map-get($layout, 'grid');
10
+ }
11
+
12
+ @if map-has-key($layout, 'gutter') {
13
+ $gutter: map-get($layout, 'gutter');
14
+ }
15
+
16
+ @if map-has-key($layout, 'output style') {
17
+ $output-style: map-get($layout, 'output style');
18
+ }
19
+ @if map-has-key($layout, 'output') {
20
+ $output-style: map-get($layout, 'output');
21
+ }
22
+
23
+ @if map-has-key($layout, 'gutter style') {
24
+ $gutter-style: map-get($layout, 'gutter style');
25
+ }
26
+ }
27
+
5
28
  // Private holder for current global context
6
29
  $layout-private-grid-holder: sgs-get('grids');
7
30
  $layout-private-gutter-holder: sgs-get('gutters');
@@ -86,6 +109,9 @@
86
109
  @if map-has-key($layout, 'output style') {
87
110
  $output-style: map-get($layout, 'output style');
88
111
  }
112
+ @if map-has-key($layout, 'output') {
113
+ $output-style: map-get($layout, 'output');
114
+ }
89
115
 
90
116
  @if map-has-key($layout, 'gutter style') {
91
117
  $gutter-style: map-get($layout, 'gutter style');
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.3.0
4
+ version: 1.4.0
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-08-11 00:00:00.000000000 Z
12
+ date: 2014-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass