import.less 667 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @import 'file1.less'; // file found and imported
  2. @import "not-found";
  3. @import "something.css" media;
  4. @import url("something.css") media;
  5. @import url(something.css) media, screen, print;
  6. @color: maroon;
  7. @import url(file2); // found and imported
  8. body {
  9. line-height: 10em;
  10. @colors;
  11. }
  12. div {
  13. @color: fuchsia;
  14. @import "file2";
  15. }
  16. .mixin-import() {
  17. @import "file3";
  18. }
  19. .one {
  20. .mixin-import();
  21. color: blue;
  22. }
  23. .two {
  24. .mixin-import();
  25. }
  26. #merge-import-mixins {
  27. @import "a";
  28. @import "b";
  29. div { .just-a-class; }
  30. }
  31. @import "inner/file1";
  32. // test bubbling variables up from imports, while preserving order
  33. pre {
  34. color: @someValue;
  35. }
  36. @import "file3";