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,383 @@
1
+ //
2
+ // Some helpers mixins
3
+ //
4
+
5
+ //
6
+ // Position
7
+ //
8
+ @mixin s-position(
9
+ $position
10
+ ) {
11
+ // get map
12
+ $map : s-position($position, $_handle-nested : true);
13
+
14
+ // get map
15
+ @each $prop, $value in $map {
16
+ #{$prop} : $value;
17
+ }
18
+
19
+ // handle nested
20
+ @include _sugar-handle-nested(position) {
21
+ @content;
22
+ }
23
+ }
24
+ @function s-position(
25
+ $position,
26
+ $_handle-nested : false
27
+ ) {
28
+ $position : _sugar-parse-properties($position, (
29
+ position : fixed relative absolute,
30
+ vertical-align : top middle bottom,
31
+ align : left center right,
32
+ top : number,
33
+ right : number,
34
+ bottom : number,
35
+ left : number,
36
+ z : number
37
+ ), (
38
+ position : p,
39
+ top : t y,
40
+ right : r,
41
+ bottom : b,
42
+ left : l x
43
+ ));
44
+
45
+ $return : ();
46
+
47
+ // handle nested
48
+ @if $_handle-nested {
49
+ $position : _sugar-handle-nested(position, $position);
50
+ }
51
+
52
+ // get values
53
+ $pos : map-get-or($position, position, absolute);
54
+ $top : map-get($position, top);
55
+ $right : map-get($position, right);
56
+ $bottom : map-get($position, bottom);
57
+ $left : map-get($position, left);
58
+ $z : map-get($position, z);
59
+ $vertical-align : map-get($position, vertical-align);
60
+ $align : map-get($position, align);
61
+
62
+ @if $pos {
63
+ $return : map-set($return, position, $pos);
64
+ }
65
+ @if $z {
66
+ $return : map-set($return, transform, translateZ($z));
67
+ }
68
+ @if $vertical-align or $align {
69
+ // top
70
+ @if $vertical-align == top {
71
+ $return : map-set($return, top, 0);
72
+ @if $align == left {
73
+ $return : map-set($return, left, 0);
74
+ } @else if $align == center {
75
+ $return : map-set($return, left, 50%);
76
+ $return : map-merge($return, s-translate(-50% 0));
77
+ } @else if $align == right {
78
+ $return : map-set($return, right, 0);
79
+ } @else {
80
+ $return : map-set($return, left, 0);
81
+ }
82
+ } @else if $vertical-align == middle {
83
+ $return : map-set($return, top, 50%);
84
+ @if $align == left {
85
+ $return : map-set($return, left, 0);
86
+ $return : map-merge($return, s-translate(0 -50%));
87
+ } @else if $align == center {
88
+ $return : map-set($return, left, 50%);
89
+ $return : map-merge($return, s-translate(-50% -50%));
90
+ } @else if $align == right {
91
+ $return : map-set($return, right, 0);
92
+ $return : map-merge($return, s-translate(0 -50%));
93
+ } @else {
94
+ $return : map-merge($return, s-translate(-50% 0));
95
+ }
96
+ } @else if $vertical-align == bottom {
97
+ $return : map-set($return, bottom, 0);
98
+ @if $align == left {
99
+ $return : map-set($return, left, 0);
100
+ } @else if $align == center {
101
+ $return : map-set($return, left, 50%);
102
+ $return : map-merge($return, s-translate(-50% 0));
103
+ } @else if $align == right {
104
+ $return : map-set($return, right, 0);
105
+ } @else {
106
+ $return : map-set($return, left, 0);
107
+ }
108
+ } @else if $align == left {
109
+ $return : map-set($return, left, 0);
110
+ @if $vertical-align == top {
111
+ $return : map-set($return, top, 0);
112
+ } @else if $vertical-align == middle {
113
+ $return : map-set($return, top, 50%);
114
+ $return : map-merge($return, s-translate(0 -50%));
115
+ } @else if $vertical-align == bottom {
116
+ $return : map-set($return, bottom, 0);
117
+ } @else {
118
+ $return : map-set($return, top, 0);
119
+ }
120
+ } @else if $align == center {
121
+ $return : map-set($return, left, 50%);
122
+ @if $vertical-align == top {
123
+ $return : map-set($return, top, 0);
124
+ $return : map-merge($return, s-translate(-50% 0));
125
+ } @else if $vertical-align == middle {
126
+ $return : map-set($return, top, 50%);
127
+ $return : map-merge($return, s-translate(-50% -50%));
128
+ } @else if $vertical-align == bottom {
129
+ $return : map-set($return, bottom, 0);
130
+ $return : map-merge($return, s-translate(-50% 0));
131
+ } @else {
132
+ $return : map-set($return, top, 0);
133
+ }
134
+ } @else if $align == right {
135
+ $return : map-set($return, right, 0);
136
+ @if $vertical-align == top {
137
+ $return : map-set($return, top, 0);
138
+ } @else if $vertical-align == middle {
139
+ $return : map-set($return, top, 50%);
140
+ $return : map-merge($return, s-translate(0 -50%));
141
+ } @else if $vertical-align == bottom {
142
+ $return : map-set($return, bottom, 0);
143
+ } @else {
144
+ $return : map-set($return, top, 0);
145
+ }
146
+ }
147
+ }
148
+ @if $top {
149
+ $return : map-set($return, top, $top);
150
+ }
151
+ @if $right {
152
+ $return : map-set($return, right, $right);
153
+ }
154
+ @if $bottom {
155
+ $return : map-set($return, bottom, $bottom);
156
+ }
157
+ @if $left {
158
+ $return : map-set($return, left, $left);
159
+ }
160
+
161
+ // return map
162
+ @return $return;
163
+ }
164
+
165
+ //
166
+ // Translate
167
+ //
168
+ @mixin s-translate(
169
+ $translate
170
+ ) {
171
+ // get the translate props
172
+ $translate : s-translate($translate, $_handle-nested : true);
173
+
174
+ // get map
175
+ @each $prop, $value in $translate {
176
+ #{$prop} : $value;
177
+ }
178
+
179
+ // handle nested
180
+ @include _sugar-handle-nested(translate) {
181
+ @content;
182
+ }
183
+ }
184
+ @function s-translate(
185
+ $translate,
186
+ $_handle-nested : false
187
+ ) {
188
+ $translate : _sugar-parse-properties($translate, (
189
+ x : number,
190
+ y : number,
191
+ z : number
192
+ ));
193
+
194
+ // handle nested
195
+ @if $_handle-nested {
196
+ $translate : _sugar-handle-nested(translate, $translate);
197
+ }
198
+
199
+ // get values
200
+ $x : map-get($translate, x);
201
+ $y : map-get($translate, y);
202
+ $z : map-get($translate, z);
203
+
204
+ // build translate
205
+ $translates : ();
206
+ @if $x {
207
+ $translates : append($translates, translateX($x));
208
+ }
209
+ @if $y {
210
+ $translates : append($translates, translateY($y));
211
+ }
212
+ @if $z {
213
+ $translates : append($translates, translateZ($z));
214
+ }
215
+
216
+ // return translate
217
+ @return (
218
+ transform : $translates
219
+ );
220
+ }
221
+
222
+ //
223
+ // Transform
224
+ //
225
+ @mixin s-transform(
226
+ $transform
227
+ ) {
228
+ // get the translate props
229
+ $transform : s-transform($transform, $_handle-nested : true);
230
+
231
+ // get map
232
+ @each $prop, $value in $transform {
233
+ #{$prop} : $value;
234
+ }
235
+
236
+ // handle nested transforms
237
+ @include _sugar-handle-nested(transform) {
238
+ @content;
239
+ }
240
+ }
241
+ @function s-transform(
242
+ $transform,
243
+ $_handle-nested : false
244
+ ) {
245
+ // parse properties
246
+ $transform : _sugar-parse-properties($transform, null);
247
+
248
+ // handle nested transforms
249
+ @if $_handle-nested {
250
+ $transform : _sugar-handle-nested(transform, $transform);
251
+ }
252
+
253
+ // build transform
254
+ $transforms : ();
255
+ @each $name, $value in $transform {
256
+ $values : ();
257
+ @each $val in $value {
258
+ $values : append($values, $val, comma);
259
+ }
260
+ $transforms : append($transforms, unquote("#{$name}(#{$values})"));
261
+ }
262
+ // return
263
+ @return (
264
+ transform : $transforms
265
+ );
266
+ }
267
+
268
+ //
269
+ // Ratio
270
+ //
271
+ @mixin s-ratio(
272
+ $ratio
273
+ ) {
274
+ $ratio : _sugar-parse-properties($ratio, (
275
+ type : before after,
276
+ ratio : number
277
+ ), (
278
+ type : t,
279
+ ratio : r
280
+ ));
281
+ $rat : map-get($ratio, ratio);
282
+ $type : map-get-or($ratio, type, before);
283
+ position: relative;
284
+ overflow: hidden;
285
+ &:#{$type} {
286
+ content:'';
287
+ display: block;
288
+ height: 0;
289
+ padding-top: percentage(1 / $rat);
290
+ }
291
+ }
292
+
293
+ //
294
+ // Fit
295
+ // Make an element 100% width and height
296
+ //
297
+ @mixin _s-fit() {
298
+ width: 100%;
299
+ height: 100%;
300
+ }
301
+ %s-fit { @include _s-fit(); }
302
+ @mixin s-fit() { @include _s-fit(); }
303
+
304
+ //
305
+ // Size
306
+ //
307
+ @mixin s-size(
308
+ $size
309
+ ) {
310
+ $size : _sugar-parse-properties($size, (
311
+ position : absolute relative,
312
+ size : cover contain,
313
+ width : number,
314
+ height : number
315
+ ), (
316
+ position : p,
317
+ size : s
318
+ ));
319
+
320
+ // handle nested
321
+ $size : _sugar-handle-nested(size, $size);
322
+
323
+ // get values
324
+ $width : map-get($size, width);
325
+ $height : map-get($size, height);
326
+ $s : map-get($size, size);
327
+ $p : map-get-or($size, position, absolute);
328
+
329
+ // apply values
330
+ @if $s {
331
+ position: $p;
332
+ top: 50%;
333
+ left: 50%;
334
+ transform: translateX(-50%) translateY(-50%);
335
+ @if $s == cover {
336
+ min-width: 100%;
337
+ min-height: 100%;
338
+ } @else if $s == contain {
339
+ max-width:100%;
340
+ max-height:100%;
341
+ }
342
+ } @else {
343
+ @if $width {
344
+ width : $width;
345
+ }
346
+ @if $height {
347
+ height : $height;
348
+ }
349
+ }
350
+
351
+ // handle nested
352
+ @include _sugar-handle-nested(size) {
353
+ @content;
354
+ }
355
+ }
356
+
357
+ //
358
+ // Selection
359
+ //
360
+ @mixin s-selection {
361
+ ::-moz-selection { @content; }
362
+ ::selection { @content; }
363
+ }
364
+
365
+ //
366
+ // Visually hidden
367
+ //
368
+ @mixin _s-visually-hidden {
369
+ margin: -1px;
370
+ padding: 0;
371
+ width: 1px;
372
+ height: 1px;
373
+ overflow: hidden;
374
+ clip: rect(0 0 0 0);
375
+ clip: rect(0, 0, 0, 0);
376
+ position: absolute;
377
+ }
378
+ %s-visually-hidden {
379
+ @include _s-visually-hidden();
380
+ }
381
+ @mixin s-visually-hidden() {
382
+ @include _s-visually-hidden();
383
+ }
@@ -0,0 +1,21 @@
1
+ //
2
+ // Icons specific
3
+ //
4
+ @mixin s-icon(
5
+ $icon
6
+ ) {
7
+ $icon : _sugar-parse-properties($icon, (
8
+ name : string
9
+ ), (
10
+ name : n
11
+ ));
12
+ $name : map-get($icon, name);
13
+
14
+ // if font-awesome
15
+ @if str-slice($name,1,3) == 'fa-' {
16
+ @extend %fa;
17
+ @extend %#{$name} !optional;
18
+ } @else {
19
+
20
+ }
21
+ }
@@ -0,0 +1,150 @@
1
+ //
2
+ // Images specific
3
+ //
4
+
5
+ //
6
+ // Image rendering
7
+ //
8
+ @mixin s-image-rendering (
9
+ $mode:auto
10
+ ) {
11
+ @if ($mode == crisp-edges) {
12
+ -ms-interpolation-mode: nearest-neighbor; // IE8+
13
+ image-rendering: -moz-crisp-edges;
14
+ image-rendering: -o-crisp-edges;
15
+ image-rendering: -webkit-optimize-contrast;
16
+ image-rendering: crisp-edges;
17
+ }
18
+ @else {
19
+ image-rendering: $mode;
20
+ }
21
+ }
22
+
23
+ //
24
+ // Background
25
+ //
26
+ @mixin s-background(
27
+ $background
28
+ ) {
29
+ $background : _sugar-parse-properties($background, (
30
+ repeat : repeat repeat-x repeat-y no-repeat,
31
+ size : auto length cover contain initial inherit,
32
+ attachment : scroll fixed local initial inherit,
33
+ blend-mode : normal multiply screen overlay darken lighten color-dodge saturation color luminosity,
34
+ clip : border-box padding-box content-box initial inherit,
35
+ origin : padding-box border-box content-box initial inherit,
36
+ url : string,
37
+ width : number,
38
+ height : number,
39
+ top : number,
40
+ left : number,
41
+ x2 : string,
42
+ x3 : string,
43
+ x4 : string,
44
+ position : true
45
+ ), (
46
+ repeat : r,
47
+ size : s,
48
+ blend-mode : bm,
49
+ origin : o,
50
+ url : u,
51
+ position : p,
52
+ attachment : att,
53
+ clip : cl
54
+ ));
55
+ $background : _sugar-handle-nested(background, $background);
56
+
57
+ // get values
58
+ $repeat : map-get($background, repeat);
59
+ $size : map-get($background, size);
60
+ $attachment : map-get($background, attachment);
61
+ $blend-mode : map-get($background, blend-mode);
62
+ $clip : map-get($background, clip);
63
+ $origin : map-get($background, origin);
64
+ $url : map-get($background, url);
65
+ $top : map-get($background, top);
66
+ $left : map-get($background, left);
67
+ $width : map-get($background, width);
68
+ $height : map-get($background, height);
69
+ $_2x : map-get-or($background, x2);
70
+ @if $_2x == true { $_2x : '@2x'; }
71
+ $_3x : map-get-or($background, x3);
72
+ @if $_3x == true { $_3x : '@3x'; }
73
+ $_4x : map-get-or($background, x4);
74
+ @if $_4x == true { $_4x : '@4x'; }
75
+
76
+ $position : map-get($background, position);
77
+
78
+ // build background
79
+ $back : ();
80
+ @if $repeat {
81
+ background-repeat: $repeat;
82
+ }
83
+ @if $size {
84
+ background-size: $size;
85
+ } @else {
86
+ @if $height and $width == null {
87
+ background-size: 0 $height;
88
+ } @else if $height == null and $width {
89
+ background-size: $width 0;
90
+ } @else if $height and $width {
91
+ background-size: $width $height
92
+ }
93
+ }
94
+ @if $url {
95
+ background-image: url("#{$url}");
96
+ }
97
+ @if $position {
98
+ background-position: $position;
99
+ } @else {
100
+ @if $top and $left == null {
101
+ background-position: 0 $top;
102
+ } @else if $top == null and $left {
103
+ background-position: $left 0;
104
+ } @else if $top and $left {
105
+ background-position: $left $top
106
+ }
107
+ }
108
+
109
+ // resolutions
110
+ $split : _split($url,'.');
111
+ $name : nth($split, length($split)-1);
112
+ @if $_2x and $url {
113
+ $split : set-nth($split, length($split)-1, #{$name}#{$_2x});
114
+ $url : _join($split, '.');
115
+ @include s-media(2x) {
116
+ background-image: url("#{$url}");
117
+ }
118
+ }
119
+ @if $_3x and $url {
120
+ $split : set-nth($split, length($split)-1, #{$name}#{$_3x});
121
+ $url : _join($split, '.');
122
+ @include s-media(3x) {
123
+ background-image: url("#{$url}");
124
+ }
125
+ }
126
+ @if $_4x and $url {
127
+ $split : set-nth($split, length($split)-1, #{$name}#{$_4x});
128
+ $url : _join($split, '.');
129
+ @include s-media(4x) {
130
+ background-image: url("#{$url}");
131
+ }
132
+ }
133
+ @if $attachment {
134
+ background-attachment : $attachment;
135
+ }
136
+ @if $blend-mode {
137
+ background-blend-mode : $blend-mode;
138
+ }
139
+ @if $clip {
140
+ background-clip : $clip;
141
+ }
142
+ @if $origin {
143
+ background-origin : $origin;
144
+ }
145
+
146
+ // handle nested
147
+ @include _sugar-handle-nested(background) {
148
+ @content;
149
+ }
150
+ }
@@ -0,0 +1,148 @@
1
+ //
2
+ // Lists specific
3
+ //
4
+ $s-list-props : (
5
+ style-type : circle disc square armenian cjk-ideographic decimal decimal-leading-zero georgian hebrew hiragana hiragana-iroha katakana katakana-iroha lower-alpha lower-greek lower-latin lower-roman upper-alpha upper-latin upper-roman none inherit,
6
+ style-image : url,
7
+ style-icon : string,
8
+ bullet-color : color,
9
+ bullet-size : true,
10
+ bullet-offset : true,
11
+ bullet-font : true,
12
+ padding-left : number
13
+ );
14
+ $s-list-alias : (
15
+ style-type : type t,
16
+ style-image : image img,
17
+ style-icon : icon i,
18
+ bullet-color : bc,
19
+ bullet-size : bs,
20
+ bullet-offset : bo,
21
+ padding-left : pl
22
+ );
23
+ @mixin s-list(
24
+ $_list : ()
25
+ ) {
26
+ $list : _sugar-parse-properties($_list, (
27
+ counter-reset : true
28
+ ));
29
+
30
+ // handle nested
31
+ $list : _sugar-handle-nested(s-list, $list);
32
+
33
+ $reset : map-get-or($list, counter-reset, s-list);
34
+
35
+ counter-reset : $reset;
36
+
37
+ // handle nested
38
+ @include _sugar-handle-nested(s-list) {
39
+ @content;
40
+ }
41
+ }
42
+
43
+ //
44
+ // List item
45
+ //
46
+ @mixin s-list-item(
47
+ $list
48
+ ) {
49
+ $list : _sugar-parse-properties($list, $s-list-props, $s-list-alias);
50
+
51
+ // handle nested
52
+ @if not map-get($list, hover) {
53
+ $list : _sugar-handle-nested(s-list-item, $list);
54
+ }
55
+
56
+ $style-type : map-get($list, style-type);
57
+ $style-image : map-get($list, style-image);
58
+ $style-icon : map-get($list, style-icon);
59
+ $bullet-color : map-get($list, bullet-color);
60
+ $bullet-size : map-get($list, bullet-size);
61
+ $bullet-offset : map-get($list, bullet-offset);
62
+ $bullet-font : map-get($list, bullet-font);
63
+ $padding-left : map-get-or($list, padding-left, null);
64
+
65
+ // padding
66
+ @if $padding-left {
67
+ padding-left: s-rem($padding-left);
68
+ }
69
+
70
+ // style type
71
+ @if $style-type {
72
+ &:before {
73
+ content: counter(s-list, $style-type);
74
+ counter-increment: s-list;
75
+ }
76
+ }
77
+
78
+ &:before {
79
+ @if $bullet-offset {
80
+ $left : 0;
81
+ $top : 0;
82
+ @if length($bullet-offset) == 2 {
83
+ $left : nth($bullet-offset,2);
84
+ $top : nth($bullet-offset,1);
85
+ } @else if type-of($bullet-offset) == number {
86
+ $top : $bullet-offset;
87
+ }
88
+ left : s-rem($left);
89
+ top : s-rem($top);
90
+ } @else {
91
+ left : 0;
92
+ }
93
+ @if $bullet-color {
94
+ color : $bullet-color;
95
+ }
96
+ @if $bullet-size {
97
+ @if type-of($bullet-size) == list and length($bullet-size) == 2 {
98
+ width : nth($bullet-size,1) nth($bullet-size,2);
99
+ } @else if type-of($bullet-size) == number {
100
+ font-size: s-rem($bullet-size);
101
+ }
102
+ }
103
+ @if $bullet-font {
104
+ @include s-font($bullet-font);
105
+ }
106
+ }
107
+
108
+ // before
109
+ position: relative;
110
+ &:before {
111
+ position: absolute;
112
+ display: block;
113
+ }
114
+
115
+ // style image
116
+ @if $style-image {
117
+ position: relative;
118
+ &:before {
119
+ content:'';
120
+ display: block;
121
+ width: 1ex; height:1em;
122
+ background-image: url($style-image);
123
+ background-repeat: no-repeat;
124
+ background-size: 100% 100%;
125
+ background-position: 50% 50%;
126
+ }
127
+
128
+ } @else if $style-icon {
129
+ position: relative;
130
+ &:before {
131
+ @include s-icon($style-icon);
132
+ }
133
+
134
+ }
135
+
136
+ // reset margin-left for nested lists
137
+ > ul,
138
+ > ol,
139
+ > dl, {
140
+ margin-left: 0;
141
+ margin-bottom: 0;
142
+ }
143
+
144
+ // handle nested
145
+ @include _sugar-handle-nested(s-list-item) {
146
+ @content;
147
+ }
148
+ }