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,43 @@
1
+ @function __ary-function($args...) {
2
+ $function: __this('function');
3
+ $n: __this('n');
4
+ $args: __take($args, $n);
5
+
6
+ @return __exec($function, $args...);
7
+ }
8
+
9
+
10
+ @function __ary($function, $n: 1, $guard: null) {
11
+ @if not __is-function($function) {
12
+ @return '__noop';
13
+ }
14
+
15
+ $n: if($n >= 0, $n, 0);
16
+ $_: __scope((
17
+ 'function': $function,
18
+ 'n': $n
19
+ ));
20
+ $ary-function: __bind('__ary-function');
21
+ $_: __scope(false);
22
+
23
+ @return $ary-function;
24
+ }
25
+
26
+
27
+ /// Creates a function that accepts up to `$n` arguments ignoring any
28
+ /// additional arguments.
29
+ ///
30
+ ///
31
+ /// @access public
32
+ /// @group Function
33
+ /// @param {Function} $func The function to cap arguments for.
34
+ /// @param {number} $n [1] - The arity cap.
35
+ /// @returns {Function} Returns the new function.
36
+ /// @example scss
37
+ ///
38
+ /// $foo: _map(('6', '8', '10'), _ary(_parse-int, 1));
39
+ /// // => (6, 8, 10)
40
+
41
+ @function _ary($args...) {
42
+ @return call('__ary', $args...);
43
+ }
@@ -0,0 +1,113 @@
1
+ @function __base-assign($map, $source, $customizer: false) {
2
+ @if not __is-map-like($map) {
3
+ @return $map;
4
+ }
5
+
6
+ $props: __keys($source);
7
+
8
+ @if not $customizer {
9
+ @return __base-copy($source, $map, $props);
10
+ }
11
+
12
+ @each $key in $props {
13
+ $value: if(map-has-key($map, $key), __get($map, $key), $__undefined__);
14
+ $result: __exec($customizer, $value, __get($source, $key), $key, $map, $source);
15
+
16
+ @if ($result != $value)
17
+ or ($value == null and not map-has-key($map, $key)) {
18
+ $map: __set($map, $key, $result);
19
+ }
20
+ }
21
+
22
+ @return $map;
23
+ }
24
+
25
+
26
+ @function __create-assigner-function($arguments...) {
27
+ $assigner: __this('assigner');
28
+ $length: length($arguments);
29
+ $map: if($length >= 1, nth($arguments, 1), null);
30
+ $customizer: null;
31
+
32
+ @if ($length < 2 or $map == null) {
33
+ @return $map;
34
+ }
35
+
36
+ @if ($length > 3 and __is-iteratee-call(nth($arguments, 2), nth($arguments, 3), nth($arguments, 4))) {
37
+ $length: 2;
38
+ }
39
+
40
+ @if $length > 3 and __function-exists(nth($arguments, $length - 1)) {
41
+ $length: $length - 1;
42
+ $customizer: __bind-callback(nth($arguments, $length), nth($arguments, $length - 1), 5);
43
+ } @else if $length > 2 and __function-exists(nth($arguments, $length)) {
44
+ $length: $length - 1;
45
+ $customizer: nth($arguments, $length + 1);
46
+ }
47
+
48
+ @for $index from 1 through $length {
49
+ $source: nth($arguments, $index);
50
+
51
+ @if ($source) {
52
+ $map: __exec($assigner, $map, $source, $customizer);
53
+ }
54
+ }
55
+
56
+ @return $map;
57
+ }
58
+
59
+
60
+ @function __create-assigner($assigner) {
61
+ $_: __scope((
62
+ 'assigner': $assigner
63
+ ));
64
+
65
+ $scoped-function: __bind('__create-assigner-function');
66
+
67
+ $_: __scope(false);
68
+
69
+ @return $scoped-function;
70
+ }
71
+
72
+
73
+ @function __assign($arguments...) {
74
+ $assigner: __create-assigner('__base-assign');
75
+
76
+ @return __exec($assigner, $arguments...);
77
+ }
78
+
79
+
80
+ /// Assigns own enumerable properties of source map(s) to the destination
81
+ /// map. Subsequent sources overwrite property assignments of previous sources.
82
+ /// If `$customizer` is provided it is invoked to produce the assigned values.
83
+ /// The `$customizer` is bound to `$this-arg` and invoked with five arguments;
84
+ /// ($map-value, $map-value, $key, $map, $source).
85
+ ///
86
+ ///
87
+ /// @access public
88
+ /// @group Map
89
+ /// @param {Map} $map - The destination map.
90
+ /// @param {Map...} $sources... - The source maps.
91
+ /// @param {Function} $customizer [false] - The function to customize assigning values.
92
+ /// @param {*} $this-arg [null] - The `_this` binding of `$customizer`.
93
+ /// @returns {Map} Returns `map`.
94
+ ///
95
+ /// @example scss
96
+ /// _assign(( 'user': 'barney' ), ( 'age': 40 ), ( 'user': 'fred' ));
97
+ /// // => ( 'user': 'fred', 'age': 40 )
98
+ ///
99
+ /// // using a customizer callback
100
+ /// $defaults: _partial-right(_assign, _either);
101
+ /// _exec($defaults, (( 'user': 'barney' ), ( 'age': 36 ), ( 'user': 'fred' )));
102
+ /// // => ( 'user': 'barney', 'age': 36 )
103
+
104
+ @function _assign($args...) {
105
+ @return call('__assign', $args...);
106
+ }
107
+
108
+
109
+ /// @alias _assign
110
+
111
+ @function _extend($args...) {
112
+ @return call('__assign', $args...);
113
+ }
@@ -0,0 +1,50 @@
1
+ @function __base-at($collection, $props) {
2
+ $length: length($collection);
3
+ $is-list: type-of($collection) == 'list';
4
+ $result: ();
5
+
6
+ @each $key in $props {
7
+ @if ($is-list) {
8
+ $key: __parse-float($key);
9
+ $result: append($result, if(__is-index($key, $length), nth($collection, $key), null));
10
+ } @else {
11
+ $result: append($result, __get($collection, $key));
12
+ }
13
+ }
14
+
15
+ @return $result;
16
+ }
17
+
18
+
19
+ @function __at($arguments...) {
20
+ $collection: nth($arguments, 1);
21
+ $length: if($collection, length($collection), 0);
22
+
23
+ @if __is-length($length) {
24
+ $collection: __to-iterable($collection);
25
+ }
26
+
27
+ @return __base-at($collection, __base-flatten($arguments, false, false, 2));
28
+ }
29
+
30
+
31
+ /// Creates a list of elements corresponding to the given keys, or indexes,
32
+ /// of `$collection`. Keys may be specified as individual arguments or as lists
33
+ /// of keys.
34
+ ///
35
+ /// @access public
36
+ /// @group Collection
37
+ /// @param {List|Map|string} $collection The collection to iterate over.
38
+ /// @param {Number...|String...|List} $props... The property names
39
+ /// or indexes of elements to pick, specified individually or in lists.
40
+ /// @returns {List} Returns the new list of picked elements.
41
+ /// @example scss
42
+ /// _at(('a', 'b', 'c'), (1, 3));
43
+ /// // => ('a', 'c')
44
+ ///
45
+ /// _at(('fred', 'barney', 'pebbles'), 1, 3);
46
+ /// // => ('fred', 'pebbles')
47
+
48
+ @function _at($args...) {
49
+ @return call('__at', $args...);
50
+ }
@@ -0,0 +1,64 @@
1
+ @function __before-callback($arguments...) {
2
+ $n: __this('n');
3
+ $function: __this('function');
4
+ $result: null;
5
+ $n: $n - 1;
6
+ $_: __this(n, $n);
7
+
8
+ @if ($n > 0) {
9
+ $result: __call($function, __this(), $arguments...);
10
+ } @else {
11
+ $_: __this('function', null);
12
+ }
13
+
14
+ @return $result;
15
+ }
16
+
17
+
18
+ @function __before($n, $function) {
19
+ @if not (__function-exists($function)) {
20
+ @if (__function-exists($n)) {
21
+ $temp: $n;
22
+ $n: $function;
23
+ $function: $temp;
24
+ } @else {
25
+ @error 'FUNC_ERROR_TEXT';
26
+ }
27
+ }
28
+
29
+ $_: __scope((
30
+ 'function': $function,
31
+ 'n': $n
32
+ ));
33
+ $after-callback: __bind('__before-callback');
34
+ $_: __scope(false);
35
+
36
+ @return $after-callback;
37
+ }
38
+
39
+
40
+ /// Creates a function that invokes `$function`, with the `_this` binding and arguments
41
+ /// of the created function, while it is called less than `$n` times. Subsequent
42
+ /// calls to the created function return the result of the last `$function` invocation.
43
+ ///
44
+ ///
45
+ /// @access public
46
+ /// @group Function
47
+ /// @param {number} $n The number of calls at which `$function` is no longer invoked.
48
+ /// @param {Function} $func The function to restrict.
49
+ /// @returns {Function} Returns the new restricted function.
50
+ /// @example scss
51
+ /// @function limit-mixin() { @return true; }
52
+ ///
53
+ /// $limit-mixin: _before(5, 'limit-mixin');
54
+ ///
55
+ /// @mixin my-mixin() {
56
+ /// @if _exec($limit-mixin) {
57
+ /// // ... include mixin
58
+ /// } @else {
59
+ /// @extend %placeholder; // extend after mixin used 4 times
60
+ /// }
61
+ /// }
62
+ @function _before($args...) {
63
+ @return call('__before', $args...);
64
+ }
@@ -0,0 +1,46 @@
1
+ @function __bind($function, $this-arg: $__current-scope__, $arguments...) {
2
+ @if __is-falsey($this-arg) {
3
+ $this-arg: '';
4
+ }
5
+
6
+ @if __is-map($this-arg) {
7
+ $scope: __scope($this-arg);
8
+ $_: __scope(false);
9
+
10
+ $this-arg: __get($scope, '_id');
11
+ }
12
+
13
+ $function: '#{$function}#{$this-arg}';
14
+
15
+ @if length($arguments) > 0 {
16
+ @return __partial($function, $arguments...);
17
+ }
18
+
19
+ @return $function;
20
+ }
21
+
22
+ ///
23
+ /// Creates a function that invokes `$func` with the `_this` binding of `$this-arg`
24
+ /// and prepends any additional `_bind` arguments to those provided to the
25
+ /// bound function.
26
+ ///
27
+ /// @access public
28
+ /// @group Function
29
+ /// @param {Function} $func The function to bind.
30
+ /// @param {*} $this-arg [null] - The `_this` binding of `$func`.
31
+ /// @param {Any...} $args... The arguments to be partially applied.
32
+ /// @returns {Function} Returns the new bound function.
33
+ /// @example scss
34
+ /// @function greet($greeting, $punctuation) {
35
+ /// @return $greeting + ' ' + _this('user') + $punctuation;
36
+ /// }
37
+ ///
38
+ /// $map: ('user': 'fred');
39
+ ///
40
+ /// $bound: _bind('greet', $map, 'hi');
41
+ ///
42
+ /// $result: _exec($bound, '!');
43
+ /// // => 'hi fred!'
44
+ @function _bind($args...) {
45
+ @return call('__bind', $args...);
46
+ }
File without changes
@@ -0,0 +1,167 @@
1
+ @function __get-callback($function: __identity, $this-arg: null, $arg-count: null) {
2
+ $result: if($arg-count, __exec('__base-callback', $function, $this-arg, $arg-count), '__base-callback');
3
+
4
+ @return $result;
5
+ }
6
+
7
+
8
+ @function __bind-callback-1($value) {
9
+ $function: __this('function');
10
+ $this-arg: __this('this-arg');
11
+
12
+ @return __call($function, $this-arg, $value);
13
+ }
14
+
15
+
16
+ @function __bind-callback-3($value, $index, $collection) {
17
+ $function: __this('function');
18
+ $this-arg: __this('this-arg');
19
+
20
+ @return __call($function, $this-arg, $value, $index, $collection);
21
+ }
22
+
23
+
24
+ @function __bind-callback-4($accumulator, $value, $index, $collection) {
25
+ $function: __this('function');
26
+ $this-arg: __this('this-arg');
27
+
28
+ @return __call($function, $this-arg, $accumulator, $value, $index, $collection);
29
+ }
30
+
31
+
32
+ @function __bind-callback-5($value, $other, $key, $map, $source) {
33
+ $function: __this('function');
34
+ $this-arg: __this('this-arg');
35
+
36
+ @return __call($function, $this-arg, $value, $other, $key, $map, $source);
37
+ }
38
+
39
+
40
+ @function __bind-callback-any($arguments...) {
41
+ $function: __this('function');
42
+ $this-arg: __this('this-arg');
43
+
44
+ @return __call($function, $this-arg, $arguments...);
45
+ }
46
+
47
+
48
+ @function __bind-callback($function, $this-arg: null, $arg-count: null) {
49
+ @if (not __function-exists($function)) {
50
+ @return '__identity';
51
+ }
52
+
53
+ @if ($this-arg == null) {
54
+ @return $function;
55
+ }
56
+
57
+ $_: __scope((
58
+ 'function': $function,
59
+ 'this-arg': $this-arg
60
+ ));
61
+
62
+ $arg-count-case: (
63
+ 1: '__bind-callback-1',
64
+ 3: '__bind-callback-3',
65
+ 4: '__bind-callback-4',
66
+ 5: '__bind-callback-5'
67
+ );
68
+
69
+ @if ($arg-count > 5) {
70
+ @return '__bind-callback-any';
71
+ }
72
+
73
+ $result: __bind(__get($arg-count-case, $arg-count), $this-arg);
74
+ $_: __scope(false);
75
+
76
+ @return $result;
77
+ }
78
+
79
+
80
+ @function __base-callback-shifted($value, $args...) {
81
+ $function: __this('function');
82
+ $this-arg: __this('this-arg');
83
+ $shifted-arguments: __this('shifted-arguments');
84
+
85
+ $arguments: set-nth($shifted-arguments, 1, $value);
86
+
87
+ @return __call($function, $this-arg, $arguments...);
88
+ }
89
+
90
+
91
+ @function __base-callback($function: __identity, $this-arg: $__undefined__, $arg-count: null) {
92
+ $type: if(__function-exists($function), 'function', type-of($function));
93
+
94
+ @if ($function == null) {
95
+ @return '__identity';
96
+ }
97
+
98
+ @if $type == 'list' {
99
+ $shifted-arguments: set-nth($function, 1, null);
100
+ $function: nth($function, 1);
101
+ $_: __scope((
102
+ 'function': $function,
103
+ 'this-arg': $this-arg,
104
+ 'shifted-arguments': $shifted-arguments
105
+ ));
106
+ $base-callback-shifted: __bind('__base-callback-shifted');
107
+ $_: __scope(false);
108
+
109
+ @return $base-callback-shifted;
110
+ }
111
+
112
+ @if __is-native($function) {
113
+ @return __ary($function, 1);
114
+ }
115
+
116
+ @if $type == 'function' {
117
+ @return if(not __is-undefined($this-arg) and __is-function($function),
118
+ __bind-callback($function, $this-arg, $arg-count),
119
+ $function);
120
+ }
121
+
122
+ @return if($type == 'map',
123
+ __base-matches($function, __is-falsey($arg-count)),
124
+ __base-property($function));
125
+ }
126
+
127
+
128
+ @function __callback($function: __identity, $this-arg: null, $guard: null) {
129
+ @if ($guard and __is-iteratee-call($function, $this-arg, $guard)) {
130
+ $this-arg: null;
131
+ }
132
+
133
+ @return __base-callback($function, $this-arg);
134
+ }
135
+
136
+
137
+ /// Creates a function that invokes `$function` with the `_this` binding of `$this-arg`
138
+ /// and arguments of the created function.
139
+ ///
140
+ /// If `$function` is a property name the
141
+ /// created callback returns the property value for a given element.
142
+ ///
143
+ /// If `$function`
144
+ /// is a map the created callback returns `true` for elements that contain
145
+ /// the equivalent map properties, otherwise it returns `false`.
146
+ ///
147
+ /// If `$function` is a list the created callback returns the result of
148
+ /// the function (first item of the list) right-partially applied with the
149
+ /// rest of the list items, called with the value as the first argument (see example).
150
+ ///
151
+ /// @access public
152
+ /// @group Utility
153
+ /// @param {*} $func [_identity] - The value to convert to a callback.
154
+ /// @param {*} $this-arg [null] - The `_this` binding of `$function`.
155
+ /// @returns {Function} Returns the callback.
156
+ /// @example scss
157
+ /// $fully-lighten: _callback(lighten 100%);
158
+ /// $lightened-color: _exec($fully-lighten, black);
159
+ /// // => white
160
+
161
+ @function _callback($args...) {
162
+ @return call('__callback', $args...);
163
+ }
164
+
165
+ @function _iteratee($args...) {
166
+ @return call('__callback', $args...);
167
+ }
@@ -0,0 +1,179 @@
1
+ @function __camel-case-compounder($result, $word, $index) {
2
+ $word: to-lower-case($word);
3
+
4
+ @return if($index > 1,
5
+ $result + to-upper-case(__char-at($word, 1)) + str-slice($word, 2),
6
+ $word);
7
+ }
8
+
9
+
10
+ @function __camel-case($arguments...) {
11
+ $compounder: __create-compounder('__camel-case-compounder');
12
+
13
+ @return __exec($compounder, $arguments...);
14
+ }
15
+
16
+
17
+ @function __capitalize($string) {
18
+ $string: __base-to-string($string);
19
+ $char: str-slice($string, 1, 1);
20
+ $char: to-upper-case($char);
21
+ $rest: str-slice($string, 2);
22
+ $result: $char + $rest;
23
+
24
+ @return if(str-length($string) > 0,
25
+ $result,
26
+ false);
27
+ }
28
+
29
+
30
+ @function __kebab-case-compounder($result, $word, $index: 0) {
31
+ $pre: if($index > 1, '-', '');
32
+ $word: to-lower-case($word);
33
+ $result: $result + $pre + $word;
34
+
35
+ @return $result;
36
+ }
37
+
38
+
39
+ @function __kebab-case($arguments...) {
40
+ $compounder: __create-compounder('__kebab-case-compounder');
41
+
42
+ @return __exec($compounder, $arguments...);
43
+ }
44
+
45
+
46
+ @function __snake-case-compounder($result, $word, $index) {
47
+ $pre: if($index > 1, '_', '');
48
+ $word: to-lower-case($word);
49
+ $result: $result + $pre + $word;
50
+
51
+ @return $result;
52
+ }
53
+
54
+
55
+ @function __snake-case($arguments...) {
56
+ $compounder: __create-compounder('__snake-case-compounder');
57
+
58
+ @return __exec($compounder, $arguments...);
59
+ }
60
+
61
+
62
+ @function __start-case-compounder($result, $word, $index) {
63
+ $pre: if($index > 1, ' ', '');
64
+ $char: __char-at($word, 1);
65
+ $char: to-upper-case($char);
66
+ $rest: str-slice($word, 2);
67
+ $result: $result + $pre + $char + $rest;
68
+
69
+ @return $result;
70
+ }
71
+
72
+
73
+ @function __start-case($arguments...) {
74
+ $compounder: __create-compounder('__start-case-compounder');
75
+
76
+ @return __exec($compounder, $arguments...);
77
+ }
78
+
79
+
80
+ /// Converts `$string` to camel case.
81
+ /// See [Wikipedia](https://en.wikipedia.org/wiki/CamelCase) for more details.
82
+ ///
83
+ ///
84
+ /// @access public
85
+ /// @group String
86
+ /// @param {string} $string [''] - The string to convert.
87
+ /// @returns {string} Returns the camel cased string.
88
+ /// @example scss
89
+ /// $foo: _camel-case('Foo Bar');
90
+ /// // => 'fooBar'
91
+ /// $foo: _camel-case('--foo-bar');
92
+ /// // => 'fooBar'
93
+ /// $foo: _camel-case('__foo_bar__');
94
+ /// // => 'fooBar'
95
+
96
+ @function _camel-case($args...) {
97
+ @return call('__camel-case', $args...);
98
+ }
99
+
100
+
101
+ /// Capitalizes the first character of `$string`.
102
+ ///
103
+ ///
104
+ /// @access public
105
+ /// @group String
106
+ /// @param {string} $string [''] - The string to capitalize.
107
+ /// @returns {string} Returns the capitalized string.
108
+ /// @example scss
109
+ /// $foo: _capitalize('fred');
110
+ /// // => 'Fred'
111
+
112
+ @function _capitalize($args...) {
113
+ @return call('__capitalize', $args...);
114
+ }
115
+
116
+
117
+ /// Converts `$string` to kebab case.
118
+ /// See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) for
119
+ /// more details.
120
+ ///
121
+ ///
122
+ /// @access public
123
+ /// @group String
124
+ /// @param {string} $string [''] - The string to convert.
125
+ /// @returns {string} Returns the kebab cased string.
126
+ /// @example scss
127
+ /// $foo: _kebab-case('Foo Bar');
128
+ /// // => 'foo-bar'
129
+ /// $foo: _kebab-case('fooBar');
130
+ /// // => 'foo-bar'
131
+ /// $foo: _kebab-case('__foo_bar__');
132
+ /// // => 'foo-bar'
133
+
134
+ @function _kebab-case($args...) {
135
+ @return call('__kebab-case', $args...);
136
+ }
137
+
138
+
139
+ /// Converts `$string` to snake case.
140
+ /// See [Wikipedia](https://en.wikipedia.org/wiki/Snake_case) for more details.
141
+ ///
142
+ ///
143
+ /// @access public
144
+ /// @group String
145
+ /// @param {string} $string [''] - The string to convert.
146
+ /// @returns {string} Returns the snake cased string.
147
+ /// @example scss
148
+ /// $foo: _snake-case('Foo Bar');
149
+ /// // => 'foo_bar'
150
+ /// $foo: _snake-case('fooBar');
151
+ /// // => 'foo_bar'
152
+ /// $foo: _snake-case('--foo-bar');
153
+ /// // => 'foo_bar'
154
+
155
+ @function _snake-case($args...) {
156
+ @return call('__snake-case', $args...);
157
+ }
158
+
159
+
160
+ /// Converts `$string` to start case.
161
+ /// See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage)
162
+ /// for more details.
163
+ ///
164
+ ///
165
+ /// @access public
166
+ /// @group String
167
+ /// @param {string} $string [''] - The string to convert.
168
+ /// @returns {string} Returns the start cased string.
169
+ /// @example scss
170
+ /// $foo: _start-case('--foo-bar');
171
+ /// // => 'Foo Bar'
172
+ /// $foo: _start-case('fooBar');
173
+ /// // => 'Foo Bar'
174
+ /// $foo: _start-case('__foo_bar__');
175
+ /// // => 'Foo Bar'
176
+
177
+ @function _start-case($args...) {
178
+ @return call('__start-case', $args...);
179
+ }