Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm getting an error in the log messages after doing this:
- I installed a clean Drupal 7 installation with a Sasson theme
- Created a subtheme via drush.
- Uncommented the @import "sprites/smart"; in MYTHEME.scss
- Used @include sprite-smart-any.png; in MYTHEME.scss
- 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
Comment #1
tsi CreditAttribution: tsi commentedPlease try to
@include sprite-smart-any;
(instead of@include sprite-smart-any.png;
)Comment #2
tsi CreditAttribution: tsi commentedYou can also check out Plato for a working example.
Comment #3
jiddisch CreditAttribution: jiddisch commentedI'm getting the error from Uncommenting the @import "sprites/smart"; line in MYTHEME.scss
Comment #4
gidiamir CreditAttribution: gidiamir commentedWe 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
Comment #5
tsi CreditAttribution: tsi commentedThe 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