postcss / postcss-simple-vars

PostCSS plugin for Sass-like variables
MIT License
415 stars 36 forks source link

Not working for me #28

Closed jitendravyas closed 9 years ago

jitendravyas commented 9 years ago

Input

$blue: #056ef0;
$column: 200px;

.menu {
    width: calc(4 * $column);
}

.menu_link {
    background: $blue;
    width: $column;
}

Output

.menu{width:calc(4 * $column)}
.menu_link{background:#056ef0;width:200px}
ai commented 9 years ago

Can you add space between variable and ) to test some idea?

jitendravyas commented 9 years ago

Do you mean space here width: calc(4 * $column); ?

ai commented 9 years ago

width: calc(4 * $column );

ai commented 9 years ago

Can’t reproduce. I have this output:

.menu {
    width: calc(4 * 200px);
}

.menu_link {
    background: #056ef0;
    width: 200px;
}

Maybe some other tool broke result?

jitendravyas commented 9 years ago

Sorry for late reply. I tried with space. it's still not working for me.

app css ola-shuttle 2015-09-18 23-26-34

ai commented 9 years ago

I tried your example on clean install and do not got this issue. So, I think it problem in your environment.

I have vacation right now, so I can't help you here.