susy 1.0.5.alpha.0 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,13 @@
1
1
  Susy Changelog
2
2
  ==============
3
3
 
4
+ v1.0.5 [Nov 27, 2012]
5
+ ---------------------
6
+
7
+ * Add support for rem-units.
8
+ * Clean-up quoted arguments.
9
+ * Fix a few bugs related to the override settings.
10
+
4
11
  v1.0.4 [Nov 3, 2012]
5
12
  ---------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5.alpha.0
1
+ 1.0.5
@@ -50,18 +50,18 @@ $rem-with-px-fallback : true !default;
50
50
  //
51
51
  // $columns : The number of columns in the Grid Layout.
52
52
  @function container-outer-width(
53
- $columns : $total-columns
53
+ $columns : $total-columns,
54
+ $width : $container-width
54
55
  ) {
55
- $width: columns-width($columns);
56
+ $outerwidth: if($width, $width, columns-width($columns));
56
57
 
57
- @if $container-width {
58
- $width: $container-width;
59
- @if not $border-box-sizing { $width: handle-grid-padding($width, subtract); }
58
+ @if $width {
59
+ @if not $border-box-sizing { $outerwidth: handle-grid-padding($outerwidth, subtract); }
60
60
  } @else {
61
- @if $border-box-sizing { $width: handle-grid-padding($width, add); }
61
+ @if $border-box-sizing { $outerwidth: handle-grid-padding($outerwidth, add); }
62
62
  }
63
63
 
64
- @return $width;
64
+ @return $outerwidth;
65
65
  }
66
66
 
67
67
  // Return the percentage width of a single column in a given 'context'.
@@ -21,15 +21,16 @@
21
21
  //
22
22
  // $columns : The number of columns in the Grid Layout.
23
23
  @mixin set-container-width(
24
- $columns : $total-columns
24
+ $columns : $total-columns,
25
+ $style : $container-style
25
26
  ){
26
27
  $width: container-outer-width($columns);
27
28
 
28
- @if $container-style == 'static' {
29
+ @if $style == 'static' {
29
30
  @include if-rem(width, $width);
30
31
  } @else {
31
- @if $container-style == 'fluid' {
32
- @include if-rem(width, if(unit($width) == '%', $width, auto));
32
+ @if $style == 'fluid' {
33
+ @if unit($width) == '%' { @include if-rem(width, $width); }
33
34
  } @else {
34
35
  @include if-rem(max-width, $width);
35
36
  @if $legacy-support-for-ie6 {
@@ -112,6 +113,7 @@
112
113
  $padding : false,
113
114
  $from : $from-direction
114
115
  ) {
116
+ $from : unquote($from);
115
117
  $to : opposite-position($from);
116
118
  $pos : split-columns-value($columns,position);
117
119
  $cols : split-columns-value($columns,columns);
@@ -154,6 +156,7 @@
154
156
  @mixin omega(
155
157
  $from : $from-direction
156
158
  ) {
159
+ $from : unquote($from);
157
160
  $to : opposite-position($from);
158
161
  $hack : opposite-position($omega-float);
159
162
 
@@ -176,6 +179,7 @@
176
179
  $selector : child,
177
180
  $from : $from-direction
178
181
  ) {
182
+ $from : unquote($from);
179
183
  $ie: if($n == "first", true, false);
180
184
  @include adjust-support-for($ie6: $ie, $ie7: $ie, $ie8: $ie) {
181
185
  &:#{format-nth($n,$selector)} { @include omega($from); }
@@ -191,6 +195,7 @@
191
195
  @mixin reset-columns(
192
196
  $from: $from-direction
193
197
  ) {
198
+ $from : unquote($from);
194
199
  $to : opposite-position($from);
195
200
  $hack : opposite-position($omega-float);
196
201
 
@@ -213,6 +218,7 @@
213
218
  $context : $total-columns,
214
219
  $from : $from-direction
215
220
  ) {
221
+ $from : unquote($from);
216
222
  $to : opposite-position($from);
217
223
  $hack : opposite-position($omega-float);
218
224
 
@@ -236,6 +242,7 @@
236
242
  $context : $total-columns,
237
243
  $from : $from-direction
238
244
  ) {
245
+ $from : unquote($from);
239
246
  $ie: if($n == "first", true, false);
240
247
  @include adjust-support-for($ie6: $ie, $ie7: $ie, $ie8: $ie) {
241
248
  &:#{format-nth($n,$selector)} { @include remove-omega($context,$from); }
@@ -13,6 +13,7 @@
13
13
  $context : $total-columns,
14
14
  $from : $from-direction
15
15
  ) {
16
+ $from : unquote($from);
16
17
  margin-#{$from}: space($columns,$context);
17
18
  }
18
19
 
@@ -22,6 +23,7 @@
22
23
  $context : $total-columns,
23
24
  $from : $from-direction
24
25
  ) {
26
+ $from : unquote($from);
25
27
  @include pre($columns,$context,$from)
26
28
  }
27
29
 
@@ -37,6 +39,7 @@
37
39
  $context : $total-columns,
38
40
  $from : $from-direction
39
41
  ) {
42
+ $from : unquote($from);
40
43
  margin-#{$from}: 0 - space($columns, $context);
41
44
  }
42
45
 
@@ -52,6 +55,7 @@
52
55
  $context : $total-columns,
53
56
  $from : $from-direction
54
57
  ) {
58
+ $from : unquote($from);
55
59
  $to : opposite-position($from);
56
60
  margin-#{$to}: space($columns,$context);
57
61
  }
@@ -70,6 +74,7 @@
70
74
  $context : $total-columns,
71
75
  $from : $from-direction
72
76
  ) {
77
+ $from : unquote($from);
73
78
  @if $pre {
74
79
  @include pre($pre,$context,$from)
75
80
  }
@@ -66,7 +66,7 @@
66
66
  @if (not $min) and (not $max) {
67
67
  // Neither $min nor $max:
68
68
  // We can create a breakpoint based on the number of columns in the layout.
69
- $min: fix-ems(container-outer-width());
69
+ $min: fix-ems(container-outer-width($width: false));
70
70
  }
71
71
  @if $min {
72
72
  // Min only:
@@ -12,6 +12,7 @@
12
12
  $context : $total-columns,
13
13
  $from : $from-direction
14
14
  ) {
15
+ $from : unquote($from);
15
16
  padding-#{$from}: space($columns, $context);
16
17
  }
17
18
 
@@ -26,6 +27,7 @@
26
27
  $context : $total-columns,
27
28
  $from : $from-direction
28
29
  ) {
30
+ $from : unquote($from);
29
31
  $to : opposite-position($from);
30
32
  padding-#{$to}: space($columns, $context);
31
33
  }
@@ -42,6 +44,7 @@
42
44
  $context : $total-columns,
43
45
  $from : $from-direction
44
46
  ) {
47
+ $from : unquote($from);
45
48
  @if $prefix {
46
49
  @include prefix($prefix, $context, $from);
47
50
  }
@@ -18,6 +18,7 @@ $grid-padding : $gutter-width !default;
18
18
  // From Direction:
19
19
  // Controls for right-to-left or bi-directional sites.
20
20
  $from-direction : left !default;
21
+ $from-direction : unquote($from-direction);
21
22
 
22
23
  // Omega Float Direction:
23
24
  // The direction that +omega elements are floated by deafult.
@@ -1,28 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{susy}
5
- s.version = "1.0.5.alpha.0"
4
+ s.name = "susy"
5
+ s.version = "1.0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Eric Meyer"]
9
- s.date = %q{2012-11-06}
10
- s.description = %q{Susy grids are fluid on the inside, ready to respond at any moment, but contained in the candy shell of your choice, so they respond how and when and where you want them to. We don't design your site or dictate your markup, we just do the math and get out of your way.}
11
- s.email = %q{eric@oddbird.net}
9
+ s.date = "2012-11-28"
10
+ s.description = "Susy grids are fluid on the inside, ready to respond at any moment, but contained in the candy shell of your choice, so they respond how and when and where you want them to. We don't design your site or dictate your markup, we just do the math and get out of your way."
11
+ s.email = "eric@oddbird.net"
12
12
  s.extra_rdoc_files = ["CHANGELOG.mkdn", "LICENSE.txt", "README.md", "lib/susy.rb"]
13
13
  s.files = ["CHANGELOG.mkdn", "LICENSE.txt", "Manifest", "README.md", "Rakefile", "VERSION", "lib/susy.rb", "sass/_susy.scss", "sass/susy/_background.scss", "sass/susy/_functions.scss", "sass/susy/_grid.scss", "sass/susy/_margin.scss", "sass/susy/_media.scss", "sass/susy/_padding.scss", "sass/susy/_settings.scss", "sass/susy/_support.scss", "sass/susy/_units.scss", "susy.gemspec", "templates/project/_base.scss", "templates/project/manifest.rb", "templates/project/screen.scss", "test/config.rb", "test/css/background.css", "test/css/functions.css", "test/css/grid.css", "test/css/margin.css", "test/css/media.css", "test/css/padding.css", "test/scss/background.scss", "test/scss/functions.scss", "test/scss/grid.scss", "test/scss/margin.scss", "test/scss/media.scss", "test/scss/padding.scss"]
14
- s.homepage = %q{http://susy.oddbird.net/}
14
+ s.homepage = "http://susy.oddbird.net/"
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Susy", "--main", "README.md"]
16
16
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{susy}
18
- s.rubygems_version = %q{1.3.6}
19
- s.summary = %q{Responsive grids for Compass.}
17
+ s.rubyforge_project = "susy"
18
+ s.rubygems_version = "1.8.24"
19
+ s.summary = "Responsive grids for Compass."
20
20
 
21
21
  if s.respond_to? :specification_version then
22
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
22
  s.specification_version = 3
24
23
 
25
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
24
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
25
  s.add_runtime_dependency(%q<compass>, [">= 0.12.2"])
27
26
  s.add_runtime_dependency(%q<sass>, [">= 3.2.0"])
28
27
  else
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: susy
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ hash: 29
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
9
  - 5
9
- - alpha
10
- - 0
11
- version: 1.0.5.alpha.0
10
+ version: 1.0.5
12
11
  platform: ruby
13
12
  authors:
14
13
  - Eric Meyer
@@ -16,16 +15,17 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2012-11-06 00:00:00 -07:00
20
- default_executable:
18
+ date: 2012-11-28 00:00:00 Z
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
23
21
  name: compass
24
22
  prerelease: false
25
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
28
+ hash: 43
29
29
  segments:
30
30
  - 0
31
31
  - 12
@@ -37,9 +37,11 @@ dependencies:
37
37
  name: sass
38
38
  prerelease: false
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
40
41
  requirements:
41
42
  - - ">="
42
43
  - !ruby/object:Gem::Version
44
+ hash: 15
43
45
  segments:
44
46
  - 3
45
47
  - 2
@@ -93,7 +95,6 @@ files:
93
95
  - test/scss/margin.scss
94
96
  - test/scss/media.scss
95
97
  - test/scss/padding.scss
96
- has_rdoc: true
97
98
  homepage: http://susy.oddbird.net/
98
99
  licenses: []
99
100
 
@@ -108,16 +109,20 @@ rdoc_options:
108
109
  require_paths:
109
110
  - lib
110
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
111
113
  requirements:
112
114
  - - ">="
113
115
  - !ruby/object:Gem::Version
116
+ hash: 3
114
117
  segments:
115
118
  - 0
116
119
  version: "0"
117
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
118
122
  requirements:
119
123
  - - ">="
120
124
  - !ruby/object:Gem::Version
125
+ hash: 11
121
126
  segments:
122
127
  - 1
123
128
  - 2
@@ -125,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
130
  requirements: []
126
131
 
127
132
  rubyforge_project: susy
128
- rubygems_version: 1.3.6
133
+ rubygems_version: 1.8.24
129
134
  signing_key:
130
135
  specification_version: 3
131
136
  summary: Responsive grids for Compass.