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,120 @@
1
+ //
2
+ // Units specific
3
+ //
4
+
5
+ //
6
+ // Convert helpers
7
+ //
8
+ @function s-percent($value) {
9
+ @return s-convert($value, '%');
10
+ }
11
+ @function s-px($value) {
12
+ @return s-convert($value, px);
13
+ }
14
+ @function s-pt($value) {
15
+ @return s-convert($value, pt);
16
+ }
17
+ @function s-rem($value) {
18
+ @return s-convert($value, rem);
19
+ }
20
+ @function s-em($value) {
21
+ @return s-convert($value, em);
22
+ }
23
+
24
+ //
25
+ // Convert some values
26
+ //
27
+ @function s-convert($value, $convertUnit){
28
+
29
+ // get the unit
30
+ $unit : null;
31
+
32
+ // get the unit
33
+ $unit : unit($value);
34
+
35
+ // get the default font-size
36
+ $font-size : s-strip-units(sugar('settings.typo.font-size'));
37
+
38
+ // return the value if same units
39
+ @if $unit and $unit == $convertUnit {
40
+ @return $value;
41
+ }
42
+
43
+ // strip unit of value
44
+ $value : s-strip-units($value);
45
+
46
+ @if $unit == null or $unit == '' {
47
+ @if $convertUnit == px {
48
+ @return $value + 0px;
49
+ } @else if $convertUnit == em {
50
+ @return $value + 0em;
51
+ } @else if $convertUnit == rem {
52
+ @return $value + 0rem;
53
+ } @else if $convertUnit == pt {
54
+ @return $value + 0pt;
55
+ } @else if $convertUnit == '%' {
56
+ @return percentage($values / 100);
57
+ }
58
+ } @else if $unit == px {
59
+ @if $convertUnit == em {
60
+ @return $value / $font-size + 0em;
61
+ } @else if $convertUnit == percent or $convertUnit == '%' {
62
+ @return percentage($value / $font-size);
63
+ } @else if $convertUnit == rem {
64
+ @return $value / $font-size + 0rem;
65
+ } @else if $convertUnit == px {
66
+ @return $value + 0px;
67
+ } @else {
68
+ @error("Unit #{$unit} cannot be converted to #{$convertUnit}");
69
+ @return null;
70
+ }
71
+ }
72
+ @else if $unit == em {
73
+ @if $convertUnit == px {
74
+ @return $value * $font-size + 0px;
75
+ } @else if $convertUnit == "%" or $convertUnit == percent {
76
+ @return percentage($value);
77
+ } @else if $convertUnit == em {
78
+ @return $value + 0em;
79
+ } @else if $convertUnit == rem {
80
+ @return s-strip-units($value) + 0rem;
81
+ } @else {
82
+ @error("Unit #{$unit} cannot be converted to #{$convertUnit}");
83
+ @return null;
84
+ }
85
+ }
86
+ @else if $unit == "%" {
87
+ @if $convertUnit == px {
88
+ @return $value * $font-size / 100 + 0px;
89
+ } @else if $convertUnit == em {
90
+ @return $value / 100 + 0em;
91
+ } @else if $convertUnit == '%' {
92
+ @return percentage($value);
93
+ } @else {
94
+ @error("Unit #{$unit} cannot be converted to #{$convertUnit}");
95
+ @return null;
96
+ }
97
+ }
98
+ @else if $unit == pt {
99
+ @if $convertUnit == px {
100
+ @return $value * 1.3333 + 0px;
101
+ } @else if $convertUnit == em {
102
+ @return $value / 12 + 0em;
103
+ } @else if $convertUnit == "%" or $convertUnit == percent {
104
+ @return percentage($value / 12);
105
+ } @else if $convertUnit == pt {
106
+ @return $value + 0pt;
107
+ } @else {
108
+ @error("Unit #{$unit} cannot be converted to #{$convertUnit}");
109
+ @return null;
110
+ }
111
+ } @else if $unit == rem {
112
+ @if $convertUnit == px {
113
+ @return $value * $font-size + 0px;
114
+ } @else if $convertUnit == rem {
115
+ @return $value + 0rem;
116
+ } @else if $convertUnit == pt {
117
+ @return $value * $font-size * 0.75 + 0pt;
118
+ }
119
+ }
120
+ }
@@ -0,0 +1,70 @@
1
+ @mixin _arrow_helper($arrowSize, $arrowColor, $margin, $side, $align) {
2
+ @if $side == "top" {
3
+ border-bottom-color: $arrowColor;
4
+ top: -2 * $arrowSize;
5
+ }
6
+ @if $side == "bottom" {
7
+ border-top-color: $arrowColor;
8
+ bottom: -2 * $arrowSize;
9
+ }
10
+ @if $side == "left" {
11
+ border-right-color: $arrowColor;
12
+ left: -2 * $arrowSize;
13
+ }
14
+ @if $side == "right" {
15
+ border-left-color: $arrowColor;
16
+ right: -$arrowSize;
17
+ }
18
+ @if $side == "right" or $side == "left" {
19
+ @if $align == "center" {
20
+ top: 50%;
21
+ margin-top: -$arrowSize;
22
+ }
23
+ @else if $align == "top" {
24
+ top: $margin;
25
+ }
26
+ @else if $align == "bottom" {
27
+ bottom: $margin;
28
+ }
29
+ }
30
+ @if $side == "bottom" or $side == "top" {
31
+ @if $align == "center" {
32
+ right: 50%;
33
+ margin-right: -$arrowSize;
34
+ }
35
+ @else if $align == "left" {
36
+ left: $margin;
37
+ }
38
+ @else if $align == "right" {
39
+ right: $arrowSize + $margin;
40
+ }
41
+ }
42
+ }
43
+
44
+ @mixin _arrow($side: "right", $align: "center", $size: 20px, $color: #f6f6f6, $borderColor: "none", $borderSize: 3px) {
45
+ $selector: "&:after, &:before";
46
+ @if $borderColor == "none" {
47
+ $selector: "&:after";
48
+ }
49
+ #{$selector} {
50
+ border: solid transparent;
51
+ content: " ";
52
+ height: 0;
53
+ width: 0;
54
+ position: absolute;
55
+ pointer-events: none;
56
+ visibility: visible;
57
+ }
58
+
59
+ &:after {
60
+ border-width: $size;
61
+ @include _arrow_helper($size, $color, $size, $side, $align);
62
+ }
63
+
64
+ @if $borderColor != "none" {
65
+ &:before {
66
+ border-width: $borderSize + $size;
67
+ @include _arrow_helper($size + $borderSize, $borderColor, $size - $borderSize, $side, $align);
68
+ }
69
+ }
70
+ }
File without changes
@@ -0,0 +1,103 @@
1
+ //
2
+ // Remove item from list
3
+ //
4
+ @function remove-nth($list, $index) {
5
+ $result: null;
6
+
7
+ @if type-of($index) != number {
8
+ @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
9
+ }
10
+
11
+ @else if $index == 0 {
12
+ @warn "List index 0 must be a non-zero integer for `remove-nth`.";
13
+ }
14
+
15
+ @else if abs($index) > length($list) {
16
+ @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
17
+ }
18
+
19
+ @else {
20
+ $result: ();
21
+ $index: if($index < 0, length($list) + $index + 1, $index);
22
+
23
+ @for $i from 1 through length($list) {
24
+ @if $i != $index {
25
+ $result: append($result, nth($list, $i));
26
+ }
27
+ }
28
+ }
29
+
30
+ @return $result;
31
+ }
32
+
33
+ //
34
+ // Last nth
35
+ //
36
+ @function last-nth($list) {
37
+ @return nth($list,length($list));
38
+ }
39
+
40
+ //
41
+ // First nth
42
+ //
43
+ @function first-nth($list) {
44
+ @return nth($list,1);
45
+ }
46
+
47
+ //
48
+ // Search in a list a one value exist
49
+ //
50
+ @function in-list(
51
+ $list,
52
+ $values
53
+ ) {
54
+ @each $val in $values {
55
+ @if index($list, $val) {
56
+ @return true;
57
+ }
58
+ }
59
+ @return false;
60
+ }
61
+
62
+ //
63
+ // Implode
64
+ //
65
+ @function list-implode($list, $glue : '') {
66
+ $res : ();
67
+ $idx : 1;
68
+ @each $l in $list {
69
+ $res : append($res, $l);
70
+ @if $idx < length($list) {
71
+ $res : append($res, $glue);
72
+ }
73
+ $idx : $idx + 1;
74
+ }
75
+ @return _join($res,'');
76
+ }
77
+
78
+ //
79
+ // Prepend
80
+ //
81
+ @function list-prepend($list, $value) {
82
+ @return join($value, $list);
83
+ }
84
+
85
+ //
86
+ // List shift
87
+ //
88
+ // @param List $list The list to use
89
+ // @return List The processed list
90
+ //
91
+ @function list-shift($list) {
92
+ @return remove-nth($list,1);
93
+ }
94
+
95
+ //
96
+ // List pop
97
+ //
98
+ // @param List $list The list to use
99
+ // @return List The processed list
100
+ //
101
+ @function list-pop($list) {
102
+ @return remove-nth($list,length($list));
103
+ }
@@ -0,0 +1,93 @@
1
+ //
2
+ // Map set
3
+ //
4
+ // @param Map $map The map to use
5
+ // @param String $key The key to update
6
+ // @param Mixed $value The new value
7
+ // @return Map The new map
8
+ //
9
+ @function map-set($map, $key, $value) {
10
+ $new: ($key: $value);
11
+ @return map-merge($map, $new);
12
+ }
13
+
14
+ //
15
+ // Get deep values in map
16
+ //
17
+ @function map-deep-values(
18
+ $map
19
+ ) {
20
+ $values : ();
21
+ // loop on each keys
22
+ @each $key, $value in $map {
23
+ @if type-of($value) == map or type-of($value) == list {
24
+ // add to values :
25
+ $values : join($values, map-deep-values($value));
26
+ } @else {
27
+ // add to values :
28
+ $values : append($values, $value);
29
+ }
30
+ }
31
+ // return values
32
+ @return $values;
33
+ }
34
+
35
+ //
36
+ // Map get or
37
+ // This will try to get the elements in map by index order
38
+ //
39
+ @function map-get-or(
40
+ $map,
41
+ $index-list,
42
+ $default : null
43
+ ) {
44
+ @each $index in $index-list {
45
+ $res : map-get($map, $index);
46
+ @if $res != null {
47
+ @return $res;
48
+ }
49
+ }
50
+ // we do not find anything
51
+ @return $default;
52
+ }
53
+
54
+
55
+ // jQuery-style extend function
56
+ // About `map-merge()`:
57
+ // * only takes 2 arguments
58
+ // * is not recursive
59
+ // @param {Map} $map - first map
60
+ // @param {ArgList} $maps - other maps
61
+ // @param {Bool} $deep - recursive mode
62
+ // @return {Map}
63
+ @function map-extend($map, $maps.../*, $deep */) {
64
+ $last: nth($maps, -1);
65
+ $deep: $last == true;
66
+ $max: if($deep, length($maps) - 1, length($maps));
67
+
68
+ // Loop through all maps in $maps...
69
+ @for $i from 1 through $max {
70
+ // Store current map
71
+ $current: nth($maps, $i);
72
+
73
+ // If not in deep mode, simply merge current map with map
74
+ @if not $deep {
75
+ $map: map-merge($map, $current);
76
+ } @else {
77
+ // If in deep mode, loop through all tuples in current map
78
+ @each $key, $value in $current {
79
+
80
+ // If value is a nested map and same key from map is a nested map as well
81
+ @if type-of($value) == "map" and type-of(map-get($map, $key)) == "map" {
82
+ // Recursive extend
83
+ $value: map-extend(map-get($map, $key), $value, true);
84
+ }
85
+
86
+ // Merge current tuple with map
87
+ $map: map-merge($map, ($key: $value));
88
+ }
89
+ }
90
+ }
91
+
92
+ @return $map;
93
+ }
@@ -0,0 +1,196 @@
1
+ $_s-pi: 3.14159265359;
2
+ $_s-default-threshold: $_s-pi/180/20;
3
+ $_s-precision: 10;
4
+
5
+ //
6
+ // Sqrt
7
+ //
8
+ @function s-sqrt($r) {
9
+ $x0: 1;
10
+ $x1: $x0;
11
+
12
+ @for $i from 1 through 10 {
13
+ $x1: $x0 - ($x0 * $x0 - abs($r)) / (2 * $x0);
14
+ $x0: $x1;
15
+ }
16
+
17
+ @return $x1;
18
+ }
19
+
20
+ //
21
+ // Power
22
+ //
23
+ @function s-pow($base, $exp) {
24
+ $value: $base;
25
+ @if $exp > 1 {
26
+ @for $i from 2 through $exp {
27
+ $value: $value * $base;
28
+ }
29
+ }
30
+ @if $exp < 1{
31
+ @for $i from 0 through -$exp {
32
+ $value: $value / $base;
33
+ }
34
+ }
35
+ @return $value;
36
+ }
37
+
38
+ //
39
+ // Factoriel
40
+ //
41
+ @function s-fact($num) {
42
+ $fact: 1;
43
+ @if $num > 0{
44
+ @for $i from 1 through $num {
45
+ $fact: $fact * $i;
46
+ }
47
+ }
48
+ @return $fact;
49
+ }
50
+
51
+ //
52
+ // Degree
53
+ //
54
+ @function s-deg($angle) {
55
+ @return s-convert-angle($angle, deg);
56
+ }
57
+
58
+ //
59
+ // Radian
60
+ //
61
+ @function s-rad($angle) {
62
+ @return s-convert-angle($angle, rad);
63
+ }
64
+
65
+ //
66
+ // Grad
67
+ //
68
+ @function s-grad($angle) {
69
+ @return s-convert-angle($angle, grad);
70
+ }
71
+
72
+ //
73
+ // Turn
74
+ //
75
+ @function s-turn($angle) {
76
+ @return s-convert-angle($angle, turn);
77
+ }
78
+
79
+ //
80
+ // Convert angle
81
+ //
82
+ @function s-convert-angle($value, $unit-name) {
83
+ $factors: (
84
+ rad: 1rad,
85
+ deg: 180deg/$_s-pi,
86
+ grad: 200grad/$_s-pi,
87
+ turn: .5turn/$_s-pi
88
+ );
89
+
90
+ @if not unitless($value) {
91
+ @warn '`#{$value}` should be unitless';
92
+ @return false;
93
+ }
94
+
95
+ @if not map-has-key($factors, $unit-name) {
96
+ @warn 'unit `#{$unit-name}` is not a valid unit - please make sure it is either `deg`, `rad`, `grad` or `turn`';
97
+ @return false;
98
+ }
99
+
100
+ @return $value*map-get($factors, $unit-name);
101
+ }
102
+
103
+ //
104
+ // Sinus inverse
105
+ //
106
+ @function s-asin($z, $unit-name: deg, $threshold: $_s-default-threshold) {
107
+ $sum: 0;
108
+ $complement: false;
109
+ $sign: if($z != 0, $z/abs($z), 1);
110
+
111
+ $z: abs($z);
112
+
113
+ @if $z > 1 {
114
+ @warn 'illegal `#{$z}` value for function';
115
+ @return false;
116
+ }
117
+
118
+ @if $z > s-sin($_s-pi/4) {
119
+ $complement: true;
120
+ $z: s-sqrt(1 - s-pow($z, 2));
121
+ }
122
+
123
+ $term: $z;
124
+ $i: 0;
125
+ $k: 1;
126
+
127
+ @while $term > $threshold {
128
+ $sum: $sum + $term;
129
+
130
+ $i: $i + 1;
131
+ $k: $k*(2*$i - 1)/(2*$i);
132
+ $j: 2*$i + 1;
133
+
134
+ $term: $k*s-pow($z, $j)/$j;
135
+ }
136
+
137
+ @return s-convert-angle($sign*(if($complement, $_s-pi/2 - $sum, $sum)), $unit-name);
138
+ }
139
+
140
+ //
141
+ // Consinus inverse
142
+ //
143
+ @function s-acos($z, $unit-name: deg, $threshold: $_s-default-threshold) {
144
+ @return s-convert-angle($_s-pi/2, $unit-name) - s-asin($z, $unit-name, $threshold);
145
+ }
146
+
147
+ //
148
+ // Tangent inverse
149
+ //
150
+ @function s-atan($z, $unit-name: deg, $threshold: $_s-default-threshold) {
151
+ @return s-asin($z/s-sqrt(1 + s-pow($z, 2)), $unit-name, $threshold);
152
+ }
153
+
154
+ //
155
+ // Convert angle to unitless
156
+ //
157
+ @function _s_to_unitless_rad($angle) {
158
+ @if unit($angle) == "deg" {
159
+ $angle: $angle / 180deg * $_s-pi;
160
+ }
161
+ @if unit($angle) == "rad" {
162
+ $angle: $angle / 1rad;
163
+ }
164
+ @return $angle;
165
+ }
166
+
167
+ //
168
+ // Sinus
169
+ //
170
+ @function s-sin($angle){
171
+ $a: _s_to_unitless_rad($angle);
172
+ $sin: $a;
173
+ @for $n from 1 through $_s-precision {
174
+ $sin: $sin + (s-pow(-1, $n) / s-fact(2 * $n + 1) ) * s-pow($a, (2 * $n + 1));
175
+ }
176
+ @return $sin;
177
+ }
178
+
179
+ //
180
+ // Cosinus
181
+ //
182
+ @function s-cos($angle){
183
+ $a: _s_to_unitless_rad($angle);
184
+ $cos: 1;
185
+ @for $n from 1 through $_s-precision {
186
+ $cos: $cos + ( s-pow(-1,$n) / s-fact(2*$n) ) * s-pow($a,2*$n);
187
+ }
188
+ @return $cos;
189
+ }
190
+
191
+ //
192
+ // Tangent
193
+ //
194
+ @function s-tan($angle){
195
+ @return s-sin($angle) / s-cos($angle);
196
+ }
@@ -0,0 +1,65 @@
1
+ //
2
+ // String specific
3
+ //
4
+
5
+ //
6
+ // Get url extension
7
+ //
8
+ @function str-url-ext(
9
+ $url
10
+ ) {
11
+ // protect
12
+ @if type-of($url) != string {
13
+ @error("str-url-ext : $url has to be a string");
14
+ }
15
+ // split
16
+ $split : str-explode($url,'.');
17
+ // get the last item
18
+ $last : last-nth($split);
19
+ @if str-length($last) <= 5 and length($split) >= 2 {
20
+ @return $last;
21
+ } @else {
22
+ @return null;
23
+ }
24
+ }
25
+
26
+ //
27
+ // Replace
28
+ //
29
+ @function str-replace($string, $search, $replace: '') {
30
+ @if type-of($string) != "string" {
31
+ @error "`str-replace` function expecting a string for $string; #{type-of($string)} given.";
32
+ }
33
+
34
+ @if type-of($search) != "string" {
35
+ @error "`str-replace` function expecting a string for $search; #{type-of($search)} given.";
36
+ }
37
+
38
+ @if type-of($replace) != "string" {
39
+ @error "`str-replace` function expecting a string for $replace; #{type-of($replace)} given.";
40
+ }
41
+
42
+ $index: str-index($string, $search);
43
+
44
+ @if $index {
45
+ @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
46
+ }
47
+
48
+ @return $string;
49
+ }
50
+
51
+
52
+
53
+ //
54
+ // Check if is url
55
+ //
56
+ @function str-is-url(
57
+ $url
58
+ ) {
59
+ $ext : str-url-ext($url);
60
+ @if $ext {
61
+ @return true;
62
+ } @else {
63
+ @return false;
64
+ }
65
+ }