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,80 @@
1
+ @include __const('NATIVE_FUNCTIONS', (
2
+ 'rgb', // $red, $green, $blue
3
+ 'rgba', // $red, $green, $blue, $alpha
4
+ 'red', // $color
5
+ 'green', // $color
6
+ 'blue', // $color
7
+ 'mix', // $color1, $color2, [$weight]
8
+ 'hsl', // $hue, $saturation, $lightness
9
+ 'hsla', // $hue, $saturation, $lightness, $alpha
10
+ 'hue', // $color
11
+ 'saturation', // $color
12
+ 'lightness', // $color
13
+ 'adjust-hue', // $color, $degrees
14
+ 'lighten', // $color, $amount
15
+ 'darken', // $color, $amount
16
+ 'saturate', // $color, $amount
17
+ 'desaturate', // $color, $amount
18
+ 'grayscale', // $color
19
+ 'complement', // $color
20
+ 'invert', // $color
21
+ 'alpha', // $color / opacity($color)
22
+ 'rgba', // $color, $alpha
23
+ 'opacify', // $color, $amount / fade-in($color, $amount)
24
+ 'transparentize', // $color, $amount / fade-out($color, $amount)
25
+ 'adjust-color', // $color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha]
26
+ 'scale-color', // $color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha]
27
+ 'change-color', // $color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha]
28
+ 'ie-hex-str', // $color
29
+ 'unquote', // $string
30
+ 'quote', // $string
31
+ 'str-length', // $string
32
+ 'str-insert', // $string, $insert, $index
33
+ 'str-index', // $string, $substring
34
+ 'str-slice', // $string, $start-at, [$end-at]
35
+ 'to-upper-case', // $string
36
+ 'to-lower-case', // $string
37
+ 'percentage', // $number
38
+ 'round', // $number
39
+ 'ceil', // $number
40
+ 'floor', // $number
41
+ 'abs', // $number
42
+ 'min', // $numbers…
43
+ 'max', // $numbers…
44
+ 'random', // [$limit]
45
+ 'length', // $list
46
+ 'nth', // $list, $n
47
+ 'set-nth', // $list, $n, $value
48
+ 'join', // $list1, $list2, [$separator]
49
+ 'append', // $list1, $val, [$separator]
50
+ 'zip', // $lists…
51
+ 'index', // $list, $value
52
+ 'list-separator', // #list
53
+ 'map-get', // $map, $key
54
+ 'map-merge', // $map1, $map2
55
+ 'map-remove', // $map, $keys…
56
+ 'map-keys', // $map
57
+ 'map-values', // $map
58
+ 'map-has-key', // $map, $key
59
+ 'keywords', // $args
60
+ 'selector-nest', // $selectors…
61
+ 'selector-append', // $selectors…
62
+ 'selector-extend', // $selector, $extendee, $extender
63
+ 'selector-replace', // $selector, $original, $replacement
64
+ 'selector-unify', // $selector1, $selector2
65
+ 'is-superselector', // $super, $sub
66
+ 'simple-selectors', // $selector
67
+ 'selector-parse', // $selector
68
+ 'feature-exists', // $feature
69
+ 'variable-exists', // $name
70
+ 'global-variable-exists', // $name
71
+ 'function-exists', // $name
72
+ 'mixin-exists', // $name
73
+ 'inspect', // $value
74
+ 'type-of', // $value
75
+ 'unit', // $number
76
+ 'unitless', // $number
77
+ 'comparable', // $number1, $number2
78
+ 'call', // $name, $args…
79
+ 'if', // $condition, $if-true, $if-false
80
+ ));
@@ -0,0 +1,26 @@
1
+ @include __const('POSITIVE_INFINITY', 999999);
2
+ @include __const('NEGATIVE_INFINITY', -999999);
3
+ // @include __const('MAX_SAFE_INTEGER', (pow(2, 53) - 1));
4
+ @include __const('HALF_MAX_LIST_LENGTH', 999999);
5
+ @include __const('MAX_LIST_LENGTH', 999999);
6
+ @include __const('UNITS', (
7
+ 'vmax': 1vmax,
8
+ 'vmin': 1vmin,
9
+ 'rem': 1rem,
10
+ 'deg': 1deg,
11
+ 'rad': 1rad,
12
+ 'vh': 1vh,
13
+ 'vw': 1vw,
14
+ 'ex': 1ex,
15
+ 'pc': 1pc,
16
+ 'pt': 1pt,
17
+ 'em': 1em,
18
+ 'in': 1in,
19
+ 'ch': 1ch,
20
+ 'mm': 1mm,
21
+ 'cm': 1cm,
22
+ 'px': 1px,
23
+ 'ms': 1ms,
24
+ 's': 1s,
25
+ '%': 1%
26
+ ));
@@ -0,0 +1,2 @@
1
+ @include __const('DEFAULT_TRUNC_LENGTH', 30);
2
+ @include __const('DEFAULT_TRUNC_OMISSION', '...');
@@ -0,0 +1,10 @@
1
+
2
+ @include __const('TIME_UNITS', 'ms' 's');
3
+
4
+ @include __const('UNIT_GROUPS', (
5
+ 'SIZE': 'px' 'pt' 'pc' 'mm' 'in' 'cm',
6
+ 'ANGLE': 'deg' 'grad' 'rad' 'turn',
7
+ 'TIME': 's' 'ms',
8
+ 'FREQUENCY': 'Hz' 'kHz',
9
+ 'RESOLUTION': 'dpi' 'dpcm' 'dppx'
10
+ ));
@@ -0,0 +1,47 @@
1
+ @function __create-aggregator-function-iteratee($value, $key, $collection) {
2
+ $result: __this('result');
3
+ $setter: __this('setter');
4
+ $iteratee: __this('iteratee');
5
+ $result: __exec($setter, $result, $value, __exec($iteratee, $value, $key, $collection), $collection);
6
+ $_: __this('result', $result);
7
+
8
+ @return true;
9
+ }
10
+
11
+
12
+ @function __create-aggregator-function($collection, $iteratee: '__identity', $this-arg: null) {
13
+ $setter: __this('setter');
14
+ $initializer: __this('initializer');
15
+ $iteratee: __get-callback($iteratee, $this-arg, 3);
16
+ $_: __this('iteratee', $iteratee);
17
+ $result: if($initializer, __call($initializer), ());
18
+
19
+ @if (__is-list($collection)) {
20
+ $index: 1;
21
+ $length: length($collection);
22
+
23
+ @while ($index <= $length) {
24
+ $value: nth($collection, $index);
25
+ $result: __exec($setter, $result, $value, __exec($iteratee, $value, $index, $collection), $collection);
26
+ $index: $index + 1;
27
+ }
28
+ } @else {
29
+ $_: __this('result', $result);
30
+ $_: __base-each($collection, '__create-aggregator-function-iteratee');
31
+ $result: __this('result');
32
+ }
33
+
34
+ @return $result;
35
+ }
36
+
37
+
38
+ @function __create-aggregator($setter, $initializer: null) {
39
+ $_: __scope((
40
+ 'setter': $setter,
41
+ 'initializer': $initializer
42
+ ));
43
+ $function: __bind('__create-aggregator-function');
44
+ $_: __scope(false);
45
+
46
+ @return $function;
47
+ }
@@ -0,0 +1,77 @@
1
+ @function __function-exists($function, $args...) {
2
+ @if type-of($function) != 'string' {
3
+ @return false;
4
+ }
5
+
6
+ @if index(('e', 'pi'), $function) {
7
+ @return false;
8
+ }
9
+
10
+ @return if(function-exists($function),
11
+ true,
12
+ function-exists(__function-name($function))
13
+ );
14
+ }
15
+
16
+
17
+ @function __function-scope($function) {
18
+ @if type-of($function) != 'string' {
19
+ @return null;
20
+ }
21
+
22
+ $scope-index: str-index($function, '@');
23
+ $scope-id: false;
24
+
25
+ @if $scope-index {
26
+ $scope-id: str-slice($function, $scope-index);
27
+ }
28
+
29
+ @return $scope-id;
30
+ }
31
+
32
+
33
+ @function __function-name($function) {
34
+ @if type-of($function) != 'string' {
35
+ @return null;
36
+ }
37
+
38
+ $scope-index: str-index($function, '@');
39
+
40
+ @return if($scope-index, str-slice($function, 1, $scope-index - 1), $function);
41
+ }
42
+
43
+
44
+ @function __call($method, $this-arg: $__current-scope__, $args...) {
45
+ $function-name: __function-name($method);
46
+ $scope-id: __function-scope($method);
47
+ $previous-scope: $__current-scope__;
48
+ $scope-id: if($scope-id, $scope-id, $this-arg);
49
+
50
+ @if $scope-id {
51
+ $__current-scope__: $scope-id !global;
52
+ }
53
+
54
+ $method-name: __this($function-name);
55
+
56
+ @if $method-name != null and __function-exists(__this($function-name)) {
57
+ $function-name: __this($function-name);
58
+ } @else if not ($function-name and __function-exists($function-name)) {
59
+ $__current-scope__: $previous-scope !global;
60
+
61
+ @error 'Function #{$function-name} does not exist.';
62
+ @return null;
63
+ }
64
+
65
+ $result: call($function-name, $args...);
66
+ $__current-scope__: $previous-scope !global;
67
+
68
+ @return $result;
69
+ }
70
+
71
+
72
+ @function _call($args...) {
73
+ @return call(__call, $args...);
74
+ }
75
+
76
+
77
+
@@ -0,0 +1,37 @@
1
+
2
+
3
+ /// Allows pseudo "chaining" of `$value` by sequentially invoking function calls
4
+ /// as arguments on `$value`.
5
+ ///
6
+ /// Each argument after `$value` is a `$function-call` which can be:
7
+ /// - A single function name
8
+ /// - A list, containing the function name followed by the arguments to apply
9
+ /// to the function after the `$value` has been applied as the first argument.
10
+ ///
11
+ ///
12
+ /// @access public
13
+ /// @group Utility
14
+ /// @param {*} $value The initial value.
15
+ /// @param {Function...|List...} $function-calls... The function calls to apply to value.
16
+ /// @returns {*} Returns new value with "chained" function calls applied.
17
+ /// @example scss
18
+ /// $list: ('a' 'b' 'c', 'd' 'e' 'f', 'g' 'h' 'i');
19
+ ///
20
+ /// $foo: _($list
21
+ /// _map _join, // _map($list, _join);
22
+ /// _reduce _str-concat, // _reduce($list, _str-concat);
23
+ /// _concat 'jkl', // _concat($list, 'jkl');
24
+ /// _join ' -- '); // _join($list, ' -- ');
25
+ /// // => 'abcdefghi -- jkl';
26
+
27
+ @function _($value, $function-calls...) {
28
+ $result: $value;
29
+
30
+ @each $function-call in $function-calls {
31
+ $function: nth($function-call, 1);
32
+ $args: set-nth($function-call, 1, $result);
33
+ $result: __exec($function, $args...);
34
+ }
35
+
36
+ @return $result;
37
+ }
@@ -0,0 +1,115 @@
1
+ @function __is-space($char-code) {
2
+ @return $char-code == ' ';
3
+ }
4
+
5
+
6
+ @function __chars-index($string, $chars, $direction) {
7
+ $index: 1;
8
+ $length: str-length($string);
9
+ $direction-map: ('right': -1, 'left': 1);
10
+ $increment: map-get($direction-map, $direction);
11
+
12
+ @while str-index($chars, __char-at($string, $index))
13
+ and $index <= $length {
14
+ $index: $index + $increment;
15
+ }
16
+
17
+ @return $index;
18
+ }
19
+
20
+
21
+ @function __chars-left-index($string, $chars) {
22
+ @return __chars-index($string, $chars, $direction: left);
23
+ }
24
+
25
+
26
+ @function __chars-right-index($string, $chars) {
27
+ @return __chars-index($string, $chars, $direction: right);
28
+ }
29
+
30
+
31
+ @function __get-char-code($char, $args...) {
32
+ $chars: __const('ASCII_PRINTABLE');
33
+ $char: __to-string($char);
34
+
35
+ @if not $char or $char == '' {
36
+ @return null;
37
+ }
38
+
39
+ @each $char-code, $char-value in $chars {
40
+ @if $char == $char-value {
41
+ @return $char-code;
42
+ }
43
+ }
44
+
45
+ @return null;
46
+ }
47
+
48
+
49
+ @function __char-at-callback($string, $args...) {
50
+ @return __get-char-code(str-slice($string, 1, 1));
51
+ }
52
+
53
+
54
+ @function __char-at($string, $index: 1) {
55
+ @return str-slice($string, $index, $index);
56
+ }
57
+
58
+
59
+ @function __char-code-at($string, $index: 1) {
60
+ @return __get-char-code(__char-at($string, $index));
61
+ }
62
+
63
+
64
+ /// Gets the character at `$index` of a string.
65
+ ///
66
+ /// @access public
67
+ /// @group String
68
+ /// @param {String} $string - Source string.
69
+ /// @param {Number} $index [1] - Character index in string.
70
+ /// @returns {number} Returns character at string index, or `null` if index is not in string.
71
+ /// @example scss
72
+ /// $foo: _char-at('coffee', 4);
73
+ /// // => 'f'
74
+
75
+ @function _char-at($args...) {
76
+ @return call('__char-at', $args...);
77
+ }
78
+
79
+
80
+ /// Gets the ASCII char code of a character at `$index` of a string.
81
+ ///
82
+ /// @access public
83
+ /// @group String
84
+ /// @param {String} $string - Source string.
85
+ /// @param {number} $index [1] - Character index in string.
86
+ /// @returns {number} Returns char code of character at given string index.
87
+ /// @example scss
88
+ /// $foo: _char-code-at('beach', 3);
89
+ /// // => 97
90
+
91
+ @function _char-code-at($args...) {
92
+ @return call('__char-code-at', $args...);
93
+ }
94
+
95
+
96
+ /// Gets the ASCII char code of a given character.
97
+ ///
98
+ /// @access public
99
+ /// @group String
100
+ /// @param {String} $char - Source character.
101
+ /// @returns {number} Returns char code of given character.
102
+ /// @example scss
103
+ /// $foo: _get-char-code('a');
104
+ /// // => 97
105
+
106
+ @function _get-char-code($args...) {
107
+ @return call('__get-char-code', $args...);
108
+ }
109
+
110
+
111
+ /// @alias _get-char-code
112
+
113
+ @function _char-code($args...) {
114
+ @return call('__get-char-code', $args...);
115
+ }
@@ -0,0 +1,90 @@
1
+ @function __to-comparable($value, $customizer: null, $guard: null) {
2
+ @if not (__function-exists($customizer)) {
3
+ $customizer: if(__is-string($value), '__get-char-code', '__identity');
4
+ }
5
+
6
+ $value: __exec($customizer, $value);
7
+
8
+ @return $value;
9
+ }
10
+
11
+
12
+ @function __to-iterable($value) {
13
+ @if ($value == null) {
14
+ @return ();
15
+ }
16
+
17
+ @if (__is-string($value)) {
18
+ @return __to-map(__string-split($value, ''));
19
+ }
20
+
21
+ @if not (__is-length(length($value))) {
22
+ @return __values($value);
23
+ }
24
+
25
+ @return if(__is-map($value), $value, __to-map($value));
26
+ }
27
+
28
+
29
+ @function __to-map($value) {
30
+ @if (__is-string($value)) {
31
+ $index: 1;
32
+ $length: str-length($value);
33
+ $result: ();
34
+
35
+ @while ($index <= $length) {
36
+ $result: __set($result, $index, __char-at($value, $index));
37
+ $index: $index + 1;
38
+ }
39
+
40
+ @return $result;
41
+ } @else if (__is-list-like($value)) {
42
+ $index: 1;
43
+ $length: length($value);
44
+ $result: ();
45
+
46
+ @while ($index <= $length) {
47
+ $result: __set($result, $index, nth($value, $index));
48
+ $index: $index + 1;
49
+ }
50
+
51
+ @return $result;
52
+ } @else if (__is-map($value)) {
53
+ @return $value;
54
+ }
55
+
56
+ @return ();
57
+ }
58
+
59
+
60
+ /// Converts `$value` to a map.
61
+ ///
62
+ /// If the value is a list, the map keys represent the list indexes and the
63
+ /// values represent the corresponding list values.
64
+ ///
65
+ /// If the value is a string, the string is first coerced to a list, with
66
+ /// with each index representing the index of each character in the string.
67
+ ///
68
+ /// If the value is not list-like, an empty map is returned.
69
+ ///
70
+ /// @access public
71
+ /// @group Lang
72
+ /// @param {*} $value The value to convert.
73
+ /// @returns {Map} Returns the converted map.
74
+ /// @example scss
75
+ /// $list: 100, 200, 300;
76
+ /// $string: 'abc';
77
+ /// $number: 3;
78
+ ///
79
+ /// $foo: _to-map($list);
80
+ /// // => (1: 100, 2: 200, 3: 300);
81
+ ///
82
+ /// $foo: _to-map($string)
83
+ /// // => (1: 'a', 2: 'b', 3: 'c')
84
+ ///
85
+ /// $foo: _to-map($number)
86
+ /// // => ()
87
+
88
+ @function _to-map($args...) {
89
+ @return call('__to-map', $args...);
90
+ }
@@ -0,0 +1,25 @@
1
+ @function __create-compounder-function($string) {
2
+ $callback: __this('callback');
3
+ $index: 1;
4
+ $list: __words($string);
5
+ $length: length($list);
6
+ $result: '';
7
+
8
+ @while ($index <= $length) {
9
+ $result: __exec($callback, $result, nth($list, $index), $index);
10
+ $index: $index + 1;
11
+ }
12
+
13
+ @return $result;
14
+ }
15
+
16
+
17
+ @function __create-compounder($callback) {
18
+ $_: __scope((
19
+ 'callback': $callback
20
+ ));
21
+ $scoped-function: __bind('__create-compounder-function');
22
+ $_: __scope(false);
23
+
24
+ @return $scoped-function;
25
+ }
@@ -0,0 +1,8 @@
1
+ @import 'aggregator';
2
+ @import 'call';
3
+ @import 'chain';
4
+ @import 'char';
5
+ @import 'coercion';
6
+ @import 'compounder';
7
+ @import 'number';
8
+ @import 'scope';
@@ -0,0 +1,165 @@
1
+
2
+
3
+ @function __math-pow($number, $exp) {
4
+ @if (round($exp) != $exp) {
5
+ @return __math-exp($exp * __math-ln($number));
6
+ }
7
+
8
+ // Traditional method for integers
9
+ $value: 1;
10
+
11
+ @if $exp > 0 {
12
+ @for $i from 1 through $exp {
13
+ $value: $value * $number;
14
+ }
15
+ }
16
+ @else if $exp < 0 {
17
+ @for $i from 1 through -$exp {
18
+ $value: $value / $number;
19
+ }
20
+ }
21
+
22
+ @return $value;
23
+ }
24
+
25
+
26
+ @function __math-factorial($value) {
27
+ @if $value == 0 {
28
+ @return 1;
29
+ }
30
+
31
+ $result: 1;
32
+
33
+ @for $index from 1 through $value {
34
+ $result: $result * $index;
35
+ }
36
+
37
+ @return $result;
38
+ }
39
+
40
+
41
+ @function __math-summation($iteratee, $input, $initial: 0, $limit: 100) {
42
+ $sum: 0;
43
+
44
+ @for $index from $initial to $limit {
45
+ $sum: $sum + call($iteratee, $input, $index);
46
+ }
47
+
48
+ @return $sum;
49
+ }
50
+
51
+
52
+ @function __math-exp-maclaurin($x, $n) {
53
+ $result: __math-pow($x, $n) / __math-factorial($n);
54
+ @return $result;
55
+ }
56
+
57
+
58
+ @function __math-exp($value) {
59
+ $result: __math-summation(__math-exp-maclaurin, $value, 0, 100);
60
+ @return $result;
61
+ }
62
+
63
+
64
+ @function __math-ln-maclaurin($x, $n) {
65
+ $result: (__math-pow(-1, $n + 1) / $n) * (__math-pow($x - 1, $n));
66
+ @return $result;
67
+ }
68
+
69
+
70
+ @function __math-ln($value) {
71
+ $ten-exp: 1;
72
+ $ln-ten: 2.30258509;
73
+
74
+ @while ($value > __math-pow(10, $ten-exp)) {
75
+ $ten-exp: $ten-exp + 1;
76
+ }
77
+
78
+ $value: $value / __math-pow(10, $ten-exp);
79
+
80
+ $result: __math-summation(__math-ln-maclaurin, $value, 1, 100);
81
+
82
+ @return $result + $ten-exp * $ln-ten;
83
+ }
84
+
85
+
86
+ @function __number-to-fixed($value, $digits: null) {
87
+ @if $digits == null {
88
+ @return round($value);
89
+ }
90
+
91
+ @return round($value * __math-pow(10, $digits)) / __math-pow(10, $digits);
92
+ }
93
+
94
+
95
+ @function __unit($value, $args...) {
96
+ $units: __const('UNITS');
97
+
98
+ @if __is-number($value) {
99
+ @return unit($value);
100
+ } @else if __is-string($value) {
101
+ @each $string-unit, $number-unit in $units {
102
+ @if __ends-with($value, $string-unit) {
103
+ @return $number-unit;
104
+ }
105
+ }
106
+ }
107
+
108
+ @return 1;
109
+ }
110
+
111
+ @function __unit-group($value, $args...) {
112
+ @return __find-key(__const('UNIT_GROUPS'), __includes $value);
113
+ }
114
+
115
+
116
+ @function __parse-float($string, $radix: 10) {
117
+ @if type-of($string) != 'string' {
118
+ @return $string;
119
+ }
120
+
121
+ @if __is-falsey($string) {
122
+ @return 0;
123
+ }
124
+
125
+ $string: __trim($string);
126
+ $result: 0;
127
+ $exponent: 0;
128
+ $decimal: false;
129
+ $multiplier: if(__starts-with($string, '-'), -1, 1);
130
+
131
+ $char-min: __get-char-code(0);
132
+ $char-max: $char-min + 9;
133
+ $char-decimal: __get-char-code('.');
134
+
135
+ @each $char-code in __map($string, '__get-char-code') {
136
+ @if $char-code >= $char-min and $char-code <= $char-max {
137
+ $result: ($radix * $result) + ($char-code - $char-min);
138
+
139
+ @if $decimal {
140
+ $exponent: $exponent + 1;
141
+ }
142
+ } @else if $char-code == $char-decimal {
143
+ $decimal: true;
144
+ }
145
+ }
146
+
147
+ $unit: __unit($string);
148
+
149
+ @return $multiplier * $result / __math-pow($radix, $exponent) * $unit;
150
+ }
151
+
152
+
153
+ @function _parse-float($args...) {
154
+ @return call('__parse-float', $args...);
155
+ }
156
+
157
+
158
+ @function _to-number($args...) {
159
+ @return call('__parse-float', $args...);
160
+ }
161
+
162
+
163
+ @function _pow($args...) {
164
+ @return call('__math-pow', $args...);
165
+ }