zen-grids 2.0.0.beta.2 → 2.0.0.beta.3

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/zen-grids.rb +1 -1
  4. data/{_zen-grids.scss → stylesheets/_zen-grids.scss} +0 -0
  5. data/{zen-grids → stylesheets/zen-grids}/_background.scss +5 -3
  6. data/{zen-grids → stylesheets/zen-grids}/_flow.scss +1 -1
  7. data/{zen-grids → stylesheets/zen-grids}/_functions.scss +2 -2
  8. data/{zen-grids → stylesheets/zen-grids}/_grids.scss +13 -10
  9. data/stylesheets/zen-grids/_undo.scss +156 -0
  10. data/{zen-grids → stylesheets/zen-grids}/_variables.scss +0 -0
  11. data/{zen-grids → stylesheets/zen-grids}/internal/_functions-compass-polyfill.scss +2 -25
  12. data/{zen-grids → stylesheets/zen-grids}/internal/_variables-background.scss +0 -0
  13. data/zen-grids.gemspec +18 -13
  14. metadata +17 -48
  15. data/.travis.yml +0 -13
  16. data/bower.json +0 -27
  17. data/sache.json +0 -5
  18. data/tests/Gemfile +0 -11
  19. data/tests/README.md +0 -16
  20. data/tests/Rakefile +0 -25
  21. data/tests/config.rb +0 -22
  22. data/tests/controls/compass-compatibility.css +0 -112
  23. data/tests/controls/function-zen-direction-switch.css +0 -16
  24. data/tests/controls/function-zen-grid-item-width.css +0 -26
  25. data/tests/controls/function-zen-half-gutter.css +0 -24
  26. data/tests/controls/function-zen-unit-width.css +0 -22
  27. data/tests/controls/zen-float.css +0 -16
  28. data/tests/controls/zen-flow-item-width.css +0 -131
  29. data/tests/controls/zen-grid-background.css +0 -52
  30. data/tests/controls/zen-grid-container.css +0 -94
  31. data/tests/controls/zen-grid-item-base.css +0 -76
  32. data/tests/controls/zen-grid-item.css +0 -81
  33. data/tests/controls/zen-new-row.css +0 -16
  34. data/tests/tests/compass-compatibility.scss +0 -55
  35. data/tests/tests/function-zen-direction-switch.scss +0 -24
  36. data/tests/tests/function-zen-grid-item-width.scss +0 -44
  37. data/tests/tests/function-zen-half-gutter.scss +0 -37
  38. data/tests/tests/function-zen-unit-width.scss +0 -44
  39. data/tests/tests/zen-float.scss +0 -26
  40. data/tests/tests/zen-flow-item-width.scss +0 -85
  41. data/tests/tests/zen-grid-background.scss +0 -85
  42. data/tests/tests/zen-grid-container.scss +0 -49
  43. data/tests/tests/zen-grid-item-base.scss +0 -65
  44. data/tests/tests/zen-grid-item.scss +0 -101
  45. data/tests/tests/zen-new-row.scss +0 -26
  46. data/tests/unit_tests.rb +0 -57
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- # Configuration options are documented at:
2
- # http://about.travis-ci.org/docs/user/languages/ruby/
3
- language: ruby
4
- bundler_args: --without development
5
- rvm:
6
- - 1.9.3
7
- - 2.0.0
8
- gemfile:
9
- - tests/Gemfile
10
- branches:
11
- only:
12
- - master
13
- script: cd tests; bundle exec rake
data/bower.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "name" : "zen-grids",
3
- "version" : "2.0.0-beta.2",
4
- "homepage" : "http://zengrids.com",
5
- "author" : ["John Albin Wilkins"],
6
- "description" : "Zen Grids is an intuitive, flexible grid system to create responsive, adaptive, fluid and fixed-width layouts.",
7
- "main" : [
8
- "_zen-grids.scss",
9
- "zen-grids/_background.scss",
10
- "zen-grids/_flow.scss",
11
- "zen-grids/_grids.scss"
12
- ],
13
- "keywords" : [
14
- "Sass",
15
- "Compass",
16
- "grids",
17
- "rwd"
18
- ],
19
- "license" : "GPLv2",
20
- "ignore" : [
21
- "zen-grids.gemspec",
22
- "sache.json",
23
- "lib",
24
- "templates",
25
- "tests"
26
- ]
27
- }
data/sache.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "name": "zen-grids",
3
- "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.",
4
- "tags": ["layout", "grid", "rwd", "responsive-web-design"]
5
- }
data/tests/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- # Pull gems from RubyGems
2
- source 'https://rubygems.org'
3
-
4
- gem 'sass', ">= 3.3"
5
- gem 'compass', ">= 1.0.0.alpha.13", "!= 1.0.0.alpha.16", "!= 1.0.0.alpha.17"
6
-
7
- group :test do
8
- gem 'rake'
9
- gem "diffy", "~> 3.0.1"
10
- gem "colorize", "~> 0.6.0"
11
- end
data/tests/README.md DELETED
@@ -1,16 +0,0 @@
1
- # Tests
2
-
3
- The tests for this project are built using Navigator, a Ruby testing framework
4
- for Sass with Compass. https://github.com/Team-Sass/navigator
5
-
6
- ## Building the test environment
7
-
8
- Navigator works through Ruby, so you need to be running Ruby 1.8.7 or greater, and you to install [Bundler](http://bundler.io/) with `gem install bundler` or, for Mac OS X and other systems requiring administrative privileges, `sudo gem install bundler`.
9
-
10
- Once Bundler is installed, change to the tests directory and run `bundle install` to install libraries required by this project.
11
-
12
- ## Running tests
13
-
14
- Once you have everything installed, change to the tests directory and run `bundle exec rake` to run the tests. This will compile all of the files in your `tests/tests` files into CSS files and compare those files to the files in `tests/controls`. If any of your output file from your tests don't line up with your controls, you'll get a `.diff` file generated of the differences and you'll get a failed assertion. If your Sass won't compile, you'll get a failed assertion.
15
-
16
- If you're working off of a known set of good output and you'd like to generate your controls quickly, you can run `bundle exec rake compile`.
data/tests/Rakefile DELETED
@@ -1,25 +0,0 @@
1
- # Navigator | Copyright 2013 Team Sass | MIT License | https://github.com/Team-Sass/navigator
2
-
3
- task :default => [:test]
4
-
5
- task :test do
6
- require 'fileutils'
7
-
8
- output_dir = 'output'
9
- FileUtils.mkdir_p output_dir
10
- ruby 'unit_tests.rb'
11
- FileUtils.rm_rf output_dir
12
- end
13
-
14
- desc 'Compile baseline CSS'
15
- task :compile do
16
- require 'compass'
17
- require 'compass/exec'
18
-
19
- Compass.add_configuration 'config.rb'
20
- Compass.configuration.project_path = Dir.pwd
21
- # Compile into baseline directory instead of test output directory
22
- Compass.configuration.css_dir = 'controls'
23
- Compass.compiler.clean!
24
- Compass.compiler.run
25
- end
data/tests/config.rb DELETED
@@ -1,22 +0,0 @@
1
- # Require any additional compass plugins here.
2
-
3
- # File system locations
4
- sass_dir = 'tests'
5
- css_dir = 'output'
6
-
7
- # If developing an extension, add your extension's stylesheets folder as an import path.
8
- add_import_path '../'
9
-
10
- # Set to true for easier debugging
11
- line_comments = false
12
- # preferred_syntax = :sass
13
-
14
- # CSS output style - :nested, :expanded, :compact, or :compressed
15
- output_style = :expanded
16
-
17
- # Determine whether Compass asset helper functions generate relative
18
- # or absolute paths
19
- relative_assets = true
20
-
21
- # Learn more:
22
- # http://compass-style.org/docs/tutorials/configuration-reference/
@@ -1,112 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-grid-container() and zen-grid-item() after @import compass.
4
- */
5
- #test-zen-grid-container {
6
- /* Test zen-grid-container() */
7
- *position: relative;
8
- *zoom: 1;
9
- }
10
- #test-zen-grid-container:before, #test-zen-grid-container:after {
11
- content: "";
12
- display: table;
13
- }
14
- #test-zen-grid-container:after {
15
- clear: both;
16
- }
17
-
18
- #test-zen-grid-container-2 {
19
- /* Test zen-grid-container() with IE 8 support */
20
- }
21
- #test-zen-grid-container-2:before, #test-zen-grid-container-2:after {
22
- content: "";
23
- display: table;
24
- }
25
- #test-zen-grid-container-2:after {
26
- clear: both;
27
- }
28
-
29
- #test-zen-grid-container-3 {
30
- /* Test zen-grid-container() with IE 7 support */
31
- *position: relative;
32
- *zoom: 1;
33
- }
34
- #test-zen-grid-container-3:before, #test-zen-grid-container-3:after {
35
- content: "";
36
- display: table;
37
- }
38
- #test-zen-grid-container-3:after {
39
- clear: both;
40
- }
41
-
42
- #test-zen-grid-container-4 {
43
- /* Test zen-grid-container() with IE 6 support */
44
- *position: relative;
45
- *zoom: 1;
46
- }
47
- #test-zen-grid-container-4:before, #test-zen-grid-container-4:after {
48
- content: "";
49
- display: table;
50
- }
51
- #test-zen-grid-container-4:after {
52
- clear: both;
53
- }
54
-
55
- #test-zen-grid-item {
56
- /* Test zen-grid-item(1, 1) */
57
- float: left;
58
- width: 100%;
59
- margin-left: 0%;
60
- margin-right: -100%;
61
- *margin-right: -99.9%;
62
- padding-left: 10px;
63
- padding-right: 10px;
64
- -moz-box-sizing: border-box;
65
- -webkit-box-sizing: border-box;
66
- -ms-box-sizing: border-box;
67
- box-sizing: border-box;
68
- *behavior: url("/ie-box-sizing.htc");
69
- *word-wrap: break-word;
70
- /* Test zen-grid-item(1, 1) with IE 8 support */
71
- float: left;
72
- width: 100%;
73
- margin-left: 0%;
74
- margin-right: -100%;
75
- padding-left: 10px;
76
- padding-right: 10px;
77
- -moz-box-sizing: border-box;
78
- -webkit-box-sizing: border-box;
79
- -ms-box-sizing: border-box;
80
- box-sizing: border-box;
81
- /* Test zen-grid-item(1, 1) with IE 7 support */
82
- float: left;
83
- width: 100%;
84
- margin-left: 0%;
85
- margin-right: -100%;
86
- *margin-right: -99.9%;
87
- padding-left: 10px;
88
- padding-right: 10px;
89
- -moz-box-sizing: border-box;
90
- -webkit-box-sizing: border-box;
91
- -ms-box-sizing: border-box;
92
- box-sizing: border-box;
93
- *behavior: url("/ie-box-sizing.htc");
94
- *word-wrap: break-word;
95
- /* Test zen-grid-item(1, 1) with IE 6 support */
96
- float: left;
97
- width: 100%;
98
- margin-left: 0%;
99
- margin-right: -100%;
100
- *margin-right: -99.9%;
101
- padding-left: 10px;
102
- padding-right: 10px;
103
- -moz-box-sizing: border-box;
104
- -webkit-box-sizing: border-box;
105
- -ms-box-sizing: border-box;
106
- box-sizing: border-box;
107
- *behavior: url("/ie-box-sizing.htc");
108
- _display: inline;
109
- _overflow: hidden;
110
- _overflow-y: visible;
111
- *word-wrap: break-word;
112
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-direction-switch()
4
- */
5
- #test-zen-direction-switch {
6
- /* Test zen-direction-switch(left) */
7
- float: right;
8
- /* Test zen-direction-switch(right) */
9
- float: left;
10
- /* Test zen-direction-switch(both) */
11
- float: both;
12
- /* Test zen-direction-switch(none) */
13
- float: none;
14
- /* Test zen-direction-switch(invalid) */
15
- float: invalid;
16
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-grid-item-width()
4
- */
5
- #test-zen-grid-item-width {
6
- /* Test zen-grid-item-width(1) with default $zen-columns: 1 */
7
- width: 100%;
8
- /* Test zen-grid-item-width(2) with $zen-columns: 5 */
9
- width: 40%;
10
- /* Test zen-grid-item-width(2, 5) */
11
- width: 40%;
12
- /* Test zen-grid-item-width(1) with $zen-grid-width: 100px */
13
- width: 100px;
14
- /* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */
15
- width: 40px;
16
- /* Test zen-grid-item-width(2, 5, $grid-width: 1000px) */
17
- width: 400px;
18
- /* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */
19
- width: 380px;
20
- /* Test zen-grid-item-width(2, 5, $gutters: 10px, $grid-width: 1000px, $box-sizing: content-box) */
21
- width: 390px;
22
- /* Test zen-grid-item-width(3, 5, $gutters: 10%, $gutter-method: margin) */
23
- width: 56%;
24
- /* Test zen-grid-item-width(3.5, 5, $gutters: 10%, $gutter-method: margin) */
25
- width: 62%;
26
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-half-gutter()
4
- */
5
- #test-zen-half-gutter {
6
- /* Test zen-half-gutter() with default $zen-gutters: 20px */
7
- padding-left: 10px;
8
- /* Test zen-half-gutter() with $zen-gutters: 30px */
9
- padding-left: 15px;
10
- /* Test zen-half-gutter(10em) */
11
- padding-left: 5em;
12
- /* Test zen-half-gutter(11em) */
13
- padding-left: 5.5em;
14
- /* Test zen-half-gutter(10px) */
15
- padding-left: 5px;
16
- /* Test zen-half-gutter(11px) */
17
- padding-left: 5px;
18
- /* Test zen-half-gutter(11px, right) */
19
- padding-left: 6px;
20
- /* Test zen-half-gutter(11px) with $zen-direction: right */
21
- padding-left: 5px;
22
- /* Test zen-half-gutter(11px, left) with $zen-direction: right */
23
- padding-left: 6px;
24
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-unit-width()
4
- */
5
- #test-zen-unit-width {
6
- /* Test zen-unit-width() with default $zen-columns: 1 */
7
- width: 100%;
8
- /* Test zen-unit-width() with $zen-columns: 5 */
9
- width: 20%;
10
- /* Test zen-unit-width(5) */
11
- width: 20%;
12
- /* Test zen-unit-width() with $zen-grid-width: 100px */
13
- width: 100px;
14
- /* Test zen-unit-width(5) with $zen-grid-width: 100px */
15
- width: 20px;
16
- /* Test zen-unit-width(5, 100px) */
17
- width: 20px;
18
- /* Test zen-unit-width() with $zen-columns: 3, $zen-gutter-method: margin, and $zen-gutters: 5% */
19
- width: 30%;
20
- /* Test zen-unit-width(3, 5px, margin, 100px) */
21
- width: 30px;
22
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-float()
4
- */
5
- #test-zen-float {
6
- /* Test zen-float() */
7
- float: left;
8
- /* Test zen-float() with $zen-direction: right */
9
- float: right;
10
- /* Test zen-float(left) */
11
- float: left;
12
- /* Test zen-float(left, $switch-direction: TRUE) */
13
- float: right;
14
- /* Test zen-float(left) with: $zen-switch-direction: TRUE; */
15
- float: right;
16
- }
@@ -1,131 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-flow-item-width()
4
- */
5
- #test-zen-flow-item-width {
6
- /* Test zen-flow-item-width(1) without setting $parent-column-span */
7
- -moz-box-sizing: border-box;
8
- -webkit-box-sizing: border-box;
9
- -ms-box-sizing: border-box;
10
- box-sizing: border-box;
11
- width: 100%;
12
- padding-left: 0;
13
- padding-right: 0px;
14
- margin-right: 20px;
15
- /* Test zen-flow-item-width(1, 4) with 20px gutter */
16
- -moz-box-sizing: border-box;
17
- -webkit-box-sizing: border-box;
18
- -ms-box-sizing: border-box;
19
- box-sizing: border-box;
20
- width: 25%;
21
- padding-left: 0;
22
- padding-right: 15px;
23
- margin-right: 5px;
24
- /* Test zen-flow-item-width(1, 4) with 15px gutter */
25
- -moz-box-sizing: border-box;
26
- -webkit-box-sizing: border-box;
27
- -ms-box-sizing: border-box;
28
- box-sizing: border-box;
29
- width: 25%;
30
- padding-left: 0;
31
- padding-right: 11.25px;
32
- margin-right: 3.75px;
33
- /* Test zen-flow-item-width(1) with 5 columns, 20px gutter and $zen-grid-width: 1000px */
34
- -moz-box-sizing: border-box;
35
- -webkit-box-sizing: border-box;
36
- -ms-box-sizing: border-box;
37
- box-sizing: border-box;
38
- width: 200px;
39
- padding-left: 0;
40
- padding-right: 20px;
41
- /* Test zen-flow-item-width(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */
42
- -moz-box-sizing: border-box;
43
- -webkit-box-sizing: border-box;
44
- -ms-box-sizing: border-box;
45
- box-sizing: border-box;
46
- width: 200px;
47
- padding-left: 20px;
48
- padding-right: 0;
49
- /* Test zen-flow-item-width(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */
50
- -moz-box-sizing: border-box;
51
- -webkit-box-sizing: border-box;
52
- -ms-box-sizing: border-box;
53
- box-sizing: border-box;
54
- width: 180px;
55
- padding-left: 0;
56
- padding-right: 0;
57
- /* Test zen-flow-item-width(1, 4) with 15px gutter and $zen-direction: right */
58
- -moz-box-sizing: border-box;
59
- -webkit-box-sizing: border-box;
60
- -ms-box-sizing: border-box;
61
- box-sizing: border-box;
62
- width: 25%;
63
- padding-right: 0;
64
- padding-left: 11.25px;
65
- margin-left: 3.75px;
66
- /* Test zen-flow-item-width(1, 4) with 15px gutter and $alpha-gutter: true */
67
- -moz-box-sizing: border-box;
68
- -webkit-box-sizing: border-box;
69
- -ms-box-sizing: border-box;
70
- box-sizing: border-box;
71
- width: 25%;
72
- padding-left: 0;
73
- margin-left: 15px;
74
- padding-right: 11.25px;
75
- margin-right: 3.75px;
76
- /* Test zen-flow-item-width(1, 4) with 15px gutter and $omega-gutter: false */
77
- -moz-box-sizing: border-box;
78
- -webkit-box-sizing: border-box;
79
- -ms-box-sizing: border-box;
80
- box-sizing: border-box;
81
- width: 25%;
82
- padding-left: 0;
83
- padding-right: 11.25px;
84
- margin-right: -11.25px;
85
- /* Test zen-flow-item-width(3, 4) with 20px gutter and $alpha-gutter: true */
86
- -moz-box-sizing: border-box;
87
- -webkit-box-sizing: border-box;
88
- -ms-box-sizing: border-box;
89
- box-sizing: border-box;
90
- width: 75%;
91
- padding-left: 0;
92
- margin-left: 20px;
93
- padding-right: 5px;
94
- margin-right: 15px;
95
- /* Test zen-flow-item-width(3, 4) with 20px gutter and $omega-gutter: false */
96
- -moz-box-sizing: border-box;
97
- -webkit-box-sizing: border-box;
98
- -ms-box-sizing: border-box;
99
- box-sizing: border-box;
100
- width: 75%;
101
- padding-left: 0;
102
- padding-right: 5px;
103
- margin-right: -5px;
104
- /* Test zen-flow-item-width(1, 4) with 15px gutter, $zen-direction: right and $alpha-gutter: true */
105
- -moz-box-sizing: border-box;
106
- -webkit-box-sizing: border-box;
107
- -ms-box-sizing: border-box;
108
- box-sizing: border-box;
109
- width: 25%;
110
- padding-right: 0;
111
- margin-right: 15px;
112
- padding-left: 11.25px;
113
- margin-left: 3.75px;
114
- /* Test zen-flow-item-width(1, 4) with $zen-box-sizing: content-box and 10% gutter */
115
- border-left: 0 !important;
116
- border-right: 0 !important;
117
- width: 10.71429%;
118
- padding-left: 0;
119
- padding-right: 10.71429%;
120
- margin-right: 3.57143%;
121
- /* Test zen-flow-item-width(1, 4) with $zen-box-sizing: universal-border-box */
122
- width: 25%;
123
- padding-left: 0;
124
- padding-right: 15px;
125
- margin-right: 5px;
126
- /* Test zen-flow-item-width(1, 4) with $zen-auto-include-flow-item-base: false */
127
- width: 25%;
128
- padding-left: 0;
129
- padding-right: 15px;
130
- margin-right: 5px;
131
- }