sugarcss 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,44 @@
1
+ @function __chunk($list, $size: null, $guard: null) {
2
+ @if (if($guard, __is-iteratee-call($list, $size, $guard), ($size == null))) {
3
+ $size: 1;
4
+ } @else {
5
+ $size: max(if(__is-falsey($size), 1, $size), 1);
6
+ }
7
+
8
+ $index: 1;
9
+ $length: if($list, length($list), 0);
10
+ $result: ();
11
+
12
+ @while ($index <= $length) {
13
+ $result: append($result, __base-slice($list, $index - 1, $index + $size - 1));
14
+ $index: $index + $size;
15
+ }
16
+
17
+ @if (length($result) == 1) {
18
+ $result: ($result,);
19
+ }
20
+
21
+ @return $result;
22
+ }
23
+
24
+
25
+ /// Creates a list of elements split into groups the length of `$size`.
26
+ /// If `$collection` can't be split evenly, the final chunk will be the remaining
27
+ /// elements.
28
+ ///
29
+ ///
30
+ /// @access public
31
+ /// @group List
32
+ /// @param {List} $list The list to process.
33
+ /// @param {number} $size [1] - The length of each chunk.
34
+ /// @returns {List} Returns the new list containing chunks.
35
+ /// @example scss
36
+ /// $foo: _chunk(('a', 'b', 'c', 'd'), 2);
37
+ /// // => (('a', 'b'), ('c', 'd'))
38
+ ///
39
+ /// $foo: _chunk(('a', 'b', 'c', 'd'), 3);
40
+ /// // => (('a', 'b', 'c'), ('d',))
41
+
42
+ @function _chunk($args...) {
43
+ @return call('__chunk', $args...);
44
+ }
@@ -0,0 +1,32 @@
1
+ @function __compact($list) {
2
+ $result: ();
3
+
4
+ @if __is-falsey(length($list)) {
5
+ @return $result;
6
+ }
7
+
8
+ @each $value in $list {
9
+ @if not (__is-falsey($value)) {
10
+ $result: append($result, $value);
11
+ }
12
+ }
13
+
14
+ @return $result;
15
+ }
16
+
17
+
18
+ /// Creates a list with all falsey values removed. The values `false`, `null`,
19
+ /// `0`, and `""` are considered falsey.
20
+ ///
21
+ ///
22
+ /// @access public
23
+ /// @group List
24
+ /// @param {List} $list The list to compact.
25
+ /// @returns {List} Returns the new list of filtered values.
26
+ /// @example scss
27
+ /// $foo: _compact((0, 1, false, 2, '', 3));
28
+ /// // => (1, 2, 3)
29
+
30
+ @function _compact($args...) {
31
+ @return call('__compact', $args...);
32
+ }
@@ -0,0 +1,180 @@
1
+
2
+ @function __lt($value, $other, $args...) {
3
+ @return __base-compare-ascending($value, $other) < 0;
4
+ }
5
+
6
+
7
+ @function __lte($value, $other, $args...) {
8
+ @return __base-compare-ascending($value, $other) <= 0;
9
+ }
10
+
11
+
12
+ @function __gt($value, $other, $args...) {
13
+ @return __base-compare-ascending($value, $other) > 0;
14
+ }
15
+
16
+
17
+ @function __gte($value, $other, $args...) {
18
+ @return __base-compare-ascending($value, $other) >= 0;
19
+ }
20
+
21
+
22
+ ///
23
+ /// Checks if `$value` is less than `$other`.
24
+ ///
25
+ /// @access public
26
+ /// @group Lang
27
+ /// @param {number|string} $value The value to compare.
28
+ /// @param {number|string} $other The other value to compare.
29
+ /// @returns {bool} Returns `true` if `$value` is less than `$other`, else `false`.
30
+ /// @example scss
31
+ ///
32
+ /// $foo: _lt(1, 3);
33
+ /// // => true
34
+ ///
35
+ /// $foo: _lt(3, 1);
36
+ /// // => false
37
+ ///
38
+ /// $foo: _lt(3, 3);
39
+ /// // => false
40
+ ///
41
+ /// $foo: _lt('abc', 'def');
42
+ /// // => true
43
+ ///
44
+ /// $foo: _lt('def', 'abc');
45
+ /// // => false
46
+ /// ///
47
+ /// $foo: _lt('def', 'def');
48
+ /// // => false
49
+
50
+ @function _lt($args...) {
51
+ @return call('__lt', $args...);
52
+ }
53
+
54
+
55
+ /// @alias _lt
56
+
57
+ @function \<($args...) {
58
+ @return call('__lt', $args...);
59
+ }
60
+
61
+ ///
62
+ /// Checks if `$value` is less than or equal to `$other`.
63
+ ///
64
+ /// @access public
65
+ /// @group Lang
66
+ /// @param {number|string} $value The value to compare.
67
+ /// @param {number|string} $other The other value to compare.
68
+ /// @returns {bool} Returns `true` if `$value` is less than or
69
+ /// equal to `$other`, else `false`.
70
+ /// @example scss
71
+ ///
72
+ /// $foo: _lte(1, 3);
73
+ /// // => true
74
+ ///
75
+ /// $foo: _lte(3, 1);
76
+ /// // => false
77
+ ///
78
+ /// $foo: _lte(3, 3);
79
+ /// // => true
80
+ ///
81
+ /// $foo: _lte('abc', 'def');
82
+ /// // => true
83
+ ///
84
+ /// $foo: _lte('def', 'abc');
85
+ /// // => false
86
+ ///
87
+ /// $foo: _lte('def', 'def');
88
+ /// // => true
89
+
90
+ @function _lte($args...) {
91
+ @return call('__lte', $args...);
92
+ }
93
+
94
+
95
+ /// @alias _lte
96
+
97
+ @function ≤($args...) {
98
+ @return call('__lte', $args...);
99
+ }
100
+
101
+
102
+ ///
103
+ /// Checks if `$value` is greater than `$other`.
104
+ ///
105
+ /// @access public
106
+ /// @group Lang
107
+ /// @param {number|string} $value The value to compare.
108
+ /// @param {number|string} $other The other value to compare.
109
+ /// @returns {bool} Returns `true` if `$value` is greater than `$other`, else `false`.
110
+ /// @example scss
111
+ ///
112
+ /// $foo: _gt(1, 3);
113
+ /// // => false
114
+ ///
115
+ /// $foo: _gt(3, 1);
116
+ /// // => true
117
+ ///
118
+ /// $foo: _gt(3, 3);
119
+ /// // => false
120
+ ///
121
+ /// $foo: _gt('abc', 'def');
122
+ /// // => false
123
+ ///
124
+ /// $foo: _gt('def', 'abc');
125
+ /// // => true
126
+ ///
127
+ /// $foo: _gt('def', 'def');
128
+ /// // => false
129
+
130
+ @function _gt($args...) {
131
+ @return call('__gt', $args...);
132
+ }
133
+
134
+
135
+ /// @alias _gt
136
+
137
+ @function \>($args...) {
138
+ @return call('__gt', $args...);
139
+ }
140
+
141
+
142
+ ///
143
+ /// Checks if `$value` is greater than or equal to `$other`.
144
+ ///
145
+ /// @access public
146
+ /// @group Lang
147
+ /// @param {number|string} $value The value to compare.
148
+ /// @param {number|string} $other The other value to compare.
149
+ /// @returns {bool} Returns `true` if `$value` is greater than or
150
+ /// equal to `$other`, else `false`.
151
+ /// @example scss
152
+ ///
153
+ /// $foo: _gte(1, 3);
154
+ /// // => false
155
+ ///
156
+ /// $foo: _gte(3, 1);
157
+ /// // => true
158
+ ///
159
+ /// $foo: _gte(3, 3);
160
+ /// // => true
161
+ ///
162
+ /// $foo: _gte('abc', 'def');
163
+ /// // => false
164
+ ///
165
+ /// $foo: _gte('def', 'abc');
166
+ /// // => true
167
+ ///
168
+ /// $foo: _gte('def', 'def');
169
+ /// // => true
170
+
171
+ @function _gte($args...) {
172
+ @return call('__gte', $args...);
173
+ }
174
+
175
+
176
+ /// @alias _gte
177
+
178
+ @function ≥($args...) {
179
+ @return call('__gte', $args...);
180
+ }
@@ -0,0 +1,62 @@
1
+ @function __str-concat($source: '', $args...) {
2
+ @if __is-iteratee-call($args...) {
3
+ $args: nth($args, 1);
4
+ }
5
+
6
+ $source: __to-string($source);
7
+
8
+ @each $string in $args {
9
+ $source: $source + $string;
10
+ }
11
+
12
+ @return $source;
13
+ }
14
+
15
+
16
+ @function __concat($source, $args...) {
17
+ $separator: list-separator($source);
18
+
19
+ $source: __either($source, ($source,), '__is-list-like');
20
+
21
+ @each $list in $args {
22
+ $source: join($source, $list, $separator);
23
+ }
24
+
25
+ @return $source;
26
+ }
27
+
28
+ /// Returns a new list comprised of the `$source` list
29
+ /// joined with the list(s) and/or value(s)
30
+ /// provided as arguments.
31
+ ///
32
+ /// The separator of the returned list will be the same as the
33
+ /// separator of the `$source` list.
34
+ ///
35
+ /// @access public
36
+ /// @group List
37
+ /// @param {List} $source The initial list
38
+ /// @param {List...|*...} $args... Lists and/or values to concatenate into the source list.
39
+ /// @returns {List} Returns a new list of concatenated lists/values.
40
+ /// @example scss
41
+ /// $foo: _concat(1 2, 3 4);
42
+ /// // => (1 2 3 4)
43
+ ///
44
+ /// $foo: _concat(1 2, 3, 4);
45
+ /// // => (1 2 3 4)
46
+ @function _concat($args...) {
47
+ @return call('__concat', $args...);
48
+ }
49
+
50
+ /// Combines the text of two or more strings and returns a new string.
51
+ ///
52
+ /// @access public
53
+ /// @group String
54
+ /// @param {String} $source [''] - Source string
55
+ /// @param {String...|*...} $args... - Other strings to concatenate
56
+ /// @returns {String} Returns a new string of concatenated strings
57
+ /// @example scss
58
+ /// $foo: _concat('Hello', ' ', 'World');
59
+ /// // => 'Hello World'
60
+ @function _str-concat($args...) {
61
+ @return call('__str-concat', $args...);
62
+ }
@@ -0,0 +1,32 @@
1
+ @function __constant-function($args...) {
2
+ @return __this('value');
3
+ }
4
+
5
+
6
+ @function __constant($value: null) {
7
+ $_: __scope((
8
+ 'value': $value
9
+ ));
10
+ $constant-function: __bind('__constant-function');
11
+ $_: __scope(false);
12
+
13
+ @return $constant-function;
14
+ }
15
+
16
+
17
+ /// Creates a function that returns `$value`.
18
+ ///
19
+ ///
20
+ /// @access public
21
+ /// @group Utility
22
+ /// @param {*} value The value to return from the new function.
23
+ /// @returns {Function} Returns the new function.
24
+ /// @example scss
25
+ /// $map: ( 'user': 'fred' );
26
+ /// $getter: _constant($map);
27
+ ///
28
+ /// $foo: _exec($getter) === $map;
29
+ /// // => true
30
+ @function _constant($args...) {
31
+ @return call('__constant', $args...);
32
+ }
@@ -0,0 +1,51 @@
1
+ $__context__: () !global;
2
+
3
+ @mixin __context($context: (), $callback: '__identity') {
4
+ $parent-context: $__context__;
5
+
6
+ $__context__: $context !global;
7
+
8
+ @content;
9
+
10
+ $parent-context: __exec($callback, $parent-context, $__context__);
11
+
12
+ $__context__: $parent-context !global;
13
+ }
14
+
15
+
16
+ @function __context-get($keys: null, $args...) {
17
+ @if not $keys {
18
+ @return $__context__;
19
+ }
20
+
21
+ @return __get($__context__, $keys);
22
+ }
23
+
24
+
25
+ @function __context-set($keys, $value, $args...) {
26
+ $__context__: __set($__context__, $keys, $value) !global;
27
+
28
+ @return $__context__;
29
+ }
30
+
31
+
32
+ @mixin _context($args...) {
33
+ @include __context($args...) {
34
+ @content;
35
+ }
36
+ }
37
+
38
+
39
+ @mixin _context-set($args...) {
40
+ $_: __context-set($args...);
41
+ }
42
+
43
+
44
+ @function _context-get($args...) {
45
+ @return call('__context-get', $args...);
46
+ }
47
+
48
+
49
+ @function _context-set($args...) {
50
+ @return call('__context-set', $args...);
51
+ }
@@ -0,0 +1,51 @@
1
+ @function __count-by-iteratee($result, $value, $key, $args...) {
2
+ $result: if(
3
+ map-has-key($result, $key),
4
+ __set($result, $key, __get($result, $key) + 1),
5
+ __set($result, $key, 1));
6
+
7
+ @return $result;
8
+ }
9
+
10
+
11
+ @function __count-by($arguments...) {
12
+ $function: __create-aggregator('__count-by-iteratee');
13
+
14
+ @return __exec($function, $arguments...);
15
+ }
16
+
17
+
18
+ /// Creates a map composed of keys generated from the results of running
19
+ /// each element of `$collection` through `$iteratee`. The corresponding value
20
+ /// of each key is the number of times the key was returned by `$iteratee`.
21
+ /// The `$iteratee` is bound to `$this-arg` and invoked with three arguments;
22
+ /// (value, index|key, collection).
23
+ ///
24
+ /// If a property name is provided for `$predicate` the created `_property`
25
+ /// style callback returns the property value of the given element.
26
+ ///
27
+ /// If a value is also provided for `$this-arg` the created `_matches-property`
28
+ /// style callback returns `true` for elements that have a matching property
29
+ /// value, else `false`.
30
+ ///
31
+ /// If a map is provided for `$predicate` the created `_matches` style
32
+ /// callback returns `true` for elements that have the properties of the given
33
+ /// map, else `false`.
34
+ ///
35
+ ///
36
+ /// @access public
37
+ /// @group Collection
38
+ /// @param {List|Map|string} $collection The collection to iterate over.
39
+ /// @param {Function|Map|string} $iteratee [_identity] - The function invoked
40
+ /// per iteration.
41
+ /// @param {*} $this-arg [null] The `_this` binding of `$iteratee`.
42
+ /// @returns {Map} Returns the composed aggregate map.
43
+ /// @example scss
44
+ /// $foo: _count-by((4.3, 6.1, 6.4), 'floor');
45
+ /// // => ( 4: 1, 6: 2 )
46
+ ///
47
+ /// $foo: _count-by(('one', 'two', 'three'), 'str-length');
48
+ /// // => ( 3: 2, 5: 1 )
49
+ @function _count-by($args...) {
50
+ @return call('__count-by', $args...);
51
+ }
@@ -0,0 +1,78 @@
1
+ @function __list-copy($list, $other: ()) {
2
+ $index: 1;
3
+ $length: length($list);
4
+ $other-length: length($other);
5
+ $result: ();
6
+
7
+ @while ($index <= $length) {
8
+ $result: append($result, nth($list, $index));
9
+
10
+ $index: $index + 1;
11
+ }
12
+
13
+ @while ($other-length >= $index) {
14
+ $result: append($result, nth($other, $index));
15
+
16
+ $index: $index + 1;
17
+ }
18
+
19
+ @return $result;
20
+ }
21
+
22
+
23
+ @function __base-copy($source, $map, $props: null) {
24
+ @if not ($props) {
25
+ $props: $map;
26
+ $map: ();
27
+ }
28
+
29
+ $index: 1;
30
+ $length: length($props);
31
+
32
+ @while ($index <= $length) {
33
+ $key: nth($props, $index);
34
+ $map: __set($map, $key, __get($source, $key));
35
+
36
+ $index: $index + 1;
37
+ }
38
+
39
+ @return $map;
40
+ }
41
+
42
+
43
+ @function __base-create($constructor, $args...) {
44
+ @if not (__function-exists($constructor)) {
45
+ @return ();
46
+ }
47
+
48
+ @return __new($constructor, $args...);
49
+ }
50
+
51
+
52
+ @function __create($prototype, $properties: null, $guard: null) {
53
+ $result: __base-create($prototype);
54
+
55
+ @if $guard and __is-iteratee-call($prototype, $properties, $guard) {
56
+ $properties: null;
57
+ }
58
+
59
+ @return if($properties, __base-copy($properties, $result, __keys($properties)), $result);
60
+ }
61
+
62
+
63
+ /// Creates a map that inherits from the given `$prototype` map. If a
64
+ /// `$properties` map is provided its own enumerable properties are assigned
65
+ /// to the created map.
66
+ ///
67
+ ///
68
+ /// @access public
69
+ /// @group Map
70
+ /// @param {Map} $prototype - The map to inherit from.
71
+ /// @param {Map} $properties [null] - The properties to assign to the map.
72
+ /// @returns {Map} Returns the new map.
73
+ /// @example scss
74
+ /// // todo
75
+
76
+ @function _create($args...) {
77
+ @return call('__create', $args...);
78
+ }
@@ -0,0 +1,26 @@
1
+
2
+
3
+ @function __debug($value, $args...) {
4
+ @debug $value;
5
+
6
+ @return $value;
7
+ }
8
+
9
+
10
+ /// Debugs a `$value` using `@debug` and returns the same value.
11
+ ///
12
+ /// @access public
13
+ /// @group Utility
14
+ /// @param {*} $value The value to be debugged.
15
+ /// @returns {*} Returns the value after it is debugged.
16
+ /// @example scss
17
+ /// $list: 'one' 'two' 'three';
18
+ ///
19
+ /// $list: _map($list, _debug);
20
+ /// // DEBUG: one
21
+ /// // DEBUG: two
22
+ /// // DEBUG: three
23
+ /// // => 'one' 'two' 'three'
24
+ @function _debug($args...) {
25
+ @return call('__debug', $args...);
26
+ }
@@ -0,0 +1,46 @@
1
+
2
+
3
+ @mixin __declare($declarations: ()) {
4
+ @if not __is-map($declarations) {
5
+ @error 'Declarations for _declare must be a map.';
6
+ } @else {
7
+ @each $properties, $value in $declarations {
8
+ @each $property in $properties {
9
+ #{$property}: $value;
10
+ }
11
+ }
12
+ }
13
+
14
+ @content;
15
+ }
16
+
17
+
18
+ ///
19
+ /// Includes a declaration block for the current selector from a map.
20
+ ///
21
+ ///
22
+ /// @access public
23
+ /// @group Map
24
+ /// @param {Map} $declarations [()] The declaration map.
25
+ /// @output The declarations as CSS property-value pairs.
26
+ /// @example scss
27
+ /// .foo {
28
+ /// $foo-declarations: ('height': 50px, 'padding': 1rem 5rem);
29
+ ///
30
+ /// @include _declare($foo-declarations);
31
+ /// }
32
+ ///
33
+ /// // Output CSS:
34
+ /// .foo {
35
+ /// height: 50px;
36
+ /// padding: 1rem 5rem;
37
+ /// }
38
+
39
+ @mixin _declare($args...) {
40
+ @include __declare($args...);
41
+ }
42
+
43
+ @mixin _declarations($args...) {
44
+ @include __declare($args...);
45
+ }
46
+
@@ -0,0 +1,41 @@
1
+ @function __assign-defaults($map-value, $source-value, $args...) {
2
+ @return if(
3
+ __is-undefined($map-value) or __is-null($map-value),
4
+ $source-value,
5
+ $map-value);
6
+ }
7
+
8
+ @function __defaults($map: null, $args...) {
9
+ @if $map == null {
10
+ @return $map;
11
+ }
12
+
13
+ $arguments: ($map,);
14
+
15
+ @each $arg in $args {
16
+ $arguments: append($arguments, $arg);
17
+ }
18
+
19
+ $arguments: append($arguments, '__assign-defaults');
20
+
21
+ @return __assign($arguments...);
22
+ }
23
+
24
+
25
+ /// Assigns own enumerable properties of source map(s) to the destination
26
+ /// map for all undefined destination properties. Once a
27
+ /// property is set, additional defaults of the same property are ignored.
28
+ ///
29
+ ///
30
+ /// @access public
31
+ /// @group Map
32
+ /// @param {Map} $map The destination map.
33
+ /// @param {Map...} $source... The source maps.
34
+ /// @returns {Map} Returns `$map` with defaults.
35
+ /// @example scss
36
+ /// $foo: _defaults(( 'user': 'barney' ), ( 'age': 36 ), ( 'user': 'fred' ));
37
+ /// // => ( 'user': 'barney', 'age': 36 )
38
+
39
+ @function _defaults($args...) {
40
+ @return call('__defaults', $args...);
41
+ }