Skip to content

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

Closed

Description

@dylan

@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!

Activity

  1. cprecioso commented on May 27, 2011

    @cprecioso

    I have the same problem with Google fonts. :(

  2. revolunet commented on Jun 25, 2011

    @revolunet
    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.

  3. cprecioso commented on Jun 28, 2011

    @cprecioso

    can you make a pull request to official repo?
    thnx

  4. revolunet commented on Jun 28, 2011

    @revolunet
    Contributor

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

  5. added a commit that references this issue on Jul 7, 2011
    f1695f6
  6. added a commit that references this issue on May 21, 2013
  7. zaidhaan commented on Jan 5, 2014

    @zaidhaan

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions