Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. @import "for";
  2. @list-y: 'I', 'You', 'others';
  3. .for(@list-y); .-each(@type) {
  4. @y-class: ~'.y-@{type}';
  5. @{y-class} {
  6. y: @type;
  7. }
  8. }
  9.  
  10. @import "for";
  11. @list-x: 'less', 'cirious', 'somebody', 'somebody-else';
  12. .for(@list-x); .-each(@type) {
  13. @x-class: ~'.x-@{type}';
  14. @{x-class} {
  15. x: @type;
  16. }
  17. }
  18.  
  19. @import "x";
  20. @import "y";
  21.  
  22. $ lessc both.less
  23. .x-less {
  24. x: 'less';
  25. }
  26. .y-less {
  27. y: 'less';
  28. }
  29. .x-cirious {
  30. x: 'cirious';
  31. }
  32. .y-cirious {
  33. y: 'cirious';
  34. }
  35. ...
  36. .x-I {
  37. x: 'I';
  38. }
  39. .y-I {
  40. y: 'I';
  41. }
  42. ...
  43.  
  44. $ lessc -v
  45. lessc 1.7.5 (Less Compiler) [JavaScript]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement