compass 0.8.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. data/CHANGELOG.markdown +551 -0
  2. data/LICENSE.markdown +29 -0
  3. data/README.markdown +44 -0
  4. data/REVISION +1 -0
  5. data/Rakefile +127 -0
  6. data/VERSION.yml +4 -0
  7. data/bin/compass +8 -0
  8. data/deps.rip +1 -0
  9. data/examples/README.markdown +4 -0
  10. data/examples/blueprint_default/config.rb +7 -0
  11. data/examples/blueprint_default/images/grid.png +0 -0
  12. data/examples/blueprint_default/index.html.haml +85 -0
  13. data/examples/blueprint_default/parts/elements.html.haml +282 -0
  14. data/examples/blueprint_default/parts/forms.html.haml +190 -0
  15. data/examples/blueprint_default/parts/grid.html.haml +274 -0
  16. data/examples/blueprint_default/parts/test-small.jpg +0 -0
  17. data/examples/blueprint_default/parts/test.jpg +0 -0
  18. data/examples/blueprint_default/parts/valid.png +0 -0
  19. data/examples/blueprint_default/src/ie.sass +3 -0
  20. data/examples/blueprint_default/src/images/grid.png +0 -0
  21. data/examples/blueprint_default/src/print.sass +3 -0
  22. data/examples/blueprint_default/src/screen.sass +8 -0
  23. data/examples/blueprint_plugins/config.rb +8 -0
  24. data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
  25. data/examples/blueprint_plugins/images/buttons/key.png +0 -0
  26. data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
  27. data/examples/blueprint_plugins/images/grid.png +0 -0
  28. data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
  29. data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
  30. data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
  31. data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
  32. data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
  33. data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
  34. data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
  35. data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
  36. data/examples/blueprint_plugins/images/test-small.jpg +0 -0
  37. data/examples/blueprint_plugins/images/test.jpg +0 -0
  38. data/examples/blueprint_plugins/images/valid.png +0 -0
  39. data/examples/blueprint_plugins/index.html.haml +96 -0
  40. data/examples/blueprint_plugins/plugins/buttons.html.haml +67 -0
  41. data/examples/blueprint_plugins/plugins/fancy_type.html.haml +100 -0
  42. data/examples/blueprint_plugins/plugins/link_icons.html.haml +61 -0
  43. data/examples/blueprint_plugins/plugins/rtl.html.haml +100 -0
  44. data/examples/blueprint_plugins/src/buttons.sass +49 -0
  45. data/examples/blueprint_plugins/src/ie.sass +3 -0
  46. data/examples/blueprint_plugins/src/images/grid.png +0 -0
  47. data/examples/blueprint_plugins/src/link_icons.sass +13 -0
  48. data/examples/blueprint_plugins/src/print.sass +3 -0
  49. data/examples/blueprint_plugins/src/rtl_screen.sass +13 -0
  50. data/examples/blueprint_plugins/src/screen.sass +11 -0
  51. data/examples/blueprint_scoped/images/grid.png +0 -0
  52. data/examples/blueprint_scoped/src/ie.sass +3 -0
  53. data/examples/blueprint_scoped/src/print.sass +3 -0
  54. data/examples/blueprint_scoped/src/screen.sass +4 -0
  55. data/examples/blueprint_scoped_form/images/grid.png +0 -0
  56. data/examples/blueprint_scoped_form/src/ie.sass +3 -0
  57. data/examples/blueprint_scoped_form/src/print.sass +3 -0
  58. data/examples/blueprint_scoped_form/src/screen.sass +10 -0
  59. data/examples/blueprint_semantic/config.rb +7 -0
  60. data/examples/blueprint_semantic/images/grid.png +0 -0
  61. data/examples/blueprint_semantic/index.html.haml +86 -0
  62. data/examples/blueprint_semantic/parts/fancy_type.html.haml +100 -0
  63. data/examples/blueprint_semantic/parts/liquid.html.haml +100 -0
  64. data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
  65. data/examples/blueprint_semantic/parts/test.jpg +0 -0
  66. data/examples/blueprint_semantic/parts/valid.png +0 -0
  67. data/examples/blueprint_semantic/src/ie.sass +3 -0
  68. data/examples/blueprint_semantic/src/images/grid.png +0 -0
  69. data/examples/blueprint_semantic/src/liquid.sass +70 -0
  70. data/examples/blueprint_semantic/src/print.sass +3 -0
  71. data/examples/blueprint_semantic/src/screen.sass +71 -0
  72. data/examples/compass/compass.html.haml +39 -0
  73. data/examples/compass/config.rb +7 -0
  74. data/examples/compass/images/blue_arrow.gif +0 -0
  75. data/examples/compass/src/compass.sass +47 -0
  76. data/examples/compass/src/images/blue_arrow.gif +0 -0
  77. data/examples/compass/src/sticky_footer.sass +11 -0
  78. data/examples/compass/src/utilities.sass +108 -0
  79. data/examples/compass/sticky_footer.html.haml +14 -0
  80. data/examples/compass/utilities.html.haml +189 -0
  81. data/examples/logo/logo.html.haml +40 -0
  82. data/examples/logo/src/ie.sass +6 -0
  83. data/examples/logo/src/print.sass +6 -0
  84. data/examples/logo/src/screen.sass +29 -0
  85. data/examples/yui/divisions.html.haml +179 -0
  86. data/examples/yui/index.html.haml +19 -0
  87. data/examples/yui/src/screen.sass +13 -0
  88. data/examples/yui/sub_divisions.html.haml +169 -0
  89. data/examples/yui/templates.html.haml +54 -0
  90. data/examples/yui/test.jpg +0 -0
  91. data/examples/yui/typography.html.haml +132 -0
  92. data/frameworks/blueprint.rb +2 -0
  93. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  94. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +93 -0
  95. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +83 -0
  96. data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +3 -0
  97. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  98. data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
  99. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
  100. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  101. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -0
  102. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -0
  103. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -0
  104. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  105. data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
  106. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
  107. data/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -0
  108. data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +104 -0
  109. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -0
  110. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +155 -0
  111. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  112. data/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
  113. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  114. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  115. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  116. data/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
  117. data/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
  118. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  119. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  120. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  121. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  122. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  123. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  124. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  125. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  126. data/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
  127. data/frameworks/blueprint/templates/project/grid.png +0 -0
  128. data/frameworks/blueprint/templates/project/ie.sass +15 -0
  129. data/frameworks/blueprint/templates/project/manifest.rb +6 -0
  130. data/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
  131. data/frameworks/blueprint/templates/project/print.sass +3 -0
  132. data/frameworks/blueprint/templates/project/screen.sass +40 -0
  133. data/frameworks/compass.rb +2 -0
  134. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  135. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  136. data/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
  137. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  138. data/frameworks/compass/stylesheets/compass/_utilities.sass +6 -0
  139. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  140. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +6 -0
  141. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  142. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  143. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  144. data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
  145. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
  146. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  147. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
  148. data/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
  149. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
  150. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  151. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +134 -0
  152. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  153. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  154. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  155. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  156. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  157. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  158. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
  159. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  160. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +12 -0
  161. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
  162. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
  163. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
  164. data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass +13 -0
  165. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  166. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +17 -0
  167. data/frameworks/compass/templates/ellipsis/ellipsis.sass +6 -0
  168. data/frameworks/compass/templates/ellipsis/manifest.rb +2 -0
  169. data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
  170. data/frameworks/compass/templates/project/ie.sass +6 -0
  171. data/frameworks/compass/templates/project/manifest.rb +3 -0
  172. data/frameworks/compass/templates/project/print.sass +6 -0
  173. data/frameworks/compass/templates/project/screen.sass +13 -0
  174. data/frameworks/yui.rb +2 -0
  175. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  176. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  177. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  178. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  179. data/frameworks/yui/stylesheets/yui/modules/_reset.sass +61 -0
  180. data/frameworks/yui/templates/project/manifest.rb +1 -0
  181. data/frameworks/yui/templates/project/screen.sass +4 -0
  182. data/lib/compass.rb +23 -0
  183. data/lib/compass/actions.rb +110 -0
  184. data/lib/compass/app_integration.rb +5 -0
  185. data/lib/compass/app_integration/merb.rb +43 -0
  186. data/lib/compass/app_integration/rails.rb +12 -0
  187. data/lib/compass/app_integration/rails/action_controller.rb +15 -0
  188. data/lib/compass/app_integration/rails/sass_plugin.rb +5 -0
  189. data/lib/compass/app_integration/rails/templates/compass-install-rails.rb +80 -0
  190. data/lib/compass/app_integration/rails/urls.rb +14 -0
  191. data/lib/compass/commands/base.rb +33 -0
  192. data/lib/compass/commands/create_project.rb +19 -0
  193. data/lib/compass/commands/generate_grid_background.rb +24 -0
  194. data/lib/compass/commands/installer_command.rb +31 -0
  195. data/lib/compass/commands/list_frameworks.rb +16 -0
  196. data/lib/compass/commands/print_version.rb +23 -0
  197. data/lib/compass/commands/project_base.rb +112 -0
  198. data/lib/compass/commands/stamp_pattern.rb +33 -0
  199. data/lib/compass/commands/update_project.rb +34 -0
  200. data/lib/compass/commands/validate_project.rb +21 -0
  201. data/lib/compass/commands/watch_project.rb +64 -0
  202. data/lib/compass/commands/write_configuration.rb +28 -0
  203. data/lib/compass/compiler.rb +54 -0
  204. data/lib/compass/configuration.rb +324 -0
  205. data/lib/compass/core_ext.rb +14 -0
  206. data/lib/compass/dependencies.rb +10 -0
  207. data/lib/compass/errors.rb +7 -0
  208. data/lib/compass/exec.rb +251 -0
  209. data/lib/compass/frameworks.rb +29 -0
  210. data/lib/compass/grid_builder.rb +72 -0
  211. data/lib/compass/installers.rb +5 -0
  212. data/lib/compass/installers/base.rb +158 -0
  213. data/lib/compass/installers/manifest.rb +58 -0
  214. data/lib/compass/installers/rails.rb +135 -0
  215. data/lib/compass/installers/stand_alone.rb +60 -0
  216. data/lib/compass/logger.rb +42 -0
  217. data/lib/compass/sass_extensions.rb +5 -0
  218. data/lib/compass/sass_extensions/functions.rb +19 -0
  219. data/lib/compass/sass_extensions/functions/display.rb +22 -0
  220. data/lib/compass/sass_extensions/functions/enumerate.rb +6 -0
  221. data/lib/compass/sass_extensions/functions/inline_image.rb +35 -0
  222. data/lib/compass/sass_extensions/functions/selectors.rb +39 -0
  223. data/lib/compass/sass_extensions/functions/urls.rb +105 -0
  224. data/lib/compass/sass_extensions/monkey_patches.rb +3 -0
  225. data/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb +23 -0
  226. data/lib/compass/test_case.rb +38 -0
  227. data/lib/compass/validator.rb +10 -0
  228. data/lib/compass/version.rb +57 -0
  229. data/lib/vendor/fssm.rb +41 -0
  230. data/lib/vendor/fssm/backends/fsevents.rb +37 -0
  231. data/lib/vendor/fssm/backends/polling.rb +26 -0
  232. data/lib/vendor/fssm/cache.rb +193 -0
  233. data/lib/vendor/fssm/ext.rb +37 -0
  234. data/lib/vendor/fssm/fsevents.rb +129 -0
  235. data/lib/vendor/fssm/monitor.rb +25 -0
  236. data/lib/vendor/fssm/path.rb +91 -0
  237. data/lib/vendor/fssm/state.rb +54 -0
  238. data/lib/vendor/fssm/support.rb +22 -0
  239. data/lib/vendor/fssm/tree.rb +176 -0
  240. data/test/command_line_helper.rb +102 -0
  241. data/test/command_line_test.rb +66 -0
  242. data/test/compass_test.rb +141 -0
  243. data/test/configuration_test.rb +118 -0
  244. data/test/fixtures/stylesheets/blueprint/config.rb +9 -0
  245. data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
  246. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  247. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
  248. data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
  249. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
  250. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
  251. data/test/fixtures/stylesheets/compass/config.rb +9 -0
  252. data/test/fixtures/stylesheets/compass/css/layout.css +13 -0
  253. data/test/fixtures/stylesheets/compass/css/print.css +18 -0
  254. data/test/fixtures/stylesheets/compass/css/reset.css +60 -0
  255. data/test/fixtures/stylesheets/compass/css/utilities.css +17 -0
  256. data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
  257. data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
  258. data/test/fixtures/stylesheets/compass/sass/reset.sass +10 -0
  259. data/test/fixtures/stylesheets/compass/sass/utilities.sass +6 -0
  260. data/test/fixtures/stylesheets/image_urls/config.rb +17 -0
  261. data/test/fixtures/stylesheets/image_urls/css/screen.css +3 -0
  262. data/test/fixtures/stylesheets/image_urls/images/grid.png +0 -0
  263. data/test/fixtures/stylesheets/image_urls/sass/screen.sass +6 -0
  264. data/test/fixtures/stylesheets/yui/config.rb +9 -0
  265. data/test/fixtures/stylesheets/yui/css/mixins.css +13 -0
  266. data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
  267. data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
  268. data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
  269. data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
  270. data/test/rails_integration_test.rb +83 -0
  271. data/test/sass_extensions_test.rb +31 -0
  272. data/test/test_case_helper.rb +13 -0
  273. data/test/test_helper.rb +21 -0
  274. data/test/test_rails_helper.rb +20 -0
  275. metadata +372 -0
@@ -0,0 +1,29 @@
1
+ Copyright (c) 2009 Christopher M. Eppstein
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+ No attribution is required by products that make use of this software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+
23
+ Except as contained in this notice, the name(s) of the above copyright
24
+ holders shall not be used in advertising or otherwise to promote the sale,
25
+ use or other dealings in this Software without prior written authorization.
26
+
27
+ Contributors to this project agree to grant all rights to the copyright
28
+ holder of the primary product. Attribution is maintained in the source
29
+ control history of the product.
@@ -0,0 +1,44 @@
1
+ # Compass
2
+ A [Sass][sass]-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks:
3
+
4
+ - [Compass Core][compass_core_website] - [Wiki Documentation][compass_core_wiki]
5
+ - [Blueprint][blueprint_website] - [Wiki Documentation][bleuprint_wiki]
6
+ - [YUI][yui_website] - [Wiki Documentation][yui_wiki]
7
+ - [960][ninesixty_website] - [Wiki Documentation][ninesixty_wiki]
8
+ - Other frameworks can be added relatively easily. Create your own!
9
+
10
+ ## Compass Provides
11
+
12
+ 1. A [command line tool][command_line_wiki] for managing your Sass projects.
13
+ 2. Simple integration with [Ruby-on-Rails][ruby_on_rails_wiki], [Merb][merb_wiki], [StaticMatic][static_matic_wiki], and even [non-ruby application servers][command_line_wiki].
14
+ 3. Loads of Sass mixins to make building your website a snap.
15
+
16
+ ## More Information
17
+ Please see the [wiki][wiki]
18
+
19
+ ## Author
20
+ Compass is written by [Chris Eppstein][chris_eppstein].<br>
21
+ Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team.
22
+
23
+ ## License
24
+ Copyright (c) 2008-2009 Christopher M. Eppstein<br>
25
+ All Rights Reserved.<br>
26
+ Released under a [slightly modified MIT License][license].
27
+
28
+ [sass]: http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html "Syntactically Awesome StyleSheets"
29
+ [compass_core_website]: http://github.com/chriseppstein/compass/tree/master/frameworks/compass
30
+ [compass_core_wiki]: http://github.com/chriseppstein/compass/wikis/compass-core-documentation
31
+ [blueprint_website]: http://blueprintcss.org/
32
+ [bleuprint_wiki]: http://github.com/chriseppstein/compass/wikis/blueprint-documentation
33
+ [yui_website]: http://developer.yahoo.com/yui/grids/
34
+ [yui_wiki]: http://github.com/chriseppstein/compass/wikis/yui-documentation
35
+ [ninesixty_website]: http://960.gs/
36
+ [ninesixty_wiki]: http://github.com/chriseppstein/compass/wikis/960gs-documentation
37
+ [command_line_wiki]: http://wiki.github.com/chriseppstein/compass/command-line-tool
38
+ [wiki]: http://github.com/chriseppstein/compass/wikis/home
39
+ [ruby_on_rails_wiki]: http://wiki.github.com/chriseppstein/compass/ruby-on-rails-integration
40
+ [merb_wiki]: http://wiki.github.com/chriseppstein/compass/merb-integration
41
+ [static_matic_wiki]: http://wiki.github.com/chriseppstein/compass/staticmatic-integration
42
+ [chris_eppstein]: http://acts-as-architect.blogspot.com
43
+ [caring.com]: http://www.caring.com/ "Senior Care Resources"
44
+ [license]: http://github.com/chriseppstein/compass/tree/master/LICENSE.markdown
@@ -0,0 +1 @@
1
+ fd4ddc01714708e68ef428de6a2642cb2d3eec8f
@@ -0,0 +1,127 @@
1
+ if ENV['RUN_CODE_RUN']
2
+ # We need to checkout edge haml for the run>code>run test environment.
3
+ if File.directory?("haml")
4
+ Dir.chdir("haml") do
5
+ sh "git", "pull"
6
+ end
7
+ else
8
+ sh "git", "clone", "git://github.com/nex3/haml.git"
9
+ end
10
+ $LOAD_PATH.unshift "haml/lib"
11
+ end
12
+
13
+ require 'rubygems'
14
+ require 'rake'
15
+ require 'lib/compass'
16
+
17
+ # ----- Default: Testing ------
18
+
19
+ task :default => :run_tests
20
+
21
+ require 'rake/testtask'
22
+ require 'fileutils'
23
+
24
+ Rake::TestTask.new :run_tests do |t|
25
+ t.libs << 'lib'
26
+ t.libs << 'haml/lib' if ENV["RUN_CODE_RUN"]
27
+ test_files = FileList['test/**/*_test.rb']
28
+ test_files.exclude('test/rails/*', 'test/haml/*')
29
+ t.test_files = test_files
30
+ t.verbose = true
31
+ end
32
+ Rake::Task[:test].send(:add_comment, <<END)
33
+ To run with an alternate version of Rails, make test/rails a symlink to that version.
34
+ To run with an alternate version of Haml & Sass, make test/haml a symlink to that version.
35
+ END
36
+
37
+ begin
38
+ require 'jeweler'
39
+ Jeweler::Tasks.new do |gemspec|
40
+ gemspec.rubyforge_project = "compass"
41
+ gemspec.name = "compass"
42
+ gemspec.summary = "A Real Stylesheet Framework"
43
+ gemspec.email = "chris@eppsteins.net"
44
+ gemspec.homepage = "http://compass-style.org"
45
+ gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS."
46
+ gemspec.authors = ["Chris Eppstein"]
47
+ gemspec.has_rdoc = false
48
+ gemspec.add_dependency('haml', '>= 2.2.0')
49
+ gemspec.files = []
50
+ gemspec.files << "CHANGELOG.markdown"
51
+ gemspec.files << "README.markdown"
52
+ gemspec.files << "LICENSE.markdown"
53
+ gemspec.files << "REVISION"
54
+ gemspec.files << "VERSION.yml"
55
+ gemspec.files << "Rakefile"
56
+ gemspec.files << "deps.rip"
57
+ gemspec.files += Dir.glob("bin/*")
58
+ gemspec.files += Dir.glob("examples/**/*.*")
59
+ gemspec.files -= Dir.glob("examples/**/*.css")
60
+ gemspec.files -= Dir.glob("examples/**/*.html")
61
+ gemspec.files += Dir.glob("frameworks/**/*.*")
62
+ gemspec.files += Dir.glob("lib/**/*")
63
+ gemspec.files += Dir.glob("test/**/*.*")
64
+ gemspec.files -= Dir.glob("test/fixtures/stylesheets/*/saved/**/*.*")
65
+ gemspec.test_files = Dir.glob("test/**/*.*")
66
+ gemspec.test_files -= Dir.glob("test/fixtures/stylesheets/*/saved/**/*.*")
67
+ end
68
+ rescue LoadError
69
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
70
+ end
71
+
72
+ desc "Record the current git revision."
73
+ task :REVISION do
74
+ require 'git'
75
+
76
+ repo = Git.open('.')
77
+ open("REVISION", "w") do |f|
78
+ f.write(repo.object("HEAD").sha)
79
+ end
80
+ end
81
+
82
+ desc "Commit the revision file."
83
+ task :commit_revision => :REVISION do
84
+ require 'git'
85
+ repo = Git.open('.')
86
+ repo.add("REVISION")
87
+ repo.commit("Record current revision for release.")
88
+ end
89
+
90
+ task :release => :commit_revision
91
+
92
+ desc "Compile Examples into HTML and CSS"
93
+ task :examples do
94
+ linked_haml = "tests/haml"
95
+ if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
96
+ puts "[ using linked Haml ]"
97
+ $:.unshift linked_haml + '/lib'
98
+ end
99
+ require 'haml'
100
+ require 'sass'
101
+ require 'pathname'
102
+ require 'lib/compass'
103
+ require 'lib/compass/exec'
104
+ FileList['examples/*'].each do |example|
105
+ next unless File.directory?(example)
106
+ puts "\nCompiling #{example}"
107
+ puts "=" * "Compiling #{example}".length
108
+ # compile any haml templates to html
109
+ FileList["#{example}/**/*.haml"].each do |haml_file|
110
+ basename = haml_file[0..-6]
111
+ engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file)
112
+ puts " haml #{File.basename(basename)}"
113
+ output = open(basename,'w')
114
+ output.write(engine.render)
115
+ output.close
116
+ end
117
+ Dir.chdir example do
118
+ Compass::Exec::Compass.new(["--force"]).run!
119
+ end
120
+ end
121
+ end
122
+
123
+ namespace :git do
124
+ task :clean do
125
+ sh "git", "clean", "-fdx"
126
+ end
127
+ end
@@ -0,0 +1,4 @@
1
+ ---
2
+ :patch: 16
3
+ :major: 0
4
+ :minor: 8
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # The compass command line utility
3
+
4
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'compass'))
5
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'compass', 'exec'))
6
+
7
+ command = Compass::Exec::Compass.new(ARGV)
8
+ exit command.run!
@@ -0,0 +1 @@
1
+ git://github.com/nex3/haml.git master
@@ -0,0 +1,4 @@
1
+ To build the examples:
2
+
3
+ 1. You can run the compass command line from any particular compass example project
4
+ 2. You can compile them all by running `rake examples` at the top of the project directory.
@@ -0,0 +1,7 @@
1
+ # Require any additional compass plugins here.
2
+ project_type = :stand_alone
3
+ css_dir = "stylesheets"
4
+ sass_dir = "src"
5
+ images_dir = "images"
6
+ output_style = :compact
7
+ relative_assets = true
@@ -0,0 +1,85 @@
1
+ !!!
2
+ %html{ :lang => "en" }
3
+ %head
4
+ %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
5
+ %title
6
+ Blueprint test pages
7
+ /
8
+ Framework CSS
9
+ %link{ :href => "stylesheets/screen.css", :rel => "stylesheet", :media => "screen, projection", :type => "text/css" }
10
+ %link{ :href => "stylesheets/index.css", :rel => "stylesheet", :media => "screen, projection", :type => "text/css" }
11
+ %link{ :href => "stylesheets/print.css", :rel => "stylesheet", :media => "print", :type => "text/css" }
12
+ /
13
+ [if IE]><link rel="stylesheet" href="stylesheets/ie.css" type="text/css" media="screen, projection"><![endif]
14
+ %body
15
+ .container
16
+ %h1
17
+ Blueprint test pages
18
+ %hr
19
+ %p
20
+ Welcome to the Blueprint test pages. The HTML files below tests most HTML elements, and especially classes provided
21
+ by&nbsp;Blueprint.
22
+ %table{ :cellspacing => "0", :border => "0", :cellpadding => "0" }
23
+ %tr
24
+ %th.span-6
25
+ Test page
26
+ %th.span-8
27
+ Main files tested
28
+ %th.span-10
29
+ Description
30
+ %tr
31
+ %td
32
+ %a{ :href => "parts/grid.html" }
33
+ Grid
34
+ %td
35
+ %a{ :href => "../../frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass" }
36
+ grid.sass
37
+ %td
38
+ Tests classes provided by the grid module.
39
+ %tr.even
40
+ %td
41
+ %a{ :href => "parts/elements.html" }
42
+ Typography
43
+ %td
44
+ %a{ :href => "../../frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass" }
45
+ typography.sass
46
+ %td
47
+ Tests HTML elements which gets set in the typography module.
48
+ %tr
49
+ %td
50
+ %a{ :href => "parts/forms.html" }
51
+ Forms
52
+ %td
53
+ %a{ :href => "../../frameworks/blueprint/stylesheets/blueprint/modules/_form.sass" }
54
+ form.sass
55
+ %td
56
+ Tests classes and default look provided by the form module.
57
+ %p
58
+ %em
59
+ %strong
60
+ Note about the css files:
61
+ These test files utilize the css files that are generated from
62
+ %a{ :href => "http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html" }
63
+ Sass templates
64
+ \.
65
+ In other words, if you change any of the source files,
66
+ you'll have to re-build them with
67
+ %code
68
+ rake examples
69
+ to see any&nbsp;changes.
70
+ .box
71
+ %p
72
+ For more information and help, try these resources:
73
+ %ul.bottom
74
+ %li
75
+ %a{ :href => "http://code.google.com/p/blueprintcss" }
76
+ The Blueprint home page.
77
+ %li
78
+ %a{ :href => "http://groups.google.com/group/blueprintcss" }
79
+ Our anything-goes mailing list.
80
+ %li
81
+ %a{ :href => "http://bjorkoy.com" }
82
+ The blog where news about Blueprint gets posted.
83
+ %p
84
+ %a{ :href => "http://validator.w3.org/check?uri=referer" }
85
+ %img.top{ :src => "parts/valid.png", :height => "31", :alt => "Valid HTML 4.01 Strict", :width => "88" }
@@ -0,0 +1,282 @@
1
+ !!!
2
+ %html{ :lang => "en" }
3
+ %head
4
+ %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
5
+ %title
6
+ Blueprint HTML Elements Tests
7
+ /
8
+ Framework CSS
9
+ %link{ :href => "../stylesheets/screen.css", :rel => "stylesheet", :media => "screen, projection", :type => "text/css" }
10
+ %link{ :href => "../stylesheets/print.css", :rel => "stylesheet", :media => "print", :type => "text/css" }
11
+ /
12
+ [if IE]><link rel="stylesheet" href="../stylesheets/ie.css" type="text/css" media="screen, projection"><![endif]
13
+ %body
14
+ .container.showgrid
15
+ %h2
16
+ Tests for common HTML elements
17
+ %hr
18
+ %h5
19
+ PARAGRAPHS
20
+ %span.alt
21
+ \&amp;
22
+ BOXES
23
+ .span-8
24
+ %p
25
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
26
+ %p
27
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
28
+ %sub
29
+ sub text
30
+ ut labore et
31
+ %sup
32
+ sup text
33
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
34
+ .span-8
35
+ %p.small
36
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
37
+ %p
38
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
39
+ %p.large
40
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
41
+ .span-8.last
42
+ .box
43
+ %p.last
44
+ Aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
45
+ %blockquote
46
+ %p
47
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
48
+ %hr
49
+ %h5
50
+ LISTS
51
+ .span-8
52
+ %ul
53
+ %li
54
+ Unordered list test
55
+ %li
56
+ Another list element. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
57
+ %li
58
+ Yet another element in the list
59
+ %li
60
+ Some long text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
61
+ %ol
62
+ %li
63
+ Ordered list test
64
+ %li
65
+ Another list element
66
+ %li
67
+ Yet another element in the list
68
+ .span-8
69
+ %ol
70
+ %li
71
+ Ordered list
72
+ %li
73
+ Here's a nested unordered list
74
+ %ul
75
+ %li
76
+ Nested Unordered list
77
+ %li
78
+ Nested ordered list
79
+ %ol
80
+ %li
81
+ The first
82
+ %li
83
+ And the second
84
+ %li
85
+ Ordered List item
86
+ %li
87
+ Nested Ordered list
88
+ %ol
89
+ %li
90
+ Some point
91
+ %li
92
+ Nested Unordered list
93
+ %ul
94
+ %li
95
+ The first
96
+ %li
97
+ And the second
98
+ .span-8.last
99
+ %dl
100
+ %dt
101
+ definition list dt
102
+ %dd
103
+ definition list dd
104
+ %dt
105
+ definition list dt
106
+ %dd
107
+ definition list dd
108
+ %dt
109
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
110
+ %dd
111
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
112
+ %dt
113
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
114
+ %dd
115
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
116
+ %hr
117
+ %h5
118
+ HEADINGS
119
+ .span-8
120
+ %h1
121
+ H1: Lorem ipsum dolor sit amet
122
+ %h2
123
+ H2: Lorem ipsum dolor sit amet, consectetur elit
124
+ %h3
125
+ H3: Lorem ipsum dolor sit amet, consectetur adipisicing elit
126
+ %h4
127
+ H4: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipis
128
+ %h5
129
+ H5: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
130
+ %h6
131
+ H6: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
132
+ .span-8
133
+ %h1
134
+ Heading 1
135
+ %hr
136
+ %h2
137
+ Heading 2
138
+ %hr
139
+ %h3
140
+ Heading 3
141
+ %hr
142
+ %h4
143
+ Heading 4
144
+ %hr
145
+ %h5
146
+ Heading 5
147
+ %hr
148
+ %h6
149
+ Heading 6
150
+ .span-8.last
151
+ %h1
152
+ Heading 1
153
+ %h2
154
+ Heading 2
155
+ %h3
156
+ Heading 3
157
+ %h4
158
+ Heading 4
159
+ %h5
160
+ Heading 5
161
+ %h6
162
+ Heading 6
163
+ %hr
164
+ %h5
165
+ MISC ELEMENTS
166
+ .span-8
167
+ %p
168
+ %strong
169
+ \&lt;strong&gt;
170
+ %br
171
+ %del
172
+ \&lt;del&gt; deleted
173
+ %br
174
+ %dfn
175
+ \&lt;dfn&gt; dfn
176
+ %br
177
+ %em
178
+ \&lt;em&gt; emphasis
179
+ %p
180
+ %a
181
+ \&lt;a&gt; anchor
182
+ %br
183
+ %a{ :href => "http://www.google.com" }
184
+ \&lt;a&gt; a + href
185
+ %p
186
+ %abbr{ :title => "extended abbr text should show when mouse over" }
187
+ \&lt;abbr&gt; abbr - extended text when mouseover.
188
+ %br
189
+ %acronym{ :title => "extended acronym text should show when mouse over" }
190
+ \&lt;acronym&gt; acronym - extended text when mouseover.
191
+ %address
192
+ \&lt;address&gt;
193
+ %br
194
+ Donald Duck
195
+ %br
196
+ Box 555
197
+ %br
198
+ Disneyland
199
+ %p
200
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore dolore.
201
+ .span-8
202
+ %table{ :cellspacing => "0", :border => "0", :summary => "This is the summary text for this table.", :cellpadding => "0" }
203
+ %caption
204
+ %em
205
+ A standard test table with a caption, tr, td elements
206
+ %tr
207
+ %th.span-4
208
+ Table Header One
209
+ %th.span-4.last
210
+ Table Header Two
211
+ %tr
212
+ %td
213
+ TD One
214
+ %td
215
+ TD Two
216
+ %tr
217
+ %td{ :colspan => "2" }
218
+ TD colspan 2
219
+ %table{ :cellspacing => "0", :border => "0", :summary => "This is the summary text for this table.", :cellpadding => "0" }
220
+ %caption
221
+ %em
222
+ A test table with a thead, tfoot, and tbody elements
223
+ %thead
224
+ %tr
225
+ %th.span-4
226
+ Table Header One
227
+ %th.span-4.last
228
+ Table Header Two
229
+ %tfoot
230
+ %tr
231
+ %td{ :colspan => "2" }
232
+ tfoot footer
233
+ %tbody
234
+ %tr
235
+ %td
236
+ TD One
237
+ %td
238
+ TD Two
239
+ %tr
240
+ %td
241
+ TD One
242
+ %td
243
+ TD Two
244
+ %tbody
245
+ %tr
246
+ %td
247
+ TD One
248
+ %td
249
+ TD Two
250
+ %tr
251
+ %td
252
+ TD One
253
+ %td
254
+ TD Two
255
+ .span-8.last
256
+ %pre
257
+ \&lt;pre&gt;
258
+ pre space1
259
+ pre space1
260
+ pre space2
261
+ pre space2
262
+ pre tab
263
+ pre tab
264
+ %code
265
+ \&lt;code&gt;
266
+ Not indented
267
+ indent1
268
+ indent1
269
+ indent2
270
+ indent3
271
+ %tt
272
+ \&lt;tt&gt;
273
+ This tt text should be monospaced
274
+ and
275
+ wrap as if
276
+ one line of text
277
+ even though the code has newlines, spaces, and tabs.
278
+ It should be the same size as &lt;p&gt; text.
279
+ %hr
280
+ %p
281
+ %a{ :href => "http://validator.w3.org/check?uri=referer" }
282
+ %img.top{ :src => "valid.png", :height => "31", :alt => "Valid HTML 4.01 Strict", :width => "88" }