Alex Rivera | Logout

How to use Compass filter mixin?

Asked 2013-04-07T21:15:29.737
17

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/

Edit
Report

1 Answer

1

According to Compass documentation this file can be imported using: @import "compass/css3/filter" at the top of sass file.

And then in sass file you can use it as

filter($filter-1, $filter-2, $filter-3, $filter-4, $filter-5, $filter-6, $filter-7, $filter-8, $filter-9, $filter-10)
answered 2013-04-09T08:18:56.407

Your Answer