singularitygs 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/singularitygs.rb
CHANGED
@@ -21,6 +21,12 @@
|
|
21
21
|
// Returns the first item of the list, e. g. `(<grid>)`
|
22
22
|
@return $grid;
|
23
23
|
}
|
24
|
+
// IF the list is initiated with a list of grid columns need to start off
|
25
|
+
// a comma seprated list.
|
26
|
+
@elseif $list-length > 1 and length(nth($append-to-list, 2)) == 1 {
|
27
|
+
// Seed the first value and grid + breakpoint seperated by a comma.
|
28
|
+
@return $append-to-list, ($grid $breakpoint);
|
29
|
+
}
|
24
30
|
@else {
|
25
31
|
// Appends to a comma-separated list of definitions in the internal format
|
26
32
|
// and returns it, e. g. `(<grid>), (<grid> <breakpoint>), (<grid> <breakpoint>)`
|
@@ -38,40 +38,40 @@
|
|
38
38
|
$context: $query-max;
|
39
39
|
}
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
41
|
+
// Loop over each item in Context to find if any of the items pass.
|
42
|
+
@each $query-context in $context {
|
43
|
+
@if $query-context != false {
|
44
|
+
// If it's smallest than the smallest MQ, use the 1st grid
|
45
|
+
@if $query-context < $smallest {
|
46
|
+
@return nth($haystack, 1);
|
47
|
+
}
|
48
|
+
// If it's larger than or equal to the largest MQ, use the last grid
|
49
|
+
@else if $query-context >= $largest {
|
50
|
+
@return nth(nth($reverse-haystack, 1), 1);
|
47
51
|
}
|
48
|
-
|
49
|
-
@else if $query-context >= $largest {
|
50
|
-
@return nth(nth($reverse-haystack, 1), 1);
|
51
|
-
}
|
52
|
-
// If it's in between the smallest and largest, go run a check.
|
52
|
+
// If it's in between the smallest and largest, go run a check.
|
53
53
|
@else {
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
// Loop through each MQ.
|
55
|
+
@for $j from 1 through $rg-length {
|
56
|
+
$query: nth(nth($reverse-haystack, $j), 2);
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
58
|
+
// If the MQ is greather than or equal to the the MQ in question, use it! (mobile first)
|
59
|
+
@if ($mobile-first) {
|
60
|
+
@if $query-context >= $query {
|
61
|
+
@return nth(nth($reverse-haystack, $j), 1);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
// If the MQ is less than or equal to the the MQ in question, use it! (not mobile first)
|
65
|
+
@else {
|
66
|
+
@if $query-context <= $query {
|
67
|
+
@return nth(nth($reverse-haystack, $j), 1);
|
68
|
+
}
|
69
|
+
}
|
70
70
|
}
|
71
71
|
}
|
72
72
|
}
|
73
73
|
}
|
74
|
-
|
74
|
+
@return nth($haystack, 1);
|
75
75
|
}
|
76
76
|
// All else fails, return the first grid
|
77
77
|
@else {
|
metadata
CHANGED
@@ -1,76 +1,73 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: singularitygs
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
version: 1.0.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.6
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Scott Kellum
|
13
9
|
- Sam Richard
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-06-05 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: sass
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 3
|
30
|
-
- 2
|
31
|
-
- 1
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
32
22
|
version: 3.2.1
|
33
23
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: compass
|
37
24
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.2.1
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: compass
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
46
38
|
version: 0.12.2
|
47
39
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: breakpoint
|
51
40
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.12.2
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: breakpoint
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
60
54
|
version: 2.0.1
|
61
55
|
type: :runtime
|
62
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.0.1
|
63
63
|
description: Advanced responsive grid system for Sass and Compass
|
64
|
-
email:
|
64
|
+
email:
|
65
65
|
- scott@scottkellum.com
|
66
66
|
- snugug@gmail.com
|
67
67
|
executables: []
|
68
|
-
|
69
68
|
extensions: []
|
70
|
-
|
71
69
|
extra_rdoc_files: []
|
72
|
-
|
73
|
-
files:
|
70
|
+
files:
|
74
71
|
- lib/singularitygs.rb
|
75
72
|
- stylesheets/_singularitygs.scss
|
76
73
|
- stylesheets/singularitygs/_api.scss
|
@@ -113,36 +110,31 @@ files:
|
|
113
110
|
- templates/project/manifest.rb
|
114
111
|
- templates/project/partials/_base.scss
|
115
112
|
- templates/project/style.scss
|
116
|
-
has_rdoc: true
|
117
113
|
homepage: http://singularity.gs
|
118
114
|
licenses: []
|
119
|
-
|
120
115
|
post_install_message:
|
121
116
|
rdoc_options: []
|
122
|
-
|
123
|
-
require_paths:
|
117
|
+
require_paths:
|
124
118
|
- lib
|
125
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
requirements:
|
134
|
-
- -
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
|
137
|
-
- 1
|
138
|
-
- 2
|
139
|
-
version: "1.2"
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '1.2'
|
140
131
|
requirements: []
|
141
|
-
|
142
132
|
rubyforge_project: singularitygs
|
143
|
-
rubygems_version: 1.
|
133
|
+
rubygems_version: 1.8.25
|
144
134
|
signing_key:
|
145
135
|
specification_version: 3
|
146
|
-
summary: Singularity is a fluid grid system that can generate uniform columns as well
|
136
|
+
summary: Singularity is a fluid grid system that can generate uniform columns as well
|
137
|
+
as asymmetric and compound grids. It is designed to be extensable, adding additional
|
138
|
+
outputs or grid generators are easy, and the core syntax is simple to build upon
|
139
|
+
for custom input syntaxes.
|
147
140
|
test_files: []
|
148
|
-
|