accessors.less.disable 549 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* accessors */
  2. #defaults {
  3. @width: 960px;
  4. @color: black;
  5. .something {
  6. @space: 10px;
  7. @hello {
  8. color: green;
  9. }
  10. }
  11. }
  12. .article { color: #294366; }
  13. .comment {
  14. width: #defaults[@width];
  15. color: .article['color'];
  16. padding: #defaults > .something[@space];
  17. }
  18. .wow {
  19. height: .comment['width'];
  20. background-color: .comment['color'];
  21. color: #defaults > .something > @hello['color'];
  22. padding: #defaults > non-existant['padding'];
  23. margin: #defaults > .something['non-existant'];
  24. }
  25. .mix {
  26. #defaults;
  27. font-size: .something[@space];
  28. }