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,111 @@
1
+ @import 'add';
2
+ @import 'after';
3
+ @import 'ary';
4
+ @import 'assign';
5
+ @import 'at';
6
+ @import 'before';
7
+ @import 'bind';
8
+ @import 'callback';
9
+ @import 'case';
10
+ @import 'chunk';
11
+ @import 'compact';
12
+ @import 'compare';
13
+ @import 'concat';
14
+ @import 'constant';
15
+ @import 'context';
16
+ @import 'count-by';
17
+ @import 'create';
18
+ @import 'debug';
19
+ @import 'declare';
20
+ @import 'defaults';
21
+ @import 'difference';
22
+ @import 'drop';
23
+ @import 'either';
24
+ @import 'encode';
25
+ @import 'ends-with';
26
+ @import 'escape';
27
+ @import 'every';
28
+ @import 'exec';
29
+ @import 'extrema';
30
+ @import 'fill';
31
+ @import 'filter';
32
+ @import 'find';
33
+ @import 'first';
34
+ @import 'flatten';
35
+ @import 'flow';
36
+ @import 'for';
37
+ @import 'functions';
38
+ @import 'group-by';
39
+ @import 'has';
40
+ @import 'identity';
41
+ @import 'includes';
42
+ @import 'index-by';
43
+ @import 'index-of';
44
+ @import 'initial';
45
+ @import 'intersection';
46
+ @import 'invert';
47
+ @import 'invoke';
48
+ @import 'is-empty';
49
+ @import 'is-equal';
50
+ @import 'is-match';
51
+ @import 'is-type';
52
+ @import 'join';
53
+ @import 'keys';
54
+ @import 'last';
55
+ @import 'map';
56
+ @import 'matches';
57
+ @import 'memoize';
58
+ @import 'merge';
59
+ @import 'modify';
60
+ @import 'negate';
61
+ @import 'noop';
62
+ @import 'omit';
63
+ @import 'once';
64
+ @import 'pad';
65
+ @import 'pairs';
66
+ @import 'parse-int';
67
+ @import 'partial';
68
+ @import 'partition';
69
+ @import 'pick';
70
+ @import 'pluck';
71
+ @import 'property';
72
+ @import 'pull';
73
+ @import 'push';
74
+ @import 'rand';
75
+ @import 'range';
76
+ @import 'reject';
77
+ @import 'reduce';
78
+ @import 'repeat';
79
+ @import 'replace';
80
+ @import 'result';
81
+ @import 'rest';
82
+ @import 'reverse';
83
+ @import 'rules';
84
+ @import 'sample';
85
+ @import 'shuffle';
86
+ @import 'size';
87
+ @import 'slice';
88
+ @import 'some';
89
+ @import 'sort';
90
+ @import 'sorted-index'; // not unit tested
91
+ @import 'splice';
92
+ @import 'split';
93
+ @import 'starts-with';
94
+ @import 'sum';
95
+ @import 'take';
96
+ @import 'times';
97
+ @import 'to-list';
98
+ @import 'to-string';
99
+ @import 'trim';
100
+ @import 'trunc';
101
+ @import 'unescape';
102
+ @import 'union';
103
+ @import 'uniq';
104
+ @import 'unique-id';
105
+ @import 'unzip';
106
+ @import 'values';
107
+ @import 'where';
108
+ @import 'without';
109
+ @import 'words';
110
+ @import 'xor';
111
+ @import 'zip';
@@ -0,0 +1,42 @@
1
+ @function __negate-function($arguments...) {
2
+ $predicate: __this('predicate');
3
+
4
+ @return not __call($predicate, __this(), $arguments...);
5
+ }
6
+
7
+
8
+ @function __negate($predicate) {
9
+ @if not (__function-exists($predicate)) {
10
+ @error 'FUNC_ERROR_TEXT';
11
+ }
12
+
13
+ $_: __scope((
14
+ 'predicate': $predicate
15
+ ));
16
+ $negate-function: __bind('__negate-function');
17
+ $_: __scope(false);
18
+
19
+ @return $negate-function;
20
+ }
21
+
22
+
23
+ /// Creates a function that negates the result of the predicate `$function`. The
24
+ /// `$function` predicate is invoked with the `_this` binding and arguments of the
25
+ /// created function.
26
+ ///
27
+ ///
28
+ /// @access public
29
+ /// @group Function
30
+ /// @param {Function} $predicate The predicate to negate.
31
+ /// @returns {Function} Returns the new function.
32
+ /// @example scss
33
+ /// @function is-even($n, $args...) {
34
+ /// @return $n % 2 == 0;
35
+ /// }
36
+ ///
37
+ /// $foo: _filter((1, 2, 3, 4, 5, 6), _negate(is-even));
38
+ /// // => (1, 3, 5)
39
+
40
+ @function _negate($args...) {
41
+ @return call('__negate', $args...);
42
+ }
@@ -0,0 +1,19 @@
1
+ @function __noop($args...) {
2
+ @return null;
3
+ }
4
+
5
+
6
+ /// A no-operation function which returns `null` regardless of the
7
+ /// arguments it receives.
8
+ ///
9
+ ///
10
+ /// @access public
11
+ /// @group Utility
12
+ /// @example scss
13
+ /// $map: ( 'user': 'fred' );
14
+ /// $foo: _noop($map) == null;
15
+ /// // => true
16
+
17
+ @function _noop($args...) {
18
+ @return call('__noop', $args...);
19
+ }
@@ -0,0 +1,52 @@
1
+ @function __omit($map, $predicate, $this-arg: null, $args...) {
2
+ @if $map == null {
3
+ @return ();
4
+ }
5
+
6
+ $map: __to-map($map);
7
+
8
+ @if not __function-exists($predicate) {
9
+ $omitted-keys: __base-flatten(($predicate, $this-arg, $args));
10
+
11
+ @each $key in $omitted-keys {
12
+ $map: map-remove($map, $key);
13
+ }
14
+
15
+ @return $map;
16
+ }
17
+
18
+ $predicate: __bind-callback($predicate, $this-arg, 3);
19
+ $result: __pick-by-callback($map, __negate($predicate));
20
+
21
+ @return $result;
22
+ }
23
+
24
+
25
+ /// The opposite of `_pick`; this method creates a map composed of the
26
+ /// own and inherited enumerable properties of `$map` that are not omitted.
27
+ ///
28
+ /// Property names may be specified as individual arguments or as lists of
29
+ /// property names. If `$predicate` is provided it is invoked for each property
30
+ /// of `$map` omitting the properties `$predicate` returns truthy for. The
31
+ /// predicate is bound to `$this-arg` and invoked with three arguments;
32
+ /// (value, key, map).
33
+ ///
34
+ ///
35
+ /// @access public
36
+ /// @group Map
37
+ /// @param {Map} $map The source map.
38
+ /// @param {Function|String...|List} $predicate The function invoked per
39
+ /// iteration or property names to omit, specified as individual property
40
+ /// names or lists of property names.
41
+ /// @param {*} $this-arg [null] - The `_this` binding of `$predicate`.
42
+ /// @returns {Map} Returns the new map.
43
+ /// @example scss
44
+ /// $map: ( 'user': 'fred', 'age': 40 );
45
+ /// $foo: _omit($map, 'age');
46
+ /// // => ( 'user': 'fred' )
47
+ /// $foo: _omit($map, _is-number);
48
+ /// // => ( 'user': 'fred' )
49
+
50
+ @function _omit($args...) {
51
+ @return call('__omit', $args...);
52
+ }
@@ -0,0 +1,27 @@
1
+ @function __once($function) {
2
+ @return __before($function, 2);
3
+ }
4
+
5
+
6
+ /// Creates a function that is restricted to invoking `$function` once. Repeat calls
7
+ /// to the function return the value of the first call. The `$function` is invoked
8
+ /// with the `_this` binding of the created function.
9
+ ///
10
+ ///
11
+ /// @access public
12
+ /// @group Function
13
+ /// @param {Function} $func The function to restrict.
14
+ /// @returns {Function} Returns the new restricted function.
15
+ /// @example scss
16
+ /// $lighten-once: _once(lighten);
17
+ /// $color: _exec($lighten-once, green, 10%);
18
+ ///
19
+ /// color: $color; // lightened green
20
+ ///
21
+ /// $color: _exec($lighten-once, blue, 20%);
22
+ ///
23
+ /// color: $color; // null
24
+
25
+ @function _once($args...) {
26
+ @return call('__once', $args...);
27
+ }
@@ -0,0 +1,121 @@
1
+ @function __create-pad($string, $length, $chars: ' ') {
2
+ $str-length: str-length($string);
3
+
4
+ @if $str-length >= $length {
5
+ @return '';
6
+ }
7
+
8
+ $pad-length: $length - $str-length;
9
+ $chars: __to-string($chars);
10
+ $chars-length: length($chars);
11
+ $repeat-chars: if($chars-length > 0, ceil($pad-length / $chars-length), 0);
12
+
13
+ @return str-slice(__repeat($chars, $repeat-chars), 1, $pad-length);
14
+ }
15
+
16
+
17
+ @function __pad($string, $length: 0, $chars: ' ') {
18
+ $string: __base-to-string($string);
19
+ $str-length: str-length($string);
20
+
21
+ @if $str-length >= $length {
22
+ @return $string;
23
+ }
24
+
25
+ $mid: ($length - $str-length) / 2;
26
+ $left-length: floor($mid);
27
+ $right-length: ceil($mid);
28
+ $chars: __create-pad('', $right-length, $chars);
29
+
30
+ @return str-slice($chars, 0, $left-length) + $string + $chars;
31
+ }
32
+
33
+
34
+ @function __pad-left($string, $length: 0, $chars: ' ') {
35
+ $string: __base-to-string($string);
36
+
37
+ @return if($string != '',
38
+ __create-pad($string, $length, $chars) + $string,
39
+ $string);
40
+ }
41
+
42
+
43
+ @function __pad-right($string, $length: 0, $chars: ' ') {
44
+ $string: __base-to-string($string);
45
+
46
+ @return if($string != '',
47
+ $string + __create-pad($string, $length, $chars),
48
+ $string);
49
+ }
50
+
51
+
52
+ /// Pads `$string` on the left and right sides if it is shorter then the given
53
+ /// padding length. The `$chars` string may be truncated if the number of padding
54
+ /// characters can't be evenly divided by the padding length.
55
+ ///
56
+ ///
57
+ /// @access public
58
+ /// @group String
59
+ /// @param {string} $string [''] - The string to pad.
60
+ /// @param {number} $length [0] - The padding length.
61
+ /// @param {string} $chars [' '] - The string used as padding.
62
+ /// @returns {string} Returns the padded string.
63
+ /// @example scss
64
+ /// $foo: _pad('abc', 8);
65
+ /// // => ' abc '
66
+ /// $foo: _pad('abc', 8, '_-');
67
+ /// // => '_-abc_-_'
68
+ /// $foo: _pad('abc', 3);
69
+ /// // => 'abc'
70
+
71
+ @function _pad($args...) {
72
+ @return call('__pad', $args...);
73
+ }
74
+
75
+
76
+ /// Pads `$string` on the left side if it is shorter then the given padding
77
+ /// length. The `$chars` string may be truncated if the number of padding
78
+ /// characters exceeds the padding length.
79
+ ///
80
+ ///
81
+ /// @access public
82
+ /// @group String
83
+ /// @param {string} $string [''] - The string to pad.
84
+ /// @param {number} $length [0] - The padding length.
85
+ /// @param {string} $chars [' '] - The string used as padding.
86
+ /// @returns {string} Returns the padded string.
87
+ /// @example scss
88
+ /// $foo: _pad-left('abc', 6);
89
+ /// // => ' abc'
90
+ /// $foo: _pad-left('abc', 6, '_-');
91
+ /// // => '_-_abc'
92
+ /// $foo: _pad-left('abc', 3);
93
+ /// // => 'abc'
94
+
95
+ @function _pad-left($args...) {
96
+ @return call('__pad-left', $args...);
97
+ }
98
+
99
+
100
+ /// Pads `$string` on the right side if it is shorter then the given padding
101
+ /// length. The `$chars` string may be truncated if the number of padding
102
+ /// characters exceeds the padding length.
103
+ ///
104
+ ///
105
+ /// @access public
106
+ /// @group String
107
+ /// @param {string} $string [''] - The string to pad.
108
+ /// @param {number} $length [0] - The padding length.
109
+ /// @param {string} $chars [' '] - The string used as padding.
110
+ /// @returns {string} Returns the padded string.
111
+ /// @example scss
112
+ /// $foo: _pad-right('abc', 6);
113
+ /// // => 'abc '
114
+ /// $foo: _pad-right('abc', 6, '_-');
115
+ /// // => 'abc_-_'
116
+ /// $foo: _pad-right('abc', 3);
117
+ /// // => 'abc'
118
+
119
+ @function _pad-right($args...) {
120
+ @return call('__pad-right', $args...);
121
+ }
@@ -0,0 +1,26 @@
1
+ @function __pairs($map, $args...) {
2
+ $result: ();
3
+
4
+ @each $key, $value in $map {
5
+ $result: append($result, ($key, $value));
6
+ }
7
+
8
+ @return $result;
9
+ }
10
+
11
+
12
+ /// Creates a two dimensional list of the key-value pairs for `$map`,
13
+ /// e.g. `(($key1, $value1), ($key2, $value2))`.
14
+ ///
15
+ ///
16
+ /// @access public
17
+ /// @group Map
18
+ /// @param {Map} $map The map to inspect.
19
+ /// @returns {List} Returns the new list of key-value pairs.
20
+ /// @example scss
21
+ /// $foo: _pairs(( 'barney': 36, 'fred': 40 ));
22
+ /// // => (('barney', 36), ('fred', 40))
23
+
24
+ @function _pairs($args...) {
25
+ @return call('__pairs', $args...);
26
+ }
@@ -0,0 +1,69 @@
1
+ @function __parse-int($string, $radix: null, $guard: null) {
2
+ @if ($guard and __is-iteratee-call($string, $radix, $guard)) {
3
+ $radix: 10;
4
+ }
5
+
6
+ @if __is-falsey($string) {
7
+ @return 0;
8
+ }
9
+
10
+ $string: to-upper-case(__trim($string));
11
+
12
+ @if __is-falsey($radix) {
13
+ $radix: if(__starts-with($string, ('0X', '#')), 16, 10);
14
+ }
15
+
16
+ $result: 0;
17
+ $multiplier: if(__starts-with($string, '-'), -1, 1);
18
+ $prefix: if(__starts-with($string, ('-', '+', '#')), 1, if(__starts-with($string, ('0X')), 2, 0));
19
+ $char-min: __get-char-code(0);
20
+ $char-max: $char-min + 9;
21
+ $char-alpha-min: __get-char-code('A'); // 10
22
+ $char-alpha-max: __get-char-code('Z');
23
+ $char-codes: __map($string, '__get-char-code');
24
+ $index: $prefix + 1;
25
+ $break: false;
26
+
27
+ @while $index <= length($char-codes) and not $break {
28
+ $char-code: nth($char-codes, $index);
29
+
30
+ @if $char-code >= $char-min and $char-code <= $char-max {
31
+ $result: ($radix * $result) + ($char-code - $char-min);
32
+ } @else if $char-code >= $char-alpha-min and $char-code < $char-alpha-max {
33
+ $result: ($radix * $result) + ($char-code - $char-alpha-min + 10);
34
+ } @else {
35
+ $break: true;
36
+ }
37
+
38
+ $index: $index + 1;
39
+ }
40
+
41
+ @return $multiplier * $result;
42
+ }
43
+
44
+ /// Parses a string argument and returns an integer of the specified radix
45
+ /// (the base in mathematical numerical systems).
46
+ ///
47
+ /// Similar to native JavaScript [parseInt() function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt).
48
+ ///
49
+ /// @access public
50
+ /// @group Number
51
+ /// @param {String} $string The value to parse. If string is not a string,
52
+ /// then it is converted to one. Leading whitespace in the string is ignored.
53
+ /// @param {Number} $radix An integer between 2 and 36 that represents the radix
54
+ /// (the base in mathematical numeral systems) of the above mentioned string.
55
+ /// @returns {Number} Returns the string converted to an integer, or `null`.
56
+ /// @example scss
57
+ ///
58
+ /// $foo: _parse-int('10');
59
+ /// // => 10
60
+ ///
61
+ /// $foo: _parse-int('#000020');
62
+ /// // => 32
63
+ ///
64
+ /// $foo: _parse-int(' 123');
65
+ /// // => 123
66
+
67
+ @function _parse-int($args...) {
68
+ @return call('__parse-int', $args...);
69
+ }
@@ -0,0 +1,91 @@
1
+ @function __partial-wrapper($arguments...) {
2
+ $partials: __this('partials');
3
+ $func: __this('func');
4
+ $arguments: join($partials, $arguments);
5
+
6
+ @return __exec($func, $arguments...);
7
+ }
8
+
9
+
10
+ @function __partial($func, $arguments...) {
11
+ $partials: $arguments;
12
+ $_: __scope((
13
+ 'partials': $partials,
14
+ 'func': $func
15
+ ));
16
+ $partial-wrapper: __bind('__partial-wrapper');
17
+ $_: __scope(false);
18
+
19
+ @return $partial-wrapper;
20
+ }
21
+
22
+
23
+ @function __partial-right-wrapper($arguments...) {
24
+ $partials: __this('partials');
25
+ $func: __this('func');
26
+ $arguments: join($arguments, $partials);
27
+
28
+ @return __exec($func, $arguments...);
29
+ }
30
+
31
+
32
+ @function __partial-right($func, $arguments...) {
33
+ $partials: $arguments;
34
+ $_: __scope((
35
+ 'partials': $partials,
36
+ 'func': $func
37
+ ));
38
+ $partial-wrapper: __bind('__partial-right-wrapper');
39
+ $_: __scope(false);
40
+
41
+ @return $partial-wrapper;
42
+ }
43
+
44
+
45
+ /// Creates a function that invokes `$function` with `partial` arguments prepended
46
+ /// to those provided to the new function. This method is like `_bind` except
47
+ /// it does **not** alter the `_this` binding.
48
+ ///
49
+ ///
50
+ /// @access public
51
+ /// @group Function
52
+ /// @param {Function} $func The function to partially apply arguments to.
53
+ /// @param {Any...} $args... The arguments to be partially applied.
54
+ /// @returns {Function} Returns the new partially applied function.
55
+ /// @example scss
56
+ /// @function greet($greeting, $name) {
57
+ /// @return $greeting + ' ' + $name;
58
+ /// }
59
+ ///
60
+ /// $say-hello-to: _partial(greet, 'hello');
61
+ ///
62
+ /// $foo: _exec($say-hello-to, 'fred');
63
+ /// // => 'hello fred'
64
+
65
+ @function _partial($args...) {
66
+ @return call('__partial', $args...);
67
+ }
68
+
69
+
70
+ /// This method is like `_partial` except that partially applied arguments
71
+ /// are appended to those provided to the new function.
72
+ ///
73
+ ///
74
+ /// @access public
75
+ /// @group Function
76
+ /// @param {Function} $func The function to partially apply arguments to.
77
+ /// @param {Any...} $args... The arguments to be partially applied.
78
+ /// @returns {Function} Returns the new partially applied function.
79
+ /// @example scss
80
+ /// @function greet($greeting, $name) {
81
+ /// @return $greeting + ' ' + $name;
82
+ /// }
83
+ ///
84
+ /// $greet-with: _partial-right(greet, 'fred');
85
+ ///
86
+ /// $foo: _exec($greet-with, 'hi');
87
+ /// // => 'hi fred'
88
+
89
+ @function _partial-right($args...) {
90
+ @return call('__partial-right', $args...);
91
+ }
@@ -0,0 +1,53 @@
1
+ @function __partition-initializer() {
2
+ @return ((), ());
3
+ }
4
+
5
+
6
+ @function __partition-aggregator($result, $value, $key, $args...) {
7
+ $result-index: if(__is-truthy($key), 1, 2);
8
+ $result-value: nth($result, $result-index);
9
+ $result-value: if($result-value, $result-value, ());
10
+
11
+ @return set-nth($result, $result-index, append($result-value, $value));
12
+ }
13
+
14
+
15
+ @function __partition($arguments...) {
16
+ $function: __create-aggregator('__partition-aggregator', '__partition-initializer');
17
+
18
+ @return __exec($function, $arguments...);
19
+ }
20
+
21
+
22
+ /// Creates a list of elements split into two groups, the first of which
23
+ /// contains elements `$predicate` returns truthy for, while the second of which
24
+ /// contains elements `$predicate` returns falsey for.
25
+ ///
26
+ /// The predicate is bound
27
+ /// to `$this-arg` and invoked with three arguments; (value, index|key, collection).
28
+ ///
29
+ /// If a property name is provided for `$predicate` the created `_property`
30
+ /// style callback returns the property value of the given element.
31
+ /// If a value is also provided for `$this-arg` the created `_matches-property`
32
+ /// style callback returns `true` for elements that have a matching property
33
+ /// value, else `false`.
34
+ ///
35
+ /// If a map is provided for `$predicate` the created `_matches` style
36
+ /// callback returns `true` for elements that have the properties of the given
37
+ /// object, else `false`.
38
+ ///
39
+ ///
40
+ /// @access public
41
+ /// @group Collection
42
+ /// @param {List|Map|string} $collection The collection to iterate over.
43
+ /// @param {Function|Map|string} $predicate [_identity] - The function invoked
44
+ /// per iteration.
45
+ /// @param {*} $this-arg [null] - The `_this` binding of `$predicate`.
46
+ /// @returns {List} Returns the list of grouped elements.
47
+ /// @example scss
48
+ /// $foo: _partition(1.3 1.4 2.1 2.2, floor);
49
+ /// // => ((1.3 1.4), (2.1 2.2))
50
+
51
+ @function _partition($args...) {
52
+ @return call('__partition', $args...);
53
+ }