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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 220bcd022e2669fd6fa2320cbe981ecde8c2ca0b
4
+ data.tar.gz: 90bf37b0cb2ec6ccc7ee0113f05f14ff849da8a1
5
+ SHA512:
6
+ metadata.gz: 270ae90502032d0fe2322e11b5d65a37dc9cad4b89cbcfa98e3c0e1ef87f90ffd9f6c1048ee55904f3be377a21c506017b1167aa17f5c3ed110d77aef95dbcbb
7
+ data.tar.gz: 108deebf4c8bccbeb1583dff2e470d9b1e3e8e054dc045c4f13d9ca42c601c7ee3c67331c2ec7d2736fed0c15d402e4e8e1076c207ec1041603bb8e3116f4def
data/lib/sugarcss.rb ADDED
@@ -0,0 +1,30 @@
1
+ # All gems that are required for this extension to work should go here.
2
+ # These are the requires you would normally put in your config.rb file
3
+ # By default, you should always included Compass. Do not include your
4
+ # extension.
5
+ require 'compass'
6
+
7
+ # This tells Compass what your Compass extension is called, and where to find
8
+ # its files
9
+ # Replace 'extension' with the name of your extension. Spaces allowed.
10
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
11
+ Compass::Frameworks.register('sugarcss', :path => extension_path)
12
+
13
+ # Version and date of version for your Compass extension.
14
+ # Replace Extension with the name of your extension
15
+ # Letters, numbers, and underscores only
16
+ # Version is a number. If a version contains alphas, it will be created as
17
+ # a prerelease version
18
+ # Date is in the form of YYYY-MM-DD
19
+ module Extension
20
+ VERSION = "1.0.0"
21
+ DATE = "2015-11-19"
22
+ end
23
+
24
+ # This is where any custom SassScript should be placed. The functions will be
25
+ # available on require of your extension without the need for users to import
26
+ # any partials. Uncomment below.
27
+
28
+ # module Sass::Script::Functions
29
+ #
30
+ # end
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Imports :
3
+ */
4
+ @import 'sugar/sugar';
@@ -0,0 +1,101 @@
1
+ //
2
+ // BEM specific
3
+ //
4
+
5
+ //
6
+ // Block
7
+ //
8
+ @mixin s-Bem(
9
+ $bem
10
+ ) {
11
+ $bem : _sugar-parse-properties($bem, (
12
+ name : string,
13
+ extend : true
14
+ ));
15
+ $name : map-get($bem, name);
16
+ $extend : map-get($bem, extend);
17
+
18
+ @at-root {
19
+ .#{$name} {
20
+ @if $extend {
21
+ @each $ext in $extend {
22
+ @extend .#{$ext} !optional;
23
+ }
24
+ }
25
+ @content;
26
+ }
27
+ }
28
+ }
29
+
30
+ //
31
+ // Block element
32
+ //
33
+ @mixin s-bEm(
34
+ $bem
35
+ ) {
36
+ $bem : _sugar-parse-properties($bem, (
37
+ name : string,
38
+ extend : true,
39
+ root : true
40
+ ), (
41
+ name : n,
42
+ extend : e,
43
+ root : r
44
+ ));
45
+ $name : map-get($bem, name);
46
+ $extend : map-get($bem, extend);
47
+ $root : map-get-or($bem, root, false);
48
+
49
+ $separator : sugar('settings.BEM.element-separator');
50
+ $this : #{&};
51
+ @if $root {
52
+ $this : '.';
53
+ $separator : '';
54
+ }
55
+ @at-root {
56
+ #{$this}#{$separator}#{$name} {
57
+ @if $extend {
58
+ @each $ext in $extend {
59
+ @extend #{$this}#{$separator}#{$ext} !optional;
60
+ }
61
+ }
62
+ @content;
63
+ }
64
+ }
65
+ }
66
+
67
+ //
68
+ // Block modifier
69
+ //
70
+ @mixin s-beM(
71
+ $bem
72
+ ) {
73
+ $bem : _sugar-parse-properties($bem, (
74
+ name : string,
75
+ extend : true,
76
+ standelone : true
77
+ ), (
78
+ name : n,
79
+ extend : e,
80
+ standelone : s
81
+ ));
82
+ $name : map-get($bem, name);
83
+ $extend : map-get($bem, extend);
84
+ $standelone : map-get-or($bem, standelone, sugar('settings.BEM.standelone'));
85
+
86
+ $separator : sugar('settings.BEM.modifier-separator');
87
+ $this : #{&};
88
+ @at-root {
89
+ #{$this}#{$separator}#{$name} {
90
+ @if $extend {
91
+ @each $ext in $extend {
92
+ @extend #{$this}#{$separator}#{$ext} !optional;
93
+ }
94
+ }
95
+ @if $standelone {
96
+ @extend #{$this} !optional;
97
+ }
98
+ @content;
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,101 @@
1
+ //
2
+ // Animations specific
3
+ //
4
+
5
+ //
6
+ // Animate mixin
7
+ //
8
+ @mixin s-animation(
9
+ $animations...
10
+ ) {
11
+ // loop on animations
12
+ $anims : ();
13
+ $current_delay : 0;
14
+ $current_duration : 0;
15
+ $previous_duration : 0;
16
+ @each $animation in $animations {
17
+ $animation : _sugar-parse-properties($animation, (
18
+ name : string,
19
+ duration : number,
20
+ delay : number,
21
+ ease : string,
22
+ iteration : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 infinite initial inherit,
23
+ direction : normal reverse alternate alternate-reverse initial inherit,
24
+ fill-mode : none forwards backwards both initial inherit,
25
+ parallel : true
26
+ ), (
27
+ name : n,
28
+ duration : du,
29
+ delay : de,
30
+ ease : e,
31
+ iteration : i iteration-count,
32
+ direction : di,
33
+ fill-mode : fm,
34
+ parallel : p
35
+ ));
36
+ $name : map-get-or($animation, name);
37
+ $duration : map-get-or($animation, duration, 1s);
38
+ $delay : map-get-or($animation, delay, 0s);
39
+ $ease : map-get-or($animation, ease, ease-in-out);
40
+ $iteration : map-get-or($animation, iteration, 1);
41
+ $direction : map-get-or($animation, direction, normal);
42
+ $fill-mode : map-get-or($animation, fill-mode, forwards);
43
+ $parallel : map-get-or($animation, parallel, false);
44
+
45
+ // update delay
46
+ $current_delay : $current_delay + $delay;
47
+
48
+ // extend the animation if exist
49
+ @extend %#{$name} !optional;
50
+
51
+ // create the animations list
52
+ $anims : append($anims, $name $duration $current_delay $ease $iteration $direction $fill-mode, comma);
53
+
54
+ // manage if animation is parallel with next one
55
+ @if type-of($iteration) == number {
56
+ @if $parallel == false {
57
+ $current_delay : $current_delay + $duration * $iteration;
58
+ }
59
+ }
60
+ }
61
+
62
+ // set animation
63
+ animation: $anims;
64
+ }
65
+
66
+ //
67
+ // Transition
68
+ //
69
+ @mixin s-transition(
70
+ $transition : null
71
+ ) {
72
+ @if not $transition {
73
+ $transition : ();
74
+ }
75
+ &,
76
+ &:before,
77
+ &:after {
78
+ // check if a transition exist in settings
79
+ $transitions : sugar('settings.transition.transitions');
80
+ @if type-of($transition) == string and map-get($transitions, $transition) {
81
+ $t : map-get($transitions, $transition);
82
+ @if type-of($t) == map {
83
+ transition : map-get($t, transition);
84
+ } @else {
85
+ transition : $transition;
86
+ }
87
+ } @else {
88
+ $tran : _sugar-parse-properties($transition, (
89
+ property : string,
90
+ duration : number,
91
+ ease : string,
92
+ delay : number
93
+ ));
94
+ $property : map-get-or($tran, property, sugar('settings.transition.property'));
95
+ $duration : map-get-or($tran, duration, sugar('settings.transition.duration'));
96
+ $delay : map-get-or($tran, delay, sugar('settings.transition.delay'));
97
+ $ease : map-get-or($tran, ease, sugar('settings.transition.ease'));
98
+ transition: $property $duration $ease $delay;
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,56 @@
1
+ /* # CLEARFIX
2
+ More infos to come..
3
+
4
+ https://github.com/stubbornella/oocss/blob/master/oocss/src/components/utils/_clearfix-me.scss
5
+
6
+ clearfix used project wide to clear floats and create a new formatting context
7
+
8
+ usage @include clearfix-me(<empty|overflow|facebook|micro|stubborn>)
9
+
10
+ $clearfix-method sets default method
11
+ */
12
+
13
+ // set default clearfix method to overflow
14
+ $clearfix-method: overflow !default;
15
+ // can be one of: overflow,facebook,micro,stubborn
16
+
17
+ // create stub classes for each of the four clearfix methods
18
+
19
+ %clearfix-overflow {
20
+ overflow: hidden;
21
+ }
22
+
23
+ %clearfix-facebook {
24
+ display: table-cell;
25
+ vertical-align: top;
26
+ width: 10000px !important;
27
+ }
28
+
29
+ %clearfix-float {
30
+ float: left;
31
+ width: 100%;
32
+ }
33
+
34
+ %clearfix-micro {
35
+ zoom: 1;
36
+ &:before,
37
+ &:after {
38
+ content: " ";
39
+ display: table;
40
+ }
41
+ &:after {
42
+ clear: both;
43
+ }
44
+ }
45
+
46
+ // extends so the output will be smaller
47
+
48
+ @mixin s-clearfix($method: $clearfix-method) {
49
+ @if $method != overflow and $method != facebook and $method != micro and $method != float {
50
+ @warn "The clearfix method #{$method} is unkown";
51
+ @include s-clearfix(micro);
52
+ }
53
+ @else {
54
+ @extend %clearfix-#{$method};
55
+ }
56
+ }
@@ -0,0 +1,126 @@
1
+ //
2
+ // Colors management
3
+ //
4
+
5
+ //
6
+ // Color function
7
+ //
8
+ @function s-color(
9
+ $name,
10
+ $actions : null
11
+ ) {
12
+ // grab the colors
13
+ $colors : sugar('settings.colors');
14
+ $color : map-get($colors, $name);
15
+ $modifiers : null;
16
+
17
+ // check that we have the color
18
+ @if $color == null {
19
+ @if s-is($name, color) {
20
+ $color : $name;
21
+ } @else {
22
+ @error('The color "#{$name}" does not exist...');
23
+ }
24
+ }
25
+
26
+ // check if is a map
27
+ @if type-of($color) == map {
28
+ $modifiers : map-get($color, modifiers);
29
+ $color : map-get($color, color);
30
+ }
31
+
32
+ // check if action is a string to check if is a modifier
33
+ @if type-of($actions) == string and $modifiers and map-get($modifiers, $actions) {
34
+ $mod : map-get($modifiers, $actions);
35
+ @if type-of($mod) == color {
36
+ $color : $mod;
37
+ $actions : null;
38
+ } @else {
39
+ $actions : $mod;
40
+ }
41
+ }
42
+
43
+ // check action to do
44
+ @if $actions {
45
+ // parse action
46
+ $actions-map : _sugar-parse-properties($actions, (
47
+ hue : number,
48
+ lighten : number,
49
+ darken : number,
50
+ grayscale : true,
51
+ complement : true,
52
+ invert : true,
53
+ saturate : number,
54
+ desaturate : number,
55
+ opacity : number,
56
+ mix : color
57
+ ), (
58
+ hue : h,
59
+ lighten : li,
60
+ darken : da,
61
+ grayscale : gr,
62
+ complement : comp,
63
+ invert : i,
64
+ saturate : sa,
65
+ desaturate : desa,
66
+ opacity : o,
67
+ mix : m
68
+ ));
69
+ // loop on each action to process to keep order
70
+ @each $action, $value in $actions-map {
71
+ // hue
72
+ @if $action == hue and type-of($value) == number {
73
+ $color : adjust-hue($color, $value);
74
+ }
75
+ // lighten
76
+ @if $action == lighten and type-of($value) == number {
77
+ $color : lighten($color, $value);
78
+ }
79
+ // darken
80
+ @if $action == darken and type-of($value) == number {
81
+ $color : darken($color, $value);
82
+ }
83
+ // saturate
84
+ @if $action == saturate and type-of($value) == number {
85
+ $color : saturate($color, $value);
86
+ }
87
+ // desaturate
88
+ @if $action == desaturate and type-of($value) == number {
89
+ $color : desaturate($color, $value);
90
+ }
91
+ // grayscale
92
+ @if $action == grayscale and $value == true {
93
+ $color : grayscale($color);
94
+ }
95
+ // complement
96
+ @if $action == complement and $value == true {
97
+ $color : complement($color);
98
+ }
99
+ // invert
100
+ @if $action == invert and $value == true {
101
+ $color : invert($color);
102
+ }
103
+ // opacity
104
+ @if $action == opacity and type-of($value) == number {
105
+
106
+ $transparentize : 1 - s-strip-units($value);
107
+ @if unit($value) == '%' {
108
+ $transparentize : (100 - s-strip-units($value)) / 100;
109
+ }
110
+ $color : transparentize($color, $transparentize);
111
+ }
112
+ // mix
113
+ @if $action == mix and type-of($value) == color {
114
+ $color : mix($color, $value);
115
+ }
116
+ }
117
+ }
118
+ // return the color
119
+ @return $color;
120
+ }
121
+ @function s-c(
122
+ $name,
123
+ $actions : null
124
+ ) {
125
+ @return s-color($name, $actions);
126
+ }
@@ -0,0 +1,65 @@
1
+ //
2
+ // Effects specific
3
+ //
4
+
5
+ //
6
+ // Shade
7
+ //
8
+ @mixin s-long-shadow(
9
+ $shade
10
+ ) {
11
+ $shade : _sugar-parse-properties($shade, (
12
+ color : color,
13
+ type : text box,
14
+ angle : degree,
15
+ depth : number,
16
+ fade : true,
17
+ blur : number,
18
+ blur-ratio : number
19
+ ), (
20
+ color : c,
21
+ type : t,
22
+ angle : a,
23
+ depth : d,
24
+ fade : f,
25
+ blur : b,
26
+ blur-ratio : br
27
+ ));
28
+
29
+ $shade : _sugar-handle-nested(shade, $shade);
30
+
31
+ $color : map-get($shade, color);
32
+ $type : map-get-or($shade, type, text);
33
+ $angle : map-get-or($shade, angle, 135);
34
+ $depth : map-get-or($shade, depth, 20);
35
+ $fade : map-get-or($shade, fade, false);
36
+ $blur : map-get-or($shade, blur, 0);
37
+ $blur-ratio : map-get-or($shade, blur-ratio, 0);
38
+
39
+ $angle: ($angle - 90);
40
+ $x: 1.5 * cos($angle) + 0px;
41
+ $y: 1.5 * sin($angle) + 0px;
42
+ $darken: (lightness($color)/$depth)/2;
43
+ $opacify: 0;
44
+ $shadow: ();
45
+
46
+ $darken:0;
47
+
48
+ @if $fade == true {
49
+ $opacify: (opacity($color)/$depth);
50
+ transform: translateX(0);
51
+ }
52
+
53
+ @for $i from 1 through $depth {
54
+ $b : $blur;
55
+ @if $blur-ratio > 0 {
56
+ $b : $blur + $i * $blur-ratio;
57
+ }
58
+ $shadow: $shadow, $i*$x $i*$y s-rem($b) hsla(hue($color) , saturation($color), (lightness($color) - ($i * $darken)), 1 - ($i * $opacify));
59
+ }
60
+ #{$type}-shadow: $shadow;
61
+
62
+ @include _sugar-handle-nested(shade) {
63
+ @content;
64
+ }
65
+ }
@@ -0,0 +1,67 @@
1
+ //
2
+ // Some filters
3
+ //
4
+
5
+ //
6
+ // filter universal mixin
7
+ //
8
+ @mixin s-filter(
9
+ $filters...
10
+ ) {
11
+ @each $filter in $filters {
12
+ @include _s-filter($filter);
13
+ }
14
+ }
15
+ @mixin _s-filter(
16
+ $filter
17
+ ) {
18
+
19
+ $filters : sugar('settings.filters');
20
+ // cssgram
21
+ @if type-of($filter) == string and str-slice($filter,1,8) == 'cssgram-' {
22
+ $name : str-slice($filter,9);
23
+ @if $cssgram and type-of($cssgram) == list and index($cssgram, $name) {
24
+ @extend %cssgram-#{$name} !optional;
25
+ }
26
+ } @else if type-of($filter) == string and map-get($filters, $filter) {
27
+ // apply the registered filter
28
+ $filter : map-get($filters, $filter);
29
+ @if type-of($filter) == map {
30
+ $filter : map-get($filter, filter);
31
+ }
32
+ @include s-filter($filter);
33
+ } @else if type-of($filter) != string {
34
+ $filter : _sugar-parse-properties($filter, (
35
+ drop-shadow : true,
36
+ blur : true,
37
+ brightness : true,
38
+ contrast : true,
39
+ grayscale : true,
40
+ hue-rotate : true,
41
+ invert : true,
42
+ opacity : true,
43
+ saturate : true,
44
+ sepia : true,
45
+ url : true
46
+ ), (
47
+ drop-shadow : ds,
48
+ blur : bl,
49
+ brightness : br,
50
+ contrast : con,
51
+ grayscale : gr,
52
+ hue-rotate : hue,
53
+ invert : i,
54
+ opacity : o,
55
+ saturate : sat,
56
+ sepia : sep,
57
+ url : u
58
+ ));
59
+
60
+ // loop on each filters
61
+ $filters : ();
62
+ @each $name, $value in $filter {
63
+ $filters : append($filters, unquote("#{$name}(#{$value})"));
64
+ }
65
+ filter : $filters;
66
+ }
67
+ }
@@ -0,0 +1,13 @@
1
+ //
2
+ // Form specific mixins and functions
3
+ //
4
+
5
+ //
6
+ // Placeholder
7
+ //
8
+ @mixin s-placeholder {
9
+ &::-webkit-input-placeholder {@content}
10
+ &:-moz-placeholder {@content}
11
+ &::-moz-placeholder {@content}
12
+ &:-ms-input-placeholder {@content}
13
+ }