CARVIEW |
Every repository with this icon (

Every repository with this icon (

Description: | A Sass grid system inspired by 1kb CSS Grid (Compass extension) edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/adamstac/grid-coordinates.git
Give this clone URL to anyone.
git clone git://github.com/adamstac/grid-coordinates.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:adamstac/grid-coordinates.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed Sep 30 06:48:54 -0700 2009 | Version bump to 1.0.0 * Generated gem * Ported... [adamstac] |
![]() |
README.textile | Thu Oct 01 15:04:43 -0700 2009 | Version bump to 1.0.3 * Updated the Gem name (... [adamstac] |
![]() |
Rakefile | Thu Oct 01 15:04:43 -0700 2009 | Version bump to 1.0.3 * Updated the Gem name (... [adamstac] |
![]() |
VERSION | Fri Oct 30 15:18:57 -0700 2009 | Version bump to 1.0.4 * Update example project... [adamstac] |
![]() |
grid-coordinates.gemspec | Fri Oct 30 15:18:57 -0700 2009 | Version bump to 1.0.4 * Update example project... [adamstac] |
![]() |
lib/ | Thu Oct 01 15:04:43 -0700 2009 | Version bump to 1.0.3 * Updated the Gem name (... [adamstac] |
![]() |
sass/ | Fri Oct 30 15:18:57 -0700 2009 | Version bump to 1.0.4 * Update example project... [adamstac] |
![]() |
templates/ | Fri Oct 30 15:18:57 -0700 2009 | Version bump to 1.0.4 * Update example project... [adamstac] |
Grid Coordinates – Compass Extension
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.
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.
Just update the 4 variables to change the coordinates of your grid. Use 1kbgrid.com as a guide to the grid’s coordinate options.
Grid Coordinates is a Compass extension based on Tyler Tate’s 1kb CSS Grid project.
Installation
First let’s make sure we have both GitHub and Gemcutter set as sources for Gems. You can check your current sources by entering gem sources
in your command prompt.
sudo gem sources -a https://gems.github.com/
sudo gem sources -a https://gemcutter.org/
Next, let’s install Grid Coordinates and Compass
sudo gem install grid-coordinates
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.
gem install chriseppstein-compass
Create a Grid Coordinates-based Compass Project
rails myapp
cd myapp
compass --rails -r grid-coordinates -f grid-coordinates .
You’ll be asked the default Compass setup questions such as where to place your Sass and Compiled CSS.
Once that is finished, you’ll want to take a peek at partials/_grid.sass
.
By default compass/utilities.sass
and blueprint/reset.sass
are being imported into your new partials/_base.sass
file.
Your setup may differ. And that’s ok.
Customizing your Grid System
[[Customize your grid]]
Making Semantic Grids
[[Building a semantic grid]]
Note on patches and pull requests
- Fork the project!
- Have fun…add new features, hack, hack, bug fix, etc.
- Comment your code using the existing comment syntax in the plugin
- Commit, DO NOT mess with rakefile, version, or history.
(if you want to have your own version, that is fine but
bump version in a commit by itself I can ignore when I pull) - Send me a pull request. Bonus points for topic branches.
License
Copyright © 2009 Adam Stacoviak
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
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.