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.
145 stars 47 forks source link

import inside a selector does not work with CSS files #291

Closed josephfinlayson closed 9 years ago

josephfinlayson commented 9 years ago

Input LESS

.flex-grid {
    @import  "../../../../../bower_components/flexboxgrid/src/css/flexboxgrid.css";
}

Output CSS

.flex-grid {
  @import "../../../../bower_components/flexboxgrid/src/css/flexboxgrid.css";
}

How do I namespace CSS imports? Casting this file to less doesn't work as it uses newer CSS features. e.g.: @custom-media --md-viewport only screen and (min-width: 62em);

SomMeri commented 9 years ago

@josephfinlayson Which newer CSS features do not work and you need them? If less.js supports them then it is a bug that should be fixed.