summaryrefslogtreecommitdiff
path: root/vendor/leafo/lessphp/tests/inputs/import.less
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/leafo/lessphp/tests/inputs/import.less')
-rw-r--r--vendor/leafo/lessphp/tests/inputs/import.less56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/leafo/lessphp/tests/inputs/import.less b/vendor/leafo/lessphp/tests/inputs/import.less
new file mode 100644
index 00000000..a5005674
--- /dev/null
+++ b/vendor/leafo/lessphp/tests/inputs/import.less
@@ -0,0 +1,56 @@
+
+@import 'file1.less'; // file found and imported
+
+@import "not-found";
+
+@import "something.css" media;
+@import url("something.css") media;
+@import url(something.css) media, screen, print;
+
+@color: maroon;
+
+@import url(file2); // found and imported
+
+body {
+ line-height: 10em;
+ @colors;
+}
+
+div {
+ @color: fuchsia;
+ @import "file2";
+}
+
+
+.mixin-import() {
+ @import "file3";
+}
+
+.one {
+ .mixin-import();
+ color: blue;
+}
+
+.two {
+ .mixin-import();
+}
+
+
+#merge-import-mixins {
+ @import "a";
+ @import "b";
+ div { .just-a-class; }
+}
+
+
+@import "inner/file1";
+
+
+// test bubbling variables up from imports, while preserving order
+
+pre {
+ color: @someValue;
+}
+
+@import "file3";
+