grid-coordinates 1.0.3 → 1.0.4
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.
- data/README.textile +4 -4
- data/VERSION +1 -1
- data/sass/grid-coordinates/grid.sass +34 -58
- data/templates/project/partials/_grid.sass +0 -39
- metadata +2 -2
data/README.textile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
h1. Grid Coordinates - Compass
|
1
|
+
h1. Grid Coordinates - Compass Extension
|
2
2
|
|
3
|
-
Grid Coordinates is
|
3
|
+
Grid Coordinates is a Compass extension. It's simple. It's just a grid that supports nested grids and is also able to generate the CSS for a multitude of grid coordinates.
|
4
4
|
|
5
5
|
The default grid setup is 960px wide, 12 columns at 60px each with a 20px gutter. Feel free to mix it up with something like -- 960 / 16 / 40 / 20, or 800 / 10 / 60 / 20.
|
6
6
|
|
7
7
|
Just update the 4 variables to change the coordinates of your grid. Use 1kbgrid.com as a guide to the grid's coordinate options.
|
8
8
|
|
9
|
-
Grid Coordinates is a "Compass":http://compass-style.org/
|
9
|
+
Grid Coordinates is a "Compass":http://compass-style.org/ extension based on Tyler Tate's 1kb CSS Grid project.
|
10
10
|
|
11
11
|
h2. Installation
|
12
12
|
|
@@ -17,7 +17,7 @@ sudo gem sources -a http://gemcutter.org/
|
|
17
17
|
|
18
18
|
Next, let's install Grid Coordinates and Compass
|
19
19
|
|
20
|
-
bc. sudo gem install
|
20
|
+
bc. sudo gem install grid-coordinates
|
21
21
|
|
22
22
|
Compass should get installed with Grid Coordinates because it's set as a dependency. If for some reason it didn't, you will need to manually install it.
|
23
23
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -1,18 +1,23 @@
|
|
1
|
-
//
|
2
|
-
// Grid Coordinates
|
3
|
-
//
|
1
|
+
// --------------------------------------------------------------------------------
|
2
|
+
// Grid Coordinates was inspired by Tyler Tate's 1kb CSS Grid project (1kbgrid.com)
|
3
|
+
// --------------------------------------------------------------------------------
|
4
4
|
// The default grid is 960px wide, 12 columns at 60px each with a 20px gutter.
|
5
5
|
//
|
6
|
-
//
|
6
|
+
// Set the 3 variables below to define your grid coordinates.
|
7
7
|
// Use 1kbgrid.com as a guide to the various grid coordinates possible.
|
8
8
|
|
9
9
|
@import compass/utilities
|
10
10
|
|
11
|
-
|
11
|
+
// How many grid columns would you like?
|
12
12
|
!grid_columns ||= 12
|
13
|
+
// How many pixels wide would you like each column to be?
|
13
14
|
!grid_pixels ||= 60px
|
15
|
+
// How many pixels wide would you like the gutter to be?
|
14
16
|
!grid_gutter_width ||= 20px
|
15
17
|
|
18
|
+
// Set grid width
|
19
|
+
!grid_width = (!grid_columns * !grid_pixels) + (!grid_columns * !grid_gutter_width)
|
20
|
+
|
16
21
|
=grid(!grid_columns)
|
17
22
|
+column
|
18
23
|
@if !grid_columns == 1
|
@@ -25,59 +30,30 @@
|
|
25
30
|
margin = 0 !grid_gutter_width / 2
|
26
31
|
overflow: hidden
|
27
32
|
|
28
|
-
=grid-container
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
=grid-container
|
34
|
+
margin: 0 auto
|
35
|
+
overflow: hidden
|
36
|
+
width = !grid_width
|
37
|
+
|
38
|
+
=nested-grid-container
|
39
|
+
display: inline-block
|
40
|
+
margin:
|
41
|
+
left = -!grid_gutter_width / 2
|
42
|
+
right = -!grid_gutter_width / 2
|
43
|
+
overflow: hidden
|
44
|
+
width: auto
|
45
|
+
|
46
|
+
=grid-prefix(!grid_columns)
|
47
|
+
@if !grid_columns == 1
|
48
|
+
padding-left = !grid_pixels + !grid_gutter_width
|
35
49
|
@else
|
36
|
-
|
37
|
-
overflow: hidden
|
38
|
-
width = !grid_width
|
50
|
+
padding-left = (!grid_columns * !grid_pixels) + (!grid_columns * !grid_gutter_width)
|
39
51
|
|
40
|
-
=grid-
|
41
|
-
|
52
|
+
=grid-suffix(!grid_columns)
|
53
|
+
@if !grid_columns == 1
|
54
|
+
padding-right = !grid_pixels + !grid_gutter_width
|
55
|
+
@else
|
56
|
+
padding-right = (!grid_columns * !grid_pixels) + (!grid_columns * !grid_gutter_width)
|
42
57
|
|
43
|
-
|
44
|
-
+grid
|
45
|
-
&.nested
|
46
|
-
+grid-container("nested")
|
47
|
-
.grid
|
48
|
-
&.one
|
49
|
-
+grid(1)
|
50
|
-
&.two
|
51
|
-
+grid(2)
|
52
|
-
&.three
|
53
|
-
+grid(3)
|
54
|
-
&.four
|
55
|
-
+grid(4)
|
56
|
-
&.five
|
57
|
-
+grid(5)
|
58
|
-
&.six
|
59
|
-
+grid(6)
|
60
|
-
&.seven
|
61
|
-
+grid(7)
|
62
|
-
&.eight
|
63
|
-
+grid(8)
|
64
|
-
&.nine
|
65
|
-
+grid(9)
|
66
|
-
&.ten
|
67
|
-
+grid(10)
|
68
|
-
&.eleven
|
69
|
-
+grid(11)
|
70
|
-
&.twelve
|
71
|
-
+grid(12)
|
72
|
-
&.full
|
73
|
-
+grid-full
|
74
|
-
|
75
|
-
// Example styling for prototyping a grid with text labels
|
76
|
-
// As seen here: http://flickr.com/ ...#TODO
|
77
|
-
.example
|
78
|
-
p
|
79
|
-
background: #333 !important
|
80
|
-
border: 1px solid #000 !important
|
81
|
-
color: #fff !important
|
82
|
-
line-height: 70px !important
|
83
|
-
text-align: center !important
|
58
|
+
=grid-full
|
59
|
+
+grid(!grid_columns)
|
@@ -1,50 +1,11 @@
|
|
1
1
|
// The following locks in our grid coordinates
|
2
2
|
|
3
|
-
!grid_width ||= 960px
|
4
3
|
!grid_columns ||= 12
|
5
4
|
!grid_pixels ||= 60px
|
6
5
|
!grid_gutter_width ||= 20px
|
7
6
|
|
8
7
|
@import grid-coordinates/grid
|
9
8
|
|
10
|
-
// The following code generates the required CSS for your grid
|
11
|
-
// This is just an example. It is already done for you inside the plugin
|
12
|
-
//
|
13
|
-
// See below for an example on how to use Grid Coordinates
|
14
|
-
// using the mixin method using semantic markup and selectors
|
15
|
-
//
|
16
|
-
// .grid_container
|
17
|
-
// +grid-container
|
18
|
-
// &.nested
|
19
|
-
// +grid-container("nested")
|
20
|
-
// .grid
|
21
|
-
// &.one
|
22
|
-
// +grid(1)
|
23
|
-
// &.two
|
24
|
-
// +grid(2)
|
25
|
-
// &.three
|
26
|
-
// +grid(3)
|
27
|
-
// &.four
|
28
|
-
// +grid(4)
|
29
|
-
// &.five
|
30
|
-
// +grid(5)
|
31
|
-
// &.six
|
32
|
-
// +grid(6)
|
33
|
-
// &.seven
|
34
|
-
// +grid(7)
|
35
|
-
// &.eight
|
36
|
-
// +grid(8)
|
37
|
-
// &.nine
|
38
|
-
// +grid(9)
|
39
|
-
// &.ten
|
40
|
-
// +grid(10)
|
41
|
-
// &.eleven
|
42
|
-
// +grid(11)
|
43
|
-
// &.twelve
|
44
|
-
// +grid(12)
|
45
|
-
// &.full
|
46
|
-
// +grid-full
|
47
|
-
|
48
9
|
// Like most Compass users, I build my layouts with semantic markup and selectors
|
49
10
|
//
|
50
11
|
// #branding, #page, #footer
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grid-coordinates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Stacoviak
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-28 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|