grid-coordinates 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.mdown CHANGED
@@ -1,43 +1,45 @@
1
1
  # Grid Coordinates - Sass CSS Grid Framework Generator (Compass Extension)
2
2
 
3
- Grid Coordinates is a [Sass](http://sass-lang.com/) mixin inspired by Tyler Tate's [1kb CSS Grid](http://1kbgrid.com/) project.
3
+ Grid Coordinates is a [Sass](http://sass-lang.com/) CSS Grid Framework Generator delivered as a [Compass](http://compass-style.org/) extension. This project was inspired by Tyler Tate's [1kb CSS Grid](http://1kbgrid.com/) project.
4
4
 
5
- Grid Coordinates is pretty simple, yet very complex. It sets up the styles for your CSS grid framework and supports nested grids as well. It's also able to generate the CSS styles for a grid of any dimension - you control the coordinates and it generates the styles.
5
+ Grid Coordinates is quite simple. It sets up the styles for your CSS grid framework and even supports nested grids as well. It's also able to generate styles for grids of any size - you control the coordinates and it generates the styles.
6
6
 
7
7
  ## Installation
8
8
 
9
- You will need to install this to your specified Compass extensions directory. See the Compass documentation on extensions for more details: [http://compass-style.org/docs/tutorials/extensions/](http://compass-style.org/docs/tutorials/extensions/)
9
+ `sudo gem install grid-coordinates`
10
+
11
+ Add `require 'grid-coordinates'` to your Compass config file.
10
12
 
11
13
  ## Usage
12
14
 
13
- The default grid dimensions are set to create a 960px wide grid with 12 columns at 60px each with a 20px gutter.
15
+ The default grid-coordinates defaults have been set to create a 960px wide grid with 12 columns at 60px with a gutter of 20px. You can override these as needed in your project if the 960px grid doesn't suit your needs.
14
16
 
15
- See `templates/project/screen.sass` for an example.
17
+ Use [1kbgrid.com](http://1kbgrid.com) or another grid generator for guidance on the various grid coordinates possible.
16
18
 
17
- Start your project by adding grid-coordinates to your `extensions` directory in your sass folder.
19
+ See `templates/project/screen.sass` for an example.
18
20
 
19
21
  ### Configure as needed and import
20
22
 
21
23
  // Configure grid coordinates
22
- $grid-columns: 12
23
- $grid-pixels: 60px
24
+ $grid-columns: 16
25
+ $grid-pixels: 40px
24
26
  $grid-gutter-width: 20px
25
27
 
26
- @import extensions/grid-coordinates
28
+ @import grid-coordinates
27
29
 
28
30
  ### Available mixins
29
31
 
30
- `grid-container`
32
+ `@include grid-container`
31
33
 
32
- `nested-grid-container`
34
+ `@include nested-grid-container`
33
35
 
34
- `grid($grid-columns)`
36
+ `@include grid($grid-columns)`
35
37
 
36
- `grid-prefix($grid-columns)`
38
+ `@include grid-prefix($grid-columns)`
37
39
 
38
- `grid-suffix($grid-columns)`
40
+ `@include grid-suffix($grid-columns)`
39
41
 
40
- `grid-full`
42
+ `@include grid-full`
41
43
 
42
44
  ## License
43
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.5
1
+ 1.0.6
@@ -1,2 +1,2 @@
1
1
  # path from the library file to where you're keeping your compass stuff.
2
- Compass::Frameworks.register("css-lightbox", :path => "#{File.dirname(__FILE__)}/..")
2
+ Compass::Frameworks.register("grid-coordinates", :path => "#{File.dirname(__FILE__)}/..")
@@ -1,11 +1,3 @@
1
- // --------------------------------------------------------------------------------
2
- // Grid Coordinates was inspired by Tyler Tate's 1kb CSS Grid project (1kbgrid.com)
3
- // --------------------------------------------------------------------------------
4
- // The default grid is 960px wide, 12 columns at 60px each with a 20px gutter.
5
- //
6
- // Set the 3 variables below to define your grid coordinates.
7
- // Use 1kbgrid.com as a guide to the various grid coordinates possible.
8
-
9
1
  @import "compass/utilities";
10
2
 
11
3
  // How many grid columns would you like?
@@ -0,0 +1,19 @@
1
+ !!! Strict
2
+ %html
3
+ %head
4
+ %title Grid Coordinates - Sample
5
+ %link{:href => "screen.css", :media => "all", :rel => "stylesheet", :type => "text/css"}
6
+ %body{:id => body_id, :class => body_class}
7
+ #header
8
+ #brand
9
+ %p brand
10
+ #nav
11
+ %p nav
12
+ #page
13
+ #page-body
14
+ %p page-body
15
+ #page-sidebar
16
+ %p page-sidebar
17
+ #footer
18
+ #footer-body
19
+ %p footer
@@ -0,0 +1,71 @@
1
+ body {
2
+ font: bold 14px helvetica, arial, sans-serif;
3
+ padding-top: 20px;
4
+ }
5
+
6
+ #header, #page, #footer {
7
+ margin: 0 auto;
8
+ overflow: hidden;
9
+ width: 960px;
10
+ }
11
+
12
+ #brand {
13
+ display: inline;
14
+ float: left;
15
+ margin: 0 10px;
16
+ overflow: hidden;
17
+ width: 300px;
18
+ }
19
+
20
+ #nav {
21
+ display: inline;
22
+ float: left;
23
+ margin: 0 10px;
24
+ overflow: hidden;
25
+ width: 620px;
26
+ }
27
+
28
+ #page-body {
29
+ display: inline;
30
+ float: left;
31
+ margin: 0 10px;
32
+ overflow: hidden;
33
+ width: 620px;
34
+ }
35
+ #page-body.wide {
36
+ display: inline;
37
+ float: left;
38
+ margin: 0 10px;
39
+ overflow: hidden;
40
+ width: 940px;
41
+ }
42
+
43
+ #page-sidebar {
44
+ display: inline;
45
+ float: left;
46
+ margin: 0 10px;
47
+ overflow: hidden;
48
+ width: 300px;
49
+ }
50
+
51
+ #footer-body {
52
+ display: inline;
53
+ float: left;
54
+ margin: 0 10px;
55
+ overflow: hidden;
56
+ width: 940px;
57
+ }
58
+
59
+ .common, #brand, #nav, #footer-body, #page-body, #page-body.wide, #page-sidebar {
60
+ background: #dddddd;
61
+ margin-bottom: 20px;
62
+ text-align: center;
63
+ }
64
+
65
+ #brand, #nav, #footer-body {
66
+ line-height: 100px;
67
+ }
68
+
69
+ #page-body, #page-body.wide, #page-sidebar {
70
+ line-height: 400px;
71
+ }
@@ -1,14 +1,20 @@
1
+ @import compass
2
+
1
3
  // Configure grid coordinates
2
4
  $grid-columns: 12
3
5
  $grid-pixels: 60px
4
6
  $grid-gutter-width: 20px
5
7
 
6
- @import path/to/grid-coordinates
8
+ @import grid-coordinates
9
+
10
+ body
11
+ font: bold 14px helvetica, arial, sans-serif
12
+ padding-top: 20px
7
13
 
8
14
  #header, #page, #footer
9
15
  @include grid-container
10
16
 
11
- #header
17
+ #brand
12
18
  @include grid(4)
13
19
 
14
20
  #nav
@@ -17,7 +23,23 @@ $grid-gutter-width: 20px
17
23
  #page-body
18
24
  @include grid(8)
19
25
  &.wide
20
- @include grid(12)
26
+ @include grid-full
21
27
 
22
28
  #page-sidebar
23
- @include grid(4)
29
+ @include grid(4)
30
+
31
+ #footer-body
32
+ @include grid-full
33
+
34
+ .common
35
+ background: #ddd
36
+ margin-bottom: 20px
37
+ text-align: center
38
+
39
+ #brand, #nav, #footer-body
40
+ @extend .common
41
+ line-height: 100px
42
+
43
+ #page-body, #page-sidebar
44
+ @extend .common
45
+ line-height: 400px
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid-coordinates
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 5
9
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Adam Stacoviak
@@ -21,9 +22,11 @@ dependencies:
21
22
  name: compass
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 63
27
30
  segments:
28
31
  - 0
29
32
  - 10
@@ -44,7 +47,9 @@ files:
44
47
  - VERSION
45
48
  - lib/grid-coordinates.rb
46
49
  - stylesheets/_grid-coordinates.scss
50
+ - templates/project/index.haml
47
51
  - templates/project/manifest.rb
52
+ - templates/project/screen.css
48
53
  - templates/project/screen.sass
49
54
  has_rdoc: true
50
55
  homepage: http://adamstacoviak.com/
@@ -56,23 +61,27 @@ rdoc_options: []
56
61
  require_paths:
57
62
  - lib
58
63
  required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
59
65
  requirements:
60
66
  - - ">="
61
67
  - !ruby/object:Gem::Version
68
+ hash: 3
62
69
  segments:
63
70
  - 0
64
71
  version: "0"
65
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
66
74
  requirements:
67
75
  - - ">="
68
76
  - !ruby/object:Gem::Version
77
+ hash: 3
69
78
  segments:
70
79
  - 0
71
80
  version: "0"
72
81
  requirements: []
73
82
 
74
83
  rubyforge_project:
75
- rubygems_version: 1.3.6
84
+ rubygems_version: 1.3.7
76
85
  signing_key:
77
86
  specification_version: 3
78
87
  summary: A Sass CSS Grid Framework Generator