SomMeri / less4j

Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
146 stars 47 forks source link

ability to use "externally defined" variables in @import statements #241

Open SomMeri opened 9 years ago

SomMeri commented 9 years ago

https://github.com/less/less.js/issues/1359

Deraen commented 8 years ago

Is this same case:

@web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700";

.web-font(@path) {
  @import url("@{path}");
}
.web-font(@web-font-path);

I'm hitting this problem with the latest Bootswatch version: https://github.com/thomaspark/bootswatch/blob/gh-pages/yeti/bootswatch.less#L5-L10