gem

On this tutorial we will learn how to easily install the necessary Ruby packages needed on Ubuntu 14.04 in order to run compass and let Drupal do the magic with SASS.

On a terminal window type:

$sudo apt-get install ruby ruby-dev

once ruby is installed, run:

$sudo gem install compass
$sudo gem install sass

and there you go!

run "compass watch" on the Drupal theme folder you chose for you site and that's all, Compass will start scanning all the *.scsc files and compile all the changes on your styles.

$cd /my-drupal-site/sites/all/themes/my-responsive-theme-with-sass-support/
$compass watch

Enjoy!

Wednesday, February 12, 2014