spaces.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. // Should be used to modify the default spacing between objects (not between nodes of * the same object)
  2. // p,m = padding,margin
  3. // a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical
  4. // x,s,m,l,n = extra-small(@x),small(@s),medium(@m),large(@l),none(0px)
  5. @x: 3px;
  6. @s: 5px;
  7. @m: 10px;
  8. @l: 20px;
  9. .last-col {
  10. overflow: hidden;
  11. }
  12. .ptn, .pvn, .pan {
  13. padding-top: 0;
  14. }
  15. .ptx, .pvx, .pax {
  16. padding-top: @x;
  17. }
  18. .pts, .pvs, .pas {
  19. padding-top: @s;
  20. }
  21. .ptm, .pvm, .pam {
  22. padding-top: @m;
  23. }
  24. .ptl, .pvl, .pal {
  25. padding-top: @l;
  26. }
  27. .prn, .phn, .pan {
  28. padding-right: 0;
  29. }
  30. .prx, .phx, .pax {
  31. padding-right: @x;
  32. }
  33. .prs, .phs, .pas {
  34. padding-right: @s;
  35. }
  36. .prm, .phm, .pam {
  37. padding-right: @m;
  38. }
  39. .prl, .phl, .pal {
  40. padding-right: @l;
  41. }
  42. .pbn, .pvn, .pan {
  43. padding-bottom: 0;
  44. }
  45. .pbx, .pvx, .pax {
  46. padding-bottom: @x;
  47. }
  48. .pbs, .pvs, .pas {
  49. padding-bottom: @s;
  50. }
  51. .pbm, .pvm, .pam {
  52. padding-bottom: @m;
  53. }
  54. .pbl, .pvl, .pal {
  55. padding-bottom: @l;
  56. }
  57. .pln, .phn, .pan {
  58. padding-left: 0;
  59. }
  60. .plx, .phx, .pax {
  61. padding-left: @x;
  62. }
  63. .pls, .phs, .pas {
  64. padding-left: @s;
  65. }
  66. .plm, .phm, .pam {
  67. padding-left: @m;
  68. }
  69. .pll, .phl, .pal {
  70. padding-left: @l;
  71. }
  72. .mtn, .mvn, .man {
  73. margin-top: 0px;
  74. }
  75. .mtx, .mvx, .max {
  76. margin-top: @x;
  77. }
  78. .mts, .mvs, .mas {
  79. margin-top: @s;
  80. }
  81. .mtm, .mvm, .mam {
  82. margin-top: @m;
  83. }
  84. .mtl, .mvl, .mal {
  85. margin-top: @l;
  86. }
  87. .mrn, .mhn, .man {
  88. margin-right: 0px;
  89. }
  90. .mrx, .mhx, .max {
  91. margin-right: @x;
  92. }
  93. .mrs, .mhs, .mas {
  94. margin-right: @s;
  95. }
  96. .mrm, .mhm, .mam {
  97. margin-right: @m;
  98. }
  99. .mrl, .mhl, .mal {
  100. margin-right: @l;
  101. }
  102. .mbn, .mvn, .man {
  103. margin-bottom: 0px;
  104. }
  105. .mbx, .mvx, .max {
  106. margin-bottom: @x;
  107. }
  108. .mbs, .mvs, .mas {
  109. margin-bottom: @s;
  110. }
  111. .mbm, .mvm, .mam {
  112. margin-bottom: @m;
  113. }
  114. .mbl, .mvl, .mal {
  115. margin-bottom: @l;
  116. }
  117. .mln, .mhn, .man {
  118. margin-left: 0px;
  119. }
  120. .mlx, .mhx, .max {
  121. margin-left: @x;
  122. }
  123. .mls, .mhs, .mas {
  124. margin-left: @s;
  125. }
  126. .mlm, .mhm, .mam {
  127. margin-left: @m;
  128. }
  129. .mll, .mhl, .mal {
  130. margin-left: @l;
  131. }