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 font in semantic-ui results in incorrect css #15

Open
freakinruben opened this issue Aug 5, 2017 · 1 comment
Open

Import font in semantic-ui results in incorrect css #15

freakinruben opened this issue Aug 5, 2017 · 1 comment
Labels

Comments

@freakinruben
Copy link

So, semantic-ui is working!

But I keep getting a warning:
WARN: Compilation resulted in incorrect CSS. The IMPORT ended up inside a body of rule set located at 17:1 at line 51

It seems to be caused by this line:

/*******************************
             Page
*******************************/

.loadFonts();

Which triggers this mixin:

.loadFonts() when (@importGoogleFonts) {
  @import url('@{googleProtocol}fonts.googleapis.com/css?family=@{googleFontRequest}');
}

And then results in the following css:

 {
  /*******************************
             Page
*******************************/
  @import url('https://fonts.googleapis.com/css?family=Roboto:400,700,400italic,700italic&subset=latin');
}

The {} around the import statement shouldn't be there I think

@Deraen
Copy link
Owner

Deraen commented Aug 5, 2017

I opened issue upstream at less4j: SomMeri/less4j#364

@Deraen Deraen added the blocked label Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants