For example :

#parent {
  #child {
    @extend .hidden;
  }
}

Will be parsed into :

#child {
  display: none;
}

Instead of :

#parent #child {
  display: none;
}

Comments

richthegeek’s picture

This is fixed in the Sassy fork of PHamlP - should be fairly easy to port over to the required files to the fork that Sasson uses (or just man up and use Sassy ;D)

The affected file is only tree/SassExtendNode.php (https://github.com/richthegeek/phamlp/blob/master/tree/SassExtendNode.php) and should work without any other changes.

richthegeek’s picture

Wait sorry, that file isn't the solution, it's done elsewhere - give me a few minutes to track it down.

richthegeek’s picture

This fix also changed SassRuleNode and maybe SassRootNode - it's been a while since we fixed this so I can't remember for sure which files were involved.

tsi’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit cb6f5f4 on 7.x-2.x, 7.x-3.x, PHPSass, 7.x-3.x-Assetic, 7.x-3.x-susy authored by richthegeek, committed by tsi:
    Fixed issue #1388344 by tsi, richthegeek : @extend doesn't respect...