compass 0.8.17 → 0.10.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. data/CHANGELOG.markdown +165 -0
  2. data/README.markdown +15 -3
  3. data/Rakefile +46 -7
  4. data/VERSION.yml +3 -2
  5. data/bin/compass +22 -4
  6. data/examples/blueprint_default/index.html.haml +3 -3
  7. data/examples/blueprint_default/parts/forms.html.haml +2 -0
  8. data/examples/blueprint_default/src/screen.sass +1 -1
  9. data/examples/blueprint_plugins/index.html.haml +6 -6
  10. data/examples/blueprint_plugins/src/buttons.sass +2 -2
  11. data/examples/blueprint_plugins/src/link_icons.sass +1 -1
  12. data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
  13. data/examples/blueprint_plugins/src/screen.sass +2 -2
  14. data/examples/blueprint_scoped/src/ie.sass +2 -1
  15. data/examples/blueprint_scoped/src/print.sass +2 -1
  16. data/examples/blueprint_scoped/src/screen.sass +2 -1
  17. data/examples/blueprint_semantic/parts/fancy_type.html.haml +1 -1
  18. data/examples/blueprint_semantic/src/liquid.sass +5 -6
  19. data/examples/blueprint_semantic/src/screen.sass +4 -5
  20. data/examples/compass/bootstrap.rb +3 -0
  21. data/{frameworks → examples/compass/extensions}/yui/stylesheets/_yui.sass +0 -0
  22. data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  23. data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_fonts.sass +8 -1
  24. data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_grids.sass +174 -130
  25. data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_reset.sass +0 -0
  26. data/{frameworks → examples/compass/extensions}/yui/templates/project/manifest.rb +0 -0
  27. data/{frameworks → examples/compass/extensions}/yui/templates/project/screen.sass +0 -0
  28. data/examples/compass/src/utilities.sass +2 -2
  29. data/examples/css3/config.rb +6 -0
  30. data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
  31. data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
  32. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +7 -0
  33. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
  34. data/examples/css3/images/fresh-peas.jpg +0 -0
  35. data/examples/css3/index.html.haml +55 -0
  36. data/examples/css3/src/_base.sass +14 -0
  37. data/examples/css3/src/fancy-fonts.sass +7 -0
  38. data/examples/css3/src/gradient.sass +10 -0
  39. data/examples/css3/src/main.sass +80 -0
  40. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  41. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  42. data/examples/downloader.rb +57 -0
  43. data/examples/ninesixty/bootstrap.rb +4 -0
  44. data/examples/ninesixty/config.rb +9 -0
  45. data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
  46. data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
  47. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
  48. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
  49. data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
  50. data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
  51. data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
  52. data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
  53. data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
  54. data/examples/ninesixty/src/grid.sass +16 -0
  55. data/examples/ninesixty/src/text.sass +10 -0
  56. data/examples/susy/bootstrap.rb +3 -0
  57. data/examples/susy/config.rb +9 -0
  58. data/examples/susy/extensions/susy/LICENSE.txt +28 -0
  59. data/examples/susy/extensions/susy/README.mkdn +235 -0
  60. data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
  61. data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
  62. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
  63. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
  64. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
  65. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
  66. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
  67. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
  68. data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
  69. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
  70. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
  71. data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +63 -0
  72. data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
  73. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
  74. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
  75. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
  76. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
  77. data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +301 -0
  78. data/examples/susy/extensions/susy/lib/susy.rb +2 -0
  79. data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
  80. data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
  81. data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
  82. data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
  83. data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
  84. data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
  85. data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
  86. data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
  87. data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
  88. data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
  89. data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
  90. data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
  91. data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
  92. data/examples/susy/src/_base.sass +62 -0
  93. data/examples/susy/src/_defaults.sass +148 -0
  94. data/examples/susy/src/screen.sass +114 -0
  95. data/examples/yui/bootstrap.rb +3 -0
  96. data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
  97. data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
  98. data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
  99. data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
  100. data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
  101. data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
  102. data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
  103. data/features/command_line.feature +226 -0
  104. data/features/extensions.feature +20 -0
  105. data/features/step_definitions/command_line_steps.rb +223 -0
  106. data/features/step_definitions/extension_steps.rb +13 -0
  107. data/lib/compass.rb +6 -7
  108. data/lib/compass/actions.rb +7 -1
  109. data/lib/compass/app_integration.rb +23 -4
  110. data/lib/compass/app_integration/merb.rb +1 -43
  111. data/lib/compass/app_integration/merb/runtime.rb +63 -0
  112. data/lib/compass/app_integration/rails.rb +24 -10
  113. data/lib/compass/app_integration/rails/configuration_defaults.rb +45 -0
  114. data/lib/compass/app_integration/rails/installer.rb +127 -0
  115. data/lib/compass/app_integration/rails/runtime.rb +14 -0
  116. data/lib/compass/app_integration/stand_alone.rb +22 -0
  117. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +28 -0
  118. data/lib/compass/app_integration/stand_alone/installer.rb +83 -0
  119. data/lib/compass/commands.rb +11 -0
  120. data/lib/compass/commands/base.rb +4 -1
  121. data/lib/compass/commands/create_project.rb +108 -5
  122. data/lib/compass/commands/generate_grid_background.rb +73 -6
  123. data/lib/compass/commands/help.rb +89 -0
  124. data/lib/compass/commands/installer_command.rb +20 -13
  125. data/lib/compass/commands/interactive.rb +61 -0
  126. data/lib/compass/commands/list_frameworks.rb +2 -2
  127. data/lib/compass/commands/print_version.rb +72 -4
  128. data/lib/compass/commands/project_base.rb +14 -34
  129. data/lib/compass/commands/project_stats.rb +162 -0
  130. data/lib/compass/commands/registry.rb +22 -0
  131. data/lib/compass/commands/stamp_pattern.rb +56 -3
  132. data/lib/compass/commands/update_project.rb +60 -6
  133. data/lib/compass/commands/validate_project.rb +62 -6
  134. data/lib/compass/commands/watch_project.rb +12 -5
  135. data/lib/compass/commands/write_configuration.rb +89 -4
  136. data/lib/compass/compiler.rb +13 -4
  137. data/lib/compass/configuration.rb +29 -310
  138. data/lib/compass/configuration/adapters.rb +59 -0
  139. data/lib/compass/configuration/comments.rb +22 -0
  140. data/lib/compass/configuration/data.rb +106 -0
  141. data/lib/compass/configuration/defaults.rb +138 -0
  142. data/lib/compass/configuration/helpers.rb +120 -0
  143. data/lib/compass/configuration/inheritance.rb +170 -0
  144. data/lib/compass/configuration/serialization.rb +86 -0
  145. data/lib/compass/dependencies.rb +4 -8
  146. data/lib/compass/errors.rb +4 -1
  147. data/lib/compass/exec.rb +11 -246
  148. data/lib/compass/exec/command_option_parser.rb +23 -0
  149. data/lib/compass/exec/global_options_parser.rb +37 -0
  150. data/lib/compass/exec/helpers.rb +28 -0
  151. data/lib/compass/exec/project_options_parser.rb +46 -0
  152. data/lib/compass/exec/sub_command_ui.rb +45 -0
  153. data/lib/compass/exec/switch_ui.rb +166 -0
  154. data/lib/compass/frameworks.rb +70 -7
  155. data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +31 -0
  156. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_buttons.sass +27 -27
  157. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_colors.sass +0 -0
  158. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_debug.sass +2 -2
  159. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_fancy_type.sass +19 -19
  160. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
  161. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_grid.sass +34 -33
  162. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +99 -0
  163. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
  164. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_link_icons.sass +9 -9
  165. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_liquid.sass +29 -29
  166. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +87 -0
  167. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_reset.sass +20 -18
  168. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
  169. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_scaffolding.sass +6 -4
  170. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -0
  171. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
  172. data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_utilities.sass +15 -15
  173. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -0
  174. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -0
  175. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -0
  176. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -0
  177. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -0
  178. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -0
  179. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -0
  180. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -0
  181. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +3 -0
  182. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -0
  183. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -0
  184. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -0
  185. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -0
  186. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -0
  187. data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons.sass +4 -4
  188. data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/cross.png +0 -0
  189. data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/key.png +0 -0
  190. data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/tick.png +0 -0
  191. data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
  192. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons.sass +1 -1
  193. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  194. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/email.png +0 -0
  195. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/external.png +0 -0
  196. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  197. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/im.png +0 -0
  198. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  199. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  200. data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  201. data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
  202. data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/grid.png +0 -0
  203. data/lib/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
  204. data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +32 -0
  205. data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/partials/_base.sass +0 -0
  206. data/lib/compass/frameworks/blueprint/templates/project/print.sass +8 -0
  207. data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/screen.sass +3 -2
  208. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +21 -0
  209. data/lib/compass/frameworks/compass/stylesheets/_compass.sass +2 -0
  210. data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +14 -0
  211. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_layout.sass +0 -0
  212. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_misc.sass +12 -12
  213. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_reset.sass +0 -0
  214. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_utilities.sass +0 -0
  215. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
  216. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
  217. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
  218. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_border_radius.sass +47 -0
  219. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +20 -0
  220. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_sizing.sass +13 -0
  221. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_columns.sass +37 -0
  222. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
  223. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
  224. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_inline_block.sass +7 -0
  225. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_opacity.sass +18 -0
  226. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
  227. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +62 -0
  228. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
  229. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/layout/_sticky_footer.sass +9 -7
  230. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_general.sass +0 -1
  231. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_links.sass +1 -1
  232. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_lists.sass +0 -0
  233. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_print.sass +18 -0
  234. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
  235. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_tables.sass +0 -0
  236. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_text.sass +0 -0
  237. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_clearfix.sass +7 -7
  238. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_float.sass +2 -2
  239. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_hacks.sass +2 -2
  240. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_reset.sass +28 -28
  241. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  242. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  243. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/links/_hover_link.sass +2 -2
  244. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/links/_link_colors.sass +6 -6
  245. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +7 -0
  246. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_bullets.sass +6 -6
  247. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +6 -6
  248. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_inline_list.sass +9 -9
  249. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +52 -0
  250. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
  251. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
  252. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
  253. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_ellipsis.sass +0 -0
  254. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_nowrap.sass +1 -1
  255. data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_replacement.sass +6 -6
  256. data/{frameworks → lib/compass/frameworks}/compass/templates/ellipsis/ellipsis.sass +0 -0
  257. data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
  258. data/{frameworks → lib/compass/frameworks}/compass/templates/ellipsis/xml/ellipsis.xml +0 -0
  259. data/lib/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
  260. data/lib/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
  261. data/lib/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
  262. data/lib/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
  263. data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
  264. data/{frameworks → lib/compass/frameworks}/compass/templates/project/ie.sass +0 -0
  265. data/{frameworks → lib/compass/frameworks}/compass/templates/project/manifest.rb +1 -0
  266. data/{frameworks → lib/compass/frameworks}/compass/templates/project/print.sass +0 -0
  267. data/{frameworks → lib/compass/frameworks}/compass/templates/project/screen.sass +0 -0
  268. data/lib/compass/grid_builder.rb +15 -11
  269. data/lib/compass/installers.rb +3 -5
  270. data/lib/compass/installers/bare_installer.rb +58 -0
  271. data/lib/compass/installers/base.rb +40 -51
  272. data/lib/compass/installers/manifest.rb +55 -2
  273. data/lib/compass/installers/manifest_installer.rb +59 -0
  274. data/lib/compass/installers/template_context.rb +44 -0
  275. data/lib/compass/logger.rb +28 -2
  276. data/lib/compass/sass_extensions.rb +2 -2
  277. data/lib/compass/sass_extensions/functions.rb +4 -2
  278. data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
  279. data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
  280. data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
  281. data/lib/compass/sass_extensions/functions/selectors.rb +4 -1
  282. data/lib/compass/sass_extensions/functions/urls.rb +22 -2
  283. data/lib/compass/sass_extensions/monkey_patches.rb +3 -3
  284. data/lib/compass/sass_extensions/monkey_patches/traversal.rb +23 -0
  285. data/lib/compass/stats.rb +92 -0
  286. data/lib/compass/validator.rb +2 -3
  287. data/lib/vendor/fssm/state.rb +1 -1
  288. data/test/command_line_helper.rb +19 -16
  289. data/test/command_line_test.rb +5 -4
  290. data/test/compass_test.rb +16 -15
  291. data/test/configuration_test.rb +24 -19
  292. data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
  293. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
  294. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
  295. data/test/fixtures/stylesheets/compass/css/layout.css +2 -0
  296. data/test/fixtures/stylesheets/compass/css/print.css +2 -8
  297. data/test/fixtures/stylesheets/compass/css/reset.css +3 -3
  298. data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
  299. data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
  300. data/test/fixtures/stylesheets/relative/config.rb +9 -0
  301. data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
  302. data/test/fixtures/stylesheets/relative/css/print.css +1 -0
  303. data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
  304. data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
  305. data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
  306. data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
  307. data/test/io_helper.rb +36 -0
  308. data/test/rails_helper.rb +40 -0
  309. data/test/rails_integration_test.rb +7 -44
  310. data/test/sass_extensions_test.rb +2 -2
  311. data/test/test_helper.rb +9 -2
  312. metadata +257 -110
  313. data/frameworks/blueprint.rb +0 -2
  314. data/frameworks/blueprint/stylesheets/_blueprint.sass +0 -3
  315. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +0 -93
  316. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +0 -83
  317. data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +0 -3
  318. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +0 -15
  319. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +0 -55
  320. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +0 -58
  321. data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +0 -104
  322. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +0 -155
  323. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -5
  324. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -10
  325. data/frameworks/blueprint/templates/project/ie.sass +0 -15
  326. data/frameworks/blueprint/templates/project/manifest.rb +0 -6
  327. data/frameworks/blueprint/templates/project/print.sass +0 -3
  328. data/frameworks/compass.rb +0 -2
  329. data/frameworks/compass/stylesheets/_compass.sass +0 -1
  330. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +0 -24
  331. data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +0 -1
  332. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +0 -6
  333. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -19
  334. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -5
  335. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -12
  336. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -20
  337. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +0 -27
  338. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -9
  339. data/frameworks/compass/templates/ellipsis/manifest.rb +0 -2
  340. data/frameworks/yui.rb +0 -2
  341. data/frameworks/yui/stylesheets/yui/modules/_base.sass +0 -60
  342. data/lib/compass/installers/rails.rb +0 -135
  343. data/lib/compass/installers/stand_alone.rb +0 -60
  344. data/test/fixtures/stylesheets/yui/config.rb +0 -9
  345. data/test/fixtures/stylesheets/yui/css/mixins.css +0 -13
  346. data/test/fixtures/stylesheets/yui/sass/base.sass +0 -3
  347. data/test/fixtures/stylesheets/yui/sass/fonts.sass +0 -3
  348. data/test/fixtures/stylesheets/yui/sass/grids.sass +0 -3
  349. data/test/fixtures/stylesheets/yui/sass/mixins.sass +0 -16
@@ -0,0 +1,19 @@
1
+ // Emits styles for a tag cloud
2
+ =tag-cloud(!base_size = 1em)
3
+ font-size= !base_size
4
+ line-height= 1.2 * !base_size
5
+ .xxs, .xs, .s, .l, .xl, .xxl
6
+ line-height= 1.2 * !base_size
7
+ .xxs
8
+ font-size= !base_size / 2.0
9
+ .xs
10
+ font-size= 2.0 * !base_size / 3.0
11
+ .s
12
+ font-size= 3.0 * !base_size / 4.0
13
+ .l
14
+ font-size= 4.0 * !base_size / 3.0
15
+ .xl
16
+ font-size= 3.0 * !base_size / 2.0
17
+ .xxl
18
+ font-size= 2.0 * !base_size
19
+
@@ -1,5 +1,5 @@
1
1
  // a link that only has an underline when you hover over it
2
2
  =hover-link
3
- :text-decoration none
3
+ text-decoration: none
4
4
  &:hover
5
- :text-decoration underline
5
+ text-decoration: underline
@@ -7,18 +7,18 @@
7
7
  // +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
8
8
 
9
9
  =link-colors(!normal, !hover = false, !active = false, !visited = false, !focus = false)
10
- :color= !normal
10
+ color= !normal
11
11
  @if !visited
12
12
  &:visited
13
- :color= !visited
13
+ color= !visited
14
14
  @if !focus
15
15
  &:focus
16
- :color= !focus
16
+ color= !focus
17
17
  @if !hover
18
18
  &:hover
19
- :color= !hover
19
+ color= !hover
20
20
  @if !active
21
21
  &:active
22
- :color= !active
22
+ color= !active
23
23
 
24
-
24
+
@@ -0,0 +1,7 @@
1
+ // A link that looks and acts like the text it is contained within
2
+ =unstyled-link
3
+ color: inherit
4
+ text-decoration: inherit
5
+ cursor: inherit
6
+ &:active, &:focus
7
+ outline: none
@@ -1,7 +1,7 @@
1
1
  // Turn off the bullet for an element of a list
2
2
  =no-bullet
3
- :list-style-type none
4
- :margin-left 0px
3
+ list-style-type: none
4
+ margin-left: 0px
5
5
 
6
6
  // turns off the bullets for an entire list
7
7
  =no-bullets
@@ -13,9 +13,9 @@
13
13
  // ul.pretty
14
14
  // +pretty-bullets("my-icon.png", 5px, 7px)
15
15
  =pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
16
- :margin-left 0
16
+ margin-left: 0
17
17
  li
18
- :padding-left= !padding
19
- :background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
20
- :list-style-type none
18
+ padding-left= !padding
19
+ background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
20
+ list-style-type: none
21
21
 
@@ -32,15 +32,15 @@
32
32
  Used to implement +horizontal-list.
33
33
  =horizontal-list-item(!padding = 4px)
34
34
  +no-bullet
35
- :white-space nowrap
35
+ white-space: nowrap
36
36
  +float-left
37
- :padding
38
- :left= !padding
39
- :right= !padding
37
+ padding:
38
+ left= !padding
39
+ right= !padding
40
40
  &.first
41
- :padding-left 0px
41
+ padding-left: 0px
42
42
  &.last
43
- :padding-right 0px
43
+ padding-right: 0px
44
44
 
45
45
  //**
46
46
  A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
@@ -1,14 +1,14 @@
1
1
  // makes a list inline.
2
2
 
3
3
  =inline-list
4
- :list-style-type none
5
- :margin 0px
6
- :padding 0px
7
- :display inline
4
+ list-style-type: none
5
+ margin: 0px
6
+ padding: 0px
7
+ display: inline
8
8
  li
9
- :margin 0px
10
- :padding 0px
11
- :display inline
9
+ margin: 0px
10
+ padding: 0px
11
+ display: inline
12
12
 
13
13
  // makes an inlin list that is comma delimited.
14
14
  // use of this recipe is not recommended at this time due to browser support issues.
@@ -23,7 +23,7 @@
23
23
  +inline-list
24
24
  li
25
25
  &:after
26
- :content ", "
26
+ content: ", "
27
27
  &:last-child, &.last
28
28
  &:after
29
- :content ""
29
+ content: ""
@@ -0,0 +1,52 @@
1
+ //**
2
+ Example 1:
3
+ a.twitter
4
+ +sprite-img("icons-32.png", 1)
5
+ a.facebook
6
+ +sprite-img("icons-32png", 2)
7
+ ...
8
+ Example 2:
9
+ a
10
+ +sprite-background("icons-32.png")
11
+ a.twitter
12
+ +sprite-column(1)
13
+ a.facebook
14
+ +sprite-row(2)
15
+ ...
16
+
17
+ !sprite_default_size ||= 32px
18
+ !sprite_default_margin ||= 0px
19
+ !sprite_image_default_width ||= !sprite_default_size
20
+ !sprite_image_default_height ||= !sprite_default_size
21
+
22
+
23
+ // Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
24
+ // To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
25
+ =sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
26
+ +sprite-background(!img, !width, !height)
27
+ +sprite-position(!col, !row, !width, !height, !margin)
28
+
29
+ // Sets rules common for all sprites, assumes you want a square, but allows a rectangular region.
30
+ =sprite-background(!img, !width = !sprite_default_size, !height = !width)
31
+ +sprite-background-rectangle(!img, !width, !height)
32
+
33
+ // Sets rules common for all sprites, assumes a rectangular region.
34
+ =sprite-background-rectangle(!img, !width = !sprite_image_default_width, !height = !sprite_image_default_height)
35
+ background= image_url(!img) "no-repeat"
36
+ width= !width
37
+ height= !height
38
+ overflow: hidden
39
+
40
+ // Allows horizontal sprite positioning optimized for a single row of sprites.
41
+ =sprite-column(!col, !width = !sprite_image_default_width, !margin = !sprite_default_margin)
42
+ +sprite-position(!col, 1, !width, 0px, !margin)
43
+
44
+ // Allows vertical sprite positioning optimized for a single column of sprites.
45
+ =sprite-row(!row, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
46
+ +sprite-position(1, !row, 0px, !height, !margin)
47
+
48
+ // Allows vertical and horizontal sprite positioning from a grid of equal dimensioned sprites.
49
+ =sprite-position(!col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
50
+ !x = ((!col - 1) * -!width) - ((!col - 1) * !margin)
51
+ !y = ((!row - 1) * -!height) - ((!row - 1) * !margin)
52
+ background-position= !x !y
@@ -0,0 +1,20 @@
1
+ =alternating-rows-and-columns(!even_row_color, !odd_row_color, !dark_intersection, !header_color = #FFF, !footer_color = #FFF)
2
+ th
3
+ background-color= !header_color
4
+ &.even
5
+ background-color= !header_color - !dark_intersection
6
+ tr.odd
7
+ td
8
+ background-color= !odd_row_color
9
+ &.even
10
+ background-color= !odd_row_color - !dark_intersection
11
+ tr.even
12
+ td
13
+ background-color= !even_row_color
14
+ &.even
15
+ background-color= !even_row_color - !dark_intersection
16
+ tfoot
17
+ th, td
18
+ background-color= !footer_color
19
+ &.even
20
+ background-color= !footer_color - !dark_intersection
@@ -0,0 +1,27 @@
1
+ =outer-table-borders(!width = 2px, !color = black)
2
+ border= !width "solid" !color
3
+ thead
4
+ th
5
+ border-bottom= !width "solid" !color
6
+ tfoot
7
+ th, td
8
+ border-top= !width "solid" !color
9
+ th
10
+ &:first-child
11
+ border-right= !width "solid" !color
12
+
13
+ =inner-table-borders(!width = 2px, !color = black)
14
+ th, td
15
+ border:
16
+ right= !width "solid" !color
17
+ bottom= !width "solid" !color
18
+ left-width: 0px
19
+ top-width: 0px
20
+ &:last-child,
21
+ &.last
22
+ border-right-width: 0px
23
+ tbody, tfoot
24
+ tr:last-child,
25
+ tr.last
26
+ th, td
27
+ border-bottom-width: 0px
@@ -0,0 +1,9 @@
1
+ =table-scaffolding
2
+ th
3
+ text-align: center
4
+ font-weight: bold
5
+ td,
6
+ th
7
+ padding: 2px
8
+ &.numeric
9
+ text-align: right
@@ -1,3 +1,3 @@
1
1
  // When remembering whether or not there's a hyphen in white-space is too hard
2
2
  =nowrap
3
- :white-space nowrap
3
+ white-space: nowrap
@@ -9,9 +9,9 @@
9
9
  @param y
10
10
  the y position of the background image.
11
11
  =replace-text( !img, !x = 50%, !y = 50% )
12
- :text-indent -9999em
13
- :overflow hidden
14
- :background
15
- :image= image_url(!img)
16
- :repeat no-repeat
17
- :position= !x !y
12
+ text-indent: -9999em
13
+ overflow: hidden
14
+ background:
15
+ image= image_url(!img)
16
+ repeat: no-repeat
17
+ position= !x !y
@@ -0,0 +1,27 @@
1
+ description "Plugin for cross-browser ellipsis truncated text."
2
+
3
+ file 'xml/ellipsis.xml', :like => :css
4
+ stylesheet 'ellipsis.sass'
5
+
6
+ help %Q{
7
+ First, install the plugin to get the xml file that makes this work in firfox:
8
+
9
+ compass init --using blueprint/link_icons
10
+
11
+ Then mix +ellipsis into your selectors to enable ellipsis
12
+ there when text gets too long.
13
+
14
+ The ellipsis.sass file is just an example for how to use this plugin,
15
+ feel free to delete it.
16
+
17
+ For more information see:
18
+ http://mattsnider.com/css/css-string-truncation-with-ellipsis/
19
+ }
20
+
21
+ welcome_message %Q{
22
+ The ellipsis.sass file is just an example for how to use this plugin,
23
+ feel free to delete it.
24
+
25
+ For more information see:
26
+ http://mattsnider.com/css/css-string-truncation-with-ellipsis/
27
+ }
@@ -0,0 +1,20 @@
1
+ description "Generate a compass extension."
2
+
3
+ file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
4
+ file 'templates/project/manifest.rb'
5
+ file 'templates/project/screen.sass'
6
+
7
+ help %Q{
8
+ To generate a compass extension:
9
+ compass create my_extension --using compass/extension
10
+ }
11
+
12
+ welcome_message %Q{
13
+ For a full tutorial on how to build your own extension see:
14
+
15
+ http://github.com/chriseppstein/compass/blob/edge/docs/EXTENSIONS.markdown
16
+
17
+ }, :replace => true
18
+
19
+ no_configuration_file!
20
+ skip_compilation!
@@ -0,0 +1 @@
1
+ // This is your framework's main stylesheet. Use it to import all default modules.
@@ -0,0 +1,2 @@
1
+ # Make sure you list all the project template files here in the manifest.
2
+ stylesheet 'screen.sass', :media => 'screen, projection'
@@ -0,0 +1,2 @@
1
+ // This is where you put the contents of the main stylesheet for the user's project.
2
+ // It should import your sass stylesheets and demonstrate how to use them.
@@ -0,0 +1,32 @@
1
+ When no framework is specified, a new compass project is set up with three stylesheets:
2
+
3
+ * screen.sass
4
+ * print.sass
5
+ * ie.sass
6
+
7
+ It is expected that you will link your html to these like so:
8
+
9
+ <head>
10
+ <link href="/stylesheets/screen.css" media="screen, projection"
11
+ rel="stylesheet" type="text/css" />
12
+ <link href="/stylesheets/print.css" media="print"
13
+ rel="stylesheet" type="text/css" />
14
+ <!--[if IE]>
15
+ <link href="/stylesheets/ie.css" media="screen, projection"
16
+ rel="stylesheet" type="text/css" />
17
+ <![endif]-->
18
+ </head>
19
+
20
+ You don't have to use these three stylesheets, they are just a recommendation.
21
+ You can rename them, make new stylesheets, and delete them. Compass will
22
+ happily compile whatever sass files you place into your project.
23
+
24
+ Any folders you create in your source directory with sass files in them will be folders
25
+ that get created with css files in them when compiled.
26
+
27
+ Sass files beginning with an underscore are called partials, they are not directly
28
+ compiled to their own css file. You can use these partials by importing them
29
+ into other stylesheets. This is useful for keeping your stylesheets small and manageable
30
+ and single-focused. It is common to create a file called _base.sass at the top level
31
+ of your stylesheets and to import this to set up project-wide constants and mixins.
32
+
@@ -1,3 +1,4 @@
1
+ description "The default project layout."
1
2
  stylesheet 'screen.sass', :media => 'screen, projection'
2
3
  stylesheet 'print.sass', :media => 'print'
3
4
  stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE"
@@ -16,19 +16,21 @@ module Compass
16
16
  rescue Exception => e
17
17
  end
18
18
 
19
- attr_reader :column_width, :gutter_width, :output_path, :able_to_generate, :options
19
+ attr_reader :column_width, :gutter_width, :filename, :able_to_generate, :options
20
20
 
21
21
  # ==== Options
22
22
  # * <tt>options</tt>
23
23
  # * <tt>:column_width</tt> -- Width (in pixels) of current grid column
24
24
  # * <tt>:gutter_width</tt> -- Width (in pixels) of current grid gutter
25
- # * <tt>:output_path</tt> -- Output path of grid.png file
25
+ # * <tt>:height</tt> -- Height (in pixels) of a row
26
+ # * <tt>:filename</tt> -- Output path of grid.png file
26
27
  def initialize(options={})
27
28
  @able_to_generate = Magick::Long_version rescue false
28
29
  return unless @able_to_generate
29
30
  @column_width = options[:column_width]
30
31
  @gutter_width = options[:gutter_width]
31
- @output_path = options[:output_path]
32
+ @height = options[:height] || 20
33
+ @filename = options[:filename]
32
34
  @options = options
33
35
  end
34
36
 
@@ -40,22 +42,20 @@ module Compass
40
42
  def generate!
41
43
  return false unless self.able_to_generate
42
44
  total_width = self.column_width + self.gutter_width
43
- height = 20
44
45
  RVG::dpi = 100
45
46
 
46
- rvg = RVG.new((total_width.to_f/RVG::dpi).in, (height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, height) do |canvas|
47
+ rvg = RVG.new((total_width.to_f/RVG::dpi).in, (@height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, @height) do |canvas|
47
48
  canvas.background_fill = 'white'
48
49
 
49
50
  canvas.g do |column|
50
- column.rect(self.column_width, height).styles(:fill => "#e8effb")
51
+ column.rect(self.column_width - 1, @height).styles(:fill => "#e8effb")
51
52
  end
52
53
 
53
54
  canvas.g do |baseline|
54
- baseline.line(0, (height - 1), total_width, (height- 1)).styles(:fill => "#e9e9e9")
55
+ baseline.line(0, (@height - 1), total_width, (@height- 1)).styles(:fill => "#e9e9e9")
55
56
  end
56
57
  end
57
58
 
58
- filename = File.join(self.output_path, "grid.png")
59
59
  if File.exists?(filename)
60
60
  if options[:force]
61
61
  overwrite = true
@@ -64,9 +64,13 @@ module Compass
64
64
  raise Compass::FilesystemConflict.new(msg)
65
65
  end
66
66
  end
67
- directory self.output_path
67
+ directory File.dirname(filename)
68
68
  logger.record((overwrite ? :overwrite : :create), basename(filename))
69
- rvg.draw.write(filename)
69
+ unless options[:dry_run]
70
+ rvg.draw.write(filename)
71
+ else
72
+ true
73
+ end
70
74
  end
71
75
  end
72
- end
76
+ end