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,606 @@
1
+ //
2
+ // colors helpers
3
+ // font helpers
4
+ // - rem function
5
+ // **
6
+
7
+ //
8
+ // Vendors
9
+ //
10
+ @import 'vendors/sassdash/sassdash';
11
+ @import 'vendors/animatecss/animate.scss';
12
+ @import 'vendors/cssgram/cssgram.scss';
13
+ @import 'vendors/modularscale/modular-scale';
14
+ @import 'vendors/fontawesome/font-awesome';
15
+
16
+ //
17
+ // Functions
18
+ //
19
+ @import 'functions';
20
+
21
+ //
22
+ // Units
23
+ //
24
+ @import 'units';
25
+
26
+ //
27
+ // Math
28
+ //
29
+ @import 'tools/math';
30
+
31
+ //
32
+ // Map
33
+ //
34
+ @import 'tools/map';
35
+
36
+ //
37
+ // List
38
+ //
39
+ @import 'tools/list';
40
+
41
+ //
42
+ // String
43
+ //
44
+ @import 'tools/string';
45
+
46
+ //
47
+ // Arrow
48
+ //
49
+ @import 'tools/arrow';
50
+
51
+ //
52
+ // BEM
53
+ //
54
+ @import 'BEM';
55
+
56
+ //
57
+ // Clearfix
58
+ //
59
+ @import 'clearfix';
60
+
61
+ //
62
+ // Forms
63
+ //
64
+ @import 'forms';
65
+
66
+ //
67
+ // Lists
68
+ //
69
+ @import 'lists';
70
+
71
+ //
72
+ // Images
73
+ //
74
+ @import 'images';
75
+
76
+ //
77
+ // Icons
78
+ //
79
+ @import 'icons';
80
+
81
+ //
82
+ // Animations
83
+ //
84
+ @import 'animations';
85
+
86
+ //
87
+ // Filters
88
+ //
89
+ @import 'filters';
90
+
91
+ //
92
+ // Effects
93
+ //
94
+ @import 'effects';
95
+
96
+ //
97
+ // Helpers functions
98
+ //
99
+ @import 'helper-functions';
100
+
101
+ //
102
+ // Helpers mixins
103
+ //
104
+ @import 'helper-mixins';
105
+
106
+ //
107
+ // Medias
108
+ //
109
+ @import 'medias';
110
+
111
+ //
112
+ // Typo
113
+ //
114
+ @import 'typo';
115
+
116
+ //
117
+ // Color
118
+ //
119
+ @import 'colors';
120
+
121
+ //
122
+ // Shapes
123
+ //
124
+ @import 'shapes';
125
+
126
+ //
127
+ // Reset
128
+ //
129
+ @import 'reset';
130
+
131
+ //
132
+ // Variables
133
+ //
134
+ $sugar-animatecss : () !default; // store all the icons wanted from animate.css package
135
+ $_sugar-settings : ( // store all the settings
136
+ reset : true, // by default, a reset will be applied
137
+ border-box : true, // set if need to set all as border box model
138
+ typo : (
139
+ font-size : 16px, // default font-size
140
+ font-sizes : null, // map of font-sizes by media (size : media)
141
+ font-family : 'Helvetica,Verdana,Arial,sans-serif', // default font family to use. If match a registered font, use that font instead
142
+ line-letters-count : 55, // optimal letters count in a line
143
+ vertical-rhythme : ( // Vertical rhythme options
144
+ scope-class : typeset // the class in which the vertical rhythme will be applied
145
+ ),
146
+ font-format : ( // font format used in font-face
147
+ eot : embedded-opentype,
148
+ woff2 : woff2,
149
+ woff : woff,
150
+ ttf : truetype,
151
+ otf : opentype,
152
+ svg : svg,
153
+ svgz : svgz
154
+
155
+ )
156
+ ),
157
+ BEM : ( // BEM settings
158
+ standelone-modifier : false, // set if by default need to extend base element
159
+ element-separator : '__', // element separator
160
+ modifier-separator : '--' // modifier separator
161
+ ),
162
+ modular-scale : ( // Modular scale settings
163
+ base : 1rem, // the modular scale base
164
+ ratio : $golden, // the ratio to use
165
+ range : null, // range
166
+ fluid : false // is fluid modular scale
167
+ ),
168
+ animate-css : ( // store the animatecss settings
169
+ duration : 1s, // default animatecss duration
170
+ ease : ease-in-out, // default animatecss ease
171
+ fill-mode : both // defaull animatecss fill mode
172
+ ),
173
+ font-awesome : ( // font awesome settings
174
+ font-path : '../fonts/font-awesome', // path to dont without trailing slash
175
+ version : 4.4.0, // font-awesome version
176
+ classes : null, // list of icons to generate
177
+ ),
178
+ sizes : (), // store all the sizes available
179
+ colors : ( // store all the colors
180
+ classes : (
181
+ color : 'c-{color}',
182
+ color-modifier : 'c-{color}--{modifier}',
183
+ bkg : 'bkg-{color}',
184
+ bkg-modifier : 'bkg-{color}--{modifier}'
185
+ )
186
+ ),
187
+ fonts : (), // store all the fonts
188
+ filters : (), // store all the registered filters
189
+ transition : ( // store all the transition settings
190
+ duration : .2s, // default transition duration
191
+ ease : ease-in-out, // default easing function
192
+ delay : 0s, // default delay
193
+ property : all, // default property
194
+ transitions : () // store all registered transitions
195
+ ),
196
+ helper-classes : ()
197
+ );
198
+
199
+ //
200
+ // Sugar mixin
201
+ //
202
+ @mixin sugar(
203
+ $what...
204
+ ) {
205
+ @if type-of(nth($what,1)) == map {
206
+ // setup
207
+ @include s-setup(nth($what,1));
208
+ // init
209
+ @include s-init();
210
+ } @else if nth($what,1) == classes {
211
+ // classes
212
+ $packages : null;
213
+ @if length($what) == 2 {
214
+ $packages : nth($what,2);
215
+ }
216
+ @include s-classes($packages);
217
+ }
218
+ }
219
+ @mixin s(
220
+ $what...
221
+ ) {
222
+ @include sugar($what...);
223
+ }
224
+
225
+ //
226
+ // Sugar function
227
+ //
228
+ @function sugar(
229
+ $what
230
+ ) {
231
+ @if type-of($what) == string and str-index($what, "settings.") {
232
+ // get a configuration
233
+ @return s-setting(str-slice($what,10));
234
+ }
235
+ }
236
+ @function s(
237
+ $what
238
+ ) {
239
+ @return sugar($what);
240
+ }
241
+
242
+ //
243
+ // Get a configuration
244
+ //
245
+ $_sugar-settings-cache : ();
246
+ @function s-setting(
247
+ $path
248
+ ) {
249
+ // check in cache
250
+ $cache : map-get($_sugar-settings-cache, $path);
251
+ @if $cache {
252
+ @return $cache;
253
+ }
254
+
255
+ // do not have any cache
256
+ $parts : _split($path, '.');
257
+ $length : length($parts);
258
+ $idx : 0;
259
+ $value : $_sugar-settings;
260
+ @each $part in $parts {
261
+ $idx : $idx + 1;
262
+ $value : map-get($value, $part);
263
+ @if $idx == $length {
264
+ $_sugar-settings-cache : map-set($_sugar-settings-cache, $path, $value) !global;
265
+ @return $value;
266
+ }
267
+ }
268
+ }
269
+
270
+ //
271
+ // Classes
272
+ //
273
+ @mixin s-classes(
274
+ $packages
275
+ ) {
276
+ // font-awesome
277
+ $fa-icons : sugar('settings.font-awesome.classes');
278
+ @if $fa-icons {
279
+ @each $icon in $fa-icons {
280
+ .fa-#{$icon} {
281
+ @extend %fa;
282
+ @extend %fa-#{$icon} !optional;
283
+ }
284
+ }
285
+ }
286
+
287
+ // classes
288
+ $classes : sugar('settings.classes');
289
+ @if $classes {
290
+ @each $namespace in $classes {
291
+ // get values
292
+ $values : _get($_sugar-classes, _split($namespace,'.'));
293
+ // get values
294
+ @if type-of($values) == map {
295
+ $values : map-deep-values($values);
296
+ // loop to create each classes
297
+ @each $value in $values {
298
+ .#{$value} {
299
+ @extend %#{$value} !optional;
300
+ }
301
+ }
302
+ } @else if type-of($values) == string {
303
+ .#{$values} {
304
+ @extend %#{$values} !optional;
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ // animatecss
311
+ %animatecss-animated {
312
+ animation-duration : sugar('settings.animate-css.duration');
313
+ animation-fill-mode : sugar('settings.animate-css.fill-mode');
314
+ animation-timing-function : sugar('settings.animate-css.ease');
315
+ }
316
+ @each $anim in $sugar-animatecss {
317
+ .#{$anim} {
318
+ @extend %animatecss-animated;
319
+ @extend %#{$anim} !optional;
320
+ }
321
+ }
322
+
323
+ // transitions
324
+ @if $packages == null or index($package, transitions) {
325
+ $transitions : sugar('settings.transitions');
326
+ @each $name, $transition in $transitions {
327
+ @if type-of($transition) == map {
328
+ $t : map-get($transition, transition);
329
+ $classes : map-get($transition, classes);
330
+ @if $classes {
331
+ .t-#{$name} {
332
+ @include s-transition($name);
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }
338
+
339
+ // colors
340
+ @if $packages == null or index($package, colors) {
341
+ $colors : sugar('settings.colors');
342
+ $classes-color : sugar('settings.colors.classes.color');
343
+ $classes-color-mod : sugar('settings.colors.classes.color-modifier');
344
+ $classes-bkg : sugar('settings.colors.classes.bkg');
345
+ $classes-bkg-mod : sugar('settings.colors.classes.bkg-modifier');
346
+ @each $name, $color in $colors {
347
+ $modifiers : ();
348
+ @if type-of($color) == map {
349
+ $c : map-get($color, color);
350
+ $modifiers : map-get($color, modifiers);
351
+ $classes : map-get($color, classes);
352
+ @if $classes {
353
+ @if $classes == true or in-list($classes, color c) {
354
+ $cls : str-replace($classes-color, '{color}', #{$name});
355
+ #{unquote(".#{$cls}")} {
356
+ color : $c;
357
+ }
358
+ }
359
+ @if $classes == true or in-list($classes, background-color background bkg) {
360
+ $cls : str-replace($classes-bkg, '{color}', #{$name});
361
+ #{unquote(".#{$cls}")} {
362
+ background-color : $c;
363
+ }
364
+ }
365
+ // modifiers
366
+ @if $modifiers {
367
+ @each $mod-name, $mod in $modifiers {
368
+ @if $classes == true or in-list($classes, color c) {
369
+ $cls : str-replace($classes-color-mod, '{color}', #{$name});
370
+ $cls : str-replace($cls, '{modifier}', #{$mod-name});
371
+ #{unquote(".#{$cls}")} {
372
+ color : s-color($name, $mod-name);
373
+ }
374
+ }
375
+ @if $classes == true or in-list($classes, background-color background bkg) {
376
+ $cls : str-replace($classes-bkg-mod, '{color}', #{$name});
377
+ $cls : str-replace($cls, '{modifier}', #{$mod-name});
378
+ #{unquote(".#{$cls}")} {
379
+ background-color : s-color($name, $mod-name);
380
+ }
381
+ }
382
+ }
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ // filters
390
+ @if $packages == null or index($package, filters) {
391
+ $filters : sugar('settings.filters');
392
+ @each $name, $filter in $filters {
393
+ @if type-of($filter) == map {
394
+ $f : map-get($filter, filter);
395
+ $classes : map-get($filter, classes);
396
+ @if $classes {
397
+ .f-#{$name} {
398
+ @include s-filter($f);
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+
405
+ // sizes
406
+ @if $packages == null or index($package, sizes) {
407
+ $sizes : sugar('settings.sizes');
408
+ @each $name, $size in $sizes {
409
+ @if type-of($size) == map {
410
+ $s : map-get($size, size);
411
+ $classes : map-get($size, classes);
412
+ @if $classes {
413
+
414
+ // margins
415
+ @if $classes == true or in-list($classes, margin m margin-bottom m-b) {
416
+ .m-b-#{$name} {
417
+ margin-bottom : s-size($name);
418
+ }
419
+ }
420
+ @if $classes == true or in-list($classes, margin m margin-top m-t) {
421
+ .m-t-#{$name} {
422
+ margin-top : s-size($name);
423
+ }
424
+ }
425
+ @if $classes == true or in-list($classes, margin m margin-left m-l) {
426
+ .m-l-#{$name} {
427
+ margin-left : s-size($name);
428
+ }
429
+ }
430
+ @if $classes == true or in-list($classes, margin m margin-right m-r) {
431
+ .m-r-#{$name} {
432
+ margin-right : s-size($name);
433
+ }
434
+ }
435
+ @if $classes == true or in-list($classes, margin m margin-side m-s) {
436
+ .m-s-#{$name} {
437
+ margin-left : s-size($name);
438
+ margin-right : s-size($name);
439
+ }
440
+ }
441
+
442
+ // paddings
443
+ @if $classes == true or in-list($classes, padding p padding-bottom p-b) {
444
+ .p-b-#{$name} {
445
+ padding-bottom : s-size($name);
446
+ }
447
+ }
448
+ @if $classes == true or in-list($classes, padding p padding-top p-t) {
449
+ .p-t-#{$name} {
450
+ padding-top : s-size($name);
451
+ }
452
+ }
453
+ @if $classes == true or in-list($classes, padding p padding-left p-l) {
454
+ .p-l-#{$name} {
455
+ padding-left : s-size($name);
456
+ }
457
+ }
458
+ @if $classes == true or in-list($classes, padding p padding-right p-r) {
459
+ .p-r-#{$name} {
460
+ padding-right : s-size($name);
461
+ }
462
+ }
463
+ @if $classes == true or in-list($classes, padding p padding-side p-s) {
464
+ .p-s-#{$name} {
465
+ padding-left : s-size($name);
466
+ padding-right : s-size($name);
467
+ }
468
+ }
469
+ }
470
+ }
471
+ }
472
+ }
473
+ }
474
+
475
+ //
476
+ // Setup
477
+ //
478
+ @mixin s-setup(
479
+ $settings
480
+ ) {
481
+ $_sugar-settings : map-extend($_sugar-settings, $settings, true) !global;
482
+ }
483
+
484
+ //
485
+ // Init
486
+ //
487
+ $_sugar-inited : false;
488
+ @mixin s-init() {
489
+
490
+ // do that only if not already inited
491
+ @if not $_sugar-inited {
492
+
493
+ // update inited status
494
+ $_sugar-inited : true !global;
495
+
496
+ // reset
497
+ @if sugar('settings.reset') == true {
498
+ @include sugar-reset();
499
+ }
500
+
501
+ // border box
502
+ @if sugar('settings.border-box') == true {
503
+ * {
504
+ -webkit-box-sizing: border-box;
505
+ -moz-box-sizing: border-box;
506
+ box-sizing: border-box;
507
+ }
508
+ }
509
+
510
+ // font
511
+ html {
512
+ $base-font-size : sugar('settings.typo.font-size');
513
+ $base-font-sizes : sugar('settings.typo.font-sizes');
514
+ font-size: $base-font-size;
515
+ @if type-of($base-font-sizes) == map {
516
+ @each $size, $media in $base-font-sizes {
517
+ @include s-media($media) {
518
+ font-size: $size;
519
+ }
520
+ }
521
+ }
522
+ $font-family : sugar('settings.typo.font-family');
523
+ @if $font-family {
524
+ font-family: $font-family;
525
+ }
526
+ }
527
+
528
+
529
+ // font faces
530
+ $fonts : sugar('settings.fonts');
531
+ @each $font-name, $font in $fonts {
532
+ $font-face : map-get($font, font-face);
533
+ $import : map-get($font, import);
534
+ $font-family : map-get($font, font-family);
535
+ @if $font-face {
536
+ @if $font-family {
537
+ $font-face : list-prepend($font-face, $font-family);
538
+ } @else {
539
+ $font-face : list-prepend($font-face, $font-name);
540
+ }
541
+ @include s-font-face($font-face);
542
+ } @else if $import {
543
+ // @at-root {
544
+ // @import url(#{$import});
545
+ // }
546
+ }
547
+ }
548
+
549
+ // modular scale
550
+ $ms-base : sugar('settings.modular-scale.base');
551
+ $ms-ratio : sugar('settings.modular-scale.ratio');
552
+ $ms-range : sugar('settings.modular-scale.range');
553
+ $ms-fluid : sugar('settings.modular-scale.fluid');
554
+
555
+ // font-awesome
556
+ $font-awesome : sugar('settings.font-awesome');
557
+ @if $font-awesome {
558
+ $font-path : sugar('settings.font-awesome.font-path');
559
+ $font-version : sugar('settings.font-awesome.version');
560
+ @include s-font-face(
561
+ "FontAwesome"
562
+ "#{$font-path}/fontawesome-webfont.eot"
563
+ normal
564
+ normal
565
+ -ext eot ttf woff woff2 svg);
566
+ }
567
+ }
568
+ }
569
+
570
+ //
571
+ // Register helper class
572
+ //
573
+ $_sugar-classes : () !default;
574
+ @mixin s-register-class(
575
+ $class
576
+ ) {
577
+ $class : _sugar-parse-properties($class, (
578
+ name : string,
579
+ namespace : string
580
+ ), (
581
+ name : n,
582
+ namespace : ns
583
+ ));
584
+ $name : map-get($class, name);
585
+ $namespace : map-get($class, namespace);
586
+
587
+ // protect
588
+ @if not $name {
589
+ @error('s-register-class need a name');
590
+ }
591
+ @if not $namespace {
592
+ @error('s-register-class need a namespace');
593
+ }
594
+
595
+ // register the class
596
+ $split : _split($namespace, '.');
597
+ $_sugar-classes : _set($_sugar-classes, $split, $name) !global;
598
+ %#{$name} {
599
+ @content;
600
+ }
601
+ }
602
+
603
+ //
604
+ // Helper classes
605
+ //
606
+ @import 'helper-classes';