susy 1.0.rc.1 → 1.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.mkdn +9 -8
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/sass/susy/_functions.scss +19 -6
- data/susy.gemspec +9 -9
- metadata +9 -11
data/CHANGELOG.mkdn
CHANGED
@@ -4,7 +4,7 @@ Susy Changelog
|
|
4
4
|
v1.0 [UNRELEASED]
|
5
5
|
-----------------
|
6
6
|
|
7
|
-
This release is loaded with new features, but don't let that fool you. Susy
|
7
|
+
This release is loaded with new features, but don't let that fool you. Susy
|
8
8
|
just became shockingly simple to use. See the [website][site] for details.
|
9
9
|
|
10
10
|
Note that the gem name has changed from `compass-susy-plugin` to `susy`.
|
@@ -13,7 +13,7 @@ Note that the gem name has changed from `compass-susy-plugin` to `susy`.
|
|
13
13
|
|
14
14
|
New Features:
|
15
15
|
|
16
|
-
* `omega` can now be set directly through the `columns` mixin for much
|
16
|
+
* `omega` can now be set directly through the `columns` mixin for much
|
17
17
|
more compact output.
|
18
18
|
* Create responsive grid break-points using `at-breakpoint` and `layout`.
|
19
19
|
* `container` mixin now accepts one or more grids/breakpoints as a shortcut.
|
@@ -38,24 +38,25 @@ Removed:
|
|
38
38
|
|
39
39
|
Other:
|
40
40
|
|
41
|
+
* Fix bug in susy-background-grid for fluid sites.
|
41
42
|
* Fix minor bug with repeated 'display' properties.
|
42
|
-
* Lower Compass dependency to 0.12.2
|
43
|
-
* Add Sass dependency at 3.2.0.alpha.
|
43
|
+
* Lower Compass dependency to 0.12.2
|
44
|
+
* Add Sass dependency at 3.2.0.alpha.247
|
44
45
|
|
45
46
|
### Upgrade:
|
46
47
|
|
47
48
|
1. Uninstall `compass-susy-plugin` and install `susy` in it's place.
|
48
49
|
2. Find and replace the 5 simple "Changed API's" listed above.
|
49
50
|
3. Remove the `$context` argument from all `omega` mixins.
|
50
|
-
4. Remove any mention of `alpha` and `full` in your code.
|
51
|
+
4. Remove any mention of `alpha` and `full` in your code.
|
51
52
|
* Replace `full` with `clear: both;` where necessary.
|
52
53
|
5. Remove any mention of `side-gutter()`.
|
53
54
|
* This may require some refactoring, depending on your uses.
|
54
|
-
6. [Optional] Any time 'columns' and 'omega' are declared in the same block,
|
55
|
-
they can now be joined together. `@include columns(3); @include omega();`
|
55
|
+
6. [Optional] Any time 'columns' and 'omega' are declared in the same block,
|
56
|
+
they can now be joined together. `@include columns(3); @include omega();`
|
56
57
|
can become `@include columns(3 omega)`.
|
57
58
|
|
58
|
-
You're done! Stop worrying about all that "nested vs. root" bullshit,
|
59
|
+
You're done! Stop worrying about all that "nested vs. root" bullshit,
|
59
60
|
and start playing with the new toys!
|
60
61
|
|
61
62
|
v0.9 [Apr 25 2011]
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
p.url = "http://susy.oddbird.net/"
|
11
11
|
p.author = "Eric Meyer"
|
12
12
|
p.email = "eric@oddbird.net"
|
13
|
-
p.dependencies = ["compass >=0.12.2
|
13
|
+
p.dependencies = ["compass >=0.12.2", "sass >=3.2.0.alpha.247"]
|
14
14
|
end
|
15
15
|
|
16
16
|
rescue LoadError => boom
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.rc.
|
1
|
+
1.0.rc.2
|
data/sass/susy/_functions.scss
CHANGED
@@ -5,7 +5,9 @@
|
|
5
5
|
@import "compass/typography/vertical_rhythm";
|
6
6
|
|
7
7
|
// For now, we also need this...
|
8
|
-
$browser-default-font-size
|
8
|
+
$browser-default-font-size-px : 16px;
|
9
|
+
$browser-default-font-size-percent : 100%;
|
10
|
+
$browser-default-font-size-pt : 12pt;
|
9
11
|
|
10
12
|
// ---------------------------------------------------------------------------
|
11
13
|
// Grid Functions
|
@@ -16,7 +18,6 @@ $browser-default-font-size : 16px;
|
|
16
18
|
@function columns-width(
|
17
19
|
$columns : $total-columns
|
18
20
|
) {
|
19
|
-
$columns : if($columns,$columns,$total-columns);
|
20
21
|
@return ($columns * $column-width) + (ceil($columns - 1) * $gutter-width);
|
21
22
|
}
|
22
23
|
|
@@ -112,15 +113,27 @@ $browser-default-font-size : 16px;
|
|
112
113
|
// Note: This only works if actual sizes are set relative to browser defaults.
|
113
114
|
//
|
114
115
|
// $ems : The initial value to be converted.
|
115
|
-
// $font-size : The current font-size in
|
116
|
+
// $font-size : The current font-size in.
|
116
117
|
@function absolute-ems(
|
117
118
|
$ems,
|
118
119
|
$font-size: $base-font-size
|
119
120
|
){
|
120
|
-
|
121
|
-
|
121
|
+
$unit: unit($font-size);
|
122
|
+
@if $unit == 'px' {
|
123
|
+
@return $font-size / $browser-default-font-size-px * $ems;
|
124
|
+
}
|
125
|
+
@else if $unit == '%' {
|
126
|
+
@return $font-size / $browser-default-font-size-percent * $ems;
|
127
|
+
}
|
128
|
+
@else if $unit == 'em' {
|
129
|
+
@return $font-size / 1em * $ems;
|
130
|
+
}
|
131
|
+
@else if $unit == 'pt' {
|
132
|
+
@return $font-size / $browser-default-font-size-pt * $ems;
|
133
|
+
}
|
134
|
+
@else {
|
135
|
+
@warn 'Variable $base-font-size does not have a valid font unit. Valid units for fonts in CSS are px, pt, em, and %.';
|
122
136
|
}
|
123
|
-
@return $ems;
|
124
137
|
}
|
125
138
|
|
126
139
|
// Return a length, after any em-values have been sent through absolute-ems().
|
data/susy.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "susy"
|
5
|
-
s.version = "1.0.rc.
|
5
|
+
s.version = "1.0.rc.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 = "2012-
|
9
|
+
s.date = "2012-06-25"
|
10
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
11
|
s.email = "eric@oddbird.net"
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG.mkdn", "LICENSE.txt", "README.mkdn", "lib/susy.rb"]
|
@@ -15,21 +15,21 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Susy", "--main", "README.mkdn"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = "susy"
|
18
|
-
s.rubygems_version = "1.8.
|
18
|
+
s.rubygems_version = "1.8.24"
|
19
19
|
s.summary = "Responsive grids for Compass."
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
s.specification_version = 3
|
23
23
|
|
24
24
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
-
s.add_runtime_dependency(%q<compass>, [">= 0.12.2
|
26
|
-
s.add_runtime_dependency(%q<sass>, [">= 3.2.0.alpha.
|
25
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.12.2"])
|
26
|
+
s.add_runtime_dependency(%q<sass>, [">= 3.2.0.alpha.247"])
|
27
27
|
else
|
28
|
-
s.add_dependency(%q<compass>, [">= 0.12.2
|
29
|
-
s.add_dependency(%q<sass>, [">= 3.2.0.alpha.
|
28
|
+
s.add_dependency(%q<compass>, [">= 0.12.2"])
|
29
|
+
s.add_dependency(%q<sass>, [">= 3.2.0.alpha.247"])
|
30
30
|
end
|
31
31
|
else
|
32
|
-
s.add_dependency(%q<compass>, [">= 0.12.2
|
33
|
-
s.add_dependency(%q<sass>, [">= 3.2.0.alpha.
|
32
|
+
s.add_dependency(%q<compass>, [">= 0.12.2"])
|
33
|
+
s.add_dependency(%q<sass>, [">= 3.2.0.alpha.247"])
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1285962380
|
5
5
|
prerelease: 4
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- rc
|
10
|
-
-
|
11
|
-
version: 1.0.rc.
|
10
|
+
- 2
|
11
|
+
version: 1.0.rc.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Eric Meyer
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-06-25 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: compass
|
@@ -26,14 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 43
|
30
30
|
segments:
|
31
31
|
- 0
|
32
32
|
- 12
|
33
33
|
- 2
|
34
|
-
|
35
|
-
- 0
|
36
|
-
version: 0.12.2.rc.0
|
34
|
+
version: 0.12.2
|
37
35
|
type: :runtime
|
38
36
|
version_requirements: *id001
|
39
37
|
- !ruby/object:Gem::Dependency
|
@@ -44,14 +42,14 @@ dependencies:
|
|
44
42
|
requirements:
|
45
43
|
- - ">="
|
46
44
|
- !ruby/object:Gem::Version
|
47
|
-
hash:
|
45
|
+
hash: 294173447
|
48
46
|
segments:
|
49
47
|
- 3
|
50
48
|
- 2
|
51
49
|
- 0
|
52
50
|
- alpha
|
53
|
-
-
|
54
|
-
version: 3.2.0.alpha.
|
51
|
+
- 247
|
52
|
+
version: 3.2.0.alpha.247
|
55
53
|
type: :runtime
|
56
54
|
version_requirements: *id002
|
57
55
|
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.
|