helpers.sass 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. // Float
  2. .is-clearfix
  3. +clearfix
  4. .is-pulled-left
  5. float: left !important
  6. .is-pulled-right
  7. float: right !important
  8. // Overflow
  9. .is-clipped
  10. overflow: hidden !important
  11. // Overlay
  12. .is-overlay
  13. +overlay
  14. // Typography
  15. =typography-size($target:'')
  16. @each $size in $sizes
  17. $i: index($sizes, $size)
  18. .is-size-#{$i}#{if($target == '', '', '-' + $target)}
  19. font-size: $size !important
  20. +typography-size()
  21. +mobile
  22. +typography-size('mobile')
  23. +tablet
  24. +typography-size('tablet')
  25. +touch
  26. +typography-size('touch')
  27. +desktop
  28. +typography-size('desktop')
  29. +widescreen
  30. +typography-size('widescreen')
  31. +fullhd
  32. +typography-size('fullhd')
  33. $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'right': 'right')
  34. @each $alignment, $text-align in $alignments
  35. .has-text-#{$alignment}
  36. text-align: #{$text-align} !important
  37. +mobile
  38. .has-text-#{$alignment}-mobile
  39. text-align: #{$text-align} !important
  40. +tablet
  41. .has-text-#{$alignment}-tablet
  42. text-align: #{$text-align} !important
  43. +tablet-only
  44. .has-text-#{$alignment}-tablet-only
  45. text-align: #{$text-align} !important
  46. +touch
  47. .has-text-#{$alignment}-touch
  48. text-align: #{$text-align} !important
  49. +desktop
  50. .has-text-#{$alignment}-desktop
  51. text-align: #{$text-align} !important
  52. +desktop-only
  53. .has-text-#{$alignment}-desktop-only
  54. text-align: #{$text-align} !important
  55. +widescreen
  56. .has-text-#{$alignment}-widescreen
  57. text-align: #{$text-align} !important
  58. +widescreen-only
  59. .has-text-#{$alignment}-widescreen-only
  60. text-align: #{$text-align} !important
  61. +fullhd
  62. .has-text-#{$alignment}-fullhd
  63. text-align: #{$text-align} !important
  64. .is-capitalized
  65. text-transform: capitalize !important
  66. .is-lowercase
  67. text-transform: lowercase !important
  68. .is-uppercase
  69. text-transform: uppercase !important
  70. @each $name, $pair in $colors
  71. $color: nth($pair, 1)
  72. .has-text-#{$name}
  73. color: $color !important
  74. a.has-text-#{$name}
  75. &:hover,
  76. &:focus
  77. color: darken($color, 10%) !important
  78. @each $name, $shade in $shades
  79. .has-text-#{$name}
  80. color: $shade !important
  81. .has-text-weight-light
  82. font-weight: $weight-light !important
  83. .has-text-weight-normal
  84. font-weight: $weight-normal !important
  85. .has-text-weight-semibold
  86. font-weight: $weight-semibold !important
  87. .has-text-weight-bold
  88. font-weight: $weight-bold !important
  89. // Visibility
  90. $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
  91. @each $display in $displays
  92. .is-#{$display}
  93. display: #{$display} !important
  94. +mobile
  95. .is-#{$display}-mobile
  96. display: #{$display} !important
  97. +tablet
  98. .is-#{$display}-tablet
  99. display: #{$display} !important
  100. +tablet-only
  101. .is-#{$display}-tablet-only
  102. display: #{$display} !important
  103. +touch
  104. .is-#{$display}-touch
  105. display: #{$display} !important
  106. +desktop
  107. .is-#{$display}-desktop
  108. display: #{$display} !important
  109. +desktop-only
  110. .is-#{$display}-desktop-only
  111. display: #{$display} !important
  112. +widescreen
  113. .is-#{$display}-widescreen
  114. display: #{$display} !important
  115. +widescreen-only
  116. .is-#{$display}-widescreen-only
  117. display: #{$display} !important
  118. +fullhd
  119. .is-#{$display}-fullhd
  120. display: #{$display} !important
  121. .is-hidden
  122. display: none !important
  123. +mobile
  124. .is-hidden-mobile
  125. display: none !important
  126. +tablet
  127. .is-hidden-tablet
  128. display: none !important
  129. +tablet-only
  130. .is-hidden-tablet-only
  131. display: none !important
  132. +touch
  133. .is-hidden-touch
  134. display: none !important
  135. +desktop
  136. .is-hidden-desktop
  137. display: none !important
  138. +desktop-only
  139. .is-hidden-desktop-only
  140. display: none !important
  141. +widescreen
  142. .is-hidden-widescreen
  143. display: none !important
  144. +widescreen-only
  145. .is-hidden-widescreen-only
  146. display: none !important
  147. +fullhd
  148. .is-hidden-fullhd
  149. display: none !important
  150. .is-invisible
  151. visibility: hidden !important
  152. +mobile
  153. .is-invisible-mobile
  154. visibility: hidden !important
  155. +tablet
  156. .is-invisible-tablet
  157. visibility: hidden !important
  158. +tablet-only
  159. .is-invisible-tablet-only
  160. visibility: hidden !important
  161. +touch
  162. .is-invisible-touch
  163. visibility: hidden !important
  164. +desktop
  165. .is-invisible-desktop
  166. visibility: hidden !important
  167. +desktop-only
  168. .is-invisible-desktop-only
  169. visibility: hidden !important
  170. +widescreen
  171. .is-invisible-widescreen
  172. visibility: hidden !important
  173. +widescreen-only
  174. .is-invisible-widescreen-only
  175. visibility: hidden !important
  176. +fullhd
  177. .is-invisible-fullhd
  178. visibility: hidden !important
  179. // Other
  180. .is-marginless
  181. margin: 0 !important
  182. .is-paddingless
  183. padding: 0 !important
  184. .is-radiusless
  185. border-radius: 0 !important
  186. .is-shadowless
  187. box-shadow: none !important
  188. .is-unselectable
  189. +unselectable