gridgraphy 0.0.2 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7e9a38002ff8f81ddd6d90a1fc8d6d3ba0333b6
4
- data.tar.gz: 51460817a1ca9829d4b633d64ba6b8b0c1dbf9fe
3
+ metadata.gz: ef50f8da520103a7c8743d9008b399f5dfcc0066
4
+ data.tar.gz: 23935e6e9f1ed171235aa4b0b1ad73245b303186
5
5
  SHA512:
6
- metadata.gz: 49ce16f47b85644c5443393c5bd45a3d3fbb2ca22d19cb59d3d2a74eeafd84b03f65c5b992d123a7a15d4a270e49ea68e6e156125341e95abe42b8dfdfbc1031
7
- data.tar.gz: 37af0ec50805cb329d6d918c8308b37ba6ca6e72864e5a9e06eda2bcab4ff2bfe8e7ed53e8d9aab8966e4b74674eefbb9d51d15322a2e2260592b24d9e1744d6
6
+ metadata.gz: a8600895f8f4a5a90022f3c234c9fe813446033f07a2061afae83df8147eb86eea259f10689180fab09deee4d362bd16b8f0e7e9fe7ceede53d73faa5aaaea42
7
+ data.tar.gz: 638b295cb493b98ff9362edebed04e4fae1a74e5094bb2973791a34d1a48ff564795fded1855204d7c5267f836469b67d8506d2fde9caf2fd9b576c181cade2f
data/README.md CHANGED
@@ -1,29 +1,285 @@
1
- # Gridgraphy
1
+ # About
2
2
 
3
- TODO: Write a gem description
3
+ Gridgraphy is a highly configurable, and incredibly flexible [Compass](http://compass-style.org/) extension
4
+ that enables you to quickly and easily build semantic CSS grids. Whether you're developing a small single page site or architecting a large scale responsive grid system, Gridgraphy will help you get the job done faster.
4
5
 
5
- ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
7
+ - [Installation](#installation)
8
+ - [Getting Started](#getting-started)
9
+ - [Types](#types)
10
+ - [Mixins](#mixins)
11
+ - [Functions](#functions)
12
+ - [Demo](#demo)
8
13
 
9
- gem 'gridgraphy'
10
14
 
11
- And then execute:
15
+ # Installation
12
16
 
13
- $ bundle
17
+ Install Gridgraphy by running the following from the command line:
14
18
 
15
- Or install it yourself as:
19
+ ```bash
20
+ $ gem install gridgraphy
21
+ ```
22
+ Once Gridgraphy is installed you can either create a new Compass project based on Gridgraphy by running the following from the command line:
16
23
 
17
- $ gem install gridgraphy
24
+ ```bash
25
+ $ compass create <project_name> -r gridgraphy -u gridgraphy
26
+ ```
18
27
 
19
- ## Usage
28
+ Or you can add Gridgraphy to an existing Compass project by adding the following to your projects **config.rb**:
20
29
 
21
- TODO: Write usage instructions here
30
+ ```ruby
31
+ require 'gridgraphy'
32
+ ```
22
33
 
23
- ## Contributing
24
34
 
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
35
+ # Getting Started
36
+
37
+ ## Basic
38
+
39
+ You can import the Gridgraphy extension by adding the following line to one of your [Sass/SCSS](http://sass-lang.com/) stylesheet(s):
40
+
41
+ ```scss
42
+ @import gridgraphy
43
+ ```
44
+
45
+ ### Configurable Variables
46
+
47
+ You can mix and match different configurations to acheive the exact type of grid you need.
48
+
49
+ - **$grid-type** [default: **full**] - The [type](#types) of grid. [[full](#full-grid), [right](#right-grid), [center](#center-grid), [left](#left-grid)]
50
+ - **$grid-max-width** [default: **960px**] - The maximum width of the grid in px.
51
+ - **$grid-gutter-width** [default: **20px**] - The gutter spacing in px between columns.
52
+ - **$grid-column-count** [default: **12**] - The total number of columns in the grid.
53
+ - **$grid-show** [default: **false**] - Set ```true``` to highlight the grid row & columns.
54
+
55
+ **That's it!** You now have access to all of the mixins and functions that Gridgraphy provides.
56
+
57
+
58
+ ---
59
+
60
+ ## Scaffolding
61
+
62
+ Scaffolding is a quick way to generate classes for a grid. If you plan on adding your grid classes directly to your markup
63
+ or want to export a pre-made grid as part of an external library, scaffolding can save you a ton of time.
64
+
65
+ You can create a new compass project using scaffolding by running:
66
+
67
+ ```bash
68
+ $ compass create <project_name> -r gridgraphy -u gridgraphy/scaffolding
69
+ ```
70
+
71
+ Or you can add scaffolding to an existing project by adding the following line to any of your [Sass/SCSS](http://sass-lang.com/) stylesheet(s):
72
+
73
+ ```scss
74
+ @import gridgraphy/scaffolding
75
+ ```
76
+
77
+ ### Configurable Variables
78
+
79
+ - **$grid-namespace-base** [default: **grid**] - The name of the prefix that will be used for the grids row & columns class.
80
+ - **$grid-namespace-row** [default: **row**] - The name of the suffix that will be used for the grids row class.
81
+ - **$grid-namespace-column** [default: **column**] - The name of the suffix that will be used for the grids column class.
82
+
83
+
84
+ # Types
85
+ Gridgraphy ships with **4** different types of grid layouts. By default grids are created using the value you've set for the ```$grid-type``` [configuration variable](#configurable-variables), but can be set manually on each ```grid-*``` mixin or function.
86
+
87
+ ## Full Grid
88
+ The full grid type does not have a gutter between columns.
89
+
90
+ ## Right Grid
91
+ The right grid type has its gutter distributed to the right side of each column.
92
+
93
+ ## Center Grid
94
+ The center grid type has its gutter split in half and evenly distributed to both sides of each column.
95
+
96
+ ## Left Grid
97
+ The left grid type has its gutter distributed the the left side of each column.
98
+
99
+
100
+ # Mixins
101
+
102
+ #### grid-row($max-width)
103
+ Sets an element as the container for your columns.
104
+
105
+ - **$max-width** [default: **$grid-max-width**] - The maximum width in pixels the row should span.
106
+
107
+ ```sass
108
+ .grid-row
109
+ @include grid-row(960px)
110
+ ```
111
+
112
+ ***
113
+
114
+ #### grid-row-nested($type)
115
+ Sets an element as the container for your columns inside another column.
116
+
117
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
118
+
119
+ ```sass
120
+ .grid-row
121
+ @include grid-row-nested(left)
122
+ ```
123
+
124
+ ***
125
+
126
+ #### grid-column($columns, $type)
127
+ Sets **all** the properties of a column.
128
+
129
+ - **$columns** - The number of columns to span in the row.
130
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
131
+
132
+ ```sass
133
+ .grid-column
134
+ @include grid-column(6)
135
+ ```
136
+
137
+ ***
138
+
139
+ #### grid-column-width($columns, $type)
140
+ Set **only the width** of a column.
141
+
142
+ **Note:** This mixin is called automatically when using the ```grid-column()``` mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
143
+
144
+ - **$columns** - The number of columns to span in the row.
145
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
146
+
147
+ ```sass
148
+ .grid-column
149
+ @include grid-column-width(6)
150
+ ```
151
+
152
+ ***
153
+
154
+ #### grid-column-base()
155
+ Set **only the base** properties of a column.
156
+
157
+ **Note:** This mixin is called automatically when using the ```grid-column()``` mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
158
+
159
+
160
+ ```sass
161
+ [class^="grid-column-"]
162
+ @include grid-column-base()
163
+
164
+ .grid-column-1
165
+ @include grid-column-gutter(4)
166
+
167
+ .grid-column-2
168
+ @include grid-column-gutter(8)
169
+ ```
170
+
171
+ ***
172
+
173
+ #### grid-column-gutter($columns, $type)
174
+ Set **only the gutter** properties of a column.
175
+
176
+ **Note:** This mixin is called automatically when using the ```grid-column()``` mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
177
+
178
+ - **$columns** - The number of columns to span in the row.
179
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
180
+
181
+ ```sass
182
+ .grid-column
183
+ @include grid-column-gutter(6)
184
+ ```
185
+
186
+ ***
187
+
188
+ #### grid-column-offset-right($columns, $type)
189
+ Sets **all** the properties to offset the column from the right. *(prepends empty columns)*
190
+
191
+ - **$columns** - The number of columns to offset by.
192
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
193
+
194
+ ```sass
195
+ .grid-column
196
+ @include grid-column-offest-right(6)
197
+ ```
198
+
199
+ ***
200
+
201
+ #### grid-column-offset-left($columns, $type)
202
+ Sets **all** the properties to offset the column from the left. *(appends empty columns)*
203
+
204
+ - **$columns** - The number of columns to offset by.
205
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
206
+
207
+ ```sass
208
+ .grid-column
209
+ @include grid-column-offest-left(6)
210
+ ```
211
+
212
+ ***
213
+
214
+ #### grid-column-push($columns, $type)
215
+ Sets **all** the properties to push the column from the left. *(moves the column without affecting surrounding elements)*
216
+
217
+ - **$columns** - The number of columns to push by.
218
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
219
+
220
+ ```sass
221
+ .grid-column
222
+ @include grid-column-push(6)
223
+ ```
224
+
225
+ ***
226
+
227
+ #### grid-column-pull($columns, $type)
228
+ Sets **all** the properties to pull the column towards the left. *(moves the column without affecting surrounding elements)*
229
+
230
+ - **$columns** - The number of columns to pull by.
231
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
232
+
233
+ ```sass
234
+ .grid-column
235
+ @include grid-column-pull(6)
236
+ ```
237
+
238
+
239
+ # Functions
240
+
241
+ #### grid-column-width($columns, $type)
242
+ Returns the unitless (percentage based) width of a column.
243
+
244
+ - **$columns** - The number of columns to take up in a row.
245
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
246
+
247
+ ```sass
248
+ .grid-column
249
+ width: #{grid-column-width(12)}%
250
+ ```
251
+
252
+ ***
253
+
254
+ #### grid-column-offset($columns, $type)
255
+ Returns the unitless (percentage based) offset width of a column.
256
+
257
+ - **$columns** - The number of columns to offset by.
258
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
259
+
260
+ ```sass
261
+ .grid-column
262
+ left: #{grid-column-offset(12)}%
263
+ ```
264
+
265
+ ***
266
+
267
+ #### grid-column-gutter($columns, $type)
268
+ Returns the unitless (percentage based) gutter width of a column.
269
+
270
+ - **$columns** - The number of columns to span in the row.
271
+ - **$type** [default: **$grid-type**] - The [type](#types) of grid to be used.
272
+
273
+ ```sass
274
+ .grid-column
275
+ margin-left: #{grid-column-gutter(12)}%
276
+ ```
277
+
278
+ # Demo
279
+
280
+ Run the following from the command line to build a demo project of the different types of grids provided.
281
+
282
+ ```bash
283
+ $ compass create <project_name> -r gridgraphy -u gridgraphy/example
284
+ ```
285
+
data/gridgraphy.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Gridgraphy::VERSION
9
9
  spec.authors = ["Jason Bellamy"]
10
10
  spec.email = ["j@sonbellamy.com"]
11
- spec.description = "An unobtrusive Compass/SASS grid framework"
12
- spec.summary = "GridGraphy is an open source grid framework that stays out of the way and lets you get things done \"your way\""
11
+ spec.summary = "Gridgraphy is a highly configurable, and incredibly flexible Compass extension that enables you to quickly and easily build semantic CSS grids."
12
+ spec.description = "Whether you're developing a small single page site or architecting a large scale responsive grid system, Gridgraphy will help you get the job done faster."
13
13
  spec.homepage = "https://github.com/jasonbellamy/gridgraphy"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Gridgraphy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridgraphy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Bellamy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass
@@ -38,7 +38,8 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.2.0
41
- description: An unobtrusive Compass/SASS grid framework
41
+ description: Whether you're developing a small single page site or architecting a
42
+ large scale responsive grid system, Gridgraphy will help you get the job done faster.
42
43
  email:
43
44
  - j@sonbellamy.com
44
45
  executables: []
@@ -58,18 +59,14 @@ files:
58
59
  - stylesheets/gridgraphy/config/_config.sass
59
60
  - stylesheets/gridgraphy/grids/base/_functions.sass
60
61
  - stylesheets/gridgraphy/grids/base/_mixins.sass
61
- - stylesheets/gridgraphy/grids/types/center/.DS_Store
62
62
  - stylesheets/gridgraphy/grids/types/center/_functions.sass
63
63
  - stylesheets/gridgraphy/grids/types/center/_mixins.sass
64
- - stylesheets/gridgraphy/grids/types/full/.DS_Store
65
64
  - stylesheets/gridgraphy/grids/types/full/_functions.sass
66
65
  - stylesheets/gridgraphy/grids/types/full/_mixins.sass
67
- - stylesheets/gridgraphy/grids/types/left/.DS_Store
68
66
  - stylesheets/gridgraphy/grids/types/left/_functions.sass
69
67
  - stylesheets/gridgraphy/grids/types/left/_mixins.sass
70
68
  - stylesheets/gridgraphy/grids/types/right/_functions.sass
71
69
  - stylesheets/gridgraphy/grids/types/right/_mixins.sass
72
- - stylesheets/gridgraphy/utils/.DS_Store
73
70
  - stylesheets/gridgraphy/utils/_functions.sass
74
71
  - stylesheets/gridgraphy/utils/_mixins.sass
75
72
  - templates/example/examples/center/config/_config.sass
@@ -111,6 +108,6 @@ rubyforge_project:
111
108
  rubygems_version: 2.0.3
112
109
  signing_key:
113
110
  specification_version: 4
114
- summary: GridGraphy is an open source grid framework that stays out of the way and
115
- lets you get things done "your way"
111
+ summary: Gridgraphy is a highly configurable, and incredibly flexible Compass extension
112
+ that enables you to quickly and easily build semantic CSS grids.
116
113
  test_files: []
Binary file