-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using of variables in media queries #43
Comments
You should be able to use variables using the
|
Unfortunately that doesn't seem to work either, at least not in 1.1.3. I had a quick dig through the source, and it looked like Scss.manage_children() might not be expecting anything complicated to be rule[MEDIA]? The original SCSS doesn't support it at the moment either - testing it at http://sass-lang.com/try.html throws an error - but it looks like they'll be addressing it in their next release: sass/sass#46 |
SCSS supports this now - the following code works in http://sass-lang.com/try.html, but not pyScss yet:
The |
Variables work for me, however expressions do not:
|
|
bootstrap-sass cannot be used with pyScss due to this exact problem. |
@clee704: you mean due to missing support for variables, right, not for expressions? I only see plain variables used in bootstrap, and those will work in the impeding 1.2. |
Unless I've done something wrong latest build seemed to have a problem accepting:
@media screen and (orientation:portrait) and (max-width:$ipad_portrait_width){
body {
width : $ipad_portrait_width;
}
}
while it worked perfectly with:
@media screen and (orientation:portrait) and (max-width:768px){
body {
width : $ipad_portrait_width;
}
}
Of course, easy to come around for now, but maybe can make it as a fix in a future revision ?
thanks
The text was updated successfully, but these errors were encountered: