sugarcss 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +7 -0
  2. data/lib/sugarcss.rb +30 -0
  3. data/stylesheets/_sugar.scss +4 -0
  4. data/stylesheets/sugar/_BEM.scss +101 -0
  5. data/stylesheets/sugar/_animations.scss +101 -0
  6. data/stylesheets/sugar/_clearfix.scss +56 -0
  7. data/stylesheets/sugar/_colors.scss +126 -0
  8. data/stylesheets/sugar/_effects.scss +65 -0
  9. data/stylesheets/sugar/_filters.scss +67 -0
  10. data/stylesheets/sugar/_forms.scss +13 -0
  11. data/stylesheets/sugar/_functions.scss +328 -0
  12. data/stylesheets/sugar/_helper-classes.scss +109 -0
  13. data/stylesheets/sugar/_helper-functions.scss +56 -0
  14. data/stylesheets/sugar/_helper-mixins.scss +383 -0
  15. data/stylesheets/sugar/_icons.scss +21 -0
  16. data/stylesheets/sugar/_images.scss +150 -0
  17. data/stylesheets/sugar/_lists.scss +148 -0
  18. data/stylesheets/sugar/_medias.scss +141 -0
  19. data/stylesheets/sugar/_reset.scss +38 -0
  20. data/stylesheets/sugar/_shapes.scss +528 -0
  21. data/stylesheets/sugar/_sugar.scss +606 -0
  22. data/stylesheets/sugar/_typo.scss +849 -0
  23. data/stylesheets/sugar/_units.scss +120 -0
  24. data/stylesheets/sugar/tools/_arrow.scss +70 -0
  25. data/stylesheets/sugar/tools/_blank.scss +0 -0
  26. data/stylesheets/sugar/tools/_list.scss +103 -0
  27. data/stylesheets/sugar/tools/_map.scss +93 -0
  28. data/stylesheets/sugar/tools/_math.scss +196 -0
  29. data/stylesheets/sugar/tools/_string.scss +65 -0
  30. data/stylesheets/sugar/vendors/animatecss/_animate.scss +1474 -0
  31. data/stylesheets/sugar/vendors/animatecss/_base.scss +31 -0
  32. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_bounce.scss +26 -0
  33. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_flash.scss +14 -0
  34. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_jello.scss +34 -0
  35. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_pulse.scss +20 -0
  36. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_rubberBand.scss +34 -0
  37. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_shake.scss +18 -0
  38. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_swing.scss +27 -0
  39. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_tada.scss +26 -0
  40. data/stylesheets/sugar/vendors/animatecss/attention_seekers/_wobble.scss +36 -0
  41. data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceIn.scss +37 -0
  42. data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInDown.scss +32 -0
  43. data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInLeft.scss +32 -0
  44. data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInRight.scss +32 -0
  45. data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInUp.scss +32 -0
  46. data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOut.scss +20 -0
  47. data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutDown.scss +20 -0
  48. data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutLeft.scss +16 -0
  49. data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutRight.scss +16 -0
  50. data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutUp.scss +20 -0
  51. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeIn.scss +9 -0
  52. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInDown.scss +16 -0
  53. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInDownBig.scss +16 -0
  54. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInLeft.scss +16 -0
  55. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInLeftBig.scss +16 -0
  56. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInRight.scss +16 -0
  57. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInRightBig.scss +16 -0
  58. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInUp.scss +16 -0
  59. data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInUpBig.scss +16 -0
  60. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOut.scss +9 -0
  61. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutDown.scss +15 -0
  62. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutDownBig.scss +15 -0
  63. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutLeft.scss +15 -0
  64. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutLeftBig.scss +15 -0
  65. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutRight.scss +15 -0
  66. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutRightBig.scss +15 -0
  67. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutUp.scss +15 -0
  68. data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutUpBig.scss +15 -0
  69. data/stylesheets/sugar/vendors/animatecss/flippers/_flip.scss +32 -0
  70. data/stylesheets/sugar/vendors/animatecss/flippers/_flipInX.scss +31 -0
  71. data/stylesheets/sugar/vendors/animatecss/flippers/_flipInY.scss +31 -0
  72. data/stylesheets/sugar/vendors/animatecss/flippers/_flipOutX.scss +21 -0
  73. data/stylesheets/sugar/vendors/animatecss/flippers/_flipOutY.scss +21 -0
  74. data/stylesheets/sugar/vendors/animatecss/lightspeed/_lightSpeedIn.scss +27 -0
  75. data/stylesheets/sugar/vendors/animatecss/lightspeed/_lightSpeedOut.scss +16 -0
  76. data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateIn.scss +18 -0
  77. data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInDownLeft.scss +18 -0
  78. data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInDownRight.scss +18 -0
  79. data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInUpLeft.scss +18 -0
  80. data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInUpRight.scss +18 -0
  81. data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOut.scss +17 -0
  82. data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutDownLeft.scss +17 -0
  83. data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutDownRight.scss +17 -0
  84. data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutUpLeft.scss +17 -0
  85. data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutUpRight.scss +17 -0
  86. data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInDown.scss +15 -0
  87. data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInLeft.scss +15 -0
  88. data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInRight.scss +15 -0
  89. data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInUp.scss +15 -0
  90. data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutDown.scss +15 -0
  91. data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutLeft.scss +15 -0
  92. data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutRight.scss +15 -0
  93. data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutUp.scss +15 -0
  94. data/stylesheets/sugar/vendors/animatecss/specials/_hinge.scss +29 -0
  95. data/stylesheets/sugar/vendors/animatecss/specials/_rollIn.scss +18 -0
  96. data/stylesheets/sugar/vendors/animatecss/specials/_rollOut.scss +17 -0
  97. data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomIn.scss +15 -0
  98. data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInDown.scss +18 -0
  99. data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInLeft.scss +18 -0
  100. data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInRight.scss +18 -0
  101. data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInUp.scss +18 -0
  102. data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOut.scss +19 -0
  103. data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutDown.scss +19 -0
  104. data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutLeft.scss +17 -0
  105. data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutRight.scss +17 -0
  106. data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutUp.scss +19 -0
  107. data/stylesheets/sugar/vendors/cssgram/_1977.scss +16 -0
  108. data/stylesheets/sugar/vendors/cssgram/_aden.scss +18 -0
  109. data/stylesheets/sugar/vendors/cssgram/_brooklyn.scss +17 -0
  110. data/stylesheets/sugar/vendors/cssgram/_cssgram.scss +18 -0
  111. data/stylesheets/sugar/vendors/cssgram/_earlybird.scss +17 -0
  112. data/stylesheets/sugar/vendors/cssgram/_gingham.scss +17 -0
  113. data/stylesheets/sugar/vendors/cssgram/_hudson.scss +18 -0
  114. data/stylesheets/sugar/vendors/cssgram/_inkwell.scss +11 -0
  115. data/stylesheets/sugar/vendors/cssgram/_lark.scss +21 -0
  116. data/stylesheets/sugar/vendors/cssgram/_lofi.scss +16 -0
  117. data/stylesheets/sugar/vendors/cssgram/_mayfair.scss +18 -0
  118. data/stylesheets/sugar/vendors/cssgram/_moon.scss +21 -0
  119. data/stylesheets/sugar/vendors/cssgram/_nashville.scss +22 -0
  120. data/stylesheets/sugar/vendors/cssgram/_perpetua.scss +17 -0
  121. data/stylesheets/sugar/vendors/cssgram/_reyes.scss +18 -0
  122. data/stylesheets/sugar/vendors/cssgram/_shared.scss +29 -0
  123. data/stylesheets/sugar/vendors/cssgram/_toaster.scss +17 -0
  124. data/stylesheets/sugar/vendors/cssgram/_walden.scss +18 -0
  125. data/stylesheets/sugar/vendors/cssgram/_xpro2.scss +17 -0
  126. data/stylesheets/sugar/vendors/fontawesome/_font-awesome.scss +2019 -0
  127. data/stylesheets/sugar/vendors/modularscale/_modular-scale-tests.scss +74 -0
  128. data/stylesheets/sugar/vendors/modularscale/_modular-scale.scss +18 -0
  129. data/stylesheets/sugar/vendors/modularscale/modular-scale/_calc.scss +17 -0
  130. data/stylesheets/sugar/vendors/modularscale/modular-scale/_function-list.scss +68 -0
  131. data/stylesheets/sugar/vendors/modularscale/modular-scale/_function.scss +55 -0
  132. data/stylesheets/sugar/vendors/modularscale/modular-scale/_generate-list.scss +103 -0
  133. data/stylesheets/sugar/vendors/modularscale/modular-scale/_pow.scss +40 -0
  134. data/stylesheets/sugar/vendors/modularscale/modular-scale/_ratios.scss +20 -0
  135. data/stylesheets/sugar/vendors/modularscale/modular-scale/_respond.scss +49 -0
  136. data/stylesheets/sugar/vendors/modularscale/modular-scale/_round-px.scss +6 -0
  137. data/stylesheets/sugar/vendors/modularscale/modular-scale/_sort-list.scss +93 -0
  138. data/stylesheets/sugar/vendors/modularscale/modular-scale/_tests.scss +22 -0
  139. data/stylesheets/sugar/vendors/sassdash/_sassdash.scss +6 -0
  140. data/stylesheets/sugar/vendors/sassdash/api/_add.scss +43 -0
  141. data/stylesheets/sugar/vendors/sassdash/api/_after.scss +66 -0
  142. data/stylesheets/sugar/vendors/sassdash/api/_ary.scss +43 -0
  143. data/stylesheets/sugar/vendors/sassdash/api/_assign.scss +113 -0
  144. data/stylesheets/sugar/vendors/sassdash/api/_at.scss +50 -0
  145. data/stylesheets/sugar/vendors/sassdash/api/_before.scss +64 -0
  146. data/stylesheets/sugar/vendors/sassdash/api/_bind.scss +46 -0
  147. data/stylesheets/sugar/vendors/sassdash/api/_call.scss +0 -0
  148. data/stylesheets/sugar/vendors/sassdash/api/_callback.scss +167 -0
  149. data/stylesheets/sugar/vendors/sassdash/api/_case.scss +179 -0
  150. data/stylesheets/sugar/vendors/sassdash/api/_chunk.scss +44 -0
  151. data/stylesheets/sugar/vendors/sassdash/api/_compact.scss +32 -0
  152. data/stylesheets/sugar/vendors/sassdash/api/_compare.scss +180 -0
  153. data/stylesheets/sugar/vendors/sassdash/api/_concat.scss +62 -0
  154. data/stylesheets/sugar/vendors/sassdash/api/_constant.scss +32 -0
  155. data/stylesheets/sugar/vendors/sassdash/api/_context.scss +51 -0
  156. data/stylesheets/sugar/vendors/sassdash/api/_count-by.scss +51 -0
  157. data/stylesheets/sugar/vendors/sassdash/api/_create.scss +78 -0
  158. data/stylesheets/sugar/vendors/sassdash/api/_debug.scss +26 -0
  159. data/stylesheets/sugar/vendors/sassdash/api/_declare.scss +46 -0
  160. data/stylesheets/sugar/vendors/sassdash/api/_defaults.scss +41 -0
  161. data/stylesheets/sugar/vendors/sassdash/api/_difference.scss +50 -0
  162. data/stylesheets/sugar/vendors/sassdash/api/_drop.scss +226 -0
  163. data/stylesheets/sugar/vendors/sassdash/api/_either.scss +42 -0
  164. data/stylesheets/sugar/vendors/sassdash/api/_encode.scss +42 -0
  165. data/stylesheets/sugar/vendors/sassdash/api/_ends-with.scss +76 -0
  166. data/stylesheets/sugar/vendors/sassdash/api/_escape.scss +39 -0
  167. data/stylesheets/sugar/vendors/sassdash/api/_every.scss +106 -0
  168. data/stylesheets/sugar/vendors/sassdash/api/_exec.scss +31 -0
  169. data/stylesheets/sugar/vendors/sassdash/api/_extrema.scss +224 -0
  170. data/stylesheets/sugar/vendors/sassdash/api/_fill.scss +74 -0
  171. data/stylesheets/sugar/vendors/sassdash/api/_filter.scss +112 -0
  172. data/stylesheets/sugar/vendors/sassdash/api/_find.scss +448 -0
  173. data/stylesheets/sugar/vendors/sassdash/api/_first.scss +29 -0
  174. data/stylesheets/sugar/vendors/sassdash/api/_flatten.scss +88 -0
  175. data/stylesheets/sugar/vendors/sassdash/api/_flow.scss +145 -0
  176. data/stylesheets/sugar/vendors/sassdash/api/_for.scss +325 -0
  177. data/stylesheets/sugar/vendors/sassdash/api/_functions.scss +42 -0
  178. data/stylesheets/sugar/vendors/sassdash/api/_group-by.scss +90 -0
  179. data/stylesheets/sugar/vendors/sassdash/api/_has.scss +30 -0
  180. data/stylesheets/sugar/vendors/sassdash/api/_identity.scss +20 -0
  181. data/stylesheets/sugar/vendors/sassdash/api/_includes.scss +76 -0
  182. data/stylesheets/sugar/vendors/sassdash/api/_index-by.scss +43 -0
  183. data/stylesheets/sugar/vendors/sassdash/api/_index-of.scss +154 -0
  184. data/stylesheets/sugar/vendors/sassdash/api/_initial.scss +19 -0
  185. data/stylesheets/sugar/vendors/sassdash/api/_intersection.scss +59 -0
  186. data/stylesheets/sugar/vendors/sassdash/api/_invert.scss +48 -0
  187. data/stylesheets/sugar/vendors/sassdash/api/_invoke.scss +74 -0
  188. data/stylesheets/sugar/vendors/sassdash/api/_is-empty.scss +48 -0
  189. data/stylesheets/sugar/vendors/sassdash/api/_is-equal.scss +175 -0
  190. data/stylesheets/sugar/vendors/sassdash/api/_is-match.scss +116 -0
  191. data/stylesheets/sugar/vendors/sassdash/api/_is-type.scss +479 -0
  192. data/stylesheets/sugar/vendors/sassdash/api/_join.scss +47 -0
  193. data/stylesheets/sugar/vendors/sassdash/api/_keys.scss +48 -0
  194. data/stylesheets/sugar/vendors/sassdash/api/_last.scss +21 -0
  195. data/stylesheets/sugar/vendors/sassdash/api/_map.scss +265 -0
  196. data/stylesheets/sugar/vendors/sassdash/api/_matches.scss +85 -0
  197. data/stylesheets/sugar/vendors/sassdash/api/_memoize.scss +105 -0
  198. data/stylesheets/sugar/vendors/sassdash/api/_merge.scss +148 -0
  199. data/stylesheets/sugar/vendors/sassdash/api/_modify.scss +17 -0
  200. data/stylesheets/sugar/vendors/sassdash/api/_module.scss +111 -0
  201. data/stylesheets/sugar/vendors/sassdash/api/_negate.scss +42 -0
  202. data/stylesheets/sugar/vendors/sassdash/api/_noop.scss +19 -0
  203. data/stylesheets/sugar/vendors/sassdash/api/_omit.scss +52 -0
  204. data/stylesheets/sugar/vendors/sassdash/api/_once.scss +27 -0
  205. data/stylesheets/sugar/vendors/sassdash/api/_pad.scss +121 -0
  206. data/stylesheets/sugar/vendors/sassdash/api/_pairs.scss +26 -0
  207. data/stylesheets/sugar/vendors/sassdash/api/_parse-int.scss +69 -0
  208. data/stylesheets/sugar/vendors/sassdash/api/_partial.scss +91 -0
  209. data/stylesheets/sugar/vendors/sassdash/api/_partition.scss +53 -0
  210. data/stylesheets/sugar/vendors/sassdash/api/_pick.scss +80 -0
  211. data/stylesheets/sugar/vendors/sassdash/api/_pluck.scss +27 -0
  212. data/stylesheets/sugar/vendors/sassdash/api/_property.scss +91 -0
  213. data/stylesheets/sugar/vendors/sassdash/api/_pull.scss +43 -0
  214. data/stylesheets/sugar/vendors/sassdash/api/_push.scss +27 -0
  215. data/stylesheets/sugar/vendors/sassdash/api/_rand.scss +79 -0
  216. data/stylesheets/sugar/vendors/sassdash/api/_range.scss +59 -0
  217. data/stylesheets/sugar/vendors/sassdash/api/_reduce.scss +146 -0
  218. data/stylesheets/sugar/vendors/sassdash/api/_reject.scss +68 -0
  219. data/stylesheets/sugar/vendors/sassdash/api/_repeat.scss +33 -0
  220. data/stylesheets/sugar/vendors/sassdash/api/_replace.scss +40 -0
  221. data/stylesheets/sugar/vendors/sassdash/api/_rest.scss +26 -0
  222. data/stylesheets/sugar/vendors/sassdash/api/_result.scss +48 -0
  223. data/stylesheets/sugar/vendors/sassdash/api/_reverse.scss +64 -0
  224. data/stylesheets/sugar/vendors/sassdash/api/_rules.scss +55 -0
  225. data/stylesheets/sugar/vendors/sassdash/api/_sample.scss +33 -0
  226. data/stylesheets/sugar/vendors/sassdash/api/_shuffle.scss +37 -0
  227. data/stylesheets/sugar/vendors/sassdash/api/_size.scss +37 -0
  228. data/stylesheets/sugar/vendors/sassdash/api/_slice.scss +60 -0
  229. data/stylesheets/sugar/vendors/sassdash/api/_some.scss +110 -0
  230. data/stylesheets/sugar/vendors/sassdash/api/_sort.scss +335 -0
  231. data/stylesheets/sugar/vendors/sassdash/api/_sorted-index.scss +135 -0
  232. data/stylesheets/sugar/vendors/sassdash/api/_splice.scss +45 -0
  233. data/stylesheets/sugar/vendors/sassdash/api/_split.scss +43 -0
  234. data/stylesheets/sugar/vendors/sassdash/api/_starts-with.scss +78 -0
  235. data/stylesheets/sugar/vendors/sassdash/api/_sum.scss +44 -0
  236. data/stylesheets/sugar/vendors/sassdash/api/_take.scss +211 -0
  237. data/stylesheets/sugar/vendors/sassdash/api/_times.scss +33 -0
  238. data/stylesheets/sugar/vendors/sassdash/api/_to-list.scss +52 -0
  239. data/stylesheets/sugar/vendors/sassdash/api/_to-string.scss +35 -0
  240. data/stylesheets/sugar/vendors/sassdash/api/_trim.scss +138 -0
  241. data/stylesheets/sugar/vendors/sassdash/api/_trunc.scss +92 -0
  242. data/stylesheets/sugar/vendors/sassdash/api/_unescape.scss +48 -0
  243. data/stylesheets/sugar/vendors/sassdash/api/_union.scss +19 -0
  244. data/stylesheets/sugar/vendors/sassdash/api/_uniq.scss +86 -0
  245. data/stylesheets/sugar/vendors/sassdash/api/_unique-id.scss +27 -0
  246. data/stylesheets/sugar/vendors/sassdash/api/_unzip.scss +77 -0
  247. data/stylesheets/sugar/vendors/sassdash/api/_values.scss +54 -0
  248. data/stylesheets/sugar/vendors/sassdash/api/_where.scss +28 -0
  249. data/stylesheets/sugar/vendors/sassdash/api/_without.scss +26 -0
  250. data/stylesheets/sugar/vendors/sassdash/api/_words.scss +50 -0
  251. data/stylesheets/sugar/vendors/sassdash/api/_xor.scss +35 -0
  252. data/stylesheets/sugar/vendors/sassdash/api/_zip.scss +80 -0
  253. data/stylesheets/sugar/vendors/sassdash/constants/_char.scss +97 -0
  254. data/stylesheets/sugar/vendors/sassdash/constants/_constructor.scss +1 -0
  255. data/stylesheets/sugar/vendors/sassdash/constants/_escapes.scss +26 -0
  256. data/stylesheets/sugar/vendors/sassdash/constants/_flags.scss +9 -0
  257. data/stylesheets/sugar/vendors/sassdash/constants/_global.scss +11 -0
  258. data/stylesheets/sugar/vendors/sassdash/constants/_module.scss +9 -0
  259. data/stylesheets/sugar/vendors/sassdash/constants/_native.scss +80 -0
  260. data/stylesheets/sugar/vendors/sassdash/constants/_number.scss +26 -0
  261. data/stylesheets/sugar/vendors/sassdash/constants/_trunc.scss +2 -0
  262. data/stylesheets/sugar/vendors/sassdash/constants/_units.scss +10 -0
  263. data/stylesheets/sugar/vendors/sassdash/helpers/_aggregator.scss +47 -0
  264. data/stylesheets/sugar/vendors/sassdash/helpers/_call.scss +77 -0
  265. data/stylesheets/sugar/vendors/sassdash/helpers/_chain.scss +37 -0
  266. data/stylesheets/sugar/vendors/sassdash/helpers/_char.scss +115 -0
  267. data/stylesheets/sugar/vendors/sassdash/helpers/_coercion.scss +90 -0
  268. data/stylesheets/sugar/vendors/sassdash/helpers/_compounder.scss +25 -0
  269. data/stylesheets/sugar/vendors/sassdash/helpers/_module.scss +8 -0
  270. data/stylesheets/sugar/vendors/sassdash/helpers/_number.scss +165 -0
  271. data/stylesheets/sugar/vendors/sassdash/helpers/_scope.scss +43 -0
  272. data/stylesheets/sugar/vendors/sassdash/static/_local.scss +268 -0
  273. data/stylesheets/sugar/vendors/sassdash/static/_module.scss +2 -0
  274. data/stylesheets/sugar/vendors/sassdash/static/_static.scss +84 -0
  275. metadata +334 -0
@@ -0,0 +1,40 @@
1
+ @function __string-replace($string, $target, $replacement: '') {
2
+ $string: __to-string($string);
3
+ $target: __to-string($target);
4
+ $found-index: str-index($string, $target);
5
+ $result: '';
6
+
7
+ @if not $found-index {
8
+ @return $string;
9
+ }
10
+
11
+ @if __function-exists($replacement) {
12
+ $replacement: __call($replacement, null, $target);
13
+ }
14
+
15
+ @return $result
16
+ + str-slice($string, 1, $found-index - 1)
17
+ + $replacement
18
+ + __string-replace(
19
+ str-slice($string, str-length($target) + $found-index),
20
+ $target,
21
+ $replacement
22
+ );
23
+ }
24
+
25
+
26
+ /// Replaces all instances of a `$target` substring in a `$string` with
27
+ /// a `$replacement` string.
28
+ ///
29
+ /// @access public
30
+ /// @group String
31
+ /// @param {String} $string - The source string.
32
+ /// @param {String} $target - The substring to replace.
33
+ /// @param {String} $replacement [''] - The replacement string.
34
+ /// @returns {String} Returns new string with replacements.
35
+ /// @example scss
36
+ /// $foo: _replace('abcde', 'bcd', '---');
37
+ /// // => 'a---e'
38
+ @function _replace($args...) {
39
+ @return call('__string-replace', $args...);
40
+ }
@@ -0,0 +1,26 @@
1
+ @function __rest($list, $args...) {
2
+ @return __drop($list, 1);
3
+ }
4
+
5
+
6
+ /// Gets all but the first element of `$list`.
7
+ ///
8
+ ///
9
+ /// @access public
10
+ /// @group List
11
+ /// @param {List} $list The list to query.
12
+ /// @returns {List} Returns the slice of `$list`.
13
+ /// @example scss
14
+ /// $foo: _rest((1, 2, 3));
15
+ /// // => (2, 3)
16
+
17
+ @function _rest($args...) {
18
+ @return call('__rest', $args...);
19
+ }
20
+
21
+
22
+ /// @alias _rest
23
+
24
+ @function _tail($args...) {
25
+ @return call('__rest', $args...);
26
+ }
@@ -0,0 +1,48 @@
1
+ @function __result($map, $key, $default-value: null) {
2
+ $value: if($map == null, $__undefined__, __get($map, $key));
3
+ $result: null;
4
+
5
+ @if __is-undefined($value) or __is-null($value) {
6
+ $value: $default-value;
7
+ }
8
+
9
+ @if __function-exists($value) {
10
+ $_: __scope($map);
11
+ $scoped-function: __bind($value);
12
+ $result: __call($scoped-function, $__current-scope__);
13
+ $_: __scope(false);
14
+ } @else {
15
+ $result: $value;
16
+ }
17
+
18
+ @return $result;
19
+ }
20
+
21
+
22
+ /// Resolves the value of property `$key` on `$map`. If the value of `key` is
23
+ /// a function it is invoked with the `_this` binding of `$map` and its result
24
+ /// is returned, else the property value is returned. If the property value is
25
+ /// `undefined` or `null` the `$default-value` is used in its place.
26
+ ///
27
+ ///
28
+ /// @access public
29
+ /// @group Map
30
+ /// @param {Map} $map The $map to query.
31
+ /// @param {string} $key The key of the property to resolve.
32
+ /// @param {*} $default-value The value returned if the property value
33
+ /// resolves to `undefined` or `null`.
34
+ /// @returns {*} Returns the resolved value.
35
+ /// @example scss
36
+ /// $map: ( 'user': 'fred', 'age': _constant(40) );
37
+ /// $foo: _result($map, 'user');
38
+ /// // => 'fred'
39
+ /// $foo: _result($map, 'age');
40
+ /// // => 40
41
+ /// $foo: _result($map, 'status', 'busy');
42
+ /// // => 'busy'
43
+ /// $foo: _result($map, 'status', _constant('busy'));
44
+ /// // => 'busy'
45
+
46
+ @function _result($args...) {
47
+ @return call('__result', $args...);
48
+ }
@@ -0,0 +1,64 @@
1
+ @function __list-reverse($list, $args...) {
2
+ $length: length($list);
3
+ $result-list: ();
4
+ $index: $length;
5
+
6
+ @while $index > 0 {
7
+ $result-list: append($result-list, nth($list, $index));
8
+ $index: $index - 1;
9
+ }
10
+
11
+ @return $result-list;
12
+ }
13
+
14
+
15
+ @function __str-reverse($string, $args...) {
16
+ $string-list: __to-list($string);
17
+ $result: __list-reverse($string-list);
18
+
19
+ @return __join($result, '');
20
+ }
21
+
22
+
23
+ @function __reverse($value, $args...) {
24
+ @if __is-string($value) {
25
+ @return __str-reverse($value);
26
+ }
27
+
28
+ @return __list-reverse($value);
29
+ }
30
+
31
+
32
+ /// Reverses a `$list` or `$string`. The first element/character of the list/string
33
+ /// becomes the last, and vice versa.
34
+ ///
35
+ /// @access public
36
+ /// @group List
37
+ /// @param {List|String} $value - The value to reverse.
38
+ /// @returns {List|String} Returns reversed `$value`.
39
+ /// @example scss
40
+ /// $foo: _reverse(1 2 3);
41
+ /// // => 3 2 1
42
+ ///
43
+ /// $foo: _reverse('abc');
44
+ /// // => 'cba'
45
+
46
+ @function _reverse($args...) {
47
+ @return call('__reverse', $args...);
48
+ }
49
+
50
+
51
+ /// Reverses a `$string`. The first character of the string
52
+ /// becomes the last, and vice versa.
53
+ ///
54
+ /// @access public
55
+ /// @group List
56
+ /// @param {String} $string - The string to reverse.
57
+ /// @returns {String} Returns reversed `$string`.
58
+ /// @example scss
59
+ /// $foo: _str-reverse('abc');
60
+ /// // => 'cba'
61
+
62
+ @function _str-reverse($args...) {
63
+ @return call('__str-reverse', $args...);
64
+ }
@@ -0,0 +1,55 @@
1
+
2
+
3
+ @mixin __rules($rules: ()) {
4
+ @if not __is-map($rules)
5
+ or not __every($rules, '__is-map') {
6
+ @error 'Rules for _rules mixin must be key-value pairs, where value is a declaration map.';
7
+ } @else {
8
+ @each $selector, $declarations in $rules {
9
+ #{$selector} {
10
+ @include __declare($declarations);
11
+ }
12
+ }
13
+ }
14
+
15
+ @content;
16
+ }
17
+
18
+
19
+ ///
20
+ /// Includes a ruleset for each selector-declarations pair in the map.
21
+ ///
22
+ ///
23
+ /// @access public
24
+ /// @group Map
25
+ /// @param {Map} $rules [()] The rules map.
26
+ /// @output The rulesets for each selector key.
27
+ /// @example scss
28
+ /// $test-rules: (
29
+ /// '.foo': (
30
+ /// 'height': 50px,
31
+ /// 'padding': 1rem 5rem
32
+ /// ),
33
+ /// '.bar .baz': (
34
+ /// 'width': 50px,
35
+ /// 'margin': 2rem 6rem
36
+ /// )
37
+ /// );
38
+ ///
39
+ /// @include _rules($test-rules);
40
+ ///
41
+ /// // Output CSS:
42
+ /// .foo {
43
+ /// height: 50px;
44
+ /// padding: 1rem 5rem;
45
+ /// }
46
+ ///
47
+ /// .bar .baz {
48
+ /// width: 50px;
49
+ /// margin: 2rem 6rem;
50
+ /// }
51
+
52
+ @mixin _rules($args...) {
53
+ @include __rules($args...);
54
+ }
55
+
@@ -0,0 +1,33 @@
1
+ @function __sample($collection, $n: null, $guard: null) {
2
+ @if (if($guard, __is-iteratee-call($collection, $n, $guard), ($n == null))) {
3
+ $length: length($collection);
4
+
5
+ @return if($length > 0, nth($collection, __base-rand(1, $length)), null);
6
+ }
7
+
8
+ $n: if(type-of($n) == 'number', $n, if(__is-truthy($n), 1, 0));
9
+ $result: __shuffle($collection);
10
+ $result: __take($result, min(if($n < 0, 0, $n), length($result)));
11
+
12
+ @return $result;
13
+ }
14
+
15
+
16
+ /// Gets a random element or `$n` random elements from a collection.
17
+ ///
18
+ ///
19
+ /// @access public
20
+ /// @group Collection
21
+ /// @param {List|Map|string} $collection The collection to sample.
22
+ /// @param {number} $n [1] The number of elements to sample.
23
+ /// @returns {*} Returns the random sample(s).
24
+ /// @example scss
25
+ /// $foo: _sample((1, 2, 3, 4));
26
+ /// // => 2
27
+ ///
28
+ /// $foo: _sample((1, 2, 3, 4), 2);
29
+ /// // => (3, 1)
30
+
31
+ @function _sample($args...) {
32
+ @return call('__sample', $args...);
33
+ }
@@ -0,0 +1,37 @@
1
+ @function __shuffle($collection) {
2
+ $collection: __to-iterable($collection);
3
+ $index: 1;
4
+ $length: length($collection);
5
+ $result: ();
6
+
7
+ @while ($index <= $length) {
8
+ $rand: __base-rand(1, $index);
9
+
10
+ @if ($index != $rand) {
11
+ $result: __set($result, $index, __get($result, $rand));
12
+ }
13
+
14
+ $result: __set($result, $rand, __get($collection, $index));
15
+ $index: $index + 1;
16
+ }
17
+
18
+ @return __to-list($result);
19
+ }
20
+
21
+
22
+ /// Creates a list of shuffled values, using a version of the Fisher-Yates
23
+ /// shuffle. See [Wikipedia](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle)
24
+ /// for more details.
25
+ ///
26
+ ///
27
+ /// @access public
28
+ /// @group Collection
29
+ /// @param {List|Map|string} $collection The collection to shuffle.
30
+ /// @returns {List} Returns the new shuffled list.
31
+ /// @example scss
32
+ /// $foo: _shuffle((1, 2, 3, 4));
33
+ /// // => (4, 1, 3, 2)
34
+
35
+ @function _shuffle($args...) {
36
+ @return call('__shuffle', $args...);
37
+ }
@@ -0,0 +1,37 @@
1
+ @function __get-length($list, $args...) {
2
+ @return length($list);
3
+ }
4
+
5
+
6
+ @function __size($collection: null, $args...) {
7
+ @if __is-string($collection) {
8
+ $collection: __to-list($collection);
9
+ }
10
+
11
+ $length: if(__is-map-like($collection), length($collection), 0);
12
+
13
+ @return if(__is-length($length), $length, length(__keys($collection)));
14
+ }
15
+
16
+
17
+ /// Gets the size of `$collection` by returning `length($collection) for
18
+ /// lists or maps, or `str-length($collection)` for strings.
19
+ ///
20
+ ///
21
+ /// @access public
22
+ /// @group Collection
23
+ /// @param {List|Map|string} $collection The collection to inspect.
24
+ /// @returns {number} Returns the size of `$collection`.
25
+ /// @example scss
26
+ /// $foo: _size((1, 2, 3));
27
+ /// // => 3
28
+ ///
29
+ /// $foo: _size(( 'a': 1, 'b': 2 ));
30
+ /// // => 2
31
+ ///
32
+ /// $foo: _size('pebbles');
33
+ /// // => 7
34
+
35
+ @function _size($args...) {
36
+ @return call('__size', $args...);
37
+ }
@@ -0,0 +1,60 @@
1
+ @function __base-slice($list, $start: 0, $end: length($list)) {
2
+ $index: 1;
3
+ $length: length($list);
4
+ $start: __parse-int($start);
5
+ $start: if(__is-number($start), floor($start), if(__is-truthy($start), 1, 0));
6
+
7
+ @if ($start < 0) {
8
+ $start: if(-$start > $length, 0, ($length + $start));
9
+ }
10
+
11
+ $end: if(__is-number($end), floor($end), if(__is-truthy($end), 1, 0));
12
+ $end: if($end > $length, $length, if($end, $end, 0));
13
+
14
+ @if ($end < 0) {
15
+ $end: $end + $length;
16
+ }
17
+
18
+ $length: if($start > $end, 0, ($end - $start));
19
+ $result: ();
20
+
21
+ @while ($index <= $length) {
22
+ $result: append($result, nth($list, ($index + $start)));
23
+ $index: $index + 1;
24
+ }
25
+
26
+ @return $result;
27
+ }
28
+
29
+
30
+ @function __slice($list, $start: 0, $end: length($list)) {
31
+ $length: if(__is-list-like($list), length($list), 0);
32
+
33
+ @if __is-falsey($length) {
34
+ @return ();
35
+ }
36
+
37
+ @if ($end and not __is-number($end) and __is-iteratee-call($list, $start, $end)) {
38
+ $start: 0;
39
+ $end: $length;
40
+ }
41
+
42
+ @return __base-slice($list, $start, $end);
43
+ }
44
+
45
+
46
+ /// Creates a slice of `$list` from `$start` up to, but not including, `$end`.
47
+ ///
48
+ ///
49
+ /// @access public
50
+ /// @group List
51
+ /// @param {List} $list - The list to slice.
52
+ /// @param {number} $start [0] - The start position.
53
+ /// @param {number} $end [length($list)] - The end position.
54
+ /// @returns {List} Returns the slice of `$list`.
55
+ /// @example scss
56
+ /// // todo
57
+
58
+ @function _slice($args...) {
59
+ @return call('__slice', $args...);
60
+ }
@@ -0,0 +1,110 @@
1
+ @function __list-some($list, $predicate) {
2
+ $index: 1;
3
+ $length: length($list);
4
+
5
+ @while ($index <= $length) {
6
+ $value: nth($list, $index);
7
+ $iteration: __exec($predicate, $value, $index, $list);
8
+
9
+ @if (__is-truthy($iteration)) {
10
+ @return true;
11
+ }
12
+
13
+ $index: $index + 1;
14
+ }
15
+
16
+ @return false;
17
+ }
18
+
19
+
20
+ @function __base-some-iteratee($value, $index, $collection) {
21
+ $predicate: __this('predicate');
22
+ $result: __this('result');
23
+ $result: __exec($predicate, $value, $index, $collection);
24
+ $_: __this('result', $result);
25
+
26
+ @return if($result, false, true);
27
+ }
28
+
29
+
30
+ @function __base-some($collection, $predicate) {
31
+ $result: false;
32
+ $_: __scope((
33
+ 'predicate': $predicate,
34
+ 'result': $result
35
+ ));
36
+ $_: __base-each($collection, '__base-some-iteratee');
37
+ $result: __this('result');
38
+ $_: __scope(false);
39
+
40
+ @return if($result, true, false);
41
+ }
42
+
43
+
44
+ @function __some($collection, $predicate: '__identity', $this-arg: $__undefined__) {
45
+ $function: if(__is-list($collection), '__list-some', '__base-some');
46
+
47
+ @if (not __function-exists($predicate)) or (not __is-undefined($this-arg)) {
48
+ $predicate: __get-callback($predicate, $this-arg, 3);
49
+ }
50
+
51
+ @return __exec($function, $collection, $predicate);
52
+ }
53
+
54
+
55
+ /// Checks if `$predicate` returns truthy for **any** element of `$collection`.
56
+ /// The function returns as soon as it finds a passing value and does not iterate
57
+ /// over the entire collection. The predicate is bound to `$this-arg` and invoked
58
+ /// with three arguments; (value, index|key, collection).
59
+ ///
60
+ /// If a property name is provided for `$predicate` the created `_property`
61
+ /// style callback returns the property value of the given element.
62
+ ///
63
+ /// If a value is also provided for `$this-arg` the created `_matches-property`
64
+ /// style callback returns `true` for elements that have a matching property
65
+ /// value, else `false`.
66
+ ///
67
+ /// If a map is provided for `$predicate` the created `_matches` style
68
+ /// callback returns `true` for elements that have the properties of the given
69
+ /// object, else `false`.
70
+ ///
71
+ ///
72
+ /// @access public
73
+ /// @group Collection
74
+ /// @param {List|Map|string} $collection - The collection to iterate over.
75
+ /// @param {Function|Map|string} $predicate [_identity] - The function invoked
76
+ /// per iteration.
77
+ /// @param {*} $this-arg [null] - The `_this` binding of `$predicate`.
78
+ /// @returns {boolean} Returns `true` if any element passes the predicate check,
79
+ /// else `false`.
80
+ /// @example scss
81
+ /// $foo: _some((null, 0, 'yes', false), _is-boolean);
82
+ /// // => true
83
+ ///
84
+ /// $users: (
85
+ /// ( 'user': 'barney', 'active': true ),
86
+ /// ( 'user': 'fred', 'active': false )
87
+ /// );
88
+ /// // using the `_matches` callback shorthand
89
+ ///
90
+ /// $foo: _some($users, ( 'user': 'barney', 'active': false ));
91
+ /// // => false
92
+ ///
93
+ /// // using the `_matches-property` callback shorthand
94
+ /// $foo: _some($users, 'active', false);
95
+ /// // => true
96
+ ///
97
+ /// // using the `_property` callback shorthand
98
+ /// $foo: _some($users, 'active');
99
+ /// // => true
100
+
101
+ @function _some($args...) {
102
+ @return call('__some', $args...);
103
+ }
104
+
105
+
106
+ /// @alias _some
107
+
108
+ @function _any($args...) {
109
+ @return call('__some', $args...);
110
+ }