spacing.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. // Shorthand margin and padding utility classes from Bootstrap v4-dev
  2. //
  3. // <p class="m-b-0">I am a paragraph that needs no bottom margin</p>
  4. // The classes are named using the format: {property}-{sides}-{size}
  5. // TODO: Remove once we upgrade to Bootstrap 4
  6. //
  7. // Copyright (c) 2011-2016 Twitter, Inc.
  8. // Variables
  9. @spacer-x: 20px;
  10. @spacer-y: 20px;
  11. // Margin
  12. .m-x-auto {
  13. margin-right: auto !important;
  14. margin-left: auto !important;
  15. }
  16. .m-a-0 {
  17. margin: 0 0 !important;
  18. }
  19. .m-t-0 {
  20. margin-top: 0 !important;
  21. }
  22. .m-r-0 {
  23. margin-right: 0 !important;
  24. }
  25. .m-b-0 {
  26. margin-bottom: 0 !important;
  27. }
  28. .m-l-0 {
  29. margin-left: 0 !important;
  30. }
  31. .m-x-0 {
  32. margin-right: 0 !important;
  33. margin-left: 0 !important;
  34. }
  35. .m-y-0 {
  36. margin-top: 0 !important;
  37. margin-bottom: 0 !important;
  38. }
  39. .m-a-1 {
  40. margin: @spacer-y @spacer-x !important;
  41. }
  42. .m-t-1 {
  43. margin-top: @spacer-y !important;
  44. }
  45. .m-r-1 {
  46. margin-right: @spacer-x !important;
  47. }
  48. .m-b-1 {
  49. margin-bottom: @spacer-y !important;
  50. }
  51. .m-l-1 {
  52. margin-left: @spacer-x !important;
  53. }
  54. .m-x-1 {
  55. margin-right: @spacer-x !important;
  56. margin-left: @spacer-x !important;
  57. }
  58. .m-y-1 {
  59. margin-top: @spacer-y !important;
  60. margin-bottom: @spacer-y !important;
  61. }
  62. .m-a-2 {
  63. margin: (@spacer-y * 1.5) (@spacer-x * 1.5) !important;
  64. }
  65. .m-t-2 {
  66. margin-top: (@spacer-y * 1.5) !important;
  67. }
  68. .m-r-2 {
  69. margin-right: (@spacer-x * 1.5) !important;
  70. }
  71. .m-b-2 {
  72. margin-bottom: (@spacer-y * 1.5) !important;
  73. }
  74. .m-l-2 {
  75. margin-left: (@spacer-x * 1.5) !important;
  76. }
  77. .m-x-2 {
  78. margin-right: (@spacer-x * 1.5) !important;
  79. margin-left: (@spacer-x * 1.5) !important;
  80. }
  81. .m-y-2 {
  82. margin-top: (@spacer-y * 1.5) !important;
  83. margin-bottom: (@spacer-y * 1.5) !important;
  84. }
  85. .m-a-3 {
  86. margin: (@spacer-y * 3) (@spacer-x * 3) !important;
  87. }
  88. .m-t-3 {
  89. margin-top: (@spacer-y * 3) !important;
  90. }
  91. .m-r-3 {
  92. margin-right: (@spacer-x * 3) !important;
  93. }
  94. .m-b-3 {
  95. margin-bottom: (@spacer-y * 3) !important;
  96. }
  97. .m-l-3 {
  98. margin-left: (@spacer-x * 3) !important;
  99. }
  100. .m-x-3 {
  101. margin-right: (@spacer-x * 3) !important;
  102. margin-left: (@spacer-x * 3) !important;
  103. }
  104. .m-y-3 {
  105. margin-top: (@spacer-y * 3) !important;
  106. margin-bottom: (@spacer-y * 3) !important;
  107. }
  108. // Padding
  109. .p-a-0 {
  110. padding: 0 0 !important;
  111. }
  112. .p-t-0 {
  113. padding-top: 0 !important;
  114. }
  115. .p-r-0 {
  116. padding-right: 0 !important;
  117. }
  118. .p-b-0 {
  119. padding-bottom: 0 !important;
  120. }
  121. .p-l-0 {
  122. padding-left: 0 !important;
  123. }
  124. .p-x-0 {
  125. padding-right: 0 !important;
  126. padding-left: 0 !important;
  127. }
  128. .p-y-0 {
  129. padding-top: 0 !important;
  130. padding-bottom: 0 !important;
  131. }
  132. .p-a-1 {
  133. padding: @spacer-y @spacer-x !important;
  134. }
  135. .p-t-1 {
  136. padding-top: @spacer-y !important;
  137. }
  138. .p-r-1 {
  139. padding-right: @spacer-x !important;
  140. }
  141. .p-b-1 {
  142. padding-bottom: @spacer-y !important;
  143. }
  144. .p-l-1 {
  145. padding-left: @spacer-x !important;
  146. }
  147. .p-x-1 {
  148. padding-right: @spacer-x !important;
  149. padding-left: @spacer-x !important;
  150. }
  151. .p-y-1 {
  152. padding-top: @spacer-y !important;
  153. padding-bottom: @spacer-y !important;
  154. }
  155. .p-a-2 {
  156. padding: (@spacer-y * 1.5) (@spacer-x * 1.5) !important;
  157. }
  158. .p-t-2 {
  159. padding-top: (@spacer-y * 1.5) !important;
  160. }
  161. .p-r-2 {
  162. padding-right: (@spacer-x * 1.5) !important;
  163. }
  164. .p-b-2 {
  165. padding-bottom: (@spacer-y * 1.5) !important;
  166. }
  167. .p-l-2 {
  168. padding-left: (@spacer-x * 1.5) !important;
  169. }
  170. .p-x-2 {
  171. padding-right: (@spacer-x * 1.5) !important;
  172. padding-left: (@spacer-x * 1.5) !important;
  173. }
  174. .p-y-2 {
  175. padding-top: (@spacer-y * 1.5) !important;
  176. padding-bottom: (@spacer-y * 1.5) !important;
  177. }
  178. .p-a-3 {
  179. padding: (@spacer-y * 3) (@spacer-x * 3) !important;
  180. }
  181. .p-t-3 {
  182. padding-top: (@spacer-y * 3) !important;
  183. }
  184. .p-r-3 {
  185. padding-right: (@spacer-x * 3) !important;
  186. }
  187. .p-b-3 {
  188. padding-bottom: (@spacer-y * 3) !important;
  189. }
  190. .p-l-3 {
  191. padding-left: (@spacer-x * 3) !important;
  192. }
  193. .p-x-3 {
  194. padding-right: (@spacer-x * 3) !important;
  195. padding-left: (@spacer-x * 3) !important;
  196. }
  197. .p-y-3 {
  198. padding-top: (@spacer-y * 3) !important;
  199. padding-bottom: (@spacer-y * 3) !important;
  200. }
  201. // Borders
  202. .b-a-0 {
  203. border: none !important;
  204. }
  205. .b-a-1 {
  206. border: 1px solid @trim !important;
  207. }
  208. .b-t-1 {
  209. border-top: 1px solid @trim !important;
  210. }
  211. .b-r-1 {
  212. border-right: 1px solid @trim !important;
  213. }
  214. .b-b-1 {
  215. border-bottom: 1px solid @trim !important;
  216. }
  217. .b-l-1 {
  218. border-left: 1px solid @trim !important;
  219. }
  220. // Clear
  221. .c-b {
  222. clear: both;
  223. }
  224. .c-l {
  225. clear: left;
  226. }
  227. .c-r {
  228. clear: right;
  229. }