Compass / compass

Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
http://compass-style.org
Other
6.73k stars 1.18k forks source link

Error: 6.25%*em/px isn't a valid CSS value. #2077

Open beauvais opened 8 years ago

beauvais commented 8 years ago

Using the typography/vertical rhythm mixin, I get the error: Error: 6.25%*em/px isn't a valid CSS value. on line 107 of /usr/local/lib/ruby/gems/2.2.0/gems/compass-core-1.0.3/stylesheets/compass/typography/_vertical_rhythm.scss, in `establish-baseline'

I can't for the life of me figure out why, or where the problem is happening.

cimmanon commented 8 years ago

Where is the code that reproduces this error?

beauvais commented 8 years ago

So, I'm setting the variable:

$base-font-size: $ms-base; // using modular-scale to establish ems and ratios.

However, I get the same error if I set it to: $base-font-size: 1em;

It seems to only want pixels?

cimmanon commented 8 years ago

I still don't see any code here that reproduces any errors. I should be able to copy your code into my editor and get the exact error you're seeing.

beauvais commented 8 years ago

So, the problem is in this directory: https://github.com/beauvais/zachbeauvais.com-pelican/tree/master/themes/zb

I'm using the mixin:

@import "compass/typography/vertical_rhythm";

I've got compass watching the sass directory, so when it compiles with that variable set to either an em or a $ms-base (which is set to 1em already), I get that error in the compiled css.

$base-font-size: 1em; //causes the error when compass compiles