susy 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,12 @@
1
1
  Susy Changelog
2
2
  ==============
3
3
 
4
+ v1.0.2 [Oct 20, 2012]
5
+ ---------------------
6
+
7
+ * Fix a bug with `container-outer-width` ignoring `$columns` argument.
8
+ * Turn off legacy-ie support inside CSS3 selectors (`nth-omega` etc).
9
+
4
10
  v1.0.1 [Sept 12, 2012]
5
11
  ----------------------
6
12
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -1,3 +1,19 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Helpers
3
+
4
+ @mixin adjust-support-for(
5
+ $moz: $experimental-support-for-mozilla,
6
+ $webkit: $experimental-support-for-webkit,
7
+ $ms: $experimental-support-for-microsoft,
8
+ $o: $experimental-support-for-opera,
9
+ $khtml: $experimental-support-for-khtml,
10
+ $legacy-ie: $legacy-support-for-ie
11
+ ) {
12
+ @include with-only-support-for($moz, $webkit, $ms, $o, $khtml, $legacy-ie) {
13
+ @content;
14
+ }
15
+ }
16
+
1
17
  // ---------------------------------------------------------------------------
2
18
  // Partials
3
19
 
@@ -50,7 +50,7 @@ $browser-default-font-size-pt : 12pt;
50
50
  @function container-outer-width(
51
51
  $columns : $total-columns
52
52
  ) {
53
- $width: columns-width();
53
+ $width: columns-width($columns);
54
54
 
55
55
  @if $container-width {
56
56
  $width: $container-width;
@@ -169,7 +169,10 @@
169
169
  $selector : child,
170
170
  $from : $from-direction
171
171
  ) {
172
- &:#{format-nth($n,$selector)} { @include omega($from); }
172
+ $ie: if($n == "first", true, false);
173
+ @include adjust-support-for($legacy-ie: $ie) {
174
+ &:#{format-nth($n,$selector)} { @include omega($from); }
175
+ }
173
176
  }
174
177
 
175
178
  // ---------------------------------------------------------------------------
@@ -226,7 +229,10 @@
226
229
  $context : $total-columns,
227
230
  $from : $from-direction
228
231
  ) {
229
- &:#{format-nth($n,$selector)} { @include remove-omega($context,$from); }
232
+ $ie: if($n == "first", true, false);
233
+ @include adjust-support-for($legacy-ie: $ie) {
234
+ &:#{format-nth($n,$selector)} { @include remove-omega($context,$from); }
235
+ }
230
236
  }
231
237
 
232
238
  // ---------------------------------------------------------------------------
@@ -1,14 +1,3 @@
1
- // ---------------------------------------------------------------------------
2
- // Imports
3
-
4
- // Change the legacy-support-for-ie* settings in specific contexts.
5
- // Here temporarily, until it lands in compass.
6
- @mixin set-legacy-ie-support($ie6: false, $ie7: false, $ie8: false) {
7
- $legacy-support-for-ie6: $ie6;
8
- $legacy-support-for-ie7: $ie7;
9
- $legacy-support-for-ie8: $ie8;
10
- }
11
-
12
1
  // ---------------------------------------------------------------------------
13
2
  // Media Mixins
14
3
 
@@ -64,38 +53,31 @@
64
53
  // Set our new layout context.
65
54
  @include layout($layout) {
66
55
  @if $breakpoint-media-output {
67
- // dont need to support old IE inside media-queries
68
- $initial-legacy-support-for-ie6: $legacy-support-for-ie6;
69
- $initial-legacy-support-for-ie7: $legacy-support-for-ie7;
70
- $initial-legacy-support-for-ie8: $legacy-support-for-ie8;
71
- @include set-legacy-ie-support(false, false, false);
72
-
73
- @if $min and $max {
74
- // Both $min and $max
75
- @media (min-width: $min) and (max-width: $max) {
76
- @content;
77
- }
78
- } @else {
79
- @if (not $min) and (not $max) {
80
- // Neither $min nor $max:
81
- // We can create a breakpoint based on the number of columns in the layout.
82
- $min: fix-ems(container-outer-width());
83
- }
84
- @if $min {
85
- // Min only:
86
- @media (min-width: $min) {
56
+ @include adjust-support-for($legacy-ie: false) {
57
+ @if $min and $max {
58
+ // Both $min and $max
59
+ @media (min-width: $min) and (max-width: $max) {
87
60
  @content;
88
61
  }
89
62
  } @else {
90
- // Max only:
91
- @media (max-width: $max) {
92
- @content;
63
+ @if (not $min) and (not $max) {
64
+ // Neither $min nor $max:
65
+ // We can create a breakpoint based on the number of columns in the layout.
66
+ $min: fix-ems(container-outer-width());
67
+ }
68
+ @if $min {
69
+ // Min only:
70
+ @media (min-width: $min) {
71
+ @content;
72
+ }
73
+ } @else {
74
+ // Max only:
75
+ @media (max-width: $max) {
76
+ @content;
77
+ }
93
78
  }
94
79
  }
95
80
  }
96
-
97
- // return IE support to its initial setting
98
- @include set-legacy-ie-support($initial-legacy-support-for-ie6, $initial-legacy-support-for-ie7, $initial-legacy-support-for-ie8);
99
81
  }
100
82
  // Set an IE fallback
101
83
  @if $ie and $breakpoint-ie-output {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{susy}
5
- s.version = "1.0.1"
5
+ s.version = "1.0.2"
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-09-11}
9
+ s.date = %q{2012-10-20}
10
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
11
  s.email = %q{eric@oddbird.net}
12
12
  s.extra_rdoc_files = ["CHANGELOG.mkdn", "LICENSE.txt", "README.md", "lib/susy.rb"]
@@ -69,8 +69,6 @@
69
69
  .nth-omega:last-child {
70
70
  float: right;
71
71
  margin-right: 0;
72
- #margin-left: -1em;
73
- display: inline;
74
72
  }
75
73
 
76
74
  .remove-omega {
@@ -82,7 +80,6 @@
82
80
  .remove-nth-omega:last-child {
83
81
  float: left;
84
82
  margin-right: 1.69492%;
85
- #margin-left: auto;
86
83
  }
87
84
 
88
85
  /* ---------------------------------------------------------------------------
@@ -15,6 +15,7 @@
15
15
 
16
16
  @media (min-width: 29em) {
17
17
  .breakpoint .break6 {
18
+ *zoom: 1;
18
19
  max-width: 29em;
19
20
  margin-left: auto;
20
21
  margin-right: auto;
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eric Meyer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-09-11 00:00:00 -06:00
17
+ date: 2012-10-20 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency