tinycss.less 880 B

12345678910111213141516171819202122232425262728293031323334
  1. .make-margin-padding(margin, m, 5px, 4);
  2. .make-margin-padding(padding, p, 5px, 4);
  3. .make-margin-padding(@type, @prefix, @space, @i) when (@i >= 0) {
  4. .make-margin-padding(@type, @prefix, @space, @i - 1);
  5. @pixel: @space * @i;
  6. .@{prefix}-@{i} {
  7. @{type}-top: @pixel !important;
  8. @{type}-right: @pixel !important;
  9. @{type}-bottom: @pixel !important;
  10. @{type}-left: @pixel !important;
  11. }
  12. .@{prefix}t-@{i} {
  13. @{type}-top: @pixel !important;
  14. }
  15. .@{prefix}r-@{i} {
  16. @{type}-right: @pixel !important;
  17. }
  18. .@{prefix}b-@{i} {
  19. @{type}-bottom: @pixel !important;
  20. }
  21. .@{prefix}l-@{i} {
  22. @{type}-left: @pixel !important;
  23. }
  24. .@{prefix}x-@{i} {
  25. @{type}-left: @pixel !important;
  26. @{type}-right: @pixel !important;
  27. }
  28. .@{prefix}y-@{i} {
  29. @{type}-top: @pixel !important;
  30. @{type}-bottom: @pixel !important;
  31. }
  32. }