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

@import url(http://fonts.googleapis.com/css?family=Open+Sans); #265

Closed
dylan opened this issue May 12, 2011 · 5 comments
Closed

@import url(http://fonts.googleapis.com/css?family=Open+Sans); #265

dylan opened this issue May 12, 2011 · 5 comments

Comments

@dylan
Copy link

dylan commented May 12, 2011

@import url(http://fonts.googleapis.com/css?family=Open+Sans);

Will not compile because lessc cannot find it, that makes sense. What is non-inuitive is that you cannot escape the value, or do anything to prevent it trying to find it except add '.css' to the end of the url, and since it isn't really a .css but rather a part of a request that is not a valid option.

It would be awesome to be able to do something like:

@import !url(http://fonts.googleapis.com/css?family=Open+Sans);

or similar to tell lessc to ignore the url, not try and resolve it, just echo it.

Is this a valid point or am I missing a simpler solution? :P

Thanks!

@cprecioso
Copy link

I have the same problem with Google fonts. :(

@revolunet
Copy link
Contributor

if import path is detected as CSS file, its not downloaded by less, just echoed in the final CSS. so your external CSS must be css-identifiable. I just added querystring support. hope this helps.

@cprecioso
Copy link

can you make a pull request to official repo?
thnx

@revolunet
Copy link
Contributor

done, but looks like @cloudhead is very busy with those many pull requests :/

revolunet added a commit to revolunet/less.js that referenced this issue Jul 7, 2011
stefanklug pushed a commit to stefanklug/carto that referenced this issue May 21, 2013
Quote ampersend chars in XML text. Closes less#263.
@zaidhaan
Copy link

zaidhaan commented Jan 5, 2014

could you find one for avenir font?

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

5 participants