singularitygs 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
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.0.6"
8
- DATE = "2013-06-05"
7
+ VERSION = "1.0.7"
8
+ DATE = "2013-04-10"
9
9
  end
@@ -1,4 +1,4 @@
1
- @mixin grid-span($span, $location, $grid: false, $gutter: false, $output-style: $output, $options: false) {
1
+ @mixin grid-span($span, $location: 1, $grid: false, $gutter: false, $output-style: $output, $options: false) {
2
2
 
3
3
  @if $output-style == 'float' {
4
4
  @include output-float($span, $location, $grid, $gutter, $options);
@@ -12,4 +12,9 @@
12
12
  //////////////////////////////
13
13
  // UI Helpers
14
14
  //////////////////////////////
15
- @import "helpers/background-grid";
15
+ @import "helpers/background-grid";
16
+
17
+ //////////////////////////////
18
+ // Layout Helpers
19
+ //////////////////////////////
20
+ @import "helpers/layout";
@@ -114,9 +114,14 @@
114
114
  $gutter: find-gutter($gutter);
115
115
  $row: false;
116
116
 
117
+ // Working around SASS treating a number like a list with one element
118
+ @if type-of($grid) == 'list' and length($grid) == 1 {
119
+ $grid: nth($grid, 1);
120
+ }
121
+
117
122
  @if type-of($grid) == 'number' and length($grid) == 1 {
118
123
  @if $location == 'last' or $location == 'omega' {
119
- $location: length($grid) - $span + 1;
124
+ $location: $grid - $span + 1;
120
125
  }
121
126
  @else {
122
127
  @if $location == 'first' or $location == 'alpha' {
@@ -137,4 +142,4 @@
137
142
  @else {
138
143
  @warn 'Asymmetric Grids need a Location value as well as a span value in order to know where on the grid you are! Please include a location value!';
139
144
  }
140
- }
145
+ }
@@ -0,0 +1,28 @@
1
+ //////////////////////////////
2
+ // Wrapper mixin for overriding the global contexts as a block
3
+ //////////////////////////////
4
+ @mixin layout($grid: false, $gutter: false, $output-style: false) {
5
+ // Private holder for current global context
6
+ $layout-private-grid-holder: $grids;
7
+ $layout-private-gutter-holder: $gutters;
8
+ $layout-private-output-holder: $output;
9
+
10
+ // Overides current global contexts, but only if needed
11
+ @if $grid != false {
12
+ $grids: $grid;
13
+ }
14
+ @if $gutter != false {
15
+ $gutters: $gutter;
16
+ }
17
+ @if $output-style != false {
18
+ $output: $output-style;
19
+ }
20
+
21
+ // All the things!
22
+ @content;
23
+
24
+ // Resets global contexts
25
+ $grids: $layout-private-grid-holder;
26
+ $gutters: $layout-private-gutter-holder;
27
+ $output: $layout-private-output-holder;
28
+ }
metadata CHANGED
@@ -1,73 +1,76 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: singularitygs
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.6
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 7
9
+ version: 1.0.7
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Scott Kellum
9
13
  - Sam Richard
10
14
  autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2013-06-05 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-04-10 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: sass
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: 3.2.1
23
- type: :runtime
24
23
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 3
30
+ - 2
31
+ - 1
30
32
  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
38
- version: 0.12.2
39
33
  type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: compass
40
37
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 12
45
+ - 2
46
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
54
- version: 2.0.1
55
47
  type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: breakpoint
56
51
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 2
58
+ - 0
59
+ - 1
62
60
  version: 2.0.1
61
+ type: :runtime
62
+ version_requirements: *id003
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
+
68
69
  extensions: []
70
+
69
71
  extra_rdoc_files: []
70
- files:
72
+
73
+ files:
71
74
  - lib/singularitygs.rb
72
75
  - stylesheets/_singularitygs.scss
73
76
  - stylesheets/singularitygs/_api.scss
@@ -88,6 +91,7 @@ files:
88
91
  - stylesheets/singularitygs/helpers/_columns.scss
89
92
  - stylesheets/singularitygs/helpers/_directions.scss
90
93
  - stylesheets/singularitygs/helpers/_find.scss
94
+ - stylesheets/singularitygs/helpers/_layout.scss
91
95
  - stylesheets/singularitygs/helpers/_sass-lists.scss
92
96
  - stylesheets/singularitygs/helpers/_span-shared.scss
93
97
  - stylesheets/singularitygs/language/_parse-add.scss
@@ -110,31 +114,36 @@ files:
110
114
  - templates/project/manifest.rb
111
115
  - templates/project/partials/_base.scss
112
116
  - templates/project/style.scss
117
+ has_rdoc: true
113
118
  homepage: http://singularity.gs
114
119
  licenses: []
120
+
115
121
  post_install_message:
116
122
  rdoc_options: []
117
- require_paths:
123
+
124
+ require_paths:
118
125
  - lib
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'
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ segments:
131
+ - 0
132
+ version: "0"
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 1
139
+ - 2
140
+ version: "1.2"
131
141
  requirements: []
142
+
132
143
  rubyforge_project: singularitygs
133
- rubygems_version: 1.8.25
144
+ rubygems_version: 1.3.6
134
145
  signing_key:
135
146
  specification_version: 3
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
+ summary: Singularity is a fluid grid system that can generate uniform columns as well as asymmetric and compound grids. It is designed to be extensable, adding additional outputs or grid generators are easy, and the core syntax is simple to build upon for custom input syntaxes.
140
148
  test_files: []
149
+