暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

_spacer.scss 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*-----------------------
  2. # Margin & Padding
  3. -------------------------*/
  4. // padding x and y
  5. @for $i from 1 through 16 {
  6. .py-#{5 * $i} {
  7. padding-top: 5px * $i;
  8. padding-bottom: 5px * $i;
  9. }
  10. }
  11. @for $i from 1 through 10 {
  12. .px-#{5 * $i} {
  13. padding-left: 5px * $i;
  14. padding-right: 5px * $i;
  15. }
  16. }
  17. /*------------------
  18. # Margin Top
  19. ------------------*/
  20. @for $i from 1 through 26 {
  21. .mt-#{5 * $i} {
  22. margin-top: 5px * $i;
  23. }
  24. }
  25. /*------------------
  26. # Margin Bottom
  27. ------------------*/
  28. @for $i from 1 through 26 {
  29. .mb-#{5 * $i} {
  30. margin-bottom: 5px * $i;
  31. }
  32. }
  33. /*------------------
  34. # Margin Left
  35. ------------------*/
  36. @for $i from 1 through 10 {
  37. .ml-#{5 * $i} {
  38. margin-left: 5px * $i;
  39. }
  40. }
  41. /*------------------
  42. # Margin Right
  43. ------------------*/
  44. @for $i from 1 through 10 {
  45. .mr-#{5 * $i} {
  46. margin-right: 5px * $i;
  47. }
  48. }
  49. /*------------------
  50. # Padding Top
  51. ------------------*/
  52. @for $i from 1 through 26 {
  53. .pt-#{5 * $i} {
  54. padding-top: 5px * $i;
  55. }
  56. }
  57. /*------------------
  58. # Padding Bottom
  59. ------------------*/
  60. @for $i from 1 through 26 {
  61. .pb-#{5 * $i} {
  62. padding-bottom: 5px * $i;
  63. }
  64. }
  65. /*---------------
  66. # Padding Left
  67. ---------------*/
  68. @for $i from 1 through 10 {
  69. .pl-#{5 * $i} {
  70. padding-left: 5px * $i;
  71. }
  72. }
  73. /*---------------
  74. # Padding Right
  75. ---------------*/
  76. @for $i from 1 through 10 {
  77. .pr-#{5 * $i} {
  78. padding-right: 5px * $i;
  79. }
  80. }
  81. .px-xl-90 {
  82. @include min-screen(1920) {
  83. padding-left: 90px;
  84. padding-right: 90px;
  85. }
  86. }
  87. .mr-pe-0 {
  88. @include max-screen(991) {
  89. margin-right: 0px;
  90. padding-right: 0px;
  91. }
  92. }