gcss icon indicating copy to clipboard operation
gcss copied to clipboard

@import external stylesheets

Open xyproto opened this issue 10 years ago • 2 comments

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 avatar Apr 16 '15 10:04 xyproto

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

yosssi avatar Apr 16 '15 10:04 yosssi

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.

monomadic avatar Feb 21 '17 07:02 monomadic