Guest User

Untitled

a guest
Oct 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. /*!
  2. * Margin Offsets
  3. */
  4.  
  5. .mv0 {
  6. margin-top: 0 !important;
  7. margin-bottom: 0 !important;
  8. }
  9. .mh0 {
  10. margin-left: 0 !important;
  11. margin-right: 0 !important;
  12. }
  13. .mt0,.remove-top {
  14. margin-top: 0 !important;
  15. }
  16. .mb0,.remove-bottom {
  17. margin-bottom: 0 !important;
  18. }
  19. @include media($medium-screen-up) {
  20. @for $i from 1 through 9 {
  21. $margin : $i*10;
  22. // margins - all sides
  23. .m#{$i}0 {
  24. margin: em($margin) !important;
  25. }
  26. // vertical margins (top and bottom)
  27. // .mv0 - .mv90
  28. .mv#{$i}0 {
  29. margin-top: em($margin) !important;
  30. margin-bottom: em($margin) !important;
  31. }
  32. // horizontal margins (left and right)
  33. // .mh0 - .mh90
  34. .mh#{$i}0 {
  35. margin-left: em($margin) !important;
  36. margin-right: em($margin) !important;
  37. }
  38. // top margins
  39. // .mt0 - .mt90
  40. .mt#{$i}0 {
  41. margin-top: em($margin) !important;
  42. }
  43. // bottom margins
  44. // .mt0 - .mt90
  45. .mb#{$i}0 {
  46. margin-bottom: em($margin) !important;
  47. }
  48. }
  49. }
  50.  
  51. /*!
  52. * Padding Offsets
  53. */
  54.  
  55. .pv0 {
  56. padding-top: em(0) !important;
  57. padding-bottom: em(0) !important;
  58. }
  59. .ph0 {
  60. padding-left: 0 !important;
  61. padding-right: 0 !important;
  62. }
  63. .pt0,.remove-top {
  64. padding-top: 0 !important;
  65. }
  66. .pb0,.remove-bottom {
  67. padding-bottom: 0 !important;
  68. }
  69. @include media($medium-screen-up) {
  70. @for $i from 1 through 9 {
  71. $padding : $i*10;
  72. // padding - all sides
  73. .p#{$i}0 {
  74. padding: em($padding) !important;
  75. }
  76. // vertical padding (top and bottom)
  77. // .pv0 - .pv90
  78. .pv#{$i}0 {
  79. padding-top: em($padding) !important;
  80. padding-bottom: em($padding) !important;
  81. }
  82. // horizontal padding (left and right)
  83. // .ph0 - .ph90
  84. .ph#{$i}0 {
  85. padding-left: em($padding) !important;
  86. padding-right: em($padding) !important;
  87. }
  88. // top padding
  89. // .pt0 - .pt90
  90. .pt#{$i}0 {
  91. padding-top: em($padding) !important;
  92. }
  93. // bottom padding
  94. // .pb0 - .pb90
  95. .pb#{$i}0 {
  96. padding-bottom: em($padding) !important;
  97. }
  98. }
  99. }
Add Comment
Please, Sign In to add comment