I'm getting an error in the log messages after doing this:

  1. I installed a clean Drupal 7 installation with a Sasson theme
  2. Created a subtheme via drush.
  3. Uncommented the @import "sprites/smart"; in MYTHEME.scss
  4. Used @include sprite-smart-any.png; in MYTHEME.scss
  5. Have an image any.png in sites/all/themes/MYTHEME/images/sprites/smart folder

Error:
Message SassMixinDefinitionNodeException: Mixins can only be defined at root level: :: Source: in SassMixinDefinitionNode->__construct() (line 42 of /var/www/***/sites/all/themes/***/phamlp/sass/tree/SassMixinDefinitionNode.php).

Comments

tsi’s picture

Please try to @include sprite-smart-any; (instead of @include sprite-smart-any.png;)

tsi’s picture

You can also check out Plato for a working example.

jiddisch’s picture

I'm getting the error from Uncommenting the @import "sprites/smart"; line in MYTHEME.scss

gidiamir’s picture

We have the same problem
importing a mixin doesn't work with us we're simply uncommentign the import partials/mixins and it gives the same error

tsi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

The PHP compiler used in Sasson 2.x is no longer needed in v3.x and I don't see me or anyone else getting to maintain it.
Marking all realted issues as won't fix. sorry.
You are welcome to try the much more powerful v3.x