Last Updated: February 25, 2016
·
364
· rfsbsb

Using Compass and Zen Grids' global variables

I was having some trouble while using compass and Zen Grids, while dealing with $zen-column-count variable in a Drupal theme.

If you are having the same problem, it's due a recent change in compass' way of dealing with variables. Now, if you need to use a variable throughout some included files, you have to postfix it with !global modifier.

So, it was:

$zen-column-count:  12;

And now it should be:

$zen-column-count:  12 !global;

Hope it helps someone else.