There was a backwards incompatibility change in SASS 3.4.0 (18 August 2014) that breaks parts of the ZEN theme.

See: http://sass-lang.com/documentation/file.SASS_CHANGELOG.html

All variable assignments not at the top level of the document are now local by default. If there’s a global variable with the same name, it won’t be overwritten unless the !global flag is used. For example, $var: value !global will assign to $var globally. This behavior can be detected using feature-exists(global-variable-shadowing).

I know at least one place where this breaks the theme (but there may be others):
/sass/layouts/_responsive.scss

Here, the $zen-column-count is first defined globally, but then set inside of several @media queries. For example here:

/**
 * Use 5 grid columns for larger screens.
 */
@media all and (min-width: 960px) {

  $zen-column-count: 5;
...

When this is run with SASS >= 3.4, these local changes are not picked up, and the default value of '1' remains set, which results in a wrong layout.

These instances should be changed to:

/**
 * Use 5 grid columns for larger screens.
 */
@media all and (min-width: 960px) {

  $zen-column-count: 5 !global;

Comments

hoporr’s picture

Title: SASS backwards compatiblity - global variables » SASS backwards incompatiblity - global variables
johnalbin’s picture

Status: Active » Closed (duplicate)

This is closely related to #2188263: legacy browser support in compass has changed. Consolidating the discussion to one point.