susy 2.0.0.alpha.6 → 2.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/VERSION +1 -1
- data/docs/changelog.rst +568 -0
- data/lib/susy.rb +3 -3
- data/sass/susy/_helpers.scss +0 -1
- data/sass/susy/_math.scss +2 -1
- data/sass/susy/api/_float.scss +1 -0
- data/sass/susy/api/_shared.scss +2 -0
- data/sass/susy/{helpers → api/float}/_clearfix.scss +0 -0
- data/sass/susy/api/float/_container.scss +5 -5
- data/sass/susy/api/float/_end.scss +10 -3
- data/sass/susy/api/float/_isolate.scss +1 -1
- data/sass/susy/api/float/_span.scss +1 -1
- data/sass/susy/api/shared/_background.scss +2 -2
- data/sass/susy/{helpers → api/shared}/_box-sizing.scss +0 -0
- data/sass/susy/api/shared/_container.scss +4 -7
- data/sass/susy/{helpers → api/shared}/_direction.scss +10 -3
- data/sass/susy/api/shared/_margins.scss +1 -1
- data/sass/susy/api/shared/_padding.scss +1 -1
- data/sass/susy/language/_susy.scss +3 -1
- data/sass/susy/language/susy/_background.scss +1 -1
- data/sass/susy/language/susy/_bleed.scss +4 -2
- data/sass/susy/language/susy/_box-sizing.scss +31 -0
- data/sass/susy/language/susy/_breakpoint-plugin.scss +26 -0
- data/sass/susy/language/susy/_container.scss +22 -4
- data/sass/susy/language/susy/_context.scss +1 -1
- data/sass/susy/language/susy/_gallery.scss +20 -18
- data/sass/susy/language/susy/_grids.scss +18 -5
- data/sass/susy/language/susy/_gutters.scss +3 -3
- data/sass/susy/language/susy/_isolate.scss +4 -4
- data/sass/susy/language/susy/_rows.scss +66 -73
- data/sass/susy/language/susy/_settings.scss +54 -16
- data/sass/susy/language/susy/_span.scss +45 -22
- data/sass/susy/math/_columns.scss +21 -15
- data/sass/susy/math/_container.scss +6 -21
- data/sass/susy/math/_settings.scss +24 -0
- data/sass/susy/math/_validation.scss +62 -0
- data/templates/project/_base.scss +2 -2
- data/templates/project/manifest.rb +5 -8
- data/templates/project/screen.scss +2 -2
- metadata +10 -11
- data/CHANGELOG.mkdn +0 -269
- data/sass/susy/_core.scss +0 -6
- data/sass/susy/_settings.scss +0 -10
- data/sass/susy/helpers/_nth.scss +0 -15
- data/sass/susy/math/_location.scss +0 -48
- data/templates/project/README.md +0 -84
@@ -6,8 +6,9 @@
|
|
6
6
|
// Returns true if a grid is symmetrical.
|
7
7
|
// - [$columns] : <number> | <list>
|
8
8
|
@function is-symmetrical(
|
9
|
-
$columns:
|
9
|
+
$columns: map-get($susy-defaults, columns)
|
10
10
|
) {
|
11
|
+
$columns: valid-columns($columns);
|
11
12
|
@return if(type-of($columns) == number, $columns, null);
|
12
13
|
}
|
13
14
|
|
@@ -16,8 +17,9 @@
|
|
16
17
|
// Find the number of columns in a given layout
|
17
18
|
// - [$columns] : <number> | <list>
|
18
19
|
@function column-count(
|
19
|
-
$columns:
|
20
|
+
$columns: map-get($susy-defaults, columns)
|
20
21
|
) {
|
22
|
+
$columns: valid-columns($columns);
|
21
23
|
@return is-symmetrical($columns) or length($columns);
|
22
24
|
}
|
23
25
|
|
@@ -26,12 +28,15 @@
|
|
26
28
|
// Find the total sum of column-units in a layout
|
27
29
|
// - [$columns] : <number> | <list>
|
28
30
|
// - [$gutters] : <ratio>
|
29
|
-
// - [$spread]
|
31
|
+
// - [$spread] : false/narrow | wide | wider
|
30
32
|
@function column-sum(
|
31
|
-
$columns :
|
32
|
-
$gutters :
|
33
|
+
$columns : map-get($susy-defaults, columns),
|
34
|
+
$gutters : map-get($susy-defaults, gutters),
|
33
35
|
$spread : false
|
34
36
|
) {
|
37
|
+
$columns: valid-columns($columns);
|
38
|
+
$gutters: valid-gutters($gutters);
|
39
|
+
|
35
40
|
$spread: if($spread == wide, 0, if($spread == wider, 1, -1));
|
36
41
|
$gutter-sum: (column-count($columns) + $spread) * $gutters;
|
37
42
|
$column-sum: is-symmetrical($columns);
|
@@ -49,18 +54,19 @@
|
|
49
54
|
// -----------
|
50
55
|
// Return a subset of columns at a given location.
|
51
56
|
// - $span : <number>
|
52
|
-
// - $location :
|
57
|
+
// - $location : <number>
|
53
58
|
// - [$columns] : <number> | <list>
|
54
59
|
@function get-columns(
|
55
60
|
$span,
|
56
61
|
$location,
|
57
|
-
$columns:
|
62
|
+
$columns: map-get($susy-defaults, columns)
|
58
63
|
) {
|
64
|
+
$columns: valid-columns($columns);
|
59
65
|
$sub-columns: $span;
|
60
66
|
|
61
67
|
@if not is-symmetrical($columns) {
|
62
|
-
$
|
63
|
-
$
|
68
|
+
$location: $location or 1;
|
69
|
+
$sub-columns: ();
|
64
70
|
@for $i from $location to ($location + $span) {
|
65
71
|
$sub-columns: append($sub-columns, nth($columns, $i));
|
66
72
|
}
|
@@ -76,17 +82,17 @@
|
|
76
82
|
// - $location : first | last | <number>
|
77
83
|
// - [$columns] : <number> | <list>
|
78
84
|
// - [$gutters] : <ratio>
|
79
|
-
// - [$spread]
|
85
|
+
// - [$spread] : <boolean>
|
80
86
|
@function get-column-span-sum(
|
81
87
|
$span,
|
82
88
|
$location : false,
|
83
|
-
$columns :
|
84
|
-
$gutters :
|
89
|
+
$columns : map-get($susy-defaults, columns),
|
90
|
+
$gutters : map-get($susy-defaults, gutters),
|
85
91
|
$spread : false
|
86
92
|
) {
|
87
|
-
|
88
|
-
|
89
|
-
|
93
|
+
$columns: valid-columns($columns);
|
94
|
+
$gutters: valid-gutters($gutters);
|
95
|
+
$span: get-columns($span, $location, $columns);
|
90
96
|
|
91
97
|
@return column-sum($span, $gutters, $spread);
|
92
98
|
}
|
@@ -1,23 +1,6 @@
|
|
1
1
|
// Container math
|
2
2
|
// ==============
|
3
3
|
|
4
|
-
// Parse Container Position
|
5
|
-
// ------------------------
|
6
|
-
// Parse the $container-position into margin values.
|
7
|
-
// - [$justify] : left | center | right | <length> [<length>]
|
8
|
-
@function parse-container-position(
|
9
|
-
$justify: susy-get(container-position)
|
10
|
-
) {
|
11
|
-
$return: if($justify == left, 0, auto) if($justify == right, 0, auto);
|
12
|
-
|
13
|
-
@if not index(left right center, $justify) {
|
14
|
-
$return: nth($justify, 1);
|
15
|
-
$return: $return if(length($justify) > 1, nth($justify, 2), $return);
|
16
|
-
}
|
17
|
-
|
18
|
-
@return $return;
|
19
|
-
}
|
20
|
-
|
21
4
|
// Calculate Container Width
|
22
5
|
// -------------------------
|
23
6
|
// Calculate the width of a container based on columns and gutters.
|
@@ -26,10 +9,12 @@
|
|
26
9
|
// - [$column-width] : <length>
|
27
10
|
// - [$spread] : <boolean>
|
28
11
|
@function calculate-container-width(
|
29
|
-
$columns :
|
30
|
-
$gutters :
|
31
|
-
$column-width :
|
12
|
+
$columns : map-get($susy-defaults, columns),
|
13
|
+
$gutters : map-get($susy-defaults, gutters),
|
14
|
+
$column-width : map-get($susy-defaults, column-width),
|
32
15
|
$spread : false
|
33
16
|
) {
|
34
|
-
|
17
|
+
$sum: column-sum($columns, $gutters, $spread);
|
18
|
+
$column-width: valid-column-width($column-width);
|
19
|
+
@return $sum * $column-width;
|
35
20
|
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Settings
|
2
|
+
// ========
|
3
|
+
|
4
|
+
// Version
|
5
|
+
// -------
|
6
|
+
$susy-version: 2.0;
|
7
|
+
|
8
|
+
// Default Settings
|
9
|
+
// ----------------
|
10
|
+
// PRIVATE: The basic settings
|
11
|
+
$susy-defaults: (
|
12
|
+
columns: 4,
|
13
|
+
gutters: .25,
|
14
|
+
column-width: false,
|
15
|
+
);
|
16
|
+
|
17
|
+
// Susy Defaults
|
18
|
+
// -------------
|
19
|
+
// PRIVATE: Add defaults to Susy
|
20
|
+
@mixin susy-defaults(
|
21
|
+
$defaults
|
22
|
+
) {
|
23
|
+
$susy-defaults: map-merge($susy-defaults, $defaults) !global;
|
24
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// Math Validation
|
2
|
+
// ===============
|
3
|
+
|
4
|
+
// Valid Columns
|
5
|
+
// -------------
|
6
|
+
// Check that a column setting is valid.
|
7
|
+
@function valid-columns(
|
8
|
+
$columns
|
9
|
+
) {
|
10
|
+
$type: type-of($columns);
|
11
|
+
$return: null;
|
12
|
+
|
13
|
+
@if $type == number and unitless($columns) {
|
14
|
+
$return: $columns;
|
15
|
+
} @else if $type == list {
|
16
|
+
$fail: false;
|
17
|
+
@each $col in $columns {
|
18
|
+
$number: if(type-of($col == number), true, null);
|
19
|
+
$fail: $fail or if($number and unitless($col), null, true);
|
20
|
+
}
|
21
|
+
$return: if($fail, $return, $columns);
|
22
|
+
}
|
23
|
+
|
24
|
+
@if $return != $columns {
|
25
|
+
$warn: '$columns must be a unitless number or list of unitless numbers.';
|
26
|
+
@warn $warn + ' Current value [#{$type}]: #{$columns}';
|
27
|
+
} @else {
|
28
|
+
@return $return;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Valid Gutters
|
33
|
+
// -------------
|
34
|
+
// Check that a gutter setting is valid.
|
35
|
+
@function valid-gutters(
|
36
|
+
$gutters
|
37
|
+
) {
|
38
|
+
$type: type-of($gutters);
|
39
|
+
|
40
|
+
@if $type == number and unitless($gutters) {
|
41
|
+
@return $gutters;
|
42
|
+
} @else {
|
43
|
+
$warn: '$gutters must be a unitless number.';
|
44
|
+
@warn $warn + ' Current value [#{$type}]: #{$gutters}';
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// Valid Column-Width
|
49
|
+
// ------------------
|
50
|
+
// Check that a column-width setting is valid.
|
51
|
+
@function valid-column-width(
|
52
|
+
$column-width
|
53
|
+
) {
|
54
|
+
$type: type-of($column-width);
|
55
|
+
|
56
|
+
@if ($type == number and unit($column-width)) or not $column-width {
|
57
|
+
@return $column-width;
|
58
|
+
} @else {
|
59
|
+
$warn: '$column-width must be a length (number with units), or false.';
|
60
|
+
@warn $warn + ' Current value [#{$type}]: #{$column-width}';
|
61
|
+
}
|
62
|
+
}
|
@@ -1,19 +1,16 @@
|
|
1
1
|
stylesheet 'screen.scss', :media => "screen, projection"
|
2
2
|
stylesheet '_base.scss'
|
3
3
|
|
4
|
-
description "Susy:
|
4
|
+
description "Susy: custom Sass layouts. Your markup, your design, our math."
|
5
5
|
|
6
6
|
help %Q{
|
7
|
-
|
7
|
+
Full documentation and tutorials available online:
|
8
8
|
|
9
|
-
http://
|
9
|
+
http://susy.oddbird.net/
|
10
10
|
}
|
11
11
|
|
12
12
|
welcome_message %Q{
|
13
|
-
|
13
|
+
Welcome to Susy! Check out the full documentation online:
|
14
14
|
|
15
|
-
http://
|
16
|
-
|
17
|
-
To get started, set up your grid in the base partial by following the inline instructions.
|
15
|
+
http://susy.oddbird.net/
|
18
16
|
}
|
19
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Meyer
|
@@ -45,7 +45,7 @@ email:
|
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files:
|
48
|
-
-
|
48
|
+
- docs/changelog.rst
|
49
49
|
- LICENSE.txt
|
50
50
|
- README.md
|
51
51
|
- lib/susy.rb
|
@@ -53,27 +53,26 @@ files:
|
|
53
53
|
- lib/compass-susy.rb
|
54
54
|
- lib/susy.rb
|
55
55
|
- sass/_susy.scss
|
56
|
-
- sass/susy/_core.scss
|
57
56
|
- sass/susy/_helpers.scss
|
58
57
|
- sass/susy/_math.scss
|
59
|
-
- sass/susy/_settings.scss
|
60
58
|
- sass/susy/api/_float.scss
|
61
59
|
- sass/susy/api/_shared.scss
|
60
|
+
- sass/susy/api/float/_clearfix.scss
|
62
61
|
- sass/susy/api/float/_container.scss
|
63
62
|
- sass/susy/api/float/_end.scss
|
64
63
|
- sass/susy/api/float/_isolate.scss
|
65
64
|
- sass/susy/api/float/_span.scss
|
66
65
|
- sass/susy/api/shared/_background.scss
|
66
|
+
- sass/susy/api/shared/_box-sizing.scss
|
67
67
|
- sass/susy/api/shared/_container.scss
|
68
|
+
- sass/susy/api/shared/_direction.scss
|
68
69
|
- sass/susy/api/shared/_margins.scss
|
69
70
|
- sass/susy/api/shared/_padding.scss
|
70
|
-
- sass/susy/helpers/_box-sizing.scss
|
71
|
-
- sass/susy/helpers/_clearfix.scss
|
72
|
-
- sass/susy/helpers/_direction.scss
|
73
|
-
- sass/susy/helpers/_nth.scss
|
74
71
|
- sass/susy/language/_susy.scss
|
75
72
|
- sass/susy/language/susy/_background.scss
|
76
73
|
- sass/susy/language/susy/_bleed.scss
|
74
|
+
- sass/susy/language/susy/_box-sizing.scss
|
75
|
+
- sass/susy/language/susy/_breakpoint-plugin.scss
|
77
76
|
- sass/susy/language/susy/_container.scss
|
78
77
|
- sass/susy/language/susy/_context.scss
|
79
78
|
- sass/susy/language/susy/_gallery.scss
|
@@ -87,12 +86,12 @@ files:
|
|
87
86
|
- sass/susy/language/susy/_span.scss
|
88
87
|
- sass/susy/math/_columns.scss
|
89
88
|
- sass/susy/math/_container.scss
|
90
|
-
- sass/susy/math/
|
89
|
+
- sass/susy/math/_settings.scss
|
90
|
+
- sass/susy/math/_validation.scss
|
91
91
|
- templates/project/_base.scss
|
92
92
|
- templates/project/manifest.rb
|
93
|
-
- templates/project/README.md
|
94
93
|
- templates/project/screen.scss
|
95
|
-
-
|
94
|
+
- docs/changelog.rst
|
96
95
|
- LICENSE.txt
|
97
96
|
- README.md
|
98
97
|
- VERSION
|
data/CHANGELOG.mkdn
DELETED
@@ -1,269 +0,0 @@
|
|
1
|
-
Susy Changelog
|
2
|
-
==============
|
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
|
-
|
11
|
-
v1.0.4 [Nov 3, 2012]
|
12
|
-
---------------------
|
13
|
-
|
14
|
-
* Fix bug in nested mixins that adjust support (e.g. `nth-omeg` inside `at-breakpoint`).
|
15
|
-
* Remove non-ie experimental support in `at-breakpoint` ie-fallback output.
|
16
|
-
|
17
|
-
v1.0.3 [Oct 20, 2012]
|
18
|
-
---------------------
|
19
|
-
|
20
|
-
* Fix Compass dependencies.
|
21
|
-
|
22
|
-
v1.0.2 [Oct 20, 2012]
|
23
|
-
---------------------
|
24
|
-
|
25
|
-
* Fix a bug with `container-outer-width` ignoring `$columns` argument.
|
26
|
-
* Turn off legacy-ie support inside CSS3 selectors (`nth-omega` etc).
|
27
|
-
|
28
|
-
v1.0.1 [Sept 12, 2012]
|
29
|
-
----------------------
|
30
|
-
|
31
|
-
* Fix a bug in the relationship between `$container-width` and `$border-box-sizing`,
|
32
|
-
so that grid-padding is subtracted from the width in certain cases.
|
33
|
-
* Reset right margin to `auto` rather than `0` with `remove-omega`.
|
34
|
-
|
35
|
-
v1.0 [Aug 14, 2012]
|
36
|
-
-------------------
|
37
|
-
|
38
|
-
This release is loaded with new features, but don't let that fool you. Susy
|
39
|
-
just became shockingly simple to use. See the [website][site] for details.
|
40
|
-
|
41
|
-
The gem name has changed from `compass-susy-plugin` to `susy`.
|
42
|
-
First uninstall the old gem, then install the new one.
|
43
|
-
If you have both gems installed, you will get errors.
|
44
|
-
|
45
|
-
[site]: http://susy.oddbird.net/
|
46
|
-
|
47
|
-
Semantics:
|
48
|
-
|
49
|
-
We re-arranged the code
|
50
|
-
in order to make the syntax simpler and more consistent:
|
51
|
-
|
52
|
-
* `$total-cols` is now `$total-columns`.
|
53
|
-
* `$col-width` is now `$column-width`.
|
54
|
-
* `$side-gutter-width` is now `$grid-padding`
|
55
|
-
and gets applied directly to the grid container.
|
56
|
-
* `un-column` & `reset-column` mixins have merged into `reset-columns`.
|
57
|
-
* `columns` has been renamed `span-columns` to resolve the conflict with CSS3 columns.
|
58
|
-
See other improvements to span-columns below.
|
59
|
-
|
60
|
-
We also removed several bothersome requirements:
|
61
|
-
|
62
|
-
* The `alpha` mixin is no longer needed. Ever.
|
63
|
-
* The `omega` no longer takes a `$context` argument.
|
64
|
-
* `full` has been removed entirely.
|
65
|
-
Elements will be full-width by default.
|
66
|
-
You can add `clear: both;` back in as needed.
|
67
|
-
* `side-gutter()` is no longer needed.
|
68
|
-
You can use the `$grid-padding` setting directly.
|
69
|
-
|
70
|
-
Upgrade:
|
71
|
-
|
72
|
-
That's all you need in order to upgrade from Susy 0.9.
|
73
|
-
|
74
|
-
1. Uninstall and re-install the gem.
|
75
|
-
2. Find and replace the semantic changes listed above.
|
76
|
-
|
77
|
-
You're done! Stop worrying about all that "nested vs. root" bullshit,
|
78
|
-
and start playing with the new toys!
|
79
|
-
|
80
|
-
If you use the `$from` directional arguments
|
81
|
-
directly in the `span-columns` mixin,
|
82
|
-
there may be one more change to make.
|
83
|
-
See below:
|
84
|
-
|
85
|
-
New Features:
|
86
|
-
|
87
|
-
* `span-columns` supports new features:
|
88
|
-
- "omega" can be applied directly through the `$columns` argument.
|
89
|
-
- Internal padding can be added through the `$padding` argument.
|
90
|
-
- This pushes the `$from` argument from third position into fourth.
|
91
|
-
* `at-breakpoint` allows you to change layouts at media breakpoints.
|
92
|
-
* `container` accepts multiple media-layout combinations as a shortcut.
|
93
|
-
* `layout` allows you to use a different layout at any time.
|
94
|
-
* `with-grid-settings` allows you to change any or all grid settings.
|
95
|
-
* `set-container-width` does what it says, without the other container code.
|
96
|
-
* `$breakpoint-media-output`, `$breakpoint-ie-output`, and `$breakpoint-raw-output`
|
97
|
-
settings help manage the different outputs from `at-breakpoint`
|
98
|
-
when you have IE-overrides living in a file of their own.
|
99
|
-
* `border-box-sizing` will apply the popular `* { box-sizing: border-box }`
|
100
|
-
universal box-model fix, as well as changing the Susy `$border-box-model` setting for you,
|
101
|
-
so Susy knows to adjust some math.
|
102
|
-
* The `space()` function can be used anywhere you need column+gutter math.
|
103
|
-
* `push`, `pull`, `pre`, `post`, and `squish` mixins help manage margins.
|
104
|
-
* use the `nth-omega` mixin to set omega on any nth-child, nth-of-type,
|
105
|
-
first, last, or only element.
|
106
|
-
* `remove-omega` and `remove-nth-omega` will remove
|
107
|
-
the omega-specific styles from an element.
|
108
|
-
* `$container-width` will override the width of your container
|
109
|
-
with any arbitrary length.
|
110
|
-
* `$container-style` will override the type of grid container
|
111
|
-
(magic, fluid, fixed, static, etc) to use.
|
112
|
-
|
113
|
-
v0.9 [Apr 25 2011]
|
114
|
-
------------------
|
115
|
-
|
116
|
-
Everything here is about simplicity. Susy has scaled back to it's most basic
|
117
|
-
function: providing flexible grids. That is all.
|
118
|
-
|
119
|
-
Deprecated:
|
120
|
-
|
121
|
-
* The `susy/susy` import is deprecated in favor of simply importing `susy`.
|
122
|
-
* The `show-grid` import is deprecated in favor of CSS3 gradient-based
|
123
|
-
grid-images. You can now use the `susy-grid-background` mixin. See below.
|
124
|
-
|
125
|
-
Removed:
|
126
|
-
|
127
|
-
* Susy no longer imports all of compass.
|
128
|
-
* Susy no longer establishes your baseline and no longer provides a reset.
|
129
|
-
All of that is in the Compass core. You can (and should!) keep using them, but
|
130
|
-
you will need to import them from compass.
|
131
|
-
|
132
|
-
New:
|
133
|
-
|
134
|
-
* Use the `susy-grid-background` mixin on any `container` to display the grid.
|
135
|
-
This toggles on and off with the same controls that are used by the compass
|
136
|
-
grid-background module.
|
137
|
-
|
138
|
-
v0.9.beta.3 [Mar 16 2011]
|
139
|
-
-------------------------
|
140
|
-
|
141
|
-
Deprecated:
|
142
|
-
|
143
|
-
* The `susy/reset` import has been deprecated in favor of the Compass core `compass/reset` import.
|
144
|
-
* The `susy` mixin has been deprecated. If you plan to continue using vertical-rhythms, you should replace it with the `establish-baseline` mixin from the Compass Core.
|
145
|
-
|
146
|
-
Removed:
|
147
|
-
|
148
|
-
* The `vertical-rhythm` module has moved into compass core. The API remains the same, but if you were importing it directly, you will have to update that import. (`$px2em` was removed as part of this, but didn't make it into core).
|
149
|
-
* The `defaults` template has been removed as 'out-of-scope'. This will not effect upgrading in any way, but new projects will not get a template with default styles.
|
150
|
-
|
151
|
-
New Features:
|
152
|
-
|
153
|
-
* Susy now supports RTL grids and bi-directional sites using the `$from-direction` variable (default: left) and an optional additional from-direction argument on all affected mixins. Thanks to @bangpound for the initial implementation.
|
154
|
-
* Susy is now written in pure Sass! No extra Ruby functions included! Thanks to the Sass team for making it possible.
|
155
|
-
|
156
|
-
v0.8.1 [Sep 24 2010]
|
157
|
-
--------------------
|
158
|
-
|
159
|
-
* Fixed typos in tutorial and `_defaults.scss`
|
160
|
-
|
161
|
-
v0.8.0 [Aug 13 2010]
|
162
|
-
--------------------
|
163
|
-
|
164
|
-
Deprecated:
|
165
|
-
|
166
|
-
* The `skip-link` was deprecated as it doesn't belong in Susy.
|
167
|
-
* All the IE-specific mixins have been deprecated, along with the `$hacks` variable. Hacks are now used in the default mixins as per Compass.
|
168
|
-
* The `hide` mixin was deprecated in favor of the Compass code `hide-text` mixin.
|
169
|
-
|
170
|
-
Other Changes:
|
171
|
-
|
172
|
-
* `inline-block-list` will be moved to the compass core soon. In preparation, I've cleaned it up some. You can now apply a padding of "0" to override previous padding arguments. You can also use `inline-block-list-container` and `inline-block-list-item` as you would with the Compass `horizontal-list` mixins.
|
173
|
-
* The `$align` arguments have been removed from both the `susy` and `container` mixins. Text-alignment is no longer used or needed in achieving page centering. That was a cary-over from the IE5 Mac days.
|
174
|
-
* The `container` mixin now uses the `pie-clearfix` compass mixin to avoid setting the overflow to hidden.
|
175
|
-
* Default styles have been cleaned up to account for better font stacks and typography, html5 elements, vertically-rhythmed forms, expanded print styles, use of `@extend`, and overall simplification.
|
176
|
-
|
177
|
-
v0.7.0 [Jun 01 2010]
|
178
|
-
--------------------
|
179
|
-
|
180
|
-
* updated documentation
|
181
|
-
|
182
|
-
v0.7.0.rc2 [May 13 2010]
|
183
|
-
------------------------
|
184
|
-
|
185
|
-
* Fixes a bug with grid.png and a typo in the readme. Nothing major here.
|
186
|
-
|
187
|
-
v0.7.0.rc1 [May 12 2010]
|
188
|
-
------------------------
|
189
|
-
|
190
|
-
* template cleanup & simplification - no more pushing CSSEdit comments, etc.
|
191
|
-
* expanded base and defaults with better fonts & styles out-of-the-box
|
192
|
-
* expanded readme documentation. This will expand out into a larger docs/tutorial site in the next week.
|
193
|
-
|
194
|
-
v0.7.0.pre8 [Apr 20 2010]
|
195
|
-
-------------------------
|
196
|
-
|
197
|
-
* mostly syntax and gem cleanup
|
198
|
-
* added `un-column` mixin to reset elements previously declared as columns.
|
199
|
-
* added `rhythm` mixin as shortcut for leaders/trailers. accepts 4 args: leader, padding-leader, padding-trailer, trailer.
|
200
|
-
* added a warning on `alpha` to remind you that `alpha` is not needed at nested levels.
|
201
|
-
|
202
|
-
v0.7.0.pre7 [Apr 13 2010]
|
203
|
-
-------------------------
|
204
|
-
|
205
|
-
* *Requires HAML 3 and Compass 0.10.0.rc2*
|
206
|
-
* Internal syntax switched to scss. This will have little or no effect on users. You can still use Susy with either (Sass/Scss) syntax.
|
207
|
-
* `$default-rhythm-border-style` overrides default rhythm border styles
|
208
|
-
* Better handling of sub-pixel rounding for IE6
|
209
|
-
|
210
|
-
v0.7.0.pre6 [Mar 29 2010]
|
211
|
-
-------------------------
|
212
|
-
|
213
|
-
* Added `+h-borders()` shortcut for vertical_rhythm `+horizontal-borders()`
|
214
|
-
* Fixed vertical rhythm font-size typo (thanks @oscarduignan)
|
215
|
-
* Added to template styles, so susy is already in place from the start
|
216
|
-
|
217
|
-
v0.7.0.pre5 [Mar 19 2010]
|
218
|
-
-------------------------
|
219
|
-
|
220
|
-
* Expanded and adjusted `_vertical_rhythm.sass` in ways that are not entirely backwards compatible. Check the file for details.
|
221
|
-
* `_defaults.sass` is re-ordered from inline to block.
|
222
|
-
* `:focus` defaults cleaned up.
|
223
|
-
* README and docs updated.
|
224
|
-
|
225
|
-
v0.7.0.pre4 [Jan 20 2010]
|
226
|
-
-------------------------
|
227
|
-
|
228
|
-
Update: pre2 was missing a file in the manifest. Use pre4.
|
229
|
-
|
230
|
-
*Update:* Forgot to note one change: `+susy` is no longer assigned to the `body` tag, but instead at the top level of the document (not nested under anything).
|
231
|
-
|
232
|
-
Warning: This update is not backwards compatible. We've changed some things. You'll have to change some things. Our changes were fairly major in cleaning up the code - yours will be minor and also clean up some code.
|
233
|
-
|
234
|
-
Added:
|
235
|
-
|
236
|
-
* new `_vertical_rhythm.sass` (thanks to Chris Eppstein) provides better establishing of the baseline grid, as well as mixins to help you manage it.
|
237
|
-
* `!px2em` has replaced `px2em()` - see below.
|
238
|
-
|
239
|
-
Removed:
|
240
|
-
|
241
|
-
* `px2em()` has been removed and replaced with a simple variable `!px2em` which returns the size of one pixel relative to your basic em-height. Multiply against your desired px dimensions (i.e. `border-width = !px2em*5px` will output the em-equivalent of 5px).
|
242
|
-
* `!base_font_size_px` and `!base_line_height_px` have been replaced with `!base_font_size` and `!base_line_height` which take advantage of sass's built-in unit handling.
|
243
|
-
* `!grid_units` is not needed, as you can now declare your units directly in the other grid `_width` variables. Use any one type of units in declaring your grid. The units you use will be used in setting the container size.
|
244
|
-
|
245
|
-
Once you've upgraded, before you compile your files, make these changes:
|
246
|
-
|
247
|
-
* remove the "_px" from the font-size and line-height variables, and add "px" to their values.
|
248
|
-
* remove the `!grid_units` variable and add units to your grid variable values.
|
249
|
-
* find any uses of `px2em()` and replace them with something.
|
250
|
-
* enjoy!
|
251
|
-
|
252
|
-
v0.7.0.pre1 [Nov 30 2009]
|
253
|
-
-------------------------
|
254
|
-
|
255
|
-
Not a lot of new functionality here – it all moved over to Compass 0.10.0 – mostly just cleaning it up to match.
|
256
|
-
|
257
|
-
* simplified the default styles and gave them their own project template (‘_defaults.sass’).
|
258
|
-
* defaults not imported by ‘ie.sass’, as ‘ie.sass’ should be cascading on top of ‘screen.sass’ anyway
|
259
|
-
* changed the syntax to match CSS and Compass (‘property:’ replaces ‘:property’)
|
260
|
-
* added more inline documentation and brought tutorial up to date
|
261
|
-
* moved CSS3 module over to Compass
|
262
|
-
* import the compass HTML5 reset along with the normal reset by default (because Susy loves the future)
|
263
|
-
* little internal management fixes and so on and so on…
|
264
|
-
|
265
|
-
older…
|
266
|
-
-------
|
267
|
-
|
268
|
-
* not documented here.
|
269
|
-
* check the commit log.
|