You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_helpers.sss 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. @import '../_variables.sss'
  2. @import '../theme.sss'
  3. .w
  4. &-full
  5. width: 100%
  6. &-half
  7. width: 50%
  8. /* Flex box */
  9. %flexy
  10. display: flex
  11. justify-content: center
  12. align-items: center
  13. .f
  14. &-row, &-col
  15. @extend %flexy
  16. &.start
  17. align-items: flex-start
  18. justify-content: flex-start
  19. &.end
  20. align-items: flex-end
  21. justify-content: flex-end
  22. &.between
  23. justify-content: space-between
  24. &.around
  25. justify-content: space-around
  26. &.even
  27. justify-content: space-evenly
  28. &.stretch
  29. align-content: stretch
  30. &.baseline
  31. align-items: baseline
  32. &.center
  33. align-items: flex-start
  34. justify-content: flex-start
  35. &.wrap
  36. flex-wrap: wrap
  37. &-row
  38. flex-direction: row
  39. &-col
  40. flex-direction: column
  41. &-grow
  42. flex-grow: 1
  43. /* Borders */
  44. .b
  45. &-none
  46. border: none
  47. &-solid
  48. border: 1px solid $dark
  49. &-dot
  50. border: 1px dotted $dark
  51. &-solid, &-dot
  52. &.rounded
  53. border-radius: $ms-0
  54. &.invert
  55. border-color: $light
  56. /* Backgrounds */
  57. .bg
  58. &-none
  59. background-color: none
  60. &-primary
  61. background-color: $primary
  62. &-dark
  63. background-color: $dark
  64. &-light
  65. background-color: $light
  66. &-cover
  67. background-size: cover
  68. &-contain
  69. background-size: contain
  70. &-repeat
  71. background-repeat: repeat
  72. /* Colors */
  73. .primary
  74. color: $primary
  75. .dark
  76. color: $dark
  77. .light
  78. color: $light
  79. /* Padding */
  80. .p
  81. &-none
  82. padding: none
  83. &-0
  84. padding: $ms-0
  85. &-1
  86. padding: $ms-1
  87. &-2
  88. padding: $ms-2
  89. &h
  90. &-0
  91. padding: 0 $ms-0
  92. &-1
  93. padding: 0 $ms-1
  94. &-2
  95. padding: 0 $ms-2
  96. &v
  97. &-0
  98. padding: $ms-0 0
  99. &-1
  100. padding: $ms-1 0
  101. &-2
  102. padding: $ms-2 0
  103. &t
  104. &-0
  105. padding-top: $ms-0
  106. &-1
  107. padding-top: $ms-1
  108. &-2
  109. padding-top: $ms-2
  110. &b
  111. &-0
  112. padding-bottom: $ms-0
  113. &-1
  114. padding-bottom: $ms-1
  115. &-2
  116. padding-bottom: $ms-2
  117. &l
  118. &-0
  119. padding-left: $ms-0
  120. &-1
  121. padding-left: $ms-1
  122. &-2
  123. padding-left: $ms-2
  124. &r
  125. &-0
  126. padding-right: $ms-0
  127. &-1
  128. padding-right: $ms-1
  129. &-2
  130. padding-right: $ms-2
  131. /* Margin */
  132. .m
  133. &-none
  134. margin: none
  135. &-0
  136. margin: $ms-0
  137. &-1
  138. margin: $ms-1
  139. &-2
  140. margin: $ms-2
  141. &h
  142. &-0
  143. margin: 0 $ms-0
  144. &-1
  145. margin: 0 $ms-1
  146. &-2
  147. margin: 0 $ms-2
  148. &v
  149. &-0
  150. margin: $ms-0 0
  151. &-1
  152. margin: $ms-1 0
  153. &-2
  154. margin: $ms-2 0
  155. &t
  156. &-0
  157. margin-top: $ms-0
  158. &-1
  159. margin-top: $ms-1
  160. &-2
  161. margin-top: $ms-2
  162. &b
  163. &-0
  164. margin-bottom: $ms-0
  165. &-1
  166. margin-bottom: $ms-1
  167. &-2
  168. margin-bottom: $ms-2
  169. &l
  170. &-0
  171. margin-left: $ms-0
  172. &-1
  173. margin-left: $ms-1
  174. &-2
  175. margin-left: $ms-2
  176. &r
  177. &-0
  178. margin-right: $ms-0
  179. &-1
  180. margin-right: $ms-1
  181. &-2
  182. margin-right: $ms-2
  183. .z
  184. &-bottom
  185. position: relative
  186. z-index: -1
  187. &-10
  188. position: relative
  189. z-index: 10
  190. &-20
  191. position: relative
  192. z-index: 20
  193. &-30
  194. position: relative
  195. z-index: 30
  196. &-40
  197. position: relative
  198. z-index: 40
  199. &-50
  200. position: relative
  201. z-index: 50
  202. &-top
  203. position: relative
  204. z-index: 10001