zen-grids 1.0.rc.2 → 1.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/README.txt CHANGED
@@ -1,9 +1,11 @@
1
1
  ABOUT zen-grids
2
2
  ---------------
3
3
 
4
- The Zen Grids system is a fluid responsive grid system that is immune to
5
- rounding errors and overflowing content. With an easy-to-use Sass mixin set, the
6
- Zen Grids system can be applied to an infinite number of layouts.
4
+ Zen Grids is an intuitive, flexible grid system that leverages the natural
5
+ source order of your content to make it easier to create fluid responsive
6
+ designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied
7
+ to an infinite number of layouts, including responsive, adaptive, fluid and
8
+ fixed-width layouts.
7
9
 
8
10
 
9
11
  USAGE
@@ -14,21 +16,27 @@ to a 12 column grid.
14
16
 
15
17
  @import "zen";
16
18
 
17
- $zen-column-count: 12; // Set the total number of columns in the grid.
18
19
  $zen-gutter-width: 40px; // Set the gutter size. A half-gutter is used on
19
20
  // each side of each column.
20
21
 
21
22
  .container {
22
- @include zen-grid-container;
23
+ @include zen-grid-container; // Define the container for your grid items.
23
24
  }
24
- .sidebar1 {
25
- @include zen-grid-item(3, 1); // Span 3 columns starting in 1st column
26
- }
27
- .content {
28
- @include zen-grid-item(6, 4); // Span 6 columns starting in 4th column
29
- }
30
- .sidebar2 {
31
- @include zen-grid-item(3, 10); // Span 3 columns starting in 10th column
25
+
26
+ $zen-column-count: 12; // Set the number of grid columns to use in this media
27
+ // query. You'll likely want a different grid for
28
+ // different screen sizes.
29
+
30
+ @media all and (min-width: 50em) {
31
+ .sidebar1 {
32
+ @include zen-grid-item(3, 1); // Span 3 columns starting in 1st column
33
+ }
34
+ .content {
35
+ @include zen-grid-item(6, 4); // Span 6 columns starting in 4th column
36
+ }
37
+ .sidebar2 {
38
+ @include zen-grid-item(3, 10); // Span 3 columns starting in 10th column
39
+ }
32
40
  }
33
41
 
34
42
  Within the .container element, the .sidebar1, .sidebar2 and .content elements
@@ -57,10 +65,6 @@ line:
57
65
 
58
66
  require 'zen-grids'
59
67
 
60
- For Rails projects, from the project's root directory, run:
61
-
62
- compass install zen-grids
63
-
64
68
  You can then start using Zen Grids in your Sass files. Just add this line to one
65
69
  of your .sass or .scss files and start creating!
66
70
 
@@ -1,22 +1,8 @@
1
1
  @import "zen/grids";
2
2
 
3
- // Specify the number of columns in the grid.
4
- $bg-grid-column-count: $zen-column-count !default;
5
-
6
- // Specify the width of the gutters; half of the gutter will be placed on each
7
- // side of a grid column.
8
- $bg-grid-gutter-width: $zen-gutter-width !default;
9
-
10
3
  // Specify the column background color.
11
4
  $bg-grid-color: #ffdede !default;
12
5
 
13
- // Specify the width of the entire grid. Defaults to 100% for a fluid responsive
14
- // design, but you can change this to a pixel value if you need a fixed grid.
15
- $bg-grid-width: $zen-grid-width !default;
16
-
17
- // Specify the default floating direction for zen's mixins.
18
- $bg-float-direction: $zen-float-direction !default;
19
-
20
6
 
21
7
  //
22
8
  // This mixin currently requires the following markup at the top of the responsive container (e.g. body or div#page, etc.).
@@ -26,11 +12,11 @@ $bg-float-direction: $zen-float-direction !default;
26
12
  // </p>
27
13
  //
28
14
  @mixin -experimental-bg-grid(
29
- $column-count: $bg-grid-column-count,
30
- $gutter-width: $bg-grid-gutter-width,
15
+ $column-count: $zen-column-count,
16
+ $gutter-width: $zen-gutter-width,
31
17
  $grid-color: $bg-grid-color,
32
- $grid-width: $bg-grid-width,
33
- $flow-direction: $bg-float-direction
18
+ $grid-width: $zen-grid-width,
19
+ $flow-direction: $zen-float-direction
34
20
  ) {
35
21
 
36
22
  // Internal variables.
@@ -48,7 +34,8 @@ $bg-float-direction: $zen-float-direction !default;
48
34
  position: absolute;
49
35
  position: fixed;
50
36
  z-index: -1;
51
- margin: 0 auto;
37
+ margin-left: auto;
38
+ margin-right: auto;
52
39
  width: $grid-width;
53
40
  height: 100%;
54
41
  font-size: $font-size;
@@ -67,6 +54,7 @@ $bg-float-direction: $zen-float-direction !default;
67
54
  @for $i from 1 through $column-count {
68
55
  .bgcol-#{$i} {
69
56
  @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $dir, $auto-include-item-base: false);
57
+ display: block; // Override display: none applied for grids with different column numbers.
70
58
  height: 100%;
71
59
  margin-bottom: -($line-height);
72
60
  background-color: $grid-color;
@@ -80,6 +68,7 @@ $bg-float-direction: $zen-float-direction !default;
80
68
  @include zen-clear();
81
69
  }
82
70
  @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $rev, $auto-include-item-base: false);
71
+ display: block; // Override display: none applied for grids with different column numbers.
83
72
  }
84
73
  }
85
74
  @for $i from ($column-count + 1) through 30 {
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
  // Specify the number of columns in the grid.
7
- $zen-column-count: 12 !default;
7
+ $zen-column-count: 1 !default;
8
8
 
9
9
  // Specify the width of the gutters; half of the gutter will be placed on each
10
10
  // side of a grid column.
@@ -7,7 +7,7 @@ stylesheet 'styles.scss', :media => 'all'
7
7
  html 'example.html'
8
8
 
9
9
  help %Q{
10
- Zen Grids includes a fluid responsive grid system with an intuitive, flexible layout mechanism that leverages the natural source order of your content. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including adaptive and fixed-width layouts. To learn more, visit:
10
+ Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts. To learn more, visit:
11
11
 
12
12
  http://zengrids.com
13
13
  }
@@ -7,6 +7,7 @@
7
7
 
8
8
  #test-zen-grid-item {
9
9
  /* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */
10
+ $zen-column-count: 12;
10
11
  @include zen-grid-item(6, 4);
11
12
 
12
13
  /* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */
@@ -7,7 +7,7 @@
7
7
  /* Test zen-grid-flow-item(1) without setting $column-count */
8
8
  margin-left: -10px;
9
9
  margin-right: 10px;
10
- width: 8.333%;
10
+ width: 100%;
11
11
  padding-left: 10px;
12
12
  padding-right: 10px;
13
13
  -moz-box-sizing: border-box;
data/zen-grids.gemspec CHANGED
@@ -4,13 +4,13 @@ Gem::Specification.new do |s|
4
4
  s.name = 'zen-grids'
5
5
 
6
6
  s.summary = %q{A Compass plugin for Zen Grids, a fluid responsive grid system}
7
- s.description = %q{Zen Grids includes a fluid responsive grid system with an intuitive, flexible layout mechanism that leverages the natural source order of your content. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including adaptive and fixed-width layouts.}
7
+ s.description = %q{Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts.}
8
8
 
9
9
  s.homepage = 'http://zengrids.com'
10
10
  s.rubyforge_project =
11
11
 
12
- s.version = '1.0.rc.2'
13
- s.date = '2012-04-03'
12
+ s.version = '1.0'
13
+ s.date = '2012-04-26'
14
14
 
15
15
  s.authors = ['John Albin Wilkins']
16
16
  s.email = 'virtually.johnalbin@gmail.com'
metadata CHANGED
@@ -1,13 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zen-grids
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - rc
9
- - 2
10
- version: 1.0.rc.2
8
+ version: "1.0"
11
9
  platform: ruby
12
10
  authors:
13
11
  - John Albin Wilkins
@@ -15,7 +13,7 @@ autorequire:
15
13
  bindir: bin
16
14
  cert_chain: []
17
15
 
18
- date: 2012-04-03 00:00:00 +08:00
16
+ date: 2012-04-26 00:00:00 +08:00
19
17
  default_executable:
20
18
  dependencies:
21
19
  - !ruby/object:Gem::Dependency
@@ -31,7 +29,7 @@ dependencies:
31
29
  version: "3.1"
32
30
  type: :runtime
33
31
  version_requirements: *id001
34
- description: Zen Grids includes a fluid responsive grid system with an intuitive, flexible layout mechanism that leverages the natural source order of your content. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including adaptive and fixed-width layouts.
32
+ description: Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts.
35
33
  email: virtually.johnalbin@gmail.com
36
34
  executables: []
37
35
 
@@ -88,16 +86,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
86
  version: "0"
89
87
  required_rubygems_version: !ruby/object:Gem::Requirement
90
88
  requirements:
91
- - - ">"
89
+ - - ">="
92
90
  - !ruby/object:Gem::Version
93
91
  segments:
94
- - 1
95
- - 3
96
- - 1
97
- version: 1.3.1
92
+ - 0
93
+ version: "0"
98
94
  requirements: []
99
95
 
100
- rubyforge_project: 1.0.rc.2
96
+ rubyforge_project: "1.0"
101
97
  rubygems_version: 1.3.6
102
98
  signing_key:
103
99
  specification_version: 3