gcss
gcss copied to clipboard
@import external stylesheets
Hi,
I'm trying to reference an external stylesheet from GCSS. Can it be done? Is there a way?
$font: 'Lato'
@import url("//fonts.googleapis.com/css?family=" + $font)
body
font-family: $font, sans-serif
Best regards, Aleander Rødseth
@xyproto We can write @import like https://github.com/yosssi/gcss/blob/master/test/0009.gcss. But I'm not sure if we can write a parameter such as $font in the @import line. I'll check it. Just a moment please.
What is the expected behaviour of this? For me, @import merely prints the line into the resulting css - and doesn't import it inline like, say, sass would. Are there any plans to support import in a sass-like way? (importing other .gcss files and have them compile by the preprocessor). I have, for example, a config.sass file with many configuration variables in it that I use throughout other files, it's the single thing that I need that gcss doesn't support.