Created
December 27, 2012 21:55
-
-
Save anonymous/4392401 to your computer and use it in GitHub Desktop.
Using Susy for Compass in Codekit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In your compass config.rb, add the susy gem path to the requires - adjust for your own paths | |
# Require any additional compass plugins here. | |
require "/Users/keith/.rvm/gems/ruby-1.9.3-p194/gems/susy-1.0.5/lib/susy.rb" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cool, then just include it with compass in SASS | |
@import 'compass/css3' | |
@import 'susy' | |
//Do some cool responsive grid shit | |
//example pulled from homepage - http://susy.oddbird.net/ | |
.ag1 | |
@include span-columns(2,10) | |
.ag2 | |
@include span-columns(6,10) | |
.ag3 | |
@include span-columns(2 omega, 10) | |
.ag4 | |
@include span-columns(3,6) | |
.ag5 | |
@include span-columns(3 omega,6) | |
.ag6 | |
@include span-columns(2,6) | |
.ag7 | |
@include span-columns(4 omega,6) | |
.ag8 | |
@include span-columns(2,4) | |
.ag9 | |
@include span-columns(2 omega,4) | |
.ag10 | |
clear: both |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment