zen-grids 1.5 → 2.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +268 -333
- data/README.txt +8 -10
- data/_zen-grids.scss +3 -0
- data/component.json +26 -0
- data/lib/zen-grids.rb +11 -2
- data/templates/project/_init.scss +3 -2
- data/templates/unit-tests/manifest.rb +0 -2
- data/templates/unit-tests/sass/function-zen-direction-flip.scss +1 -1
- data/templates/unit-tests/sass/function-zen-grid-item-width.scss +1 -1
- data/templates/unit-tests/sass/function-zen-half-gutter.scss +1 -1
- data/templates/unit-tests/sass/function-zen-unit-width.scss +1 -1
- data/templates/unit-tests/sass/zen-clear.scss +1 -1
- data/templates/unit-tests/sass/zen-float.scss +1 -1
- data/templates/unit-tests/sass/zen-grid-background.scss +1 -1
- data/templates/unit-tests/sass/zen-grid-container.scss +1 -1
- data/templates/unit-tests/sass/zen-grid-flow-item.scss +1 -1
- data/templates/unit-tests/sass/zen-grid-item-base.scss +1 -1
- data/templates/unit-tests/sass/zen-grid-item.scss +1 -1
- data/templates/unit-tests/sass/zen-nested-container.scss +1 -1
- data/templates/unit-tests/test-results/zen-grid-item.css +3 -3
- data/zen-grids.gemspec +8 -7
- data/{stylesheets/zen → zen-grids}/_background.scss +1 -2
- data/zen-grids/_flow.scss +121 -0
- data/{stylesheets/zen → zen-grids}/_grids.scss +4 -113
- metadata +61 -48
- checksums.yaml +0 -7
- data/stylesheets/_zen.scss +0 -3
@@ -11,7 +11,6 @@ $zen-gutter-width : 20px !default;
|
|
11
11
|
|
12
12
|
// @see http://zengrids.com/help/#zen-auto-include-item-base
|
13
13
|
$zen-auto-include-item-base : true !default;
|
14
|
-
$zen-auto-include-flow-item-base : true !default;
|
15
14
|
|
16
15
|
// Specify the width of the entire grid. @see http://zengrids.com/help/#zen-grid-width
|
17
16
|
$zen-grid-width : 100% !default;
|
@@ -98,7 +97,10 @@ $zen-reverse-all-floats : false !default;
|
|
98
97
|
width: $width;
|
99
98
|
margin: {
|
100
99
|
#{$dir}: ($column-position - 1) * $unit-width;
|
101
|
-
#{$rev}:
|
100
|
+
#{$rev}: -100%;
|
101
|
+
}
|
102
|
+
@if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
|
103
|
+
*margin-#{$rev}: -99.9%;
|
102
104
|
}
|
103
105
|
|
104
106
|
// Auto-apply the unit base mixin.
|
@@ -177,117 +179,6 @@ $zen-reverse-all-floats : false !default;
|
|
177
179
|
clear: $dir;
|
178
180
|
}
|
179
181
|
|
180
|
-
//
|
181
|
-
// Apply this to flow items that need to be floated.
|
182
|
-
// @see http://zengrids.com/help/#zen-float
|
183
|
-
//
|
184
|
-
@mixin zen-float(
|
185
|
-
$float-direction : $zen-float-direction,
|
186
|
-
$reverse-all-floats : $zen-reverse-all-floats
|
187
|
-
) {
|
188
|
-
// Determine the float direction.
|
189
|
-
$dir: $float-direction;
|
190
|
-
@if $reverse-all-floats {
|
191
|
-
$dir: zen-direction-flip($dir);
|
192
|
-
}
|
193
|
-
float: $dir;
|
194
|
-
}
|
195
|
-
|
196
|
-
//
|
197
|
-
// Apply this to an HTML item that is in the normal flow of a document to help
|
198
|
-
// align it to the grid. @see http://zengrids.com/help/#zen-float
|
199
|
-
//
|
200
|
-
@mixin zen-grid-flow-item(
|
201
|
-
$column-span,
|
202
|
-
$parent-column-count : false,
|
203
|
-
$alpha-gutter : false,
|
204
|
-
$omega-gutter : true,
|
205
|
-
$flow-direction : $zen-float-direction,
|
206
|
-
$column-count : $zen-column-count,
|
207
|
-
$gutter-width : $zen-gutter-width,
|
208
|
-
$grid-width : $zen-grid-width,
|
209
|
-
$box-sizing : $zen-box-sizing,
|
210
|
-
$reverse-all-flows : $zen-reverse-all-floats,
|
211
|
-
$auto-include-flow-item-base : $zen-auto-include-flow-item-base
|
212
|
-
) {
|
213
|
-
|
214
|
-
$columns: $column-count;
|
215
|
-
@if unit($grid-width) == "%" {
|
216
|
-
@if $parent-column-count == false {
|
217
|
-
@warn "For responsive layouts with a percentage-based grid width, you must set the $parent-column-count to the number of columns that the parent element spans.";
|
218
|
-
}
|
219
|
-
@else {
|
220
|
-
$columns: $parent-column-count;
|
221
|
-
}
|
222
|
-
}
|
223
|
-
|
224
|
-
$dir: $flow-direction;
|
225
|
-
@if $reverse-all-flows {
|
226
|
-
$dir: zen-direction-flip($dir);
|
227
|
-
}
|
228
|
-
$rev: zen-direction-flip($dir);
|
229
|
-
|
230
|
-
// Auto-apply the unit base mixin.
|
231
|
-
@if $auto-include-flow-item-base {
|
232
|
-
@include zen-grid-item-base($gutter-width, $box-sizing);
|
233
|
-
}
|
234
|
-
|
235
|
-
// Calculate the item's width.
|
236
|
-
$width: zen-grid-item-width($column-span, $columns, $gutter-width, $grid-width, $box-sizing);
|
237
|
-
|
238
|
-
@if unit($grid-width) == "%" {
|
239
|
-
// Our percentage $width is off if the parent has $gutter-width padding.
|
240
|
-
// Calculate an adjusted gutter to fix the width.
|
241
|
-
$adjusted-gutter: ($columns - $column-span) * $gutter-width / $columns;
|
242
|
-
|
243
|
-
width: $width;
|
244
|
-
|
245
|
-
// Ensure the HTML item either has a full gutter or no gutter on each side.
|
246
|
-
padding-#{$dir}: 0;
|
247
|
-
@if $alpha-gutter {
|
248
|
-
margin-#{$dir}: $gutter-width;
|
249
|
-
}
|
250
|
-
padding-#{$rev}: $adjusted-gutter;
|
251
|
-
@if $omega-gutter {
|
252
|
-
margin-#{$rev}: $gutter-width - $adjusted-gutter;
|
253
|
-
}
|
254
|
-
@else {
|
255
|
-
margin-#{$rev}: -($adjusted-gutter);
|
256
|
-
}
|
257
|
-
}
|
258
|
-
@else {
|
259
|
-
@if $alpha-gutter and $omega-gutter {
|
260
|
-
width: $width;
|
261
|
-
@if $gutter-width != 0 {
|
262
|
-
margin: {
|
263
|
-
#{$dir}: zen-half-gutter($gutter-width, left, $dir);
|
264
|
-
#{$rev}: zen-half-gutter($gutter-width, right, $dir);
|
265
|
-
}
|
266
|
-
}
|
267
|
-
}
|
268
|
-
@else if not $alpha-gutter and not $omega-gutter {
|
269
|
-
width: if($box-sizing == border-box, ($width - $gutter-width), $width);
|
270
|
-
@if $gutter-width != 0 {
|
271
|
-
padding: {
|
272
|
-
left: 0;
|
273
|
-
right: 0;
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
@else {
|
278
|
-
width: $width;
|
279
|
-
@if $omega-gutter {
|
280
|
-
padding-#{$dir}: 0;
|
281
|
-
padding-#{$rev}: $gutter-width;
|
282
|
-
}
|
283
|
-
@else {
|
284
|
-
padding-#{$dir}: $gutter-width;
|
285
|
-
padding-#{$rev}: 0;
|
286
|
-
}
|
287
|
-
}
|
288
|
-
}
|
289
|
-
}
|
290
|
-
|
291
182
|
|
292
183
|
//
|
293
184
|
// Helper functions for the Zen mixins.
|
metadata
CHANGED
@@ -1,50 +1,54 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: zen-grids
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 2
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- alpha
|
10
|
+
- 1
|
11
|
+
version: 2.0.0.alpha.1
|
5
12
|
platform: ruby
|
6
|
-
authors:
|
13
|
+
authors:
|
7
14
|
- John Albin Wilkins
|
8
15
|
autorequire:
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
18
|
+
|
19
|
+
date: 2013-02-19 00:00:00 +08:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
14
23
|
name: sass
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.1'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.4'
|
23
|
-
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
|
26
|
-
requirements:
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
27
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
version:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
number of layouts, including responsive, adaptive, fluid and fixed-width layouts.
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 1
|
32
|
+
version: "3.1"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
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.
|
37
36
|
email: virtually.johnalbin@gmail.com
|
38
37
|
executables: []
|
38
|
+
|
39
39
|
extensions: []
|
40
|
+
|
40
41
|
extra_rdoc_files: []
|
41
|
-
|
42
|
+
|
43
|
+
files:
|
44
|
+
- component.json
|
42
45
|
- LICENSE.txt
|
43
46
|
- README.txt
|
44
47
|
- lib/zen-grids.rb
|
45
|
-
-
|
46
|
-
-
|
47
|
-
-
|
48
|
+
- _zen-grids.scss
|
49
|
+
- zen-grids/_background.scss
|
50
|
+
- zen-grids/_flow.scss
|
51
|
+
- zen-grids/_grids.scss
|
48
52
|
- templates/project/_init.scss
|
49
53
|
- templates/project/_layout.scss
|
50
54
|
- templates/project/_modules.scss
|
@@ -52,8 +56,8 @@ files:
|
|
52
56
|
- templates/project/example.html
|
53
57
|
- templates/project/manifest.rb
|
54
58
|
- templates/project/styles.scss
|
55
|
-
- templates/unit-tests/README.txt
|
56
59
|
- templates/unit-tests/manifest.rb
|
60
|
+
- templates/unit-tests/README.txt
|
57
61
|
- templates/unit-tests/sass/function-zen-direction-flip.scss
|
58
62
|
- templates/unit-tests/sass/function-zen-grid-item-width.scss
|
59
63
|
- templates/unit-tests/sass/function-zen-half-gutter.scss
|
@@ -79,28 +83,37 @@ files:
|
|
79
83
|
- templates/unit-tests/test-results/zen-grid-item.css
|
80
84
|
- templates/unit-tests/test-results/zen-nested-container.css
|
81
85
|
- zen-grids.gemspec
|
86
|
+
has_rdoc: true
|
82
87
|
homepage: http://zengrids.com
|
83
|
-
licenses:
|
84
|
-
|
85
|
-
metadata: {}
|
88
|
+
licenses: []
|
89
|
+
|
86
90
|
post_install_message:
|
87
91
|
rdoc_options: []
|
88
|
-
|
92
|
+
|
93
|
+
require_paths:
|
89
94
|
- lib
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '0'
|
95
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
97
|
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
version: "0"
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 1
|
108
|
+
- 3
|
109
|
+
- 1
|
110
|
+
version: 1.3.1
|
100
111
|
requirements: []
|
101
|
-
|
102
|
-
|
112
|
+
|
113
|
+
rubyforge_project: 2.0.0.alpha.1
|
114
|
+
rubygems_version: 1.3.6
|
103
115
|
signing_key:
|
104
|
-
specification_version:
|
116
|
+
specification_version: 3
|
105
117
|
summary: A Compass plugin for Zen Grids, a fluid responsive grid system
|
106
118
|
test_files: []
|
119
|
+
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 696f0ffa70c713bc6dd9dd0a69ccb272c2bc4272
|
4
|
-
data.tar.gz: 914df65e4becd098a9e92550eab1bd9ed536b34c
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 0f30863a763f6ac3b3263e675e3235e60c614b0f4214adc66024ed0058ccecb94324c94781862e480d369d770e923c8c9711da659199de6bb03b00f2c5824041
|
7
|
-
data.tar.gz: 35e5fc45ebfc87e6789be16b243c8318f8735cbeb4cc35b309f36fcbe16951309a6533ca886cfa7cd9ce80f22873c5585c45a231a7c5091920d3e47c7505311a
|
data/stylesheets/_zen.scss
DELETED