compass-vgrid-plugin 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +1 -1
- data/README.md +30 -26
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/compass-vgrid-plugin.gemspec +15 -14
- data/lib/vgrid/compass_plugin.rb +2 -2
- data/sass/vgrid/_elastic.scss +6 -0
- data/sass/vgrid/_fixed.scss +40 -0
- data/sass/vgrid/_fluid.scss +6 -0
- data/sass/vgrid/shared/_elastic_fluid.scss +34 -0
- data/sass/vgrid/shared/_grid_system.scss +56 -0
- data/templates/elastic/project/demo.html +41 -2
- data/templates/elastic/project/manifest.rb +2 -2
- data/templates/elastic/project/screen.scss +34 -0
- data/templates/fixed/project/demo.html +41 -2
- data/templates/fixed/project/manifest.rb +3 -2
- data/templates/fixed/project/screen.scss +34 -0
- data/templates/fluid/project/demo.html +41 -2
- data/templates/fluid/project/manifest.rb +2 -2
- data/templates/fluid/project/screen.scss +34 -0
- metadata +30 -17
- data/sass/vgrid/_elastic.sass +0 -61
- data/sass/vgrid/_fixed.sass +0 -60
- data/sass/vgrid/_fluid.sass +0 -60
- data/sass/vgrid/shared/_grid_system.sass +0 -45
- data/templates/elastic/project/grid.sass +0 -47
- data/templates/fixed/project/grid.sass +0 -47
- data/templates/fluid/project/grid.sass +0 -47
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
vGrid is a Compass compatible SASS port of the [Variable Grid System](http://www.spry-soft.com/grids/) by SprySoft. Provides fixed, fluid and elastic grids and complete control over the grid system.
|
4
4
|
|
5
|
-
The original Variable Grid System is based
|
5
|
+
The original Variable Grid System is based on the [960 Grid System](http://960.gs/) by Nathan Smith, and then the [Fluid 960 Grid System](http://www.designinfluences.com/fluid960gs/) by Design Influences.
|
6
6
|
|
7
7
|
This Compass plugin is written and maintained by [Aaron Russell](http://www.aaronrussell.co.uk/) and borrows heavily from Chris Eppsteins original [SASS port](http://github.com/chriseppstein/compass-960-plugin) of 960.gs.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Installation is simple via Ruby Gems. [Compass](http://compass-style.org/) is required.
|
11
|
+
Installation is simple via Ruby Gems. [Compass](http://compass-style.org/) v0.10.0 is required.
|
12
12
|
|
13
13
|
sudo gem install compass-vgrid-plugin
|
14
14
|
|
@@ -28,51 +28,55 @@ vGrid provides three seperate framework options:
|
|
28
28
|
|
29
29
|
To use vGrid with an existing project simply import the required framework to your SASS. For example:
|
30
30
|
|
31
|
-
@import vgrid/fixed
|
31
|
+
@import "vgrid/fixed";
|
32
32
|
|
33
33
|
or
|
34
34
|
|
35
|
-
@import vgrid/fluid
|
35
|
+
@import "vgrid/fluid";
|
36
36
|
|
37
37
|
## Creating a grid system
|
38
38
|
|
39
|
-
To create the default CSS classes provided by the Variable Grid System simply use the
|
39
|
+
To create the default CSS classes provided by the Variable Grid System simply use the `grid_system` mixin. Optionally you can pass the number of columns of your layout to the mixin (defaults to 12):
|
40
40
|
|
41
41
|
// Creates a 24 column grid system
|
42
|
-
|
42
|
+
@include grid_system(24);
|
43
43
|
|
44
44
|
## vGrid variables
|
45
45
|
|
46
46
|
Typically, you will want to customize your grid system. vGrid provides a number of variables which can be set to alter the grid system:
|
47
47
|
|
48
|
-
*
|
49
|
-
*
|
50
|
-
*
|
48
|
+
* `$vgrid_columns` - The number of columns in the grid system. Defaults to `12`.
|
49
|
+
* `$vgrid_width` - The width of the grid system. Defaults to `960px`. Not used with `fluid` framework.
|
50
|
+
* `$vgrid_gutter` - The width of each column gutter. Defaults to `20px`. Only used with `fixed` framework.
|
51
51
|
|
52
52
|
## Making semantic grids
|
53
53
|
|
54
|
-
It's preferable not to use meaningless class names in your HTML markup. A better solution is to mix the styles from the grid system in with your semantic IDs and classes. vGrid provides a number mixins to allow this:
|
54
|
+
It's preferable not to use meaningless class names in your HTML markup. A better solution is to mix the styles from the grid system in with your semantic IDs and classes. vGrid provides a number of mixins to allow this:
|
55
55
|
|
56
|
-
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
*
|
60
|
-
*
|
61
|
-
*
|
56
|
+
* `@include grid_container;` - Declares a container element.
|
57
|
+
* `@include grid;` - Declares a grid element.
|
58
|
+
* `@include alpha;` & `@include omega;` - Removes the left and right margins from the grid element.
|
59
|
+
* `@include prefix;` & `@include suffix;` - Adds columns before or after the grid element.
|
60
|
+
* `@include push;` & `@include pull;` - As above but for absolutely positioned grid elements.
|
61
|
+
* `@include clearfix;` - Clears floated elements.
|
62
62
|
|
63
63
|
For example:
|
64
64
|
|
65
|
-
|
65
|
+
$vgrid_columns: 16;
|
66
66
|
|
67
|
-
#wrap
|
68
|
-
|
69
|
-
#header, #footer
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
67
|
+
#wrap {
|
68
|
+
@include grid_container;
|
69
|
+
#header, #footer {
|
70
|
+
@include grid(16);
|
71
|
+
}
|
72
|
+
#left-nav {
|
73
|
+
@include grid(5);
|
74
|
+
}
|
75
|
+
#main-content {
|
76
|
+
@include prefix(1);
|
77
|
+
@include grid(10);
|
78
|
+
}
|
79
|
+
}
|
76
80
|
|
77
81
|
## Copyright
|
78
82
|
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "aaron@gc4.co.uk"
|
11
11
|
gem.homepage = "http://github.com/aaronrussell/compass-vgrid-plugin"
|
12
12
|
gem.authors = ["Aaron Russell"]
|
13
|
-
gem.add_dependency "compass", ">= 0"
|
13
|
+
gem.add_dependency "compass", ">= 0.10.0.rc3"
|
14
14
|
end
|
15
15
|
Jeweler::GemcutterTasks.new
|
16
16
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
@@ -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.
|
8
|
+
s.version = "0.4.0"
|
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-
|
12
|
+
s.date = %q{2010-04-13}
|
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 = [
|
@@ -26,24 +26,25 @@ Gem::Specification.new do |s|
|
|
26
26
|
"compass-vgrid-plugin.gemspec",
|
27
27
|
"lib/vgrid.rb",
|
28
28
|
"lib/vgrid/compass_plugin.rb",
|
29
|
-
"sass/vgrid/_elastic.
|
30
|
-
"sass/vgrid/_fixed.
|
31
|
-
"sass/vgrid/_fluid.
|
32
|
-
"sass/vgrid/shared/
|
29
|
+
"sass/vgrid/_elastic.scss",
|
30
|
+
"sass/vgrid/_fixed.scss",
|
31
|
+
"sass/vgrid/_fluid.scss",
|
32
|
+
"sass/vgrid/shared/_elastic_fluid.scss",
|
33
|
+
"sass/vgrid/shared/_grid_system.scss",
|
33
34
|
"templates/elastic/project/demo.html",
|
34
|
-
"templates/elastic/project/grid.sass",
|
35
35
|
"templates/elastic/project/manifest.rb",
|
36
|
+
"templates/elastic/project/screen.scss",
|
36
37
|
"templates/fixed/project/demo.html",
|
37
|
-
"templates/fixed/project/grid.sass",
|
38
38
|
"templates/fixed/project/manifest.rb",
|
39
|
+
"templates/fixed/project/screen.scss",
|
39
40
|
"templates/fluid/project/demo.html",
|
40
|
-
"templates/fluid/project/
|
41
|
-
"templates/fluid/project/
|
41
|
+
"templates/fluid/project/manifest.rb",
|
42
|
+
"templates/fluid/project/screen.scss"
|
42
43
|
]
|
43
44
|
s.homepage = %q{http://github.com/aaronrussell/compass-vgrid-plugin}
|
44
45
|
s.rdoc_options = ["--charset=UTF-8"]
|
45
46
|
s.require_paths = ["lib"]
|
46
|
-
s.rubygems_version = %q{1.3.
|
47
|
+
s.rubygems_version = %q{1.3.6}
|
47
48
|
s.summary = %q{Compass compatible SASS port of the Variable Grid System. Based on the 960 Grid System.}
|
48
49
|
|
49
50
|
if s.respond_to? :specification_version then
|
@@ -51,12 +52,12 @@ Gem::Specification.new do |s|
|
|
51
52
|
s.specification_version = 3
|
52
53
|
|
53
54
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
54
|
-
s.add_runtime_dependency(%q<compass>, [">= 0"])
|
55
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.0.rc3"])
|
55
56
|
else
|
56
|
-
s.add_dependency(%q<compass>, [">= 0"])
|
57
|
+
s.add_dependency(%q<compass>, [">= 0.10.0.rc3"])
|
57
58
|
end
|
58
59
|
else
|
59
|
-
s.add_dependency(%q<compass>, [">= 0"])
|
60
|
+
s.add_dependency(%q<compass>, [">= 0.10.0.rc3"])
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|
data/lib/vgrid/compass_plugin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
["fixed", "fluid", "elastic"].each do |framework|
|
2
2
|
options = {
|
3
|
-
:stylesheets_directory
|
4
|
-
:templates_directory
|
3
|
+
:stylesheets_directory => File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass')),
|
4
|
+
:templates_directory => File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates', framework))
|
5
5
|
}
|
6
6
|
Compass::Frameworks.register(framework, options)
|
7
7
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@mixin grid_container {
|
2
|
+
margin-left: auto; margin-right: auto; width: $vgrid_width;
|
3
|
+
}
|
4
|
+
|
5
|
+
@mixin grid_width($n, $cols: $vgrid_columns, $gutter_width: $vgrid_gutter) {
|
6
|
+
width: ($vgrid_width / $cols) * $n - $gutter_width;
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin grid_unit_base($gutter_width: $vgrid_gutter) {
|
10
|
+
display: inline; float: left; position: relative; margin-left: $gutter_width / 2; margin-right: $gutter_width / 2;
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin grid($n, $cols: $vgrid_columns, $gutter_width: $vgrid_gutter) {
|
14
|
+
@include grid_unit_base($gutter_width); @include grid_width($n, $cols, $gutter_width);
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin grids($cols: $vgrid_columns, $gutter_width: $vgrid_gutter) {
|
18
|
+
#{enumerate(".grid", 1, $cols, "_")} {@include grid_unit_base}
|
19
|
+
@for $n from 1 through $cols {
|
20
|
+
.container_#{$cols} .grid_#{$n} {@include grid_width($n, $cols, $gutter_width);}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin prefix($n, $cols: $vgrid_columns) {
|
25
|
+
padding-left: ($vgrid_width / $cols) * $n;
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin suffix($n, $cols: $vgrid_columns) {
|
29
|
+
padding-right: ($vgrid_width / $cols) * $n;
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin push($n, $cols: $vgrid_columns) {
|
33
|
+
left: ($vgrid_width / $cols) * $n;
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin pull($n, $cols: $vgrid_columns) {
|
37
|
+
right: ($vgrid_width / $cols) * $n * -1;
|
38
|
+
}
|
39
|
+
|
40
|
+
@import "vgrid/shared/grid_system";
|
@@ -0,0 +1,34 @@
|
|
1
|
+
@mixin grid_width($n, $cols: $vgrid_columns) {
|
2
|
+
width: (100% / $cols) * $n - 2%;
|
3
|
+
}
|
4
|
+
|
5
|
+
@mixin grid_unit_base {
|
6
|
+
display: inline; float: left; position: relative; margin-left: 1%; margin-right: 1%;
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin grid($n, $cols: $vgrid_columns) {
|
10
|
+
@include grid_unit_base; @include grid_width($n, $cols);
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin grids($cols: $vgrid_columns) {
|
14
|
+
#{enumerate(".grid", 1, $cols, "_")} {@include grid_unit_base}
|
15
|
+
@for $n from 1 through $cols {
|
16
|
+
.container_#{$cols} .grid_#{$n} {@include grid_width($n, $cols);}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@mixin prefix($n, $cols: $vgrid_columns) {
|
21
|
+
padding-left: (100% / $cols) * $n;
|
22
|
+
}
|
23
|
+
|
24
|
+
@mixin suffix($n, $cols: $vgrid_columns) {
|
25
|
+
padding-right: (100% / $cols) * $n;
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin push($n, $cols: $vgrid_columns) {
|
29
|
+
left: (100% / $cols) * $n;
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin pull($n, $cols: $vgrid_columns) {
|
33
|
+
right: (100% / $cols) * $n * -1;
|
34
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
@import "compass/utilities/general/clearfix";
|
2
|
+
|
3
|
+
$vgrid_width: 960px !default;
|
4
|
+
$vgrid_columns: 12 !default;
|
5
|
+
$vgrid_gutter: 20px !default;
|
6
|
+
|
7
|
+
@mixin alpha {margin-left: 0;}
|
8
|
+
@mixin omega {margin-right: 0;}
|
9
|
+
|
10
|
+
@mixin grid_children {
|
11
|
+
.alpha {@include alpha;}
|
12
|
+
.omega {@include omega;}
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin grid_prefixes($cols: $vgrid_columns) {
|
16
|
+
@for $n from 1 through $cols - 1 {
|
17
|
+
.container_#{$cols} .prefix_#{$n} {@include prefix($n, $cols);}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
@mixin grid_suffixes($cols: $vgrid_columns) {
|
22
|
+
@for $n from 1 through $cols - 1 {
|
23
|
+
.container_#{$cols} .suffix_#{$n} {@include suffix($n, $cols);}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin grid_pushes($cols: $vgrid_columns) {
|
28
|
+
@for $n from 1 through $cols - 1 {
|
29
|
+
.container_#{$cols} .push_#{$n} {@include push($n, $cols);}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
@mixin grid_pulls($cols: $vgrid_columns) {
|
34
|
+
@for $n from 1 through $cols - 1 {
|
35
|
+
.container_#{$cols} .pull_#{$n} {@include pull($n, $cols);}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin grid_system($cols: $vgrid_columns) {
|
40
|
+
/* Container */
|
41
|
+
.container_#{$cols} {@include grid_container;}
|
42
|
+
/* Grid */
|
43
|
+
@include grids($cols);
|
44
|
+
/* Grid >> Children (Alpha ~ First, Omega ~ Last) */
|
45
|
+
@include grid_children;
|
46
|
+
/* Prefix Extra Space */
|
47
|
+
@include grid_prefixes($cols);
|
48
|
+
/* Suffix Extra Space */
|
49
|
+
@include grid_suffixes($cols);
|
50
|
+
/* Push Space */
|
51
|
+
@include grid_pushes($cols);
|
52
|
+
/* Pull Space */
|
53
|
+
@include grid_pulls($cols);
|
54
|
+
/* Clear Floated Elements */
|
55
|
+
.clearfix {@include clearfix;}
|
56
|
+
}
|
@@ -3,7 +3,40 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
5
|
<title>vGrid - Variable Grid System (Elastic version)</title>
|
6
|
-
<link href="./stylesheets/
|
6
|
+
<link href="./stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body {
|
9
|
+
background: #eee;
|
10
|
+
font: 11px Arial;
|
11
|
+
padding: 10px;
|
12
|
+
}
|
13
|
+
h1 {
|
14
|
+
font-size: 18px;
|
15
|
+
font-weight: bold;
|
16
|
+
color: #fff;
|
17
|
+
padding: 12px 6px;
|
18
|
+
}
|
19
|
+
p {
|
20
|
+
color: #333;
|
21
|
+
padding: 6px;
|
22
|
+
}
|
23
|
+
.container_12 {
|
24
|
+
background: #fff;
|
25
|
+
overflow: auto;
|
26
|
+
padding-top: 6px;
|
27
|
+
}
|
28
|
+
.grid_12 {
|
29
|
+
background: #666;
|
30
|
+
margin-bottom: 6px;
|
31
|
+
}
|
32
|
+
.grid_12 p, .grid_12 a {
|
33
|
+
color: #fff;
|
34
|
+
}
|
35
|
+
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6 {
|
36
|
+
background: #ddd;
|
37
|
+
margin-bottom: 6px;
|
38
|
+
}
|
39
|
+
</style>
|
7
40
|
</head>
|
8
41
|
<body>
|
9
42
|
<div class="container_12">
|
@@ -54,7 +87,13 @@
|
|
54
87
|
<div class="grid_1"><p>.grid_1</p></div>
|
55
88
|
<div class="grid_1"><p>.grid_1</p></div>
|
56
89
|
<div class="grid_1"><p>.grid_1</p></div>
|
57
|
-
<div class="grid_1"><p>.grid_1</p></div>
|
90
|
+
<div class="grid_1"><p>.grid_1</p></div>
|
91
|
+
<!--
|
92
|
+
.grid_12
|
93
|
+
-->
|
94
|
+
<div class="grid_12">
|
95
|
+
<p>vGrid - Variable Grid System converted to Compass compatible plugin by Aaron Russell - <a href="http://www.aaronrussell.co.uk">http://www.aaronrussell.co.uk</a></p>
|
96
|
+
</div>
|
58
97
|
</div>
|
59
98
|
</body>
|
60
99
|
</html>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
stylesheet
|
2
|
-
file
|
1
|
+
stylesheet "screen.scss", :media => "screen, projection"
|
2
|
+
file "demo.html"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
Variable Grid System (Elastic Version).
|
3
|
+
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
+
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
|
5
|
+
Licensed under GPL and MIT.
|
6
|
+
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import "vgrid/elastic";
|
10
|
+
@import "compass/css3";
|
11
|
+
|
12
|
+
// The following includes a bullet-proof CSS reset
|
13
|
+
@import "compass/reset";
|
14
|
+
|
15
|
+
// The following generates the default grids provided by the css version of Variable Grid System
|
16
|
+
@include grid_system(12);
|
17
|
+
|
18
|
+
// But most compass users prefer to construct semantic layouts like this:
|
19
|
+
// (two column layout with header and footer)
|
20
|
+
$vgrid_columns: 16;
|
21
|
+
#wrap {
|
22
|
+
@include grid_container;
|
23
|
+
#header, #footer {
|
24
|
+
@include grid(16);
|
25
|
+
}
|
26
|
+
#left_nav {
|
27
|
+
@include grid(5);
|
28
|
+
}
|
29
|
+
#main-content {
|
30
|
+
@include prefix(1);
|
31
|
+
@include grid(10);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
// When in doubt, try a clearfix ;) @include clearfix;
|
@@ -3,7 +3,40 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
5
|
<title>vGrid - Variable Grid System (Fixed width version)</title>
|
6
|
-
<link href="./stylesheets/
|
6
|
+
<link href="./stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body {
|
9
|
+
background: #eee;
|
10
|
+
font: 11px Arial;
|
11
|
+
padding: 10px;
|
12
|
+
}
|
13
|
+
h1 {
|
14
|
+
font-size: 18px;
|
15
|
+
font-weight: bold;
|
16
|
+
color: #fff;
|
17
|
+
padding: 12px 6px;
|
18
|
+
}
|
19
|
+
p {
|
20
|
+
color: #333;
|
21
|
+
padding: 6px;
|
22
|
+
}
|
23
|
+
.container_12 {
|
24
|
+
background: #fff;
|
25
|
+
overflow: auto;
|
26
|
+
padding-top: 6px;
|
27
|
+
}
|
28
|
+
.grid_12 {
|
29
|
+
background: #666;
|
30
|
+
margin-bottom: 6px;
|
31
|
+
}
|
32
|
+
.grid_12 p, .grid_12 a {
|
33
|
+
color: #fff;
|
34
|
+
}
|
35
|
+
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6 {
|
36
|
+
background: #ddd;
|
37
|
+
margin-bottom: 6px;
|
38
|
+
}
|
39
|
+
</style>
|
7
40
|
</head>
|
8
41
|
<body>
|
9
42
|
<div class="container_12">
|
@@ -54,7 +87,13 @@
|
|
54
87
|
<div class="grid_1"><p>.grid_1</p></div>
|
55
88
|
<div class="grid_1"><p>.grid_1</p></div>
|
56
89
|
<div class="grid_1"><p>.grid_1</p></div>
|
57
|
-
<div class="grid_1"><p>.grid_1</p></div>
|
90
|
+
<div class="grid_1"><p>.grid_1</p></div>
|
91
|
+
<!--
|
92
|
+
.grid_12
|
93
|
+
-->
|
94
|
+
<div class="grid_12">
|
95
|
+
<p>vGrid - Variable Grid System converted to Compass compatible plugin by Aaron Russell - <a href="http://www.aaronrussell.co.uk">http://www.aaronrussell.co.uk</a></p>
|
96
|
+
</div>
|
58
97
|
</div>
|
59
98
|
</body>
|
60
99
|
</html>
|
@@ -1,2 +1,3 @@
|
|
1
|
-
stylesheet
|
2
|
-
file
|
1
|
+
stylesheet "screen.scss", :media => "screen, projection"
|
2
|
+
file "demo.html"
|
3
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
Variable Grid System.
|
3
|
+
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
+
Based on 960 Grid System - http://960.gs/
|
5
|
+
Licensed under GPL and MIT.
|
6
|
+
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import "vgrid/fixed";
|
10
|
+
@import "compass/css3";
|
11
|
+
|
12
|
+
// The following includes a bullet-proof CSS reset
|
13
|
+
@import "compass/reset";
|
14
|
+
|
15
|
+
// The following generates the default grids provided by the css version of Variable Grid System
|
16
|
+
@include grid_system(12);
|
17
|
+
|
18
|
+
// But most compass users prefer to construct semantic layouts like this:
|
19
|
+
// (two column layout with header and footer)
|
20
|
+
$vgrid_columns: 16;
|
21
|
+
#wrap {
|
22
|
+
@include grid_container;
|
23
|
+
#header, #footer {
|
24
|
+
@include grid(16);
|
25
|
+
}
|
26
|
+
#left_nav {
|
27
|
+
@include grid(5);
|
28
|
+
}
|
29
|
+
#main-content {
|
30
|
+
@include prefix(1);
|
31
|
+
@include grid(10);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
// When in doubt, try a clearfix ;) @include clearfix;
|
@@ -3,7 +3,40 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
5
|
<title>vGrid - Variable Grid System (Fluid version)</title>
|
6
|
-
<link href="./stylesheets/
|
6
|
+
<link href="./stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body {
|
9
|
+
background: #eee;
|
10
|
+
font: 11px Arial;
|
11
|
+
padding: 10px;
|
12
|
+
}
|
13
|
+
h1 {
|
14
|
+
font-size: 18px;
|
15
|
+
font-weight: bold;
|
16
|
+
color: #fff;
|
17
|
+
padding: 12px 6px;
|
18
|
+
}
|
19
|
+
p {
|
20
|
+
color: #333;
|
21
|
+
padding: 6px;
|
22
|
+
}
|
23
|
+
.container_12 {
|
24
|
+
background: #fff;
|
25
|
+
overflow: auto;
|
26
|
+
padding-top: 6px;
|
27
|
+
}
|
28
|
+
.grid_12 {
|
29
|
+
background: #666;
|
30
|
+
margin-bottom: 6px;
|
31
|
+
}
|
32
|
+
.grid_12 p, .grid_12 a {
|
33
|
+
color: #fff;
|
34
|
+
}
|
35
|
+
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6 {
|
36
|
+
background: #ddd;
|
37
|
+
margin-bottom: 6px;
|
38
|
+
}
|
39
|
+
</style>
|
7
40
|
</head>
|
8
41
|
<body>
|
9
42
|
<div class="container_12">
|
@@ -54,7 +87,13 @@
|
|
54
87
|
<div class="grid_1"><p>.grid_1</p></div>
|
55
88
|
<div class="grid_1"><p>.grid_1</p></div>
|
56
89
|
<div class="grid_1"><p>.grid_1</p></div>
|
57
|
-
<div class="grid_1"><p>.grid_1</p></div>
|
90
|
+
<div class="grid_1"><p>.grid_1</p></div>
|
91
|
+
<!--
|
92
|
+
.grid_12
|
93
|
+
-->
|
94
|
+
<div class="grid_12">
|
95
|
+
<p>vGrid - Variable Grid System converted to Compass compatible plugin by Aaron Russell - <a href="http://www.aaronrussell.co.uk">http://www.aaronrussell.co.uk</a></p>
|
96
|
+
</div>
|
58
97
|
</div>
|
59
98
|
</body>
|
60
99
|
</html>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
stylesheet
|
2
|
-
file
|
1
|
+
stylesheet "screen.scss", :media => "screen, projection"
|
2
|
+
file "demo.html"
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
Variable Grid System (Fluid Version).
|
3
|
+
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
+
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
|
5
|
+
Licensed under GPL and MIT.
|
6
|
+
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import "vgrid/fluid";
|
10
|
+
@import "compass/css3";
|
11
|
+
|
12
|
+
// The following includes a bullet-proof CSS reset
|
13
|
+
@import "compass/reset";
|
14
|
+
|
15
|
+
// The following generates the default grids provided by the css version of Variable Grid System
|
16
|
+
@include grid_system(12);
|
17
|
+
|
18
|
+
// But most compass users prefer to construct semantic layouts like this:
|
19
|
+
// (two column layout with header and footer)
|
20
|
+
$vgrid_columns: 16;
|
21
|
+
#wrap {
|
22
|
+
@include grid_container;
|
23
|
+
#header, #footer {
|
24
|
+
@include grid(16);
|
25
|
+
}
|
26
|
+
#left_nav {
|
27
|
+
@include grid(5);
|
28
|
+
}
|
29
|
+
#main-content {
|
30
|
+
@include prefix(1);
|
31
|
+
@include grid(10);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
// When in doubt, try a clearfix ;) @include clearfix;
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-vgrid-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 0.4.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Aaron Russell
|
@@ -9,19 +14,24 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-13 00:00:00 +01:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: compass
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 10
|
30
|
+
- 0
|
31
|
+
- rc3
|
32
|
+
version: 0.10.0.rc3
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
description: 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.
|
26
36
|
email: aaron@gc4.co.uk
|
27
37
|
executables: []
|
@@ -41,19 +51,20 @@ files:
|
|
41
51
|
- compass-vgrid-plugin.gemspec
|
42
52
|
- lib/vgrid.rb
|
43
53
|
- lib/vgrid/compass_plugin.rb
|
44
|
-
- sass/vgrid/_elastic.
|
45
|
-
- sass/vgrid/_fixed.
|
46
|
-
- sass/vgrid/_fluid.
|
47
|
-
- sass/vgrid/shared/
|
54
|
+
- sass/vgrid/_elastic.scss
|
55
|
+
- sass/vgrid/_fixed.scss
|
56
|
+
- sass/vgrid/_fluid.scss
|
57
|
+
- sass/vgrid/shared/_elastic_fluid.scss
|
58
|
+
- sass/vgrid/shared/_grid_system.scss
|
48
59
|
- templates/elastic/project/demo.html
|
49
|
-
- templates/elastic/project/grid.sass
|
50
60
|
- templates/elastic/project/manifest.rb
|
61
|
+
- templates/elastic/project/screen.scss
|
51
62
|
- templates/fixed/project/demo.html
|
52
|
-
- templates/fixed/project/grid.sass
|
53
63
|
- templates/fixed/project/manifest.rb
|
64
|
+
- templates/fixed/project/screen.scss
|
54
65
|
- templates/fluid/project/demo.html
|
55
|
-
- templates/fluid/project/grid.sass
|
56
66
|
- templates/fluid/project/manifest.rb
|
67
|
+
- templates/fluid/project/screen.scss
|
57
68
|
has_rdoc: true
|
58
69
|
homepage: http://github.com/aaronrussell/compass-vgrid-plugin
|
59
70
|
licenses: []
|
@@ -67,18 +78,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
78
|
requirements:
|
68
79
|
- - ">="
|
69
80
|
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 0
|
70
83
|
version: "0"
|
71
|
-
version:
|
72
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
85
|
requirements:
|
74
86
|
- - ">="
|
75
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
76
90
|
version: "0"
|
77
|
-
version:
|
78
91
|
requirements: []
|
79
92
|
|
80
93
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.3.
|
94
|
+
rubygems_version: 1.3.6
|
82
95
|
signing_key:
|
83
96
|
specification_version: 3
|
84
97
|
summary: Compass compatible SASS port of the Variable Grid System. Based on the 960 Grid System.
|
data/sass/vgrid/_elastic.sass
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
=grid-container
|
2
|
-
:margin-left 4%
|
3
|
-
:margin-right 4%
|
4
|
-
:min-width= !vgrid_width
|
5
|
-
:width 92%
|
6
|
-
|
7
|
-
=grid-width(!n, !cols = !vgrid_columns)
|
8
|
-
:width= (100% / !cols) * !n - 2%
|
9
|
-
|
10
|
-
=grid-unit_base
|
11
|
-
:display inline
|
12
|
-
:float left
|
13
|
-
:position relative
|
14
|
-
:margin
|
15
|
-
:left= 1%
|
16
|
-
:right= 1%
|
17
|
-
|
18
|
-
=grid(!n, !cols = !vgrid_columns)
|
19
|
-
+grid-unit_base
|
20
|
-
+grid-width(!n, !cols)
|
21
|
-
|
22
|
-
=grids(!cols = !vgrid_columns)
|
23
|
-
#{enumerate(".grid", 1, !cols, "_")}
|
24
|
-
+grid-unit_base
|
25
|
-
@for !n from 1 through !cols
|
26
|
-
.container_#{!cols} .grid_#{!n}
|
27
|
-
+grid-width(!n, !cols)
|
28
|
-
|
29
|
-
=grid-prefix(!n, !cols = !vgrid_columns)
|
30
|
-
:padding-left= (100% / !cols) * !n
|
31
|
-
|
32
|
-
=grid-prefixes(!cols = !vgrid_columns)
|
33
|
-
@for !n from 1 through !cols - 1
|
34
|
-
.container_#{!cols} .prefix_#{!n}
|
35
|
-
+grid-prefix(!n, !cols)
|
36
|
-
|
37
|
-
=grid-suffix(!n, !cols = !vgrid_columns)
|
38
|
-
:padding-right= (100% / !cols) * !n
|
39
|
-
|
40
|
-
=grid-suffixes(!cols = !vgrid_columns)
|
41
|
-
@for !n from 1 through !cols - 1
|
42
|
-
.container_#{!cols} .suffix_#{!n}
|
43
|
-
+grid-suffix(!n, !cols)
|
44
|
-
|
45
|
-
=grid-push(!n, !cols = !vgrid_columns)
|
46
|
-
:left= (100% / !cols) * !n
|
47
|
-
|
48
|
-
=grid-pushes(!cols = !vgrid_columns)
|
49
|
-
@for !n from 1 through !cols - 1
|
50
|
-
.container_#{!cols} .push_#{!n}
|
51
|
-
+grid-push(!n, !cols)
|
52
|
-
|
53
|
-
=grid-pull(!n, !cols = !vgrid_columns)
|
54
|
-
:right= (100% / !cols) * !n * -1
|
55
|
-
|
56
|
-
=grid-pulls(!cols = !vgrid_columns)
|
57
|
-
@for !n from 1 through !cols - 1
|
58
|
-
.container_#{!cols} .pull_#{!n}
|
59
|
-
+grid-pull(!n, !cols)
|
60
|
-
|
61
|
-
@import vgrid/shared/grid_system.sass
|
data/sass/vgrid/_fixed.sass
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
=grid-container
|
2
|
-
:margin-left auto
|
3
|
-
:margin-right auto
|
4
|
-
:width= !vgrid_width
|
5
|
-
|
6
|
-
=grid-width(!n, !cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
7
|
-
:width= (!vgrid_width / !cols) * !n - !gutter_width
|
8
|
-
|
9
|
-
=grid-unit_base(!gutter_width = !vgrid_gutter)
|
10
|
-
:display inline
|
11
|
-
:float left
|
12
|
-
:position relative
|
13
|
-
:margin
|
14
|
-
:left= !gutter_width / 2
|
15
|
-
:right= !gutter_width / 2
|
16
|
-
|
17
|
-
=grid(!n, !cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
18
|
-
+grid-unit_base(!gutter_width)
|
19
|
-
+grid-width(!n, !cols, !gutter_width)
|
20
|
-
|
21
|
-
=grids(!cols = !vgrid_columns, !gutter_width = !vgrid_gutter)
|
22
|
-
#{enumerate(".grid", 1, !cols, "_")}
|
23
|
-
+grid-unit_base
|
24
|
-
@for !n from 1 through !cols
|
25
|
-
.container_#{!cols} .grid_#{!n}
|
26
|
-
+grid-width(!n, !cols, !gutter_width)
|
27
|
-
|
28
|
-
=grid-prefix(!n, !cols = !vgrid_columns)
|
29
|
-
:padding-left= (!vgrid_width / !cols) * !n
|
30
|
-
|
31
|
-
=grid-prefixes(!cols = !vgrid_columns)
|
32
|
-
@for !n from 1 through !cols - 1
|
33
|
-
.container_#{!cols} .prefix_#{!n}
|
34
|
-
+grid-prefix(!n, !cols)
|
35
|
-
|
36
|
-
=grid-suffix(!n, !cols = !vgrid_columns)
|
37
|
-
:padding-right= (!vgrid_width / !cols) * !n
|
38
|
-
|
39
|
-
=grid-suffixes(!cols = !vgrid_columns)
|
40
|
-
@for !n from 1 through !cols - 1
|
41
|
-
.container_#{!cols} .suffix_#{!n}
|
42
|
-
+grid-suffix(!n, !cols)
|
43
|
-
|
44
|
-
=grid-push(!n, !cols = !vgrid_columns)
|
45
|
-
:left= (!vgrid_width / !cols) * !n
|
46
|
-
|
47
|
-
=grid-pushes(!cols = !vgrid_columns)
|
48
|
-
@for !n from 1 through !cols - 1
|
49
|
-
.container_#{!cols} .push_#{!n}
|
50
|
-
+grid-push(!n, !cols)
|
51
|
-
|
52
|
-
=grid-pull(!n, !cols = !vgrid_columns)
|
53
|
-
:right= (!vgrid_width / !cols) * !n * -1
|
54
|
-
|
55
|
-
=grid-pulls(!cols = !vgrid_columns)
|
56
|
-
@for !n from 1 through !cols - 1
|
57
|
-
.container_#{!cols} .pull_#{!n}
|
58
|
-
+grid-pull(!n, !cols)
|
59
|
-
|
60
|
-
@import vgrid/shared/grid_system.sass
|
data/sass/vgrid/_fluid.sass
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
=grid-container
|
2
|
-
:margin-left 4%
|
3
|
-
:margin-right 4%
|
4
|
-
:width 92%
|
5
|
-
|
6
|
-
=grid-width(!n, !cols = !vgrid_columns)
|
7
|
-
:width= (100% / !cols) * !n - 2%
|
8
|
-
|
9
|
-
=grid-unit_base
|
10
|
-
:display inline
|
11
|
-
:float left
|
12
|
-
:position relative
|
13
|
-
:margin
|
14
|
-
:left 1%
|
15
|
-
:right 1%
|
16
|
-
|
17
|
-
=grid(!n, !cols = !vgrid_columns)
|
18
|
-
+grid-unit_base
|
19
|
-
+grid-width(!n, !cols)
|
20
|
-
|
21
|
-
=grids(!cols = !vgrid_columns)
|
22
|
-
#{enumerate(".grid", 1, !cols, "_")}
|
23
|
-
+grid-unit_base
|
24
|
-
@for !n from 1 through !cols
|
25
|
-
.container_#{!cols} .grid_#{!n}
|
26
|
-
+grid-width(!n, !cols)
|
27
|
-
|
28
|
-
=grid-prefix(!n, !cols = !vgrid_columns)
|
29
|
-
:padding-left= (100% / !cols) * !n
|
30
|
-
|
31
|
-
=grid-prefixes(!cols = !vgrid_columns)
|
32
|
-
@for !n from 1 through !cols - 1
|
33
|
-
.container_#{!cols} .prefix_#{!n}
|
34
|
-
+grid-prefix(!n, !cols)
|
35
|
-
|
36
|
-
=grid-suffix(!n, !cols = !vgrid_columns)
|
37
|
-
:padding-right= (100% / !cols) * !n
|
38
|
-
|
39
|
-
=grid-suffixes(!cols = !vgrid_columns)
|
40
|
-
@for !n from 1 through !cols - 1
|
41
|
-
.container_#{!cols} .suffix_#{!n}
|
42
|
-
+grid-suffix(!n, !cols)
|
43
|
-
|
44
|
-
=grid-push(!n, !cols = !vgrid_columns)
|
45
|
-
:left= (100% / !cols) * !n
|
46
|
-
|
47
|
-
=grid-pushes(!cols = !vgrid_columns)
|
48
|
-
@for !n from 1 through !cols - 1
|
49
|
-
.container_#{!cols} .push_#{!n}
|
50
|
-
+grid-push(!n, !cols)
|
51
|
-
|
52
|
-
=grid-pull(!n, !cols = !vgrid_columns)
|
53
|
-
:right= (100% / !cols) * !n * -1
|
54
|
-
|
55
|
-
=grid-pulls(!cols = !vgrid_columns)
|
56
|
-
@for !n from 1 through !cols - 1
|
57
|
-
.container_#{!cols} .pull_#{!n}
|
58
|
-
+grid-pull(!n, !cols)
|
59
|
-
|
60
|
-
@import vgrid/shared/grid_system.sass
|
@@ -1,45 +0,0 @@
|
|
1
|
-
@import compass/utilities/general/clearfix.sass
|
2
|
-
|
3
|
-
!vgrid_width ||= 960px
|
4
|
-
!vgrid_columns ||= 12
|
5
|
-
!vgrid_gutter ||= 20px
|
6
|
-
|
7
|
-
=alpha
|
8
|
-
:margin-left 0
|
9
|
-
|
10
|
-
=omega
|
11
|
-
:margin-right 0
|
12
|
-
|
13
|
-
=grid-children
|
14
|
-
.alpha
|
15
|
-
+alpha
|
16
|
-
.omega
|
17
|
-
+omega
|
18
|
-
|
19
|
-
=grid-system(!cols = !vgrid_columns)
|
20
|
-
/*
|
21
|
-
Containers
|
22
|
-
.container_#{!cols}
|
23
|
-
+grid-container
|
24
|
-
/*
|
25
|
-
Grid
|
26
|
-
+grids(!cols)
|
27
|
-
/*
|
28
|
-
Grid >> Children (Alpha ~ First, Omega ~ Last)
|
29
|
-
+grid-children
|
30
|
-
/*
|
31
|
-
Prefix Extra Space
|
32
|
-
+grid-prefixes(!cols)
|
33
|
-
/*
|
34
|
-
Suffix Extra Space
|
35
|
-
+grid-suffixes(!cols)
|
36
|
-
/*
|
37
|
-
Push Space
|
38
|
-
+grid-pushes(!cols)
|
39
|
-
/*
|
40
|
-
Pull Space
|
41
|
-
+grid-pulls(!cols)
|
42
|
-
/*
|
43
|
-
Clear Floated Elements
|
44
|
-
.clearfix
|
45
|
-
+clearfix
|
@@ -1,47 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Variable Grid System (Elastic Version).
|
3
|
-
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
-
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
|
5
|
-
Licensed under GPL and MIT.
|
6
|
-
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
-
|
8
|
-
@import vgrid/elastic.sass
|
9
|
-
|
10
|
-
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+grid-system(12)
|
12
|
-
|
13
|
-
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
|
-
!vgrid_columns = 16
|
15
|
-
#wrap
|
16
|
-
+grid-container
|
17
|
-
#header, #footer
|
18
|
-
+grid(16)
|
19
|
-
#left-nav
|
20
|
-
+grid(5)
|
21
|
-
#main-content
|
22
|
-
+grid-prefix(1)
|
23
|
-
+grid(10)
|
24
|
-
|
25
|
-
// When in doubt, try a +clearfix mixin ;)
|
26
|
-
|
27
|
-
/*
|
28
|
-
Styles for demo. Delete these when you're happy what's going on.
|
29
|
-
|
30
|
-
body
|
31
|
-
:background #eee
|
32
|
-
:font 11px Arial
|
33
|
-
.container_12
|
34
|
-
:background #fff
|
35
|
-
:overflow auto
|
36
|
-
.grid_12
|
37
|
-
:background #666
|
38
|
-
:margin-bottom 6px
|
39
|
-
h1
|
40
|
-
:color #fff
|
41
|
-
:padding 10px
|
42
|
-
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6
|
43
|
-
:background #ddd
|
44
|
-
:margin-bottom 6px
|
45
|
-
p
|
46
|
-
:color #333
|
47
|
-
:padding 10px
|
@@ -1,47 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Variable Grid System.
|
3
|
-
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
-
Based on 960 Grid System - http://960.gs/
|
5
|
-
Licensed under GPL and MIT.
|
6
|
-
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
-
|
8
|
-
@import vgrid/fixed.sass
|
9
|
-
|
10
|
-
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+grid-system(12)
|
12
|
-
|
13
|
-
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
|
-
!vgrid_columns = 16
|
15
|
-
#wrap
|
16
|
-
+grid-container
|
17
|
-
#header, #footer
|
18
|
-
+grid(16)
|
19
|
-
#left-nav
|
20
|
-
+grid(5)
|
21
|
-
#main-content
|
22
|
-
+grid-prefix(1)
|
23
|
-
+grid(10)
|
24
|
-
|
25
|
-
// When in doubt, try a +clearfix mixin ;)
|
26
|
-
|
27
|
-
/*
|
28
|
-
Styles for demo. Delete these when you're happy what's going on.
|
29
|
-
|
30
|
-
body
|
31
|
-
:background #eee
|
32
|
-
:font 11px Arial
|
33
|
-
.container_12
|
34
|
-
:background #fff
|
35
|
-
:overflow auto
|
36
|
-
.grid_12
|
37
|
-
:background #666
|
38
|
-
:margin-bottom 6px
|
39
|
-
h1
|
40
|
-
:color #fff
|
41
|
-
:padding 10px
|
42
|
-
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6
|
43
|
-
:background #ddd
|
44
|
-
:margin-bottom 6px
|
45
|
-
p
|
46
|
-
:color #333
|
47
|
-
:padding 10px
|
@@ -1,47 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Variable Grid System (Fluid Version).
|
3
|
-
Learn more ~ http://www.spry-soft.com/grids/
|
4
|
-
Based on 960 Grid System - http://960.gs/ & 960 Fluid - http://www.designinfluences.com/
|
5
|
-
Licensed under GPL and MIT.
|
6
|
-
Converted to Compass compatible plugin by Aaron Russell - http://www.aaronrussell.co.uk
|
7
|
-
|
8
|
-
@import vgrid/fluid.sass
|
9
|
-
|
10
|
-
// The following generates the default grids provided by the css version of Variable Grid System
|
11
|
-
+grid-system(12)
|
12
|
-
|
13
|
-
// But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
|
14
|
-
!vgrid_columns = 16
|
15
|
-
#wrap
|
16
|
-
+grid-container
|
17
|
-
#header, #footer
|
18
|
-
+grid(16)
|
19
|
-
#left-nav
|
20
|
-
+grid(5)
|
21
|
-
#main-content
|
22
|
-
+grid-prefix(1)
|
23
|
-
+grid(10)
|
24
|
-
|
25
|
-
// When in doubt, try a +clearfix mixin ;)
|
26
|
-
|
27
|
-
/*
|
28
|
-
Styles for demo. Delete these when you're happy what's going on.
|
29
|
-
|
30
|
-
body
|
31
|
-
:background #eee
|
32
|
-
:font 11px Arial
|
33
|
-
.container_12
|
34
|
-
:background #fff
|
35
|
-
:overflow auto
|
36
|
-
.grid_12
|
37
|
-
:background #666
|
38
|
-
:margin-bottom 6px
|
39
|
-
h1
|
40
|
-
:color #fff
|
41
|
-
:padding 10px
|
42
|
-
.grid_1, .grid_2, .grid_3, .grid_4, .grid_6
|
43
|
-
:background #ddd
|
44
|
-
:margin-bottom 6px
|
45
|
-
p
|
46
|
-
:color #333
|
47
|
-
:padding 10px
|