Compass adds compact () files to css

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

Input:

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

Conclusion:

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

The correct output should look 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?

+6
source share
2 answers

Your compass gem may not be installed correctly, as the "compact" function is not a standard SASS, but is added by the compass.

+1
source

Compact function

I added this function to the included _css3.scss file and all that works.

0
source

Source: https://habr.com/ru/post/905056/


All Articles