Reputation: 28064
I get the follow error when trying to use the mixin 'user-select'. I'm using version 0.12.2 which I'm pretty sure supports user-select from compass. So why can't I use this mixin?
Error
Syntax error: Undefined mixin \'user-select\'
Includes
// css3
@import "compass/css3";
@import "partials/deposit";
Call
//File: partials/_deposit.scss
@include user-select(none);
So why can't I use this mixin?
Upvotes: 5
Views: 13594
Reputation: 4480
From the @import "compass/css3/"
, this is the list of the imported things:
From this, we can say that Compass User Interface (css3/user-interface
) isn't bundled with compass/css3
thus you need to call it also, after the css3 call:
@import "compass/css3"
@import "compass/css3/user-interface"
//other imports
Looks like the 0.13.alpha.10 Compass imports user-interface as well since the documentation page was updated:
Also was added animation as well:
Therefore just @import "compass/css3"
is enough now.
Upvotes: 21