helpers.sass 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. @each $size in $sizes
  16. $i: index($sizes, $size)
  17. .is-size-#{$i}
  18. font-size: $size !important
  19. +mobile
  20. .is-size-#{$i}-mobile
  21. font-size: $size !important
  22. +tablet
  23. .is-size-#{$i}-tablet
  24. font-size: $size !important
  25. +touch
  26. .is-size-#{$i}-touch
  27. font-size: $size !important
  28. +desktop
  29. .is-size-#{$i}-desktop
  30. font-size: $size !important
  31. +widescreen
  32. .is-size-#{$i}-widescreen
  33. font-size: $size !important
  34. +fullhd
  35. .is-size-#{$i}-fullhd
  36. font-size: $size !important
  37. $alignments: ('centered': 'center', 'left': 'left', 'right': 'right')
  38. @each $alignment, $text-align in $alignments
  39. .has-text-#{$alignment}
  40. text-align: #{$text-align} !important
  41. +mobile
  42. .has-text-#{$alignment}-mobile
  43. text-align: #{$text-align} !important
  44. +tablet
  45. .has-text-#{$alignment}-tablet
  46. text-align: #{$text-align} !important
  47. +tablet-only
  48. .has-text-#{$alignment}-tablet-only
  49. text-align: #{$text-align} !important
  50. +touch
  51. .has-text-#{$alignment}-touch
  52. text-align: #{$text-align} !important
  53. +desktop
  54. .has-text-#{$alignment}-desktop
  55. text-align: #{$text-align} !important
  56. +desktop-only
  57. .has-text-#{$alignment}-desktop-only
  58. text-align: #{$text-align} !important
  59. +widescreen
  60. .has-text-#{$alignment}-widescreen
  61. text-align: #{$text-align} !important
  62. +widescreen-only
  63. .has-text-#{$alignment}-widescreen-only
  64. text-align: #{$text-align} !important
  65. +fullhd
  66. .has-text-#{$alignment}-fullhd
  67. text-align: #{$text-align} !important
  68. .is-capitalized
  69. text-transform: capitalize !important
  70. .is-lowercase
  71. text-transform: lowercase !important
  72. .is-uppercase
  73. text-transform: uppercase !important
  74. @each $name, $pair in $colors
  75. $color: nth($pair, 1)
  76. .has-text-#{$name}
  77. color: $color !important
  78. a.has-text-#{$name}
  79. &:hover,
  80. &:focus
  81. color: darken($color, 10%)
  82. @each $name, $shade in $shades
  83. .has-text-#{$name}
  84. color: $shade !important
  85. // Visibility
  86. $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
  87. @each $display in $displays
  88. .is-#{$display}
  89. display: #{$display}
  90. +mobile
  91. .is-#{$display}-mobile
  92. display: #{$display} !important
  93. +tablet
  94. .is-#{$display}-tablet
  95. display: #{$display} !important
  96. +tablet-only
  97. .is-#{$display}-tablet-only
  98. display: #{$display} !important
  99. +touch
  100. .is-#{$display}-touch
  101. display: #{$display} !important
  102. +desktop
  103. .is-#{$display}-desktop
  104. display: #{$display} !important
  105. +desktop-only
  106. .is-#{$display}-desktop-only
  107. display: #{$display} !important
  108. +widescreen
  109. .is-#{$display}-widescreen
  110. display: #{$display} !important
  111. +widescreen-only
  112. .is-#{$display}-widescreen-only
  113. display: #{$display} !important
  114. +fullhd
  115. .is-#{$display}-fullhd
  116. display: #{$display} !important
  117. .is-hidden
  118. display: none !important
  119. +mobile
  120. .is-hidden-mobile
  121. display: none !important
  122. +tablet
  123. .is-hidden-tablet
  124. display: none !important
  125. +tablet-only
  126. .is-hidden-tablet-only
  127. display: none !important
  128. +touch
  129. .is-hidden-touch
  130. display: none !important
  131. +desktop
  132. .is-hidden-desktop
  133. display: none !important
  134. +desktop-only
  135. .is-hidden-desktop-only
  136. display: none !important
  137. +widescreen
  138. .is-hidden-widescreen
  139. display: none !important
  140. +widescreen-only
  141. .is-hidden-widescreen-only
  142. display: none !important
  143. +fullhd
  144. .is-hidden-fullhd
  145. display: none !important
  146. // Other
  147. .is-marginless
  148. margin: 0 !important
  149. .is-paddingless
  150. padding: 0 !important
  151. .is-radiusless
  152. border-radius: 0 !important
  153. .is-shadowless
  154. box-shadow: none !important
  155. .is-unselectable
  156. +unselectable