selector_expressions.less 318 B

1234567891011121314151617181920212223242526272829
  1. @color: blue;
  2. (~"something @{color}"), world {
  3. color: blue;
  4. }
  5. .div {
  6. @color: red;
  7. (3434) {
  8. height: 100px;
  9. }
  10. (~"cool @{color}") {
  11. height: 4000px;
  12. }
  13. }
  14. .heck(@a) { color: @a+10 }
  15. .spanX (@index) when (@index > 0) {
  16. (~".span@{index}") { .heck(@index) }
  17. .spanX(@index - 1);
  18. }
  19. .spanX (0) {}
  20. .spanX (5);