compass-vgrid-plugin 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/compass-vgrid-plugin.gemspec +2 -2
- data/sass/vgrid/_elastic.sass +19 -19
- data/sass/vgrid/_fixed.sass +19 -19
- data/sass/vgrid/_fluid.sass +19 -19
- data/sass/vgrid/shared/_grid_system.sass +8 -8
- data/templates/elastic/project/grid.sass +3 -3
- data/templates/fixed/project/grid.sass +3 -3
- data/templates/fluid/project/grid.sass +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{compass-vgrid-plugin}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Russell"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-12}
|
13
13
|
s.description = %q{A Compass compatible SASS port of the Variable Grid System by Spry Soft (http://www.spry-soft.com/grids/). Based in the 960 Grid System (http://960.gs/). Provides fixed, fluid and elastic grids with complete control over the grid system.}
|
14
14
|
s.email = %q{aaron@gc4.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
data/sass/vgrid/_elastic.sass
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
=
|
1
|
+
=grid-container
|
2
2
|
:margin-left 4%
|
3
3
|
:margin-right 4%
|
4
4
|
:min-width= !vgrid_width
|
5
5
|
:width 92%
|
6
6
|
|
7
|
-
=
|
7
|
+
=grid-width(!n, !cols = !vgrid_columns)
|
8
8
|
:width= (100% / !cols) * !n - 2%
|
9
9
|
|
10
|
-
=
|
10
|
+
=grid-unit_base
|
11
11
|
:display inline
|
12
12
|
:float left
|
13
13
|
:position relative
|
@@ -16,46 +16,46 @@
|
|
16
16
|
:right= 1%
|
17
17
|
|
18
18
|
=grid(!n, !cols = !vgrid_columns)
|
19
|
-
+
|
20
|
-
+
|
19
|
+
+grid-unit_base
|
20
|
+
+grid-width(!n, !cols)
|
21
21
|
|
22
22
|
=grids(!cols = !vgrid_columns)
|
23
23
|
#{enumerate(".grid", 1, !cols, "_")}
|
24
|
-
+
|
24
|
+
+grid-unit_base
|
25
25
|
@for !n from 1 through !cols
|
26
26
|
.container_#{!cols} .grid_#{!n}
|
27
|
-
+
|
27
|
+
+grid-width(!n, !cols)
|
28
28
|
|
29
|
-
=
|
29
|
+
=grid-prefix(!n, !cols = !vgrid_columns)
|
30
30
|
:padding-left= (100% / !cols) * !n
|
31
31
|
|
32
|
-
=
|
32
|
+
=grid-prefixes(!cols = !vgrid_columns)
|
33
33
|
@for !n from 1 through !cols - 1
|
34
34
|
.container_#{!cols} .prefix_#{!n}
|
35
|
-
+
|
35
|
+
+grid-prefix(!n, !cols)
|
36
36
|
|
37
|
-
=
|
37
|
+
=grid-suffix(!n, !cols = !vgrid_columns)
|
38
38
|
:padding-right= (100% / !cols) * !n
|
39
39
|
|
40
|
-
=
|
40
|
+
=grid-suffixes(!cols = !vgrid_columns)
|
41
41
|
@for !n from 1 through !cols - 1
|
42
42
|
.container_#{!cols} .suffix_#{!n}
|
43
|
-
+
|
43
|
+
+grid-suffix(!n, !cols)
|
44
44
|
|
45
|
-
=
|
45
|
+
=grid-push(!n, !cols = !vgrid_columns)
|
46
46
|
:left= (100% / !cols) * !n
|
47
47
|
|
48
|
-
=
|
48
|
+
=grid-pushes(!cols = !vgrid_columns)
|
49
49
|
@for !n from 1 through !cols - 1
|
50
50
|
.container_#{!cols} .push_#{!n}
|
51
|
-
+
|
51
|
+
+grid-push(!n, !cols)
|
52
52
|
|
53
|
-
=
|
53
|
+
=grid-pull(!n, !cols = !vgrid_columns)
|
54
54
|
:right= (100% / !cols) * !n * -1
|
55
55
|
|
56
|
-
=
|
56
|
+
=grid-pulls(!cols = !vgrid_columns)
|
57
57
|
@for !n from 1 through !cols - 1
|
58
58
|
.container_#{!cols} .pull_#{!n}
|
59
|
-
+
|
59
|
+
+grid-pull(!n, !cols)
|
60
60
|
|
61
61
|
@import vgrid/shared/grid_system.sass
|
data/sass/vgrid/_fixed.sass
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
=
|
1
|
+
=grid-container
|
2
2
|
:margin-left auto
|
3
3
|
:margin-right auto
|
4
4
|
:width= !vgrid_width
|
5
5
|
|
6
|
-
=
|
6
|
+
=grid-width(!n, !cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
7
7
|
:width= (!vgrid_width / !cols) * !n - !gutter_width
|
8
8
|
|
9
|
-
=
|
9
|
+
=grid-unit_base(!gutter_width = !vgrid_gutter)
|
10
10
|
:display inline
|
11
11
|
:float left
|
12
12
|
:position relative
|
@@ -15,46 +15,46 @@
|
|
15
15
|
:right= !gutter_width / 2
|
16
16
|
|
17
17
|
=grid(!n, !cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
18
|
-
+
|
19
|
-
+
|
18
|
+
+grid-unit_base(!gutter_width)
|
19
|
+
+grid-width(!n, !cols, !gutter_width)
|
20
20
|
|
21
21
|
=grids(!cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
22
22
|
#{enumerate(".grid", 1, !cols, "_")}
|
23
|
-
+
|
23
|
+
+grid-unit_base
|
24
24
|
@for !n from 1 through !cols
|
25
25
|
.container_#{!cols} .grid_#{!n}
|
26
|
-
+
|
26
|
+
+grid-width(!n, !cols, !gutter_width)
|
27
27
|
|
28
|
-
=
|
28
|
+
=grid-prefix(!n, !cols = !vgrid_columns)
|
29
29
|
:padding-left= (!vgrid_width / !cols) * !n
|
30
30
|
|
31
|
-
=
|
31
|
+
=grid-prefixes(!cols = !vgrid_columns)
|
32
32
|
@for !n from 1 through !cols - 1
|
33
33
|
.container_#{!cols} .prefix_#{!n}
|
34
|
-
+
|
34
|
+
+grid-prefix(!n, !cols)
|
35
35
|
|
36
|
-
=
|
36
|
+
=grid-suffix(!n, !cols = !vgrid_columns)
|
37
37
|
:padding-right= (!vgrid_width / !cols) * !n
|
38
38
|
|
39
|
-
=
|
39
|
+
=grid-suffixes(!cols = !vgrid_columns)
|
40
40
|
@for !n from 1 through !cols - 1
|
41
41
|
.container_#{!cols} .suffix_#{!n}
|
42
|
-
+
|
42
|
+
+grid-suffix(!n, !cols)
|
43
43
|
|
44
|
-
=
|
44
|
+
=grid-push(!n, !cols = !vgrid_columns)
|
45
45
|
:left= (!vgrid_width / !cols) * !n
|
46
46
|
|
47
|
-
=
|
47
|
+
=grid-pushes(!cols = !vgrid_columns)
|
48
48
|
@for !n from 1 through !cols - 1
|
49
49
|
.container_#{!cols} .push_#{!n}
|
50
|
-
+
|
50
|
+
+grid-push(!n, !cols)
|
51
51
|
|
52
|
-
=
|
52
|
+
=grid-pull(!n, !cols = !vgrid_columns)
|
53
53
|
:right= (!vgrid_width / !cols) * !n * -1
|
54
54
|
|
55
|
-
=
|
55
|
+
=grid-pulls(!cols = !vgrid_columns)
|
56
56
|
@for !n from 1 through !cols - 1
|
57
57
|
.container_#{!cols} .pull_#{!n}
|
58
|
-
+
|
58
|
+
+grid-pull(!n, !cols)
|
59
59
|
|
60
60
|
@import vgrid/shared/grid_system.sass
|
data/sass/vgrid/_fluid.sass
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
=
|
1
|
+
=grid-container
|
2
2
|
:margin-left 4%
|
3
3
|
:margin-right 4%
|
4
4
|
:width 92%
|
5
5
|
|
6
|
-
=
|
6
|
+
=grid-width(!n, !cols = !vgrid_columns)
|
7
7
|
:width= (100% / !cols) * !n - 2%
|
8
8
|
|
9
|
-
=
|
9
|
+
=grid-unit_base
|
10
10
|
:display inline
|
11
11
|
:float left
|
12
12
|
:position relative
|
@@ -15,46 +15,46 @@
|
|
15
15
|
:right 1%
|
16
16
|
|
17
17
|
=grid(!n, !cols = !vgrid_columns)
|
18
|
-
+
|
19
|
-
+
|
18
|
+
+grid-unit_base
|
19
|
+
+grid-width(!n, !cols)
|
20
20
|
|
21
21
|
=grids(!cols = !vgrid_columns)
|
22
22
|
#{enumerate(".grid", 1, !cols, "_")}
|
23
|
-
+
|
23
|
+
+grid-unit_base
|
24
24
|
@for !n from 1 through !cols
|
25
25
|
.container_#{!cols} .grid_#{!n}
|
26
|
-
+
|
26
|
+
+grid-width(!n, !cols)
|
27
27
|
|
28
|
-
=
|
28
|
+
=grid-prefix(!n, !cols = !vgrid_columns)
|
29
29
|
:padding-left= (100% / !cols) * !n
|
30
30
|
|
31
|
-
=
|
31
|
+
=grid-prefixes(!cols = !vgrid_columns)
|
32
32
|
@for !n from 1 through !cols - 1
|
33
33
|
.container_#{!cols} .prefix_#{!n}
|
34
|
-
+
|
34
|
+
+grid-prefix(!n, !cols)
|
35
35
|
|
36
|
-
=
|
36
|
+
=grid-suffix(!n, !cols = !vgrid_columns)
|
37
37
|
:padding-right= (100% / !cols) * !n
|
38
38
|
|
39
|
-
=
|
39
|
+
=grid-suffixes(!cols = !vgrid_columns)
|
40
40
|
@for !n from 1 through !cols - 1
|
41
41
|
.container_#{!cols} .suffix_#{!n}
|
42
|
-
+
|
42
|
+
+grid-suffix(!n, !cols)
|
43
43
|
|
44
|
-
=
|
44
|
+
=grid-push(!n, !cols = !vgrid_columns)
|
45
45
|
:left= (100% / !cols) * !n
|
46
46
|
|
47
|
-
=
|
47
|
+
=grid-pushes(!cols = !vgrid_columns)
|
48
48
|
@for !n from 1 through !cols - 1
|
49
49
|
.container_#{!cols} .push_#{!n}
|
50
|
-
+
|
50
|
+
+grid-push(!n, !cols)
|
51
51
|
|
52
|
-
=
|
52
|
+
=grid-pull(!n, !cols = !vgrid_columns)
|
53
53
|
:right= (100% / !cols) * !n * -1
|
54
54
|
|
55
|
-
=
|
55
|
+
=grid-pulls(!cols = !vgrid_columns)
|
56
56
|
@for !n from 1 through !cols - 1
|
57
57
|
.container_#{!cols} .pull_#{!n}
|
58
|
-
+
|
58
|
+
+grid-pull(!n, !cols)
|
59
59
|
|
60
60
|
@import vgrid/shared/grid_system.sass
|
@@ -10,35 +10,35 @@
|
|
10
10
|
=omega
|
11
11
|
:margin-right 0
|
12
12
|
|
13
|
-
=
|
13
|
+
=grid-children
|
14
14
|
.alpha
|
15
15
|
+alpha
|
16
16
|
.omega
|
17
17
|
+omega
|
18
18
|
|
19
|
-
=
|
19
|
+
=grid-system(!cols = !vgrid_columns)
|
20
20
|
/*
|
21
21
|
Containers
|
22
22
|
.container_#{!cols}
|
23
|
-
+
|
23
|
+
+grid-container
|
24
24
|
/*
|
25
25
|
Grid
|
26
26
|
+grids(!cols)
|
27
27
|
/*
|
28
28
|
Grid >> Children (Alpha ~ First, Omega ~ Last)
|
29
|
-
+
|
29
|
+
+grid-children
|
30
30
|
/*
|
31
31
|
Prefix Extra Space
|
32
|
-
+
|
32
|
+
+grid-prefixes(!cols)
|
33
33
|
/*
|
34
34
|
Suffix Extra Space
|
35
|
-
+
|
35
|
+
+grid-suffixes(!cols)
|
36
36
|
/*
|
37
37
|
Push Space
|
38
|
-
+
|
38
|
+
+grid-pushes(!cols)
|
39
39
|
/*
|
40
40
|
Pull Space
|
41
|
-
+
|
41
|
+
+grid-pulls(!cols)
|
42
42
|
/*
|
43
43
|
Clear Floated Elements
|
44
44
|
.clearfix
|
@@ -8,18 +8,18 @@
|
|
8
8
|
@import vgrid/elastic.sass
|
9
9
|
|
10
10
|
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+
|
11
|
+
+grid-system(12)
|
12
12
|
|
13
13
|
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
14
|
!vgrid_columns = 16
|
15
15
|
#wrap
|
16
|
-
+
|
16
|
+
+grid-container
|
17
17
|
#header, #footer
|
18
18
|
+grid(16)
|
19
19
|
#left-nav
|
20
20
|
+grid(5)
|
21
21
|
#main-content
|
22
|
-
+
|
22
|
+
+grid-prefix(1)
|
23
23
|
+grid(10)
|
24
24
|
|
25
25
|
// When in doubt, try a +clearfix mixin ;)
|
@@ -8,18 +8,18 @@
|
|
8
8
|
@import vgrid/fixed.sass
|
9
9
|
|
10
10
|
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+
|
11
|
+
+grid-system(12)
|
12
12
|
|
13
13
|
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
14
|
!vgrid_columns = 16
|
15
15
|
#wrap
|
16
|
-
+
|
16
|
+
+grid-container
|
17
17
|
#header, #footer
|
18
18
|
+grid(16)
|
19
19
|
#left-nav
|
20
20
|
+grid(5)
|
21
21
|
#main-content
|
22
|
-
+
|
22
|
+
+grid-prefix(1)
|
23
23
|
+grid(10)
|
24
24
|
|
25
25
|
// When in doubt, try a +clearfix mixin ;)
|
@@ -8,18 +8,18 @@
|
|
8
8
|
@import vgrid/fluid.sass
|
9
9
|
|
10
10
|
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+
|
11
|
+
+grid-system(12)
|
12
12
|
|
13
13
|
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
14
|
!vgrid_columns = 16
|
15
15
|
#wrap
|
16
|
-
+
|
16
|
+
+grid-container
|
17
17
|
#header, #footer
|
18
18
|
+grid(16)
|
19
19
|
#left-nav
|
20
20
|
+grid(5)
|
21
21
|
#main-content
|
22
|
-
+
|
22
|
+
+grid-prefix(1)
|
23
23
|
+grid(10)
|
24
24
|
|
25
25
|
// When in doubt, try a +clearfix mixin ;)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-vgrid-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Russell
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-12 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|