marnen / compass-elastic-plugin
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 18 14:03:29 -0700 2009 | |
| |
Manifest | ||
| |
README.mkdn | Mon May 18 14:14:14 -0700 2009 | |
| |
Rakefile | Mon May 18 14:19:09 -0700 2009 | |
| |
VERSION | ||
| |
compass-elastic-plugin.gemspec | ||
| |
elastic-source/ | ||
| |
lib/ | ||
| |
sass/ | Mon May 18 17:08:51 -0700 2009 | |
| |
templates/ | Mon May 18 14:03:29 -0700 2009 |
README.mkdn
Elastic CSS Framework - Compass Plugin
- Port of Version 1.2.4
- 2008-03-24
Plugin created by Marnen Laibow-Koser, based on Elastic framework by Fernando TrasviƱa, Sergio de la Garza, et al. See http://elasticss.com and http://github.com/azendal/elastic/tree/master .
This plugin adds the Elastic CSS framework to Compass.
Install
sudo gem install chriseppstein-compass
sudo gem install chriseppstein-compass-960-plugin
Create a 960-based Compass Project
compass -r elastic -f elastic <project name>
Then edit your grid.sass and text.sass files accordingly. A reset is added into grid.sass automatically.
Customizing your Grid System
To create a grid system with other number of columns use the +grid-system mixin to generate
the corresponding classes.
Example:
#wrap
+grid-system(24)
Making Semantic Grids
- Use the
+grid-containermixin to declare your container element. - Use the
+gridmixin to declare a grid element. - Use the
+alphaand+omegamixins to declare the first and last grid elements for a row. - User the
+grid-prefixand+grid-suffixmixins to add grid columns before or after a grid element.
Example:
#wrap
+grid-container
#left-nav
+alpha
+grid(5,16)
#main-content
+grid-prefix(1,16)
+grid(10, 16)
+omega

