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 +4 -4
- data/lib/singularitygs.rb +2 -2
- data/stylesheets/_singularitygs.scss +4 -1
- data/stylesheets/singularitygs/_api.scss +4 -0
- data/stylesheets/singularitygs/api/_isolation.scss +19 -0
- data/stylesheets/singularitygs/helpers/_background-grid.scss +4 -10
- data/stylesheets/singularitygs/helpers/_settings.scss +1 -1
- data/stylesheets/singularitygs/math/_columns.scss +4 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d706c056c5556341bea512d9cb6210fa4db3b592
|
4
|
+
data.tar.gz: d08c1570e84c7a0c942f62a95d4d32c64f17c92d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7c3f9da4cc708a01af3f1fb936323964b1b55506392adca98e81cee554b409e8100ed8e1342f06280a81028234c5e6953175c8d5ed7023e79f694eb6379c67
|
7
|
+
data.tar.gz: 37e53f2d01555c72effd9b59aa14e73d1744adf30593c6be406b762ec71b7e85996b1a672421450b1d3ca5ab666917ff58b5e4d50c811ac9cc25588a5ad47901
|
data/lib/singularitygs.rb
CHANGED
@@ -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
|
//////////////////////////////
|
@@ -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:
|
42
|
+
$color: null
|
51
43
|
) {
|
52
44
|
|
53
|
-
|
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, '-')
|
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
|
-
@
|
40
|
-
|
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.
|
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-
|
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
|
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
|
55
|
+
version: '2.4'
|
56
56
|
description: Advanced responsive grid system for Sass and Compass
|
57
57
|
email:
|
58
58
|
- scott@scottkellum.com
|