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,86 @@
1
+ @function __base-uniq($list, $iteratee: '__identity', $guard: null) {
2
+ $result: ();
3
+
4
+ $iteratee: if(__is-iteratee-call($list, $iteratee, $guard), '__identity', $iteratee);
5
+
6
+ @each $item in $list {
7
+ $iteration: __exec($iteratee, $item);
8
+
9
+ @if type-of($iteration) == 'list' {
10
+ $iteration: inspect($iteration);
11
+ }
12
+
13
+ $result: map-merge($result, (
14
+ $iteration: $item
15
+ ));
16
+ }
17
+
18
+ @return map-values($result);
19
+ }
20
+
21
+
22
+ @function __uniq($list, $iteratee: '__identity', $this-arg: null) {
23
+ $length: if($list, length($list), 0);
24
+
25
+ @if __is-falsey($length) {
26
+ @return ();
27
+ }
28
+
29
+ @if __is-iteratee-call($list, $iteratee, $this-arg) {
30
+ $iteratee: '__identity';
31
+ $this-arg: null;
32
+ }
33
+
34
+ $iteratee: __get-callback($iteratee, $this-arg, 3);
35
+
36
+ @return __base-uniq($list, $iteratee);
37
+ }
38
+
39
+
40
+ /// Creates a duplicate-value-free version of a list.
41
+ ///
42
+ /// If an iteratee function is provided it
43
+ /// is invoked for each value in the list to generate the criterion by which
44
+ /// uniqueness is computed. The `$iteratee` is bound to `$this-arg` and invoked
45
+ /// with three arguments; (value, index, list).
46
+ ///
47
+ /// If a property name is provided for `$predicate` the created `_property`
48
+ /// style callback returns the property value of the given element.
49
+ ///
50
+ /// If a value is also provided for `$this-arg` the created `_matches-property`
51
+ /// style callback returns `true` for elements that have a matching property
52
+ /// value, else `false`.
53
+ ///
54
+ /// If a map is provided for `$predicate` the created `_matches` style
55
+ /// callback returns `true` for elements that have the properties of the given
56
+ /// object, else `false`.
57
+ ///
58
+ ///
59
+ /// @access public
60
+ /// @group List
61
+ /// @param {List} $list The list to inspect.
62
+ /// @param {Function|Map|string} $iteratee [_identity] - The function invoked per iteration.
63
+ /// @param {*} $this-arg [null] - The `_this` binding of `$iteratee`.
64
+ /// @returns {List} Returns the new duplicate-value-free list.
65
+ /// @example scss
66
+ /// $foo: _uniq((1, 2, 1));
67
+ /// // => (1, 2)
68
+ ///
69
+ /// // using an iteratee function
70
+ /// $foo: _uniq((1, 2.5, 1.5, 2), floor);
71
+ /// // => (1, 2.5)
72
+ ///
73
+ /// // using the `_property` callback shorthand
74
+ /// $foo: _uniq((( 'x': 1 ), ( 'x': 2 ), ( 'x': 1 )), 'x');
75
+ /// // => (( 'x': 1 ), ( 'x': 2 ))
76
+
77
+ @function _uniq($args...) {
78
+ @return call('__uniq', $args...);
79
+ }
80
+
81
+
82
+ /// @alias _uniq
83
+
84
+ @function _unique($args...) {
85
+ @return call('__uniq', $args...);
86
+ }
@@ -0,0 +1,27 @@
1
+ @function __unique-id($prefix: '') {
2
+ $id: unique-id();
3
+
4
+ @return __base-to-string($prefix) + $id;
5
+ }
6
+
7
+
8
+ /// Generates a unique ID. If `$prefix` is provided, the ID is appended to it.
9
+ ///
10
+ /// This is similar to the native Sass `unique-id()` function, with the added
11
+ /// prefix ability.
12
+ ///
13
+ ///
14
+ /// @access public
15
+ /// @group Utility
16
+ /// @param {string} $prefix [''] - The value to prefix the ID with.
17
+ /// @returns {string} Returns the unique ID.
18
+ /// @example scss
19
+ /// $foo: _unique-id('color_');
20
+ /// // => 'color_xxx' where xxx is a unique-id()
21
+ ///
22
+ /// $foo: _unique-id();
23
+ /// // => 'xxx' where xxx is a unique-id()
24
+
25
+ @function _unique-id($args...) {
26
+ @return call('__unique-id', $args...);
27
+ }
@@ -0,0 +1,77 @@
1
+
2
+ @function __unzip-iteratee($group, $args...) {
3
+ $length: __this('length');
4
+
5
+ @if __is-list-like($group) {
6
+ $_: __this('length', max(length($group), $length));
7
+
8
+ @return true;
9
+ }
10
+
11
+ @return false;
12
+ }
13
+
14
+ @function __unzip($list) {
15
+ @if __is-falsey($list) {
16
+ @return ();
17
+ }
18
+
19
+ $list: __to-list($list);
20
+
21
+ $index: 1;
22
+ $length: 0;
23
+
24
+ $_: __scope(('length': 0));
25
+ $scoped-iteratee: __bind('__unzip-iteratee');
26
+ $list: __list-filter($list, $scoped-iteratee);
27
+ $length: __this('length');
28
+ $_: __scope(false);
29
+
30
+ $result: ();
31
+
32
+ @while $index <= $length {
33
+ $result: append($result, __list-map($list, __base-property($index)));
34
+
35
+ $index: $index + 1;
36
+ }
37
+
38
+ @return $result;
39
+
40
+ // $index: 1;
41
+ // $length: if($list,
42
+ // if(length($list) > 0,
43
+ // __list-max(__list-map($list, '__get-length')),
44
+ // 0),
45
+ // 0);
46
+ // $result: ();
47
+
48
+ // @while $index <= $length {
49
+ // $result: append($result, __list-map($list, __base-property($index)));
50
+
51
+ // $index: $index + 1;
52
+ // }
53
+
54
+ // @return $result;
55
+ }
56
+
57
+
58
+ /// This method is like `_zip` except that it accepts a list of grouped
59
+ /// elements and creates a list regrouping the elements to their pre-`_zip`
60
+ /// configuration.
61
+ ///
62
+ ///
63
+ /// @access public
64
+ /// @group List
65
+ /// @param {List} $list The list of grouped elements to process.
66
+ /// @returns {List} Returns the new list of regrouped elements.
67
+ /// @example scss
68
+ ///
69
+ /// $zipped: _zip(('fred', 'barney'), (30, 40), (true, false));
70
+ /// // => (('fred', 30, true), ('barney', 40, false))
71
+ ///
72
+ /// $unzipped: _unzip($zipped);
73
+ /// // => (('fred', 'barney'), (30, 40), (true, false))
74
+
75
+ @function _unzip($args...) {
76
+ @return call('__unzip', $args...);
77
+ }
@@ -0,0 +1,54 @@
1
+ @function __base-values($map, $props) {
2
+ $index: 1;
3
+ $length: length($props);
4
+ $result: ();
5
+
6
+ @while ($index <= $length) {
7
+ $result: append($result, __get($map, nth($props, $index)));
8
+
9
+ $index: $index + 1;
10
+ }
11
+
12
+ @return $result;
13
+ }
14
+
15
+
16
+ @function __values($map) {
17
+ @return __base-values($map, __keys($map));
18
+ }
19
+
20
+
21
+ @function __values-in($map) {
22
+ @return __base-values($map, __keys-in($map));
23
+ }
24
+
25
+
26
+ /// Creates a list of the own enumerable property values of `$map`.
27
+ ///
28
+ ///
29
+ /// @access public
30
+ /// @group Map
31
+ /// @param {Map} $map The map to query.
32
+ /// @returns {List} Returns the list of property values.
33
+ /// @example scss
34
+ /// // todo
35
+
36
+ @function _values($args...) {
37
+ @return call('__values', $args...);
38
+ }
39
+
40
+
41
+ /// Creates a list of the own and inherited enumerable property values
42
+ /// of `$map`.
43
+ ///
44
+ ///
45
+ /// @access public
46
+ /// @group Map
47
+ /// @param {Map} $map The map to query.
48
+ /// @returns {List} Returns the list of property values.
49
+ /// @example scss
50
+ /// // todo
51
+
52
+ @function _values-in($args...) {
53
+ @return call('__values-in', $args...);
54
+ }
@@ -0,0 +1,28 @@
1
+ @function __where($collection, $source) {
2
+ @return __filter($collection, __matches($source));
3
+ }
4
+
5
+
6
+ /// Performs a deep comparison between each element in `$collection` and the
7
+ /// source map, returning a list of all elements that have equivalent
8
+ /// property values.
9
+ ///
10
+ ///
11
+ /// @access public
12
+ /// @group Collection
13
+ /// @param {List|Map|string} $collection The collection to search.
14
+ /// @param {Map} $source The map of property values to match.
15
+ /// @returns {List} Returns the new filtered list.
16
+ /// @example scss
17
+ /// $users: (
18
+ /// ( 'user': 'barney', 'age': 36, 'active': false, 'pets': ('hoppy',) ),
19
+ /// ( 'user': 'fred', 'age': 40, 'active': true, 'pets': ('baby puss', 'dino') )
20
+ /// );
21
+ /// $foo: _pluck(_where($users, ( 'age': 36, 'active': false )), 'user');
22
+ /// // => ('barney',)
23
+ /// $foo: _pluck(_where($users, ( 'pets': ('dino',) )), 'user');
24
+ /// // => ('fred',)
25
+
26
+ @function _where($args...) {
27
+ @return call('__where', $args...);
28
+ }
@@ -0,0 +1,26 @@
1
+ @function __without($list, $args...) {
2
+ $arguments: ();
3
+
4
+ @each $arg in $args {
5
+ $arguments: append($arguments, $arg);
6
+ }
7
+
8
+ @return __base-difference($list, $arguments);
9
+ }
10
+
11
+
12
+ /// Creates a list excluding all provided values.
13
+ ///
14
+ ///
15
+ /// @access public
16
+ /// @group List
17
+ /// @param {List} $list The list to filter.
18
+ /// @param {Any...} $values... The values to exclude.
19
+ /// @returns {List} Returns the new list of filtered values.
20
+ /// @example scss
21
+ /// $foo: _without((1, 2, 1, 3), 1, 2);
22
+ /// // => (3,)
23
+
24
+ @function _without($args...) {
25
+ @return call('__without', $args...);
26
+ }
@@ -0,0 +1,50 @@
1
+ @function __words($string, $args...) {
2
+ $string: __base-to-string($string);
3
+ $result: ();
4
+ $temp: '';
5
+ $lowercase-letters: 'abcdefghijklmnopqrstuvwxyz';
6
+ $uppercase-letters: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ';
7
+
8
+ @for $index from 1 through str-length($string) {
9
+ $letter: __char-at($string, $index);
10
+ $letter-prev: __char-at($string, $index - 1);
11
+ $letter-next: __char-at($string, $index + 1);
12
+
13
+ @if not (str-index($lowercase-letters, $letter))
14
+ and not (str-index($uppercase-letters, $letter-prev)
15
+ and str-index($uppercase-letters, $letter-next)) {
16
+ @if (str-length($temp) > 0) {
17
+ $result: append($result, $temp);
18
+ $temp: '';
19
+ }
20
+
21
+ @if (str-index($uppercase-letters, $letter) and $letter != ' ') {
22
+ $temp: $temp + $letter;
23
+ }
24
+ } @else {
25
+ $temp: $temp + $letter;
26
+ }
27
+ }
28
+
29
+ @if (str-length($temp) > 0) {
30
+ $result: append($result, $temp);
31
+ }
32
+
33
+ @return $result;
34
+ }
35
+
36
+
37
+ /// Splits `$string` into a list of its words.
38
+ ///
39
+ ///
40
+ /// @access public
41
+ /// @group String
42
+ /// @param {string} $string [''] - The string to inspect.
43
+ /// @returns {List} Returns the words of `$string`.
44
+ /// @example scss
45
+ /// $foo: _words('fred, barney, & pebbles');
46
+ /// // => ('fred', 'barney', 'pebbles')
47
+
48
+ @function _words($args...) {
49
+ @return call('__words', $args...);
50
+ }
@@ -0,0 +1,35 @@
1
+ @function __xor($arguments...) {
2
+ $index: 1;
3
+ $length: length($arguments);
4
+ $result: ();
5
+
6
+ @each $list in $arguments {
7
+ @if __is-list-like($list) {
8
+ $result: if($result,
9
+ join(
10
+ __base-difference($result, $list),
11
+ __base-difference($list, $result)),
12
+ $list);
13
+ }
14
+ }
15
+
16
+ @return if(__is-truthy($result), __base-uniq($result), ());
17
+ }
18
+
19
+
20
+ /// Creates a list that is the symmetric difference of the provided lists.
21
+ /// See [Wikipedia](https://en.wikipedia.org/wiki/Symmetric_difference) for
22
+ /// more details.
23
+ ///
24
+ ///
25
+ /// @access public
26
+ /// @group List
27
+ /// @param {List...} $lists The lists to inspect.
28
+ /// @returns {List} Returns the new list of values.
29
+ /// @example scss
30
+ /// $foo: _xor((1, 2), (4, 2));
31
+ /// // => (1, 4)
32
+
33
+ @function _xor($args...) {
34
+ @return call('__xor', $args...);
35
+ }
@@ -0,0 +1,80 @@
1
+ @function __zip($args...) {
2
+ @return __unzip($args);
3
+ }
4
+
5
+
6
+ // todo: see about reversed order
7
+ @function __zip-map($props, $values: ()) {
8
+ $index: 1;
9
+ $length: if($props, length($props), 0);
10
+ $result: ();
11
+
12
+ @if not __is-list-like($props) {
13
+ @return ();
14
+ }
15
+
16
+ @if $length > 0
17
+ and not $values
18
+ and not __is-list(nth($props, 1)) {
19
+ $values: ();
20
+ }
21
+
22
+ @while $index <= $length {
23
+ $key: nth($props, $index);
24
+
25
+ @if ($values and length($values) > 0) {
26
+ $result: __set($result, $key, nth($values, $index));
27
+ } @else if ($key) {
28
+ $result-key: nth($key, 1);
29
+ $result-value: if(length($key) > 1, nth($key, 2), null);
30
+ $result: __set($result, $result-key, $result-value);
31
+ }
32
+
33
+ $index: $index + 1;
34
+ }
35
+
36
+ @return $result;
37
+ }
38
+
39
+
40
+ /// Creates a list of grouped elements, the first of which contains the first
41
+ /// elements of the given lists, the second of which contains the second elements
42
+ /// of the given lists, and so on.
43
+ ///
44
+ ///
45
+ /// @access public
46
+ /// @group List
47
+ /// @param {List...} $lists... The lists to process.
48
+ /// @returns {List} Returns the new list of grouped elements.
49
+ /// @example scss
50
+ /// $foo: _zip(('fred', 'barney'), (30, 40), (true, false));
51
+ /// // => (('fred', 30, true), ('barney', 40, false))
52
+
53
+ @function _zip($args...) {
54
+ @return call('__zip', $args...);
55
+ }
56
+
57
+
58
+ /// Creates a map composed from lists of property names and values. Provide
59
+ /// either a single two dimensional list, e.g. `(($key1, $value1), ($key2, $value2))`
60
+ /// or two lists, one of property names and one of corresponding values.
61
+ ///
62
+ ///
63
+ /// @access public
64
+ /// @group List
65
+ /// @param {List} $props The property names.
66
+ /// @param {List} $values [()] The property values.
67
+ /// @returns {Map} Returns the new map.
68
+ /// @example scss
69
+ /// $foo: _zip-map(('fred', 'barney'), (30, 40));
70
+ /// // => ( 'fred': 30, 'barney': 40 )
71
+
72
+ @function _zip-map($args...) {
73
+ @return call('__zip-map', $args...);
74
+ }
75
+
76
+ /// @alias _zip-map
77
+
78
+ @function _object($args...) {
79
+ @return call('__zip-map', $args...);
80
+ }
@@ -0,0 +1,97 @@
1
+ @include __const('ASCII_PRINTABLE', (
2
+ 32: " ",
3
+ 33: "!",
4
+ 34: '"',
5
+ 35: "#",
6
+ 36: "$",
7
+ 37: "%",
8
+ 38: "&",
9
+ 39: "'",
10
+ 40: "(",
11
+ 41: ")",
12
+ 42: "*",
13
+ 43: "+",
14
+ 44: ",",
15
+ 45: "-",
16
+ 46: ".",
17
+ 47: "/",
18
+ 48: "0",
19
+ 49: "1",
20
+ 50: "2",
21
+ 51: "3",
22
+ 52: "4",
23
+ 53: "5",
24
+ 54: "6",
25
+ 55: "7",
26
+ 56: "8",
27
+ 57: "9",
28
+ 58: ":",
29
+ 59: ";",
30
+ 60: "<",
31
+ 61: "=",
32
+ 62: ">",
33
+ 63: "?",
34
+ 64: "@",
35
+ 65: "A",
36
+ 66: "B",
37
+ 67: "C",
38
+ 68: "D",
39
+ 69: "E",
40
+ 70: "F",
41
+ 71: "G",
42
+ 72: "H",
43
+ 73: "I",
44
+ 74: "J",
45
+ 75: "K",
46
+ 76: "L",
47
+ 77: "M",
48
+ 78: "N",
49
+ 79: "O",
50
+ 80: "P",
51
+ 81: "Q",
52
+ 82: "R",
53
+ 83: "S",
54
+ 84: "T",
55
+ 85: "U",
56
+ 86: "V",
57
+ 87: "W",
58
+ 88: "X",
59
+ 89: "Y",
60
+ 90: "Z",
61
+ 91: "[",
62
+ 92: "\\",
63
+ 93: "]",
64
+ 94: "^",
65
+ 95: "_",
66
+ 96: "`",
67
+ 97: "a",
68
+ 98: "b",
69
+ 99: "c",
70
+ 100: "d",
71
+ 101: "e",
72
+ 102: "f",
73
+ 103: "g",
74
+ 104: "h",
75
+ 105: "i",
76
+ 106: "j",
77
+ 107: "k",
78
+ 108: "l",
79
+ 109: "m",
80
+ 110: "n",
81
+ 111: "o",
82
+ 112: "p",
83
+ 113: "q",
84
+ 114: "r",
85
+ 115: "s",
86
+ 116: "t",
87
+ 117: "u",
88
+ 118: "v",
89
+ 119: "w",
90
+ 120: "x",
91
+ 121: "y",
92
+ 122: "z",
93
+ 123: "{",
94
+ 124: "|",
95
+ 125: "}",
96
+ 126: "~"
97
+ ));
@@ -0,0 +1 @@
1
+ @include __const('CONSTRUCTOR_KEYS', ('_type', '_constructor', '_extends', '_prototype'));
@@ -0,0 +1,26 @@
1
+ @include __const('html-escapes', (
2
+ '&': '&amp;',
3
+ '<': '&lt;',
4
+ '>': '&gt;',
5
+ '"': '&quot;',
6
+ "'": '&#39;',
7
+ '`': '&#96;'
8
+ ));
9
+
10
+ @include __const('html-unescapes', (
11
+ '&amp;': '&',
12
+ '&lt;': '<',
13
+ '&gt;': '>',
14
+ '&quot;': '"',
15
+ '&#39;': "'",
16
+ '&#96;': '`'
17
+ ));
18
+
19
+ @include __const('string-escapes', (
20
+ '\\': '\\',
21
+ "'": "'",
22
+ '\n': 'n',
23
+ '\r': 'r',
24
+ '\u2028': 'u2028',
25
+ '\u2029': 'u2029'
26
+ ));
@@ -0,0 +1,9 @@
1
+ @include __const('BIND_FLAG', 1);
2
+ @include __const('BIND_KEY_FLAG', 2);
3
+ @include __const('CURRY_BOUND_FLAG', 4);
4
+ @include __const('CURRY_FLAG', 8);
5
+ @include __const('CURRY_RIGHT_FLAG', 16);
6
+ @include __const('PARTIAL_FLAG', 32);
7
+ @include __const('PARTIAL_RIGHT_FLAG', 64);
8
+ @include __const('REARG_FLAG', 128);
9
+ @include __const('ARY_FLAG', 256);
@@ -0,0 +1,11 @@
1
+ $__const__: () !global;
2
+
3
+ @function __const($keys) {
4
+ @return __get($__const__, $keys);
5
+ }
6
+
7
+ @mixin __const($key, $value) {
8
+ @if not map-has-key($__const__, $key) {
9
+ $__const__: __set($__const__, $key, $value) !global;
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ @import 'global';
2
+ @import 'char';
3
+ @import 'constructor';
4
+ @import 'escapes';
5
+ @import 'flags';
6
+ @import 'native';
7
+ @import 'number';
8
+ @import 'trunc';
9
+ @import 'units';