grid-coordinates 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/ABOUT.mdown ADDED
@@ -0,0 +1,13 @@
1
+ # Grid Coordinates
2
+
3
+ Grid Coordinates is a highly configurable CSS Grid Framework written in Sass, and was inspired by 960.gs and The 1kb CSS Grid. Plug-in your grid's coordinates (grid columns, grid width, gutter width) and generates the required styles.
4
+
5
+ ## License
6
+
7
+ Copyright (c) 2009 Adam Stacoviak
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -3,7 +3,7 @@ Compass::Frameworks.register("grid-coordinates", :path => "#{File.dirname(__FILE
3
3
 
4
4
  module GridCoordinates
5
5
 
6
- VERSION = "1.1.5"
7
- DATE = "2011-08-14"
6
+ VERSION = "1.1.6"
7
+ DATE = "2011-10-21"
8
8
 
9
9
  end
@@ -1,73 +1,73 @@
1
1
  @import "compass/utilities"
2
2
  @import "compass/css3"
3
3
 
4
+ // Modules
5
+ @import "modules/awesome-clearfix"
6
+
4
7
  // Configure Grid Coordinates
5
8
  $grid-columns: 12 !default
6
9
  $grid-width: 60px !default
7
10
  $grid-gutter-width: 20px !default
8
- $overflow: true !default
11
+
12
+ // Support for deprecated clearfix options
13
+ // See modules/awesome-clearfix for details
14
+ $support-legacy-grid-clearfix: true !default
15
+
16
+ // Deprecated
17
+ $overflow: false !default
9
18
 
10
19
  =grid-coordinates
11
- @if $overflow
12
- .grid-pie-clearfix
13
- +pie-clearfix
14
- @else
15
- .grid-clearfix
16
- +clearfix
20
+ .a-clearfix
21
+ @include a-clearfix
22
+ @if $support-legacy-grid-clearfix
23
+ .grid-clearfix, .grid-pie-clearfix
24
+ @extend .a-clearfix
17
25
  .grid-container
18
- +grid-container-base
19
- @if $overflow
20
- @extend .grid-pie-clearfix
21
- @else
22
- @extend .grid-clearfix
26
+ @include grid-container-base
27
+ @extend .a-clearfix
23
28
  .nested-grid-container
24
- +nested-grid-container-base
25
- @if $overflow
26
- @extend .grid-pie-clearfix
27
- @else
28
- @extend .grid-clearfix
29
+ @include nested-grid-container-base
30
+ @extend .a-clearfix
29
31
  .grid-block
30
- +grid-block-base
31
- @if $overflow
32
- @extend .grid-pie-clearfix
33
- @else
34
- @extend .grid-clearfix
32
+ @include grid-block-base
33
+ @extend .a-clearfix
35
34
  .grid-full
36
- +grid-base($grid-columns)
35
+ @include grid-base($grid-columns)
37
36
  @extend .grid-block
38
37
 
39
38
  // Loops
40
39
  @for $i from 1 through $grid-columns
41
40
  .grid-#{$i}
42
- +grid-base($i)
41
+ @include grid-base($i)
43
42
  @extend .grid-block
44
43
  @for $i from 1 through $grid-columns - 1
45
44
  .grid-prefix-#{$i}
46
- +grid-prefix($i)
45
+ @include grid-prefix($i)
47
46
  @for $i from 1 through $grid-columns - 1
48
47
  .grid-suffix-#{$i}
49
- +grid-suffix($i)
48
+ @include grid-suffix($i)
50
49
  @for $i from 1 through $grid-columns - 1
51
50
  .grid-push-#{$i}
52
- +grid-push($i)
51
+ @include grid-push($i)
53
52
  @for $i from 1 through $grid-columns - 1
54
53
  .grid-pull-#{$i}
55
- +grid-pull($i)
54
+ @include grid-pull($i)
56
55
 
56
+ // Being deprecated
57
57
  =overflow
58
- @if $overflow
59
- +pie-clearfix
60
- @else
61
- +clearfix
58
+ @if $overflow and $support-legacy-grid-clearfix
59
+ @include a-clearfix
62
60
 
63
61
  // Grid Container
64
62
  =grid-container-base
65
- margin: 0 auto
63
+ margin:
64
+ right: auto
65
+ left: auto
66
66
  width: ($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width)
67
67
 
68
68
  =grid-container
69
- +overflow
70
- +grid-container-base
69
+ @include a-clearfix
70
+ @include grid-container-base
71
71
 
72
72
  // Nested Container
73
73
  =nested-grid-container-base
@@ -78,30 +78,32 @@ $overflow: true !default
78
78
  width: auto
79
79
 
80
80
  =nested-grid-container
81
- +overflow
82
- +nested-grid-container-base
81
+ @include a-clearfix
82
+ @include nested-grid-container-base
83
83
 
84
84
  // Grid Block
85
85
  =grid-block-base
86
- +box-sizing(border-box)
87
- +float-left
86
+ @include box-sizing(border-box)
87
+ @include float-left
88
88
  position: relative
89
- margin: 0 ($grid-gutter-width / 2)
89
+ margin:
90
+ right: ($grid-gutter-width / 2)
91
+ left: ($grid-gutter-width / 2)
90
92
 
91
93
  =grid-block
92
- +grid-block-base
93
- +overflow
94
+ @include grid-block-base
95
+ @include a-clearfix
94
96
 
95
97
  // Grid
96
98
  =grid-base($grid-columns)
97
- +grid-width($grid-columns)
99
+ @include grid-width($grid-columns)
98
100
 
99
101
  =grid($grid-columns)
100
- +grid-base($grid-columns)
101
- +grid-block
102
+ @include grid-base($grid-columns)
103
+ @include grid-block
102
104
 
103
105
  =grid-full
104
- +grid($grid-columns)
106
+ @include grid($grid-columns)
105
107
 
106
108
  // Grid logic
107
109
  =grid-width($grid-columns)
@@ -0,0 +1,19 @@
1
+ @mixin awesome-clearfix
2
+ zoom: 1
3
+ &:before, &:after
4
+ content: '.'
5
+ display: block
6
+ overflow: hidden
7
+ visibility: hidden
8
+ font-size: 0
9
+ line-height: 0
10
+ width: 0
11
+ height: 0
12
+ &:after
13
+ clear: both
14
+
15
+ @mixin a-clearfix
16
+ @include awesome-clearfix
17
+
18
+ .a-clearfix
19
+ @include a-clearfix
metadata CHANGED
@@ -1,69 +1,64 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: grid-coordinates
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.6
4
5
  prerelease:
5
- version: 1.1.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Adam Stacoviak
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-14 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-21 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: compass
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70262796212880 !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
22
21
  version: 0.11.5
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *id001
26
- description: A highly configurable Sass based CSS Grid Framework Generator
24
+ version_requirements: *70262796212880
25
+ description: Highly configurable CSS Grid Framework written in Sass.
27
26
  email: adam@stacoviak.com
28
27
  executables: []
29
-
30
28
  extensions: []
31
-
32
29
  extra_rdoc_files: []
33
-
34
- files:
35
- - README.mdown
30
+ files:
31
+ - ABOUT.mdown
36
32
  - lib/grid-coordinates.rb
37
33
  - stylesheets/_grid-coordinates.sass
34
+ - stylesheets/modules/_awesome-clearfix.sass
38
35
  homepage: http://grid-coordinates.com/
39
36
  licenses: []
40
-
41
37
  post_install_message:
42
38
  rdoc_options: []
43
-
44
- require_paths:
39
+ require_paths:
45
40
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
41
+ required_ruby_version: !ruby/object:Gem::Requirement
47
42
  none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- hash: 2643158280030478742
52
- segments:
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ segments:
53
48
  - 0
54
- version: "0"
55
- required_rubygems_version: !ruby/object:Gem::Requirement
49
+ hash: -4165155414378362686
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
51
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
60
55
  version: 1.3.6
61
56
  requirements: []
62
-
63
57
  rubyforge_project:
64
- rubygems_version: 1.8.7
58
+ rubygems_version: 1.8.10
65
59
  signing_key:
66
60
  specification_version: 3
67
- summary: A highly configurable Sass based CSS Grid Framework Generator inspired by 960.gs and 1kb CSS Grid that takes the coordinates (total columns, grid width, gutter width) and generates the required styles.
61
+ summary: Grid Coordinates is a highly configurable CSS Grid Framework written in Sass,
62
+ and was inspired by 960.gs and The 1kb CSS Grid. Plug-in your grid's coordinates
63
+ (grid columns, grid width, gutter width) and generates the required styles.
68
64
  test_files: []
69
-
data/README.mdown DELETED
@@ -1,92 +0,0 @@
1
- # Grid Coordinates
2
-
3
- ## A Sass based CSS Grid Framework Generator
4
-
5
- Grid Coordinates is a highly configurable [Sass](http://sass-lang.com/) based CSS Grid Framework Generator, inspired by [960 Grid System](http://960.gs/) and [1kb CSS Grid](http://1kbgrid.com/). Grid Coordinates takes the "coordinates" (total columns, grid width, gutter width) and generates the styles required for your grid.
6
-
7
- Grid Coordinates can be used as a [Compass](http://compass-style.org/) [extension](http://compass-style.org/help/tutorials/extensions/) and is delivered as a [Ruby gem](http://rubygems.org/gems/grid-coordinates).
8
-
9
- ## Just the grid
10
-
11
- Grid Coordinates does one job - provide a rock solid grid framework. It's able to generate styles for grids of any size - you control the coordinates and it generates the styles.
12
-
13
- It fully leverages classes, extends and mixins to set up the styles for your grid. It supports nested grids, prefix and suffix grid features as well as push and pull grid features.
14
-
15
- ## Installation
16
-
17
- `gem install grid-coordinates`
18
-
19
- Then add `require 'grid-coordinates'` to your Compass config file.
20
-
21
- ## Usage
22
-
23
- Grid Coordinates defaults to a 960px grid with 12 columns and a 60px gutter (perfect for fans of 960.gs). You can override these defaults in your project if this grid doesn't suit your needs.
24
-
25
- Use the [variable grid system](http://grids.heroku.com/) to plot the course for your CSS grid. The coordinates generated are based on the 960 Grid System, which is one point of inspiration for Grid Coordinates.
26
-
27
- Take a peek at [grid-coordinates.com/.../demo.sass](https://github.com/adamstac/grid-coordinates.com/blob/master/themes/grid-coordinates/sass/demo.sass) for a demonstration of how to use Grid Coordinates as well its [output CSS](https://github.com/adamstac/grid-coordinates.com/blob/master/themes/grid-coordinates/public/grid-coordinates/css/demo.css).
28
-
29
- ### Configure as needed and import
30
-
31
- // Configure grid coordinates
32
- $grid-columns: 12
33
- $grid-width: 60px
34
- $grid-gutter-width: 20px
35
-
36
- @import "grid-coordinates"
37
-
38
- +grid-coordinates
39
-
40
- You can also set `$overflow` to false (set to true by default) to control which of Compass' two clearfix mixins will be used, `+clearfix` or `+pie-clearfix`. The default setting is `true` and will not clip any content that overflows a grid block. If for some reason you need to clip overflowing content, set `$overflow` to false in your configuration.
41
-
42
- ### Using classes and `@extend`
43
-
44
- When you use the mixin `+grid-coordinates` (as shown above) you are able to leverage the CSS class selectors in your HTML markup or use the Sass `extend` option to "extend" the class selectors in your Sass stylesheets.
45
-
46
- For an example of this in use, look at [grid-coordinates.com/.../demo.sass](https://github.com/adamstac/grid-coordinates.com/blob/master/themes/grid-coordinates/sass/demo.sass).
47
-
48
- `@extend .grid-container`
49
-
50
- `@extend .nested-grid-container`
51
-
52
- `@extend .grid-[columns]`
53
-
54
- `@extend .grid-prefix-[columns]`
55
-
56
- `@extend .grid-suffix-[columns]`
57
-
58
- `@extend .grid-push-[columns]`
59
-
60
- `@extend .grid-pull-[columns]`
61
-
62
- `@extend .grid-full`
63
-
64
- ### Using mixins
65
-
66
- Regardless if go the route of using the mixin `+grid-coordinates` (as shown above) or not, you'll have access to use these mixins in your Sass stylesheets. Keep in mind that when you go the route of using mixins, you could end up replicating a lot of code in your output CSS. Learn more about the [Sass extend concept](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#extend) to see if you should use that method or mixins. Either way, Grid Coordinates got your back.
67
-
68
- `+grid-container`
69
-
70
- `+nested-grid-container`
71
-
72
- `+grid([columns])`
73
-
74
- `+grid-prefix([columns])`
75
-
76
- `+grid-suffix([columns])`
77
-
78
- `+grid-push([columns])`
79
-
80
- `+grid-pull([columns])`
81
-
82
- `+grid-full`
83
-
84
- ## License
85
-
86
- Copyright (c) 2009 Adam Stacoviak
87
-
88
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
89
-
90
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
91
-
92
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.