susy 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.mkdn +9 -0
- data/Manifest +5 -0
- data/VERSION +1 -1
- data/sass/_susy.scss +1 -0
- data/sass/susy/_background.scss +1 -1
- data/sass/susy/_functions.scss +35 -9
- data/sass/susy/_grid.scss +23 -18
- data/sass/susy/_isolation.scss +48 -0
- data/sass/susy/_margin.scss +19 -10
- data/sass/susy/_padding.scss +45 -7
- data/sass/susy/_settings.scss +3 -4
- data/susy.gemspec +3 -3
- data/test/css/bleed.css +20 -0
- data/test/css/grid.css +6 -6
- data/test/css/isolation.css +25 -0
- data/test/scss/bleed.scss +19 -0
- data/test/scss/isolation.scss +15 -0
- metadata +9 -4
data/CHANGELOG.mkdn
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
Susy Changelog
|
2
2
|
==============
|
3
3
|
|
4
|
+
v1.0.6 [March 18, 2013]
|
5
|
+
---------------------
|
6
|
+
|
7
|
+
* Add `isolate` and `isolate-grid` mixins.
|
8
|
+
* Add `bleed` mixin.
|
9
|
+
* Add `$style` argument to grid mixins.
|
10
|
+
* Fix documentation typos.
|
11
|
+
* Switch from `#` to `*` in legacy-ie hacks.
|
12
|
+
|
4
13
|
v1.0.5 [Nov 27, 2012]
|
5
14
|
---------------------
|
6
15
|
|
data/Manifest
CHANGED
@@ -9,6 +9,7 @@ sass/_susy.scss
|
|
9
9
|
sass/susy/_background.scss
|
10
10
|
sass/susy/_functions.scss
|
11
11
|
sass/susy/_grid.scss
|
12
|
+
sass/susy/_isolation.scss
|
12
13
|
sass/susy/_margin.scss
|
13
14
|
sass/susy/_media.scss
|
14
15
|
sass/susy/_padding.scss
|
@@ -21,14 +22,18 @@ templates/project/manifest.rb
|
|
21
22
|
templates/project/screen.scss
|
22
23
|
test/config.rb
|
23
24
|
test/css/background.css
|
25
|
+
test/css/bleed.css
|
24
26
|
test/css/functions.css
|
25
27
|
test/css/grid.css
|
28
|
+
test/css/isolation.css
|
26
29
|
test/css/margin.css
|
27
30
|
test/css/media.css
|
28
31
|
test/css/padding.css
|
29
32
|
test/scss/background.scss
|
33
|
+
test/scss/bleed.scss
|
30
34
|
test/scss/functions.scss
|
31
35
|
test/scss/grid.scss
|
36
|
+
test/scss/isolation.scss
|
32
37
|
test/scss/margin.scss
|
33
38
|
test/scss/media.scss
|
34
39
|
test/scss/padding.scss
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.6
|
data/sass/_susy.scss
CHANGED
data/sass/susy/_background.scss
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
// Uses all your settings to create a grid background for a container element.
|
13
13
|
// Note: Sub-pixel rounding can lead to several pixels of variation between browsers.
|
14
14
|
@mixin susy-grid-background(){
|
15
|
-
@include column-grid-background($total-columns, column(), gutter(), 0
|
15
|
+
@include column-grid-background($total-columns, column(), gutter(), 0);
|
16
16
|
@include background-origin(content-box);
|
17
17
|
@include background-clip(content-box);
|
18
18
|
}
|
data/sass/susy/_functions.scss
CHANGED
@@ -11,6 +11,24 @@ $browser-default-font-size-pt : 12pt;
|
|
11
11
|
|
12
12
|
$rem-with-px-fallback : true !default;
|
13
13
|
|
14
|
+
// ---------------------------------------------------------------------------
|
15
|
+
// Sass list Functions
|
16
|
+
|
17
|
+
// Return a list with specific items removed
|
18
|
+
//
|
19
|
+
// filter($list, $target)
|
20
|
+
// - $list : The list to filter.
|
21
|
+
// - $target : An item to be removed from the list.
|
22
|
+
@function filter($list, $target) {
|
23
|
+
$clean: compact();
|
24
|
+
@if index($list, $target) {
|
25
|
+
@each $item in $list {
|
26
|
+
$clean: if($item == $target, $clean, append($clean, $item));
|
27
|
+
}
|
28
|
+
} @else { $clean: $list; }
|
29
|
+
@return $clean;
|
30
|
+
}
|
31
|
+
|
14
32
|
// ---------------------------------------------------------------------------
|
15
33
|
// Grid Functions
|
16
34
|
|
@@ -67,30 +85,36 @@ $rem-with-px-fallback : true !default;
|
|
67
85
|
// Return the percentage width of a single column in a given 'context'.
|
68
86
|
//
|
69
87
|
// $context : The grid context in columns, if nested.
|
88
|
+
// $style : The container style to use.
|
70
89
|
@function column(
|
71
|
-
$context
|
90
|
+
$context : $total-columns,
|
91
|
+
$style : $container-style
|
72
92
|
) {
|
73
|
-
@return relative-width($column-width, $context);
|
93
|
+
@return if($style == static, $column-width, relative-width($column-width, $context));
|
74
94
|
}
|
75
95
|
|
76
96
|
// Return the percentage width of multiple 'columns' in a given 'context'.
|
77
97
|
//
|
78
98
|
// $columns : The number of columns to get relative width for.
|
79
99
|
// $context : The grid context in columns, if nested.
|
100
|
+
// $style : The container style to use.
|
80
101
|
@function columns(
|
81
102
|
$columns,
|
82
|
-
$context
|
103
|
+
$context : $total-columns,
|
104
|
+
$style : $container-style
|
83
105
|
) {
|
84
|
-
@return relative-width(columns-width($columns), $context);
|
106
|
+
@return if($style == static, columns-width($columns), relative-width(columns-width($columns), $context));
|
85
107
|
}
|
86
108
|
|
87
109
|
// Return the percentage width of a single gutter in a given 'context'.
|
88
110
|
//
|
89
111
|
// $context : The grid context in columns, if nested.
|
112
|
+
// $style : The container style to use.
|
90
113
|
@function gutter(
|
91
|
-
$context
|
114
|
+
$context : $total-columns,
|
115
|
+
$style : $container-style
|
92
116
|
) {
|
93
|
-
@return relative-width($gutter-width, $context);
|
117
|
+
@return if($style == static, $gutter-width, relative-width($gutter-width, $context));
|
94
118
|
}
|
95
119
|
|
96
120
|
// Return the percentage width of a given value in a given 'context'.
|
@@ -105,15 +129,17 @@ $rem-with-px-fallback : true !default;
|
|
105
129
|
}
|
106
130
|
|
107
131
|
// Return the total space occupied by multiple columns and associated gutters.
|
108
|
-
// Useful for adding padding or margins (
|
132
|
+
// Useful for adding padding or margins (prefix, suffix, push, pull, etc.)
|
109
133
|
//
|
110
134
|
// $columns : The number of columns to get relative space for.
|
111
135
|
// $context : The grid context in columns, if nested.
|
136
|
+
// $style : The container style to use.
|
112
137
|
@function space(
|
113
138
|
$columns,
|
114
|
-
$context
|
139
|
+
$context : $total-columns,
|
140
|
+
$style : $container-style
|
115
141
|
) {
|
116
|
-
@return columns($columns, $context) + if($columns >= 1, gutter($context), 0);
|
142
|
+
@return columns($columns, $context, $style) + if($columns >= 1, gutter($context), 0);
|
117
143
|
}
|
118
144
|
|
119
145
|
// Accept a list including column-count and (optional) position.
|
data/sass/susy/_grid.scss
CHANGED
@@ -106,19 +106,20 @@
|
|
106
106
|
// : Padding is only output if one or two values are specified (e.g. 1em or 10px 20px)
|
107
107
|
// : Padding values are applied only on the horizontal axis in from-to order
|
108
108
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
109
|
-
|
109
|
+
// $style : The container style to use.
|
110
110
|
@mixin span-columns(
|
111
111
|
$columns,
|
112
112
|
$context : $total-columns,
|
113
113
|
$padding : false,
|
114
|
-
$from : $from-direction
|
114
|
+
$from : $from-direction,
|
115
|
+
$style : $container-style
|
115
116
|
) {
|
116
117
|
$from : unquote($from);
|
117
118
|
$to : opposite-position($from);
|
118
119
|
$pos : split-columns-value($columns,position);
|
119
120
|
$cols : split-columns-value($columns,columns);
|
120
|
-
$pad-from : relative-width(0 * $gutter-width, $context);
|
121
|
-
$pad-to : relative-width(0 * $gutter-width, $context);
|
121
|
+
$pad-from : if($style == static, 0 * $gutter-width, relative-width(0 * $gutter-width, $context));
|
122
|
+
$pad-to : if($style == static, 0 * $gutter-width, relative-width(0 * $gutter-width, $context));
|
122
123
|
|
123
124
|
@if $padding != false {
|
124
125
|
$pad-from : nth($padding, 1);
|
@@ -129,23 +130,21 @@
|
|
129
130
|
$pad-to: $pad-from;
|
130
131
|
}
|
131
132
|
|
132
|
-
$pad-from : relative-width($pad-from, $context);
|
133
|
-
$pad-to : relative-width($pad-to, $context);
|
133
|
+
$pad-from : if($style == static, $pad-from, relative-width($pad-from, $context));
|
134
|
+
$pad-to : if($style == static, $pad-to, relative-width($pad-to, $context));
|
134
135
|
|
135
136
|
padding-#{$from}: $pad-from;
|
136
137
|
padding-#{$to}: $pad-to;
|
137
138
|
}
|
138
139
|
|
139
|
-
width: columns($cols, $context) - if($border-box-sizing, 0, $pad-to + $pad-from);
|
140
|
+
width: columns($cols, $context, $style) - if($border-box-sizing, 0, $pad-to + $pad-from);
|
140
141
|
|
141
142
|
@if ($pos == 'omega') {
|
142
143
|
@include omega($from);
|
143
144
|
} @else {
|
144
145
|
float: $from;
|
145
|
-
margin-#{$to}: gutter($context);
|
146
|
-
@if $legacy-support-for-ie6 {
|
147
|
-
display: inline;
|
148
|
-
}
|
146
|
+
margin-#{$to}: gutter($context, $style);
|
147
|
+
@if $legacy-support-for-ie6 { display: inline; }
|
149
148
|
}
|
150
149
|
}
|
151
150
|
|
@@ -164,7 +163,7 @@
|
|
164
163
|
margin-#{$to}: 0;
|
165
164
|
|
166
165
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
167
|
-
|
166
|
+
*margin-#{$hack}: - $gutter-width;
|
168
167
|
@if $legacy-support-for-ie6 { display: inline; }
|
169
168
|
}
|
170
169
|
}
|
@@ -204,7 +203,7 @@
|
|
204
203
|
margin-#{$to}: auto;
|
205
204
|
|
206
205
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
207
|
-
|
206
|
+
*margin-#{$hack}: auto;
|
208
207
|
@if $legacy-support-for-ie6 { display: block; }
|
209
208
|
}
|
210
209
|
}
|
@@ -214,19 +213,21 @@
|
|
214
213
|
//
|
215
214
|
// $context : [optional] The context (columns spanned by parent).
|
216
215
|
// $from : The start-direction for your document.
|
216
|
+
// $style : The container style to use.
|
217
217
|
@mixin remove-omega(
|
218
218
|
$context : $total-columns,
|
219
|
-
$from : $from-direction
|
219
|
+
$from : $from-direction,
|
220
|
+
$style : $container-style
|
220
221
|
) {
|
221
222
|
$from : unquote($from);
|
222
223
|
$to : opposite-position($from);
|
223
224
|
$hack : opposite-position($omega-float);
|
224
225
|
|
225
226
|
float: $from;
|
226
|
-
margin-#{$to}: gutter($context);
|
227
|
+
margin-#{$to}: gutter($context, $style);
|
227
228
|
|
228
229
|
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
|
229
|
-
|
230
|
+
*margin-#{$hack}: auto;
|
230
231
|
}
|
231
232
|
}
|
232
233
|
|
@@ -236,16 +237,20 @@
|
|
236
237
|
// $selector : [child | last-child | of-type | last-of-type ]
|
237
238
|
// $context : [optional] The context (columns spanned by parent).
|
238
239
|
// $from : The start-direction for your document.
|
240
|
+
// $style : The container style to use.
|
239
241
|
@mixin remove-nth-omega(
|
240
242
|
$n : last,
|
241
243
|
$selector : child,
|
242
244
|
$context : $total-columns,
|
243
|
-
$from : $from-direction
|
245
|
+
$from : $from-direction,
|
246
|
+
$style : $container-style
|
244
247
|
) {
|
245
248
|
$from : unquote($from);
|
246
249
|
$ie: if($n == "first", true, false);
|
247
250
|
@include adjust-support-for($ie6: $ie, $ie7: $ie, $ie8: $ie) {
|
248
|
-
&:#{format-nth($n,$selector)} {
|
251
|
+
&:#{format-nth($n,$selector)} {
|
252
|
+
@include remove-omega($context, $from, $style);
|
253
|
+
}
|
249
254
|
}
|
250
255
|
}
|
251
256
|
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Isolation
|
3
|
+
|
4
|
+
// Isolate the position of a grid element (use in addition to span-columns)
|
5
|
+
//
|
6
|
+
// $location : The grid column to isolate in, relative to the container;
|
7
|
+
// $context : [optional] The context (columns spanned by parent).
|
8
|
+
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
9
|
+
@mixin isolate(
|
10
|
+
$location,
|
11
|
+
$context: $total-columns,
|
12
|
+
$from: $from-direction,
|
13
|
+
$style: $container-style
|
14
|
+
) {
|
15
|
+
$to: opposite-position($from);
|
16
|
+
margin-#{$to}: -100%;
|
17
|
+
margin-#{$from}: space($location - 1, $context, $style);
|
18
|
+
}
|
19
|
+
|
20
|
+
// Isolate a group of elements in a grid, using nth-child selectors
|
21
|
+
//
|
22
|
+
// $columns : The column-width of each item on the grid;
|
23
|
+
// $context : [optional] The context (columns spanned by parent).
|
24
|
+
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
25
|
+
@mixin isolate-grid(
|
26
|
+
$columns,
|
27
|
+
$context: $total-columns,
|
28
|
+
$from: $from-direction,
|
29
|
+
$style: $container-style
|
30
|
+
) {
|
31
|
+
$to: opposite-position($from);
|
32
|
+
$location: 1;
|
33
|
+
$line: floor($context / $columns);
|
34
|
+
|
35
|
+
@include span-columns($columns, $context, $from: $from, $style: $style);
|
36
|
+
margin-#{$to}: -100%;
|
37
|
+
|
38
|
+
@for $item from 1 through $line {
|
39
|
+
$nth: '#{$line}n + #{$item}';
|
40
|
+
&:nth-child(#{$nth}) {
|
41
|
+
margin-#{$from}: space($location - 1, $context, $style);
|
42
|
+
@if $location == 1 { clear: $from; }
|
43
|
+
|
44
|
+
$location: $location + $columns;
|
45
|
+
@if $location > $context { $location: 1; }
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
data/sass/susy/_margin.scss
CHANGED
@@ -8,20 +8,23 @@
|
|
8
8
|
// : Context is required on any nested elements.
|
9
9
|
// : Context MUST NOT be declared on a root element.
|
10
10
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
11
|
+
// $style : The container style to use.
|
11
12
|
@mixin pre(
|
12
13
|
$columns,
|
13
14
|
$context : $total-columns,
|
14
|
-
$from : $from-direction
|
15
|
+
$from : $from-direction,
|
16
|
+
$style : $container-style
|
15
17
|
) {
|
16
18
|
$from : unquote($from);
|
17
|
-
margin-#{$from}: space($columns
|
19
|
+
margin-#{$from}: space($columns, $context, $style);
|
18
20
|
}
|
19
21
|
|
20
22
|
// 'push' is a synonymn for 'pre'
|
21
23
|
@mixin push(
|
22
24
|
$columns,
|
23
25
|
$context : $total-columns,
|
24
|
-
$from : $from-direction
|
26
|
+
$from : $from-direction,
|
27
|
+
$style : $container-style
|
25
28
|
) {
|
26
29
|
$from : unquote($from);
|
27
30
|
@include pre($columns,$context,$from)
|
@@ -34,13 +37,15 @@
|
|
34
37
|
// : Context is required on any nested elements.
|
35
38
|
// : Context MUST NOT be declared on a root element.
|
36
39
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
40
|
+
// $style : The container style to use.
|
37
41
|
@mixin pull(
|
38
42
|
$columns,
|
39
43
|
$context : $total-columns,
|
40
|
-
$from : $from-direction
|
44
|
+
$from : $from-direction,
|
45
|
+
$style : $container-style
|
41
46
|
) {
|
42
47
|
$from : unquote($from);
|
43
|
-
margin-#{$from}: 0 - space($columns, $context);
|
48
|
+
margin-#{$from}: 0 - space($columns, $context, $style);
|
44
49
|
}
|
45
50
|
|
46
51
|
// Apply 'columns' margin after an element to contain it in a grid.
|
@@ -50,14 +55,16 @@
|
|
50
55
|
// : Context is required on any nested elements.
|
51
56
|
// : Context MUST NOT be declared on a root element.
|
52
57
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
58
|
+
// $style : The container style to use.
|
53
59
|
@mixin post(
|
54
60
|
$columns,
|
55
61
|
$context : $total-columns,
|
56
|
-
$from : $from-direction
|
62
|
+
$from : $from-direction,
|
63
|
+
$style : $container-style
|
57
64
|
) {
|
58
65
|
$from : unquote($from);
|
59
66
|
$to : opposite-position($from);
|
60
|
-
margin-#{$to}: space($columns
|
67
|
+
margin-#{$to}: space($columns, $context, $style);
|
61
68
|
}
|
62
69
|
|
63
70
|
// Apply 'columns' before and/or after an element to contain it on a grid.
|
@@ -68,17 +75,19 @@
|
|
68
75
|
// : Context is required on any nested elements.
|
69
76
|
// : Context MUST NOT be declared on a root element.
|
70
77
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
78
|
+
// $style : The container style to use.
|
71
79
|
@mixin squish(
|
72
80
|
$pre : false,
|
73
81
|
$post : false,
|
74
82
|
$context : $total-columns,
|
75
|
-
$from : $from-direction
|
83
|
+
$from : $from-direction,
|
84
|
+
$style : $container-style
|
76
85
|
) {
|
77
86
|
$from : unquote($from);
|
78
87
|
@if $pre {
|
79
|
-
@include pre($pre
|
88
|
+
@include pre($pre, $context, $from, $style)
|
80
89
|
}
|
81
90
|
@if $post {
|
82
|
-
@include post($post
|
91
|
+
@include post($post, $context, $from, $style)
|
83
92
|
}
|
84
93
|
}
|
data/sass/susy/_padding.scss
CHANGED
@@ -7,13 +7,15 @@
|
|
7
7
|
// : Context is required on any nested elements.
|
8
8
|
// : Context MUST NOT be declared on a root element.
|
9
9
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
10
|
+
// $style : The container style to use.
|
10
11
|
@mixin prefix(
|
11
12
|
$columns,
|
12
13
|
$context : $total-columns,
|
13
|
-
$from : $from-direction
|
14
|
+
$from : $from-direction,
|
15
|
+
$style : $container-style
|
14
16
|
) {
|
15
17
|
$from : unquote($from);
|
16
|
-
padding-#{$from}: space($columns, $context);
|
18
|
+
padding-#{$from}: space($columns, $context, $style);
|
17
19
|
}
|
18
20
|
|
19
21
|
// add empty colums as padding after an element.
|
@@ -22,14 +24,16 @@
|
|
22
24
|
// : Context is required on any nested elements.
|
23
25
|
// : Context MUST NOT be declared on a root element.
|
24
26
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
27
|
+
// $style : The container style to use.
|
25
28
|
@mixin suffix(
|
26
29
|
$columns,
|
27
30
|
$context : $total-columns,
|
28
|
-
$from : $from-direction
|
31
|
+
$from : $from-direction,
|
32
|
+
$style : $container-style
|
29
33
|
) {
|
30
34
|
$from : unquote($from);
|
31
35
|
$to : opposite-position($from);
|
32
|
-
padding-#{$to}: space($columns, $context);
|
36
|
+
padding-#{$to}: space($columns, $context, $style);
|
33
37
|
}
|
34
38
|
|
35
39
|
// add empty colums as padding before and after an element.
|
@@ -38,17 +42,51 @@
|
|
38
42
|
// : Context is required on any nested elements.
|
39
43
|
// : Context MUST NOT be declared on a root element.
|
40
44
|
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
45
|
+
// $style : The container style to use.
|
41
46
|
@mixin pad(
|
42
47
|
$prefix : false,
|
43
48
|
$suffix : false,
|
44
49
|
$context : $total-columns,
|
45
|
-
$from : $from-direction
|
50
|
+
$from : $from-direction,
|
51
|
+
$style : $container-style
|
46
52
|
) {
|
47
53
|
$from : unquote($from);
|
48
54
|
@if $prefix {
|
49
|
-
@include prefix($prefix, $context, $from);
|
55
|
+
@include prefix($prefix, $context, $from, $style);
|
50
56
|
}
|
51
57
|
@if $suffix {
|
52
|
-
@include suffix($suffix, $context, $from);
|
58
|
+
@include suffix($suffix, $context, $from, $style);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// Bleed into colums with margin/padding on any side of an element.
|
63
|
+
// $width : The side of the bleed.
|
64
|
+
// : Any unit-length will be used directly.
|
65
|
+
// : Any unitless number will be used as a column-count.
|
66
|
+
// : Use "2 of 6" format to represent 2 cals in a 6-col nested context.
|
67
|
+
// $sides : One or more sides to bleed [ top | right | bottom | left | all ].
|
68
|
+
// $style : The container style to use.
|
69
|
+
@mixin bleed(
|
70
|
+
$width: $grid-padding,
|
71
|
+
$sides: left right,
|
72
|
+
$style: $container-style
|
73
|
+
) {
|
74
|
+
@if $border-box-sizing { @include box-sizing(content-box) }
|
75
|
+
|
76
|
+
@if type-of($width) == 'list' {
|
77
|
+
$width: filter($width, of);
|
78
|
+
$width: space(nth($width,1), nth($width,2), $style);
|
79
|
+
} @else if unitless($width) {
|
80
|
+
$width: space($width, $style: $style);
|
81
|
+
}
|
82
|
+
|
83
|
+
@if $sides == 'all' {
|
84
|
+
margin: - $width;
|
85
|
+
padding: $width;
|
86
|
+
} @else {
|
87
|
+
@each $side in $sides {
|
88
|
+
margin-#{$side}: - $width;
|
89
|
+
padding-#{$side}: $width;
|
90
|
+
}
|
53
91
|
}
|
54
92
|
}
|
data/sass/susy/_settings.scss
CHANGED
@@ -18,7 +18,6 @@ $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);
|
22
21
|
|
23
22
|
// Omega Float Direction:
|
24
23
|
// The direction that +omega elements are floated by deafult.
|
@@ -50,8 +49,8 @@ $border-box-sizing : false !default;
|
|
50
49
|
// you can use these settings to control the output of at-breakpoint.
|
51
50
|
// By default, at-breakpoint will output media-queries as well as
|
52
51
|
// any defined ie-fallback classes.
|
53
|
-
$breakpoint-media-output : true;
|
54
|
-
$breakpoint-ie-output : true;
|
52
|
+
$breakpoint-media-output : true !default;
|
53
|
+
$breakpoint-ie-output : true !default;
|
55
54
|
|
56
55
|
// Danger Zone! Only set as 'true' in IE-specific style sheets.
|
57
|
-
$breakpoint-raw-output : false;
|
56
|
+
$breakpoint-raw-output : false !default;
|
data/susy.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "susy"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.6"
|
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 = "
|
9
|
+
s.date = "2013-03-18"
|
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.md", "lib/susy.rb"]
|
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"]
|
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/_isolation.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/bleed.css", "test/css/functions.css", "test/css/grid.css", "test/css/isolation.css", "test/css/margin.css", "test/css/media.css", "test/css/padding.css", "test/scss/background.scss", "test/scss/bleed.scss", "test/scss/functions.scss", "test/scss/grid.scss", "test/scss/isolation.scss", "test/scss/margin.scss", "test/scss/media.scss", "test/scss/padding.scss"]
|
14
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"]
|
data/test/css/bleed.css
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
.bleed-columns {
|
2
|
+
margin-left: -25.42373%;
|
3
|
+
padding-left: 25.42373%;
|
4
|
+
margin-right: -25.42373%;
|
5
|
+
padding-right: 25.42373%;
|
6
|
+
}
|
7
|
+
|
8
|
+
.bleed-length {
|
9
|
+
margin-left: -3em;
|
10
|
+
padding-left: 3em;
|
11
|
+
margin-right: -3em;
|
12
|
+
padding-right: 3em;
|
13
|
+
}
|
14
|
+
|
15
|
+
.bleed-sides {
|
16
|
+
margin-top: -4%;
|
17
|
+
padding-top: 4%;
|
18
|
+
margin-bottom: -4%;
|
19
|
+
padding-bottom: 4%;
|
20
|
+
}
|
data/test/css/grid.css
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
width: 49.15254%;
|
38
38
|
float: right;
|
39
39
|
margin-right: 0;
|
40
|
-
|
40
|
+
*margin-left: -1em;
|
41
41
|
display: inline;
|
42
42
|
}
|
43
43
|
|
@@ -47,7 +47,7 @@
|
|
47
47
|
width: 44.0678%;
|
48
48
|
float: right;
|
49
49
|
margin-right: 0;
|
50
|
-
|
50
|
+
*margin-left: -1em;
|
51
51
|
display: inline;
|
52
52
|
}
|
53
53
|
|
@@ -55,14 +55,14 @@
|
|
55
55
|
float: none;
|
56
56
|
width: auto;
|
57
57
|
margin-right: auto;
|
58
|
-
|
58
|
+
*margin-left: auto;
|
59
59
|
display: block;
|
60
60
|
}
|
61
61
|
|
62
62
|
.omega {
|
63
63
|
float: right;
|
64
64
|
margin-right: 0;
|
65
|
-
|
65
|
+
*margin-left: -1em;
|
66
66
|
display: inline;
|
67
67
|
}
|
68
68
|
|
@@ -74,7 +74,7 @@
|
|
74
74
|
.remove-omega {
|
75
75
|
float: left;
|
76
76
|
margin-right: 1.69492%;
|
77
|
-
|
77
|
+
*margin-left: auto;
|
78
78
|
}
|
79
79
|
|
80
80
|
.remove-nth-omega:last-child {
|
@@ -111,6 +111,6 @@
|
|
111
111
|
width: 49.15254%;
|
112
112
|
float: right;
|
113
113
|
margin-right: 0;
|
114
|
-
|
114
|
+
*margin-left: -1em;
|
115
115
|
display: inline;
|
116
116
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.isolate {
|
2
|
+
margin-right: -100%;
|
3
|
+
margin-left: 16.94915%;
|
4
|
+
}
|
5
|
+
|
6
|
+
.isolate-grid {
|
7
|
+
width: 24.05063%;
|
8
|
+
float: left;
|
9
|
+
margin-right: 1.26582%;
|
10
|
+
display: inline;
|
11
|
+
margin-right: -100%;
|
12
|
+
}
|
13
|
+
.isolate-grid:nth-child(4n + 1) {
|
14
|
+
margin-left: 0%;
|
15
|
+
clear: left;
|
16
|
+
}
|
17
|
+
.isolate-grid:nth-child(4n + 2) {
|
18
|
+
margin-left: 25.31646%;
|
19
|
+
}
|
20
|
+
.isolate-grid:nth-child(4n + 3) {
|
21
|
+
margin-left: 50.63291%;
|
22
|
+
}
|
23
|
+
.isolate-grid:nth-child(4n + 4) {
|
24
|
+
margin-left: 75.94937%;
|
25
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../sass/susy";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// Bleed
|
8
|
+
|
9
|
+
.bleed-columns {
|
10
|
+
@include bleed(3);
|
11
|
+
}
|
12
|
+
|
13
|
+
.bleed-length {
|
14
|
+
@include bleed(3em);
|
15
|
+
}
|
16
|
+
|
17
|
+
.bleed-sides {
|
18
|
+
@include bleed(4%, top bottom);
|
19
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../sass/susy";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// Isolation
|
8
|
+
|
9
|
+
.isolate {
|
10
|
+
@include isolate(3);
|
11
|
+
}
|
12
|
+
|
13
|
+
.isolate-grid {
|
14
|
+
@include isolate-grid(4,16);
|
15
|
+
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Meyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-03-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: compass
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- sass/susy/_background.scss
|
73
73
|
- sass/susy/_functions.scss
|
74
74
|
- sass/susy/_grid.scss
|
75
|
+
- sass/susy/_isolation.scss
|
75
76
|
- sass/susy/_margin.scss
|
76
77
|
- sass/susy/_media.scss
|
77
78
|
- sass/susy/_padding.scss
|
@@ -84,14 +85,18 @@ files:
|
|
84
85
|
- templates/project/screen.scss
|
85
86
|
- test/config.rb
|
86
87
|
- test/css/background.css
|
88
|
+
- test/css/bleed.css
|
87
89
|
- test/css/functions.css
|
88
90
|
- test/css/grid.css
|
91
|
+
- test/css/isolation.css
|
89
92
|
- test/css/margin.css
|
90
93
|
- test/css/media.css
|
91
94
|
- test/css/padding.css
|
92
95
|
- test/scss/background.scss
|
96
|
+
- test/scss/bleed.scss
|
93
97
|
- test/scss/functions.scss
|
94
98
|
- test/scss/grid.scss
|
99
|
+
- test/scss/isolation.scss
|
95
100
|
- test/scss/margin.scss
|
96
101
|
- test/scss/media.scss
|
97
102
|
- test/scss/padding.scss
|