zen-grids 2.0.0.beta.4 → 2.0.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.
- checksums.yaml +4 -4
- data/{LICENSE.txt → LICENSE.md} +0 -0
- data/README.md +8 -25
- data/bower.json +27 -0
- data/lib/zen-grids.rb +14 -7
- data/package.json +45 -0
- data/sass/zen-grids/_background.scss +53 -12
- data/sass/zen-grids/_flow.scss +138 -15
- data/sass/zen-grids/_functions.scss +86 -6
- data/sass/zen-grids/_grids.scss +84 -19
- data/sass/zen-grids/_layout.scss +56 -40
- data/sass/zen-grids/_undo.scss +63 -15
- data/sass/zen-grids/_variables.scss +299 -42
- data/zen-grids.gemspec +15 -13
- metadata +9 -8
- data/sass/zen-grids/internal/_functions-compass-polyfill.scss +0 -47
data/zen-grids.gemspec
CHANGED
@@ -1,26 +1,28 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.name
|
4
|
+
spec.name = 'zen-grids'
|
5
5
|
|
6
|
-
spec.summary
|
7
|
-
spec.description
|
6
|
+
spec.summary = %q{A Sass module to build responsive grid systems}
|
7
|
+
spec.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
|
-
spec.homepage
|
9
|
+
spec.homepage = 'http://zengrids.com'
|
10
10
|
spec.rubyforge_project =
|
11
11
|
|
12
|
-
spec.version
|
13
|
-
spec.date
|
14
|
-
spec.licenses
|
12
|
+
spec.version = '2.0.0'
|
13
|
+
spec.date = '2015-11-22'
|
14
|
+
spec.licenses = ['GPL-2']
|
15
15
|
|
16
|
-
spec.authors
|
17
|
-
spec.email
|
16
|
+
spec.authors = ['John Albin Wilkins']
|
17
|
+
spec.email = 'virtually.johnalbin@gmail.com'
|
18
18
|
|
19
|
-
spec.add_runtime_dependency('sass',
|
19
|
+
spec.add_runtime_dependency('sass', '~> 3.3')
|
20
20
|
|
21
|
-
spec.files
|
22
|
-
spec.files
|
23
|
-
|
21
|
+
spec.files = `git ls-files`.split($/).select {|f| File.exist?(f) && f =~ %r{^(lib|sass)/} }
|
22
|
+
spec.files += %w(
|
23
|
+
bower.json
|
24
|
+
LICENSE.md
|
25
|
+
package.json
|
24
26
|
README.md
|
25
27
|
zen-grids.gemspec
|
26
28
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zen-grids
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Albin Wilkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -33,9 +33,11 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- LICENSE.
|
36
|
+
- LICENSE.md
|
37
37
|
- README.md
|
38
|
+
- bower.json
|
38
39
|
- lib/zen-grids.rb
|
40
|
+
- package.json
|
39
41
|
- sass/_zen-grids.scss
|
40
42
|
- sass/zen-grids/_background.scss
|
41
43
|
- sass/zen-grids/_flow.scss
|
@@ -44,7 +46,6 @@ files:
|
|
44
46
|
- sass/zen-grids/_layout.scss
|
45
47
|
- sass/zen-grids/_undo.scss
|
46
48
|
- sass/zen-grids/_variables.scss
|
47
|
-
- sass/zen-grids/internal/_functions-compass-polyfill.scss
|
48
49
|
- sass/zen-grids/internal/_variables-background.scss
|
49
50
|
- zen-grids.gemspec
|
50
51
|
homepage: http://zengrids.com
|
@@ -62,13 +63,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
63
|
version: '0'
|
63
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
65
|
requirements:
|
65
|
-
- - "
|
66
|
+
- - ">="
|
66
67
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
68
|
+
version: '0'
|
68
69
|
requirements: []
|
69
|
-
rubyforge_project: 2.0.0
|
70
|
+
rubyforge_project: 2.0.0
|
70
71
|
rubygems_version: 2.4.8
|
71
72
|
signing_key:
|
72
73
|
specification_version: 4
|
73
|
-
summary: A
|
74
|
+
summary: A Sass module to build responsive grid systems
|
74
75
|
test_files: []
|
@@ -1,47 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Private functions for the Zen Grids system; not for public use.
|
3
|
-
//
|
4
|
-
|
5
|
-
|
6
|
-
//
|
7
|
-
// Determines if the project has declared a minimum supported version number for
|
8
|
-
// the specified browser. This is a wrapper function that uses Compass'
|
9
|
-
// support-legacy-browser() if available.
|
10
|
-
// @see http://compass-style.org/reference/compass/support/#function-support-legacy-browser
|
11
|
-
//
|
12
|
-
@function zen-support-for($browser, $min-version) {
|
13
|
-
@if function-exists('support-legacy-browser') {
|
14
|
-
@return support-legacy-browser($browser, $min-version);
|
15
|
-
}
|
16
|
-
@else {
|
17
|
-
@return zen-support-legacy-browser($browser, $min-version);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
//
|
22
|
-
// A stripped-down version of Compass' support-legacy-browser().
|
23
|
-
//
|
24
|
-
@function zen-support-legacy-browser($browser, $min-version) {
|
25
|
-
// Check against declared minimums.
|
26
|
-
$min-required-version: map-get($browser-minimum-versions, $browser);
|
27
|
-
|
28
|
-
// Ensure $min-version and $min-required-version are strings (or null).
|
29
|
-
@if not (type-of($min-required-version) == "null" or type-of($min-required-version) == "string") {
|
30
|
-
@warn "map-get($browser-minimum-versions, #{$browser}) must be set to a string (or null); #{$min-required-version} is a #{type-of($min-required-version)}.";
|
31
|
-
}
|
32
|
-
@if not (type-of($min-version) == "string") {
|
33
|
-
@warn "The $min-version parameter of zen-support-for() must be a string; #{$min-version} is a #{type-of($min-version)}.";
|
34
|
-
}
|
35
|
-
|
36
|
-
@return ($min-required-version and (zen-str-to-int($min-version) >= zen-str-to-int($min-required-version)));
|
37
|
-
}
|
38
|
-
|
39
|
-
//
|
40
|
-
// Poor-man's string-to-integer conversion. We are only concerned with IE
|
41
|
-
// versions, which are integers, so we don't need a better solution like Hugo's.
|
42
|
-
// @see http://hugogiraudel.com/2014/01/15/sass-string-to-number/
|
43
|
-
//
|
44
|
-
@function zen-str-to-int($string) {
|
45
|
-
$integers: ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "100");
|
46
|
-
@return index($integers, $string);
|
47
|
-
}
|