Skip to content
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

Failure to parse valid CSS imports with media queries #1042

Closed
cimmanon opened this issue Dec 12, 2013 · 0 comments
Closed

Failure to parse valid CSS imports with media queries #1042

cimmanon opened this issue Dec 12, 2013 · 0 comments

Comments

@cimmanon
Copy link

The following is valid CSS:

@import url('sheet-1.css');
@import url('sheet-2.css') screen and (min-width: 300px) and (max-width: 730px);

However, Sass thinks it is an error:

Syntax error: Invalid CSS after \"sheet-2.css') \": expected selector or at-rule, was \"screen and (min...\"\A

Omiting the url() in the Sass file appears to work:

@import 'sheet-1.css';
@import 'sheet-2.css' screen and (min-width: 300px) and (max-width: 730px);

Output:

@import url(sheet-1.css);
@import 'sheet-2.css' screen and (min-width: 300px) and (max-width: 730px);
@nex3 nex3 closed this as completed in a6f6bf5 Dec 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant