singularitygs 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/singularitygs.rb +2 -2
- data/stylesheets/singularitygs/helpers/_layout.scss +26 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb9b77eb89564812ea18968e3d9845d394843de
|
4
|
+
data.tar.gz: 31191e29db09bf70faa60e326e50ef4894ad4ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89e8cbecaa1780b586c876573d0780a401b7f527559e966c728444247a0df838f32d73eb6ae52d712fee059fc6c45376d344fffa1e5f7d7bf764eaa0033848bb
|
7
|
+
data.tar.gz: b0facd16278b69eb818105f900d4330fa2b561868c68950504db428d1d79e6dfc0dbe5f080b692e621915abdb0e39a01033dc9c3cc0b354b70de9a5c061db6e3
|
data/lib/singularitygs.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|