How to use Compass filter mixin?

compass-sass, css, mixins

Solution

SASS Example

@import 'compass/css3/filter'

.filtered
  @include filter(grayscale(50%))
  @include filter(blur(2px))

Problem

I'm trying to use filter mixin this way in SCSS: ``` a { @include filter(grayscale(100%)); } ``` But when I compile, I got this error: ``` Undefined mixin 'filter'. ``` I'm using the latest version of this Gem with Rails framework. http://compass-style.org/reference/compass/css3/filter/

Original source

Related problems