Created
November 22, 2011 20:37
-
-
Save mrdanadams/1386863 to your computer and use it in GitHub Desktop.
Sass and Compass with WordPress
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
http_path = "/" | |
css_dir = "." | |
sass_dir = "sass" | |
images_dir = "images" | |
javascripts_dir = "scripts" | |
# You can select your preferred output style here (can be overridden via the command line): | |
# output_style = :expanded or :nested or :compact or :compressed | |
# To enable relative paths to assets via compass helper functions. | |
# note: this is important in wordpress themes for sprites | |
relative_assets = true |
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
$ gem update --system | |
$ gem install sass | |
$ gem install rb-fsevent | |
$ gem install compass |
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
@import "compass"; | |
@import "compass/reset"; /* actually creates styles so put after all your imports*/ |
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
$ cd yourproject | |
$ compass watch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment