This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I get any error Syntax error: Invalid CSS after "...nd (max-width: ": expected expression (e.g. 1px, bold), was "$screenSmall - ..." when trying to compile the following line @media only screen and (max-width: $screenSmall - 1) { ...rest of css here ... } If I replace $screenSmall with the actual value, 767px for example, then things are fine. I am using version 3.2.288.20623 Any ideas on why this may be? Update: After further reading I am assuming this is something that we need to wait for Sass 3.2 to be released and then Web workbench to be updated. |
|
|
Yep, variable interpolation and use within scopes like media appears to be fairly poorly supported in Sass currently. I have probably been reading the same threads you have since I saw a few people commenting on 3.2 being where they were hoping to have that sorted although from the commit logs I am not seeing anything obvious. We track along with the Sass releases so we will upgrade WW to Sass 3.2 when this gets finalized and hopefully that sorts it :)
|
|