susy 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.mkdn +8 -0
- data/VERSION +1 -1
- data/sass/susy/_isolation.scss +7 -4
- data/susy.gemspec +2 -2
- data/test/css/isolation.css +21 -0
- data/test/scss/isolation.scss +4 -0
- metadata +4 -4
data/CHANGELOG.mkdn
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
Susy Changelog
|
2
2
|
==============
|
3
3
|
|
4
|
+
v1.0.9 [June 19, 2013]
|
5
|
+
----------------------
|
6
|
+
|
7
|
+
* Fix clearing with `isolate-grid` mixin.
|
8
|
+
* Allow changing nth-selectors in `isolate-grid` mixin.
|
9
|
+
|
4
10
|
v1.0.8 [March 25, 2013]
|
5
11
|
-----------------------
|
6
12
|
|
@@ -286,3 +292,5 @@ older…
|
|
286
292
|
|
287
293
|
* not documented here.
|
288
294
|
* check the commit log.
|
295
|
+
* Susy was created.
|
296
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
data/sass/susy/_isolation.scss
CHANGED
@@ -19,12 +19,14 @@
|
|
19
19
|
|
20
20
|
// Isolate a group of elements in a grid, using nth-child selectors
|
21
21
|
//
|
22
|
-
// $columns
|
23
|
-
// $context
|
24
|
-
// $
|
22
|
+
// $columns : The column-width of each item on the grid;
|
23
|
+
// $context : [optional] The context (columns spanned by parent).
|
24
|
+
// $selector : [child | of-type | last-of-type ] (default is 'child')
|
25
|
+
// $from : The start direction of your layout (e.g. 'left' for ltr languages)
|
25
26
|
@mixin isolate-grid(
|
26
27
|
$columns,
|
27
28
|
$context: $total-columns,
|
29
|
+
$selector: 'child',
|
28
30
|
$from: $from-direction,
|
29
31
|
$style: fix-static-misalignment()
|
30
32
|
) {
|
@@ -37,9 +39,10 @@
|
|
37
39
|
|
38
40
|
@for $item from 1 through $line {
|
39
41
|
$nth: '#{$line}n + #{$item}';
|
40
|
-
|
42
|
+
&:#{format-nth($nth,$selector)} {
|
41
43
|
margin-#{$from}: space($location - 1, $context, $style);
|
42
44
|
@if $location == 1 { clear: $from; }
|
45
|
+
@else { clear: none; }
|
43
46
|
|
44
47
|
$location: $location + $columns;
|
45
48
|
@if $location > $context { $location: 1; }
|
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.
|
5
|
+
s.version = "1.0.9"
|
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 = "2013-
|
9
|
+
s.date = "2013-06-19"
|
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"]
|
data/test/css/isolation.css
CHANGED
@@ -23,3 +23,24 @@
|
|
23
23
|
.isolate-grid:nth-child(4n + 4) {
|
24
24
|
margin-left: 75.94937%;
|
25
25
|
}
|
26
|
+
|
27
|
+
.isolate-grid-for-nth-of-type {
|
28
|
+
width: 24.05063%;
|
29
|
+
float: left;
|
30
|
+
margin-right: 1.26582%;
|
31
|
+
display: inline;
|
32
|
+
margin-right: -100%;
|
33
|
+
}
|
34
|
+
.isolate-grid-for-nth-of-type:nth-of-type(4n + 1) {
|
35
|
+
margin-left: 0%;
|
36
|
+
clear: left;
|
37
|
+
}
|
38
|
+
.isolate-grid-for-nth-of-type:nth-of-type(4n + 2) {
|
39
|
+
margin-left: 25.31646%;
|
40
|
+
}
|
41
|
+
.isolate-grid-for-nth-of-type:nth-of-type(4n + 3) {
|
42
|
+
margin-left: 50.63291%;
|
43
|
+
}
|
44
|
+
.isolate-grid-for-nth-of-type:nth-of-type(4n + 4) {
|
45
|
+
margin-left: 75.94937%;
|
46
|
+
}
|
data/test/scss/isolation.scss
CHANGED
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: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 9
|
10
|
+
version: 1.0.9
|
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: 2013-
|
18
|
+
date: 2013-06-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: compass
|