user1129404
user1129404

Reputation: 71

Compass add compact() to css files

When I use box-shadow Compass mixin CSS, the output is not correct

Input:

.my-class 
   +box-shadow(0 0 1px 1px #b1b1b1)

Output:

.my-class {
    -moz-box-shadow: compact(0 0 1px 1px #b1b1b1, false, false, false, false, false, false, false, false, false);
}

The correct output should be like http://compass-style.org/examples/compass/css3/box_shadow/

.my-class {
    -moz-box-shadow: 0 0 1px 1px #b1b1b1;
}

What am I doing wrong?

Upvotes: 7

Views: 2024

Answers (2)

AndrewRIGHT
AndrewRIGHT

Reputation: 460

“Compact” function

I added this function into included file _css3.scss and everything working.

Upvotes: 1

cemregr
cemregr

Reputation: 731

Your compass gem might not have been installed correctly, since the "compact" function is not standard SASS, but added by compass.

Upvotes: 1

Related Questions