README.md
# the1kbgrid-css-rails
[![Gem](http://img.shields.io/gem/v/the1kbgrid-css-rails.svg?style=flat)][gem]
[![Travis](https://img.shields.io/travis/jhx/gem-the1kbgrid-css-rails.svg?style=flat)][travis]
[![Gemnasium](http://img.shields.io/gemnasium/jhx/gem-the1kbgrid-css-rails.svg?style=flat)][gemnasium]
[![Code Climate](http://img.shields.io/codeclimate/github/jhx/gem-the1kbgrid-css-rails.svg?style=flat)][code climate]
[![Coveralls](http://img.shields.io/coveralls/jhx/gem-the1kbgrid-css-rails.svg?style=flat)][coveralls]
[gem]: https://rubygems.org/gems/the1kbgrid-css-rails
[travis]: https://travis-ci.org/jhx/gem-the1kbgrid-css-rails
[gemnasium]: https://gemnasium.com/jhx/gem-the1kbgrid-css-rails
[code climate]: https://codeclimate.com/github/jhx/gem-the1kbgrid-css-rails
[coveralls]: https://coveralls.io/r/jhx/gem-the1kbgrid-css-rails
> Gemified by Doc Walker
Provides The 1Kb Grid CSS for the Rails 3.1+ asset pipeline.
## Installation
Add these lines to your application's `Gemfile`:
```rb
# the 1kb grid css packaged for the rails asset pipeline
gem 'the1kbgrid-css-rails', '~> 1.1.2'
```
And then execute:
```sh
$ bundle
```
Or install it yourself as:
```sh
$ gem install the1kbgrid-css-rails
```
## Usage
Add these lines to `app/assets/stylesheets/application.css`
```css
/*
provides The 1Kb Grid CSS from gem 'the1kbgrid-css-rails':
= require the1kbgrid-css-rails
*/
```
Use one or more of the following `div` classes:
```css
.row
.column
.grid_1
.grid_2
.grid_3
.grid_4
.grid_5
.grid_6
.grid_7
.grid_8
.grid_9
.grid_10
.grid_11
.grid_12
.grid_13
.grid_14
.grid_15
.grid_16
```
Rails/HAML examples:
```haml
-# start each row with '.row'
-# start each column with '.column'
-# combine '.column.grid_n' for up to 16 across (960px wide)
.row
.column.grid_2
= 'grid width 2'
.column.grid_4
= 'grid width 4'
.column.grid_10
= 'grid width 10'
.row
.column.grid_3
= 'grid width 3'
.column.grid_1
= 'grid width 1'
.column.grid_7
= 'grid width 7'
.column.grid_5
= 'grid width 5'
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Acknowledgements
- [The 1Kb Grid](http://www.1kbgrid.com) *link not working*
- [RailsCast #245](http://railscasts.com/episodes/245-new-gem-with-bundler) New Gem with Bundler -- inspiration
- [Gemify Assets for Rails](http://prioritized.net/blog/gemify-assets-for-rails/) -- guidance