mirror of
https://github.com/less/less.js.git
synced 2026-02-08 14:05:24 -05:00
First step in implementing syntax for @import options, proposed in https://github.com/cloudhead/less.js/issues/1185#issuecomment-13710620 (steps (1) and (2)). I've implemented the 'multiple' and 'less' options. One could trivially add 'once' and 'css' options as well, if there was need. Proposed "silent" and "inline" options are deferred for future work. I left the existing "@import-multiple" and "@import-once" syntax in place, although the proposal is for this to be deprecated once the new option syntax is in place.
21 lines
611 B
Plaintext
21 lines
611 B
Plaintext
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
|
|
|
|
@import url(/absolute/something.css) screen and (color) and (max-width: 600px);
|
|
|
|
@var: 100px;
|
|
@import url("//ha.com/file.css") (min-width:@var);
|
|
|
|
#import-test {
|
|
.mixin;
|
|
width: 10px;
|
|
height: (@a + 10%);
|
|
}
|
|
@import "import/import-test-e" screen and (max-width: 600px);
|
|
|
|
@import url("import/import-test-a.less");
|
|
|
|
@import less "import/import-test-d.css" screen and (max-width: 601px);
|
|
|
|
@import multiple "import/import-test-e" screen and (max-width: 602px);
|
|
|
|
@import (less, multiple) url("import/import-test-d.css") screen and (max-width: 603px); |