compass-edge 0.9.5.0 → 0.10.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. data/CHANGELOG.markdown +0 -153
  2. data/README.markdown +2 -12
  3. data/REVISION +1 -1
  4. data/Rakefile +2 -37
  5. data/VERSION.yml +1 -1
  6. data/examples/blueprint_default/index.html.haml +3 -3
  7. data/examples/blueprint_default/parts/forms.html.haml +0 -2
  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_semantic/src/liquid.sass +4 -4
  15. data/examples/blueprint_semantic/src/screen.sass +3 -3
  16. data/examples/compass/src/utilities.sass +2 -2
  17. data/examples/downloader.rb +2 -2
  18. data/lib/compass/app_integration.rb +0 -21
  19. data/lib/compass/app_integration/rails.rb +0 -18
  20. data/lib/compass/app_integration/rails/configuration_defaults.rb +0 -16
  21. data/lib/compass/app_integration/rails/installer.rb +6 -6
  22. data/lib/compass/app_integration/stand_alone.rb +1 -20
  23. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -5
  24. data/lib/compass/app_integration/stand_alone/installer.rb +17 -29
  25. data/lib/compass/commands.rb +2 -2
  26. data/lib/compass/commands/create_project.rb +1 -10
  27. data/lib/compass/commands/generate_grid_background.rb +1 -1
  28. data/lib/compass/commands/help.rb +7 -34
  29. data/lib/compass/commands/installer_command.rb +11 -15
  30. data/lib/compass/commands/project_base.rb +2 -2
  31. data/lib/compass/commands/update_project.rb +1 -51
  32. data/lib/compass/commands/validate_project.rb +3 -59
  33. data/lib/compass/commands/watch_project.rb +2 -4
  34. data/lib/compass/commands/write_configuration.rb +3 -84
  35. data/lib/compass/compiler.rb +4 -13
  36. data/lib/compass/configuration.rb +18 -23
  37. data/lib/compass/configuration/adapters.rb +1 -1
  38. data/lib/compass/configuration/data.rb +2 -5
  39. data/lib/compass/configuration/defaults.rb +1 -32
  40. data/lib/compass/configuration/helpers.rb +10 -47
  41. data/lib/compass/configuration/inheritance.rb +1 -1
  42. data/lib/compass/configuration/serialization.rb +2 -2
  43. data/lib/compass/errors.rb +1 -4
  44. data/lib/compass/exec.rb +0 -1
  45. data/lib/compass/exec/project_options_parser.rb +0 -4
  46. data/lib/compass/frameworks.rb +1 -40
  47. data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +1 -29
  48. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
  49. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +4 -1
  50. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +2 -57
  51. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -2
  52. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -2
  53. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -2
  54. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -2
  55. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -2
  56. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -2
  57. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -2
  58. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -2
  59. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -2
  60. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -2
  61. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -2
  62. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -2
  63. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -2
  64. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -2
  65. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -2
  66. data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
  67. data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +0 -12
  68. data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
  69. data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +0 -13
  70. data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +0 -24
  71. data/lib/compass/frameworks/blueprint/templates/project/screen.sass +7 -1
  72. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +1 -9
  73. data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -2
  74. data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +1 -0
  75. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
  76. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass +0 -0
  77. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
  78. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass +0 -0
  79. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass +0 -0
  80. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass +0 -0
  81. data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass +0 -0
  82. data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +2 -2
  83. data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +1 -26
  84. data/lib/compass/frameworks/compass/templates/extension/manifest.rb +2 -16
  85. data/lib/compass/frameworks/compass/templates/project/manifest.rb +0 -1
  86. data/lib/compass/grid_builder.rb +1 -1
  87. data/lib/compass/installers.rb +1 -1
  88. data/lib/compass/installers/base.rb +52 -13
  89. data/lib/compass/installers/manifest.rb +1 -33
  90. data/lib/compass/logger.rb +2 -28
  91. data/lib/compass/sass_extensions/functions.rb +1 -3
  92. data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
  93. data/lib/compass/sass_extensions/functions/inline_image.rb +1 -22
  94. data/lib/compass/sass_extensions/functions/urls.rb +0 -20
  95. data/lib/compass/sass_extensions/monkey_patches.rb +2 -2
  96. data/lib/compass/validator.rb +3 -2
  97. data/lib/vendor/fssm.rb +6 -19
  98. data/lib/vendor/fssm/backends/fsevents.rb +60 -19
  99. data/lib/vendor/fssm/backends/polling.rb +18 -20
  100. data/lib/vendor/fssm/ext.rb +0 -30
  101. data/lib/vendor/fssm/monitor.rb +6 -10
  102. data/lib/vendor/fssm/path.rb +21 -24
  103. data/lib/vendor/fssm/state.rb +29 -37
  104. data/lib/vendor/fssm/support.rb +7 -3
  105. data/test/command_line_helper.rb +4 -12
  106. data/test/command_line_test.rb +2 -2
  107. data/test/compass_test.rb +4 -14
  108. data/test/configuration_test.rb +5 -5
  109. data/test/fixtures/stylesheets/blueprint/css/typography.css +3 -5
  110. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
  111. data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
  112. data/test/fixtures/stylesheets/compass/css/print.css +8 -2
  113. data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
  114. data/test/fixtures/stylesheets/image_urls/css/screen.css +0 -2
  115. data/test/io_helper.rb +1 -18
  116. data/test/rails_integration_test.rb +41 -3
  117. data/test/sass_extensions_test.rb +2 -2
  118. data/test/test_helper.rb +0 -1
  119. metadata +9 -124
  120. data/examples/compass/bootstrap.rb +0 -3
  121. data/examples/compass/extensions/yui/stylesheets/_yui.sass +0 -7
  122. data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
  123. data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
  124. data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
  125. data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
  126. data/examples/compass/extensions/yui/templates/project/manifest.rb +0 -1
  127. data/examples/compass/extensions/yui/templates/project/screen.sass +0 -4
  128. data/examples/css3/config.rb +0 -6
  129. data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
  130. data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
  131. data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -7
  132. data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -5
  133. data/examples/css3/images/fresh-peas.jpg +0 -0
  134. data/examples/css3/index.html.haml +0 -55
  135. data/examples/css3/src/_base.sass +0 -14
  136. data/examples/css3/src/fancy-fonts.sass +0 -7
  137. data/examples/css3/src/gradient.sass +0 -10
  138. data/examples/css3/src/main.sass +0 -80
  139. data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
  140. data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
  141. data/examples/susy/bootstrap.rb +0 -3
  142. data/examples/susy/config.rb +0 -9
  143. data/examples/susy/extensions/susy/LICENSE.txt +0 -28
  144. data/examples/susy/extensions/susy/README.mkdn +0 -235
  145. data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +0 -35
  146. data/examples/susy/extensions/susy/docs/tutorial/build.sh +0 -141
  147. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +0 -100
  148. data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +0 -98
  149. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +0 -147
  150. data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +0 -19
  151. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +0 -147
  152. data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +0 -48
  153. data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +0 -14
  154. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
  155. data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
  156. data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +0 -63
  157. data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +0 -1450
  158. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +0 -100
  159. data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +0 -91
  160. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
  161. data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
  162. data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +0 -301
  163. data/examples/susy/extensions/susy/lib/susy.rb +0 -2
  164. data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +0 -5
  165. data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +0 -79
  166. data/examples/susy/extensions/susy/sass/susy/_grid.sass +0 -128
  167. data/examples/susy/extensions/susy/sass/susy/_reset.sass +0 -7
  168. data/examples/susy/extensions/susy/sass/susy/_susy.sass +0 -23
  169. data/examples/susy/extensions/susy/sass/susy/_text.sass +0 -15
  170. data/examples/susy/extensions/susy/sass/susy/_utils.sass +0 -81
  171. data/examples/susy/extensions/susy/templates/project/_base.sass +0 -62
  172. data/examples/susy/extensions/susy/templates/project/_defaults.sass +0 -147
  173. data/examples/susy/extensions/susy/templates/project/ie.sass +0 -9
  174. data/examples/susy/extensions/susy/templates/project/manifest.rb +0 -5
  175. data/examples/susy/extensions/susy/templates/project/print.sass +0 -7
  176. data/examples/susy/extensions/susy/templates/project/screen.sass +0 -44
  177. data/examples/susy/src/_base.sass +0 -62
  178. data/examples/susy/src/_defaults.sass +0 -148
  179. data/examples/susy/src/screen.sass +0 -114
  180. data/features/command_line.feature +0 -226
  181. data/features/extensions.feature +0 -20
  182. data/features/step_definitions/command_line_steps.rb +0 -223
  183. data/features/step_definitions/extension_steps.rb +0 -13
  184. data/lib/compass/commands/interactive.rb +0 -61
  185. data/lib/compass/commands/project_stats.rb +0 -162
  186. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +0 -84
  187. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +0 -33
  188. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +0 -9
  189. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +0 -82
  190. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +0 -56
  191. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +0 -179
  192. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +0 -58
  193. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +0 -44
  194. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +0 -141
  195. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +0 -123
  196. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +0 -49
  197. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +0 -162
  198. data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +0 -37
  199. data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +0 -14
  200. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +0 -16
  201. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +0 -18
  202. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +0 -14
  203. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +0 -20
  204. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +0 -31
  205. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +0 -40
  206. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +0 -15
  207. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +0 -60
  208. data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +0 -57
  209. data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +0 -32
  210. data/lib/compass/installers/bare_installer.rb +0 -58
  211. data/lib/compass/installers/manifest_installer.rb +0 -59
  212. data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
  213. data/lib/compass/sass_extensions/functions/font_files.rb +0 -11
  214. data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
  215. data/lib/compass/stats.rb +0 -92
  216. data/lib/vendor/fssm/cache.rb +0 -193
  217. data/lib/vendor/fssm/fsevents.rb +0 -129
  218. data/lib/vendor/fssm/tree.rb +0 -176
  219. data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
  220. data/test/fixtures/stylesheets/relative/config.rb +0 -9
  221. data/test/fixtures/stylesheets/relative/css/ie.css +0 -1
  222. data/test/fixtures/stylesheets/relative/css/print.css +0 -1
  223. data/test/fixtures/stylesheets/relative/css/screen.css +0 -1
  224. data/test/fixtures/stylesheets/relative/sass/ie.sass +0 -6
  225. data/test/fixtures/stylesheets/relative/sass/print.sass +0 -6
  226. data/test/fixtures/stylesheets/relative/sass/screen.sass +0 -3
  227. data/test/rails_helper.rb +0 -40
@@ -1,17 +1,5 @@
1
- description "Button Plugin"
2
1
  stylesheet 'buttons.sass', :media => 'screen, projection'
3
2
 
4
3
  image 'buttons/cross.png'
5
4
  image 'buttons/key.png'
6
5
  image 'buttons/tick.png'
7
-
8
- help %Q{
9
- To install the button plugin:
10
- compass init --using blueprint/buttons
11
-
12
- The buttons.sass file is just a recommendation to show you how to use the button mixins.
13
- }
14
-
15
- welcome_message %Q{
16
- The buttons.sass file is just a recommendation to show you how to use the button mixins.
17
- }
@@ -1,4 +1,4 @@
1
- @import blueprint/link_icons.sass
1
+ @import blueprint/modules/link_icons.sass
2
2
 
3
3
  // This turns link icons on for all links. You can change the scoping selector from
4
4
  // body to something more specific if you prefer.
@@ -1,5 +1,3 @@
1
- description "Icons for common types of links"
2
-
3
1
  stylesheet "link_icons.sass", :media => 'screen, projection'
4
2
 
5
3
  image 'link_icons/doc.png'
@@ -10,14 +8,3 @@ image 'link_icons/im.png'
10
8
  image 'link_icons/pdf.png'
11
9
  image 'link_icons/visited.png'
12
10
  image 'link_icons/xls.png'
13
-
14
- help %Q{
15
- To install the link_icons plugin:
16
- compass init --using blueprint/link_icons
17
-
18
- The link_icons.sass file is just a recommendation to show you how to use the link mixins.
19
- }
20
-
21
- welcome_message %Q{
22
- The link_icons.sass file is just a recommendation to show you how to use the link mixins.
23
- }
@@ -1,5 +1,3 @@
1
- description "The blueprint framework."
2
-
3
1
  stylesheet 'screen.sass', :media => 'screen, projection'
4
2
  stylesheet 'partials/_base.sass'
5
3
  stylesheet 'print.sass', :media => 'print'
@@ -8,25 +6,3 @@ stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8
8
6
  image 'grid.png'
9
7
 
10
8
  html 'welcome.html.haml', :erb => true
11
-
12
- help %Q{
13
- Please see the blueprint website for documentation on how blueprint works:
14
-
15
- http://blueprintcss.org/
16
-
17
- Docs on the compass port of blueprint can be found on the wiki:
18
-
19
- http://wiki.github.com/chriseppstein/compass/blueprint-documentation
20
- }
21
-
22
- welcome_message %Q{
23
- Please see the blueprint website for documentation on how blueprint works:
24
-
25
- http://blueprintcss.org/
26
-
27
- Docs on the compass port of blueprint can be found on the wiki:
28
-
29
- http://wiki.github.com/chriseppstein/compass/blueprint-documentation
30
-
31
- To get started, edit the screen.sass file and read the comments and code there.
32
- }
@@ -5,7 +5,7 @@
5
5
  // Import all the default blueprint modules so that we can access their mixins.
6
6
  @import blueprint
7
7
  // Import the non-default scaffolding module.
8
- @import blueprint/scaffolding.sass
8
+ @import blueprint/modules/scaffolding.sass
9
9
 
10
10
  // To generate css equivalent to the blueprint css but with your configuration applied, uncomment:
11
11
  // +blueprint
@@ -39,3 +39,9 @@ body.three-col
39
39
  // true means it's the last column in the row
40
40
  +column(!content_columns, true)
41
41
 
42
+ // This is just here to style the welcome page, please delete it.
43
+ body#welcome
44
+ #container
45
+ +container
46
+ h1
47
+ +column(24)
@@ -7,15 +7,7 @@
7
7
  %link(href="<%= http_stylesheets_path %>/print.css" media="print" rel="stylesheet" type="text/css")
8
8
  /[if lt IE 8]
9
9
  %link(href="<%= http_stylesheets_path %>/ie.css" media="screen, projection" rel="stylesheet" type="text/css")
10
- %style(type="text/css")
11
- :sass
12
- @import blueprint.sass
13
- body#welcome
14
- #container
15
- +container
16
- h1
17
- +column(24)
18
10
  %body#welcome.bp
19
11
  #container
20
12
  %h1 Welcome to Compass!
21
- %p This is <%= "ERB" %>
13
+ %p This is <%= "ERB" %>
@@ -1,2 +1 @@
1
- @import compass/utilities.sass
2
- @import compass/css3.sass
1
+ @import compass/utilities.sass
@@ -1,3 +1,4 @@
1
+ @import utilities/css3.sass
1
2
  @import utilities/general.sass
2
3
  @import utilities/links.sass
3
4
  @import utilities/lists.sass
@@ -0,0 +1,6 @@
1
+ @import css3/border_radius.sass
2
+ @import css3/inline_block.sass
3
+ @import css3/opacity.sass
4
+ @import css3/box_shadow.sass
5
+ @import css3/columns.sass
6
+ @import css3/box_sizing.sass
@@ -0,0 +1,12 @@
1
+ //**
2
+ Provides cross-browser css box shadows
3
+ for Webkit and the future
4
+ arguments are horizontal offset, vertical offset, blur and color
5
+
6
+ =box-shadow(!ho, !vo, !b, !c )
7
+ /* Webkit (Safari, Chrome)
8
+ -webkit-box-shadow= !ho !vo !b !c
9
+ /* Mozilla (Firefox, Camino)
10
+ -moz-box-shadow= !ho !vo !b !c
11
+ /* CSS3
12
+ box-shadow= !ho !vo !b !c
@@ -33,7 +33,7 @@
33
33
  q, blockquote
34
34
  +reset-quotation
35
35
 
36
- a img
36
+ img a
37
37
  +reset-image-anchor-border
38
38
 
39
39
 
@@ -57,7 +57,7 @@
57
57
  q, blockquote
58
58
  +reset-quotation
59
59
 
60
- a img
60
+ img a
61
61
  +reset-image-anchor-border
62
62
 
63
63
  //Mixins partials
@@ -1,27 +1,2 @@
1
- description "Plugin for cross-browser ellipsis truncated text."
2
-
3
1
  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
- }
2
+ stylesheet 'ellipsis.sass'
@@ -1,20 +1,6 @@
1
- description "Generate a compass extension."
2
-
3
- file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
1
+ file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name])}.sass"
4
2
  file 'templates/project/manifest.rb'
5
3
  file 'templates/project/screen.sass'
6
4
 
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
5
  no_configuration_file!
20
- skip_compilation!
6
+ skip_compilation!
@@ -1,4 +1,3 @@
1
- description "The default project layout."
2
1
  stylesheet 'screen.sass', :media => 'screen, projection'
3
2
  stylesheet 'print.sass', :media => 'print'
4
3
  stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE"
@@ -48,7 +48,7 @@ module Compass
48
48
  canvas.background_fill = 'white'
49
49
 
50
50
  canvas.g do |column|
51
- column.rect(self.column_width - 1, @height).styles(:fill => "#e8effb")
51
+ column.rect(self.column_width, @height).styles(:fill => "#e8effb")
52
52
  end
53
53
 
54
54
  canvas.g do |baseline|
@@ -1,3 +1,3 @@
1
- %w(manifest template_context base manifest_installer bare_installer).each do |f|
1
+ %w(manifest template_context base).each do |f|
2
2
  require "compass/installers/#{f}"
3
3
  end
@@ -7,16 +7,22 @@ module Compass
7
7
 
8
8
  attr_accessor :template_path, :target_path, :working_path
9
9
  attr_accessor :options
10
+ attr_accessor :manifest
10
11
 
11
12
  def initialize(template_path, target_path, options = {})
12
13
  @template_path = template_path
13
14
  @target_path = target_path
14
15
  @working_path = Dir.getwd
15
16
  @options = options
17
+ @manifest = Manifest.new(manifest_file, options) if template_path
16
18
  self.logger = options[:logger]
17
19
  end
18
20
 
19
- [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path, :fonts_dir].each do |dir|
21
+ def manifest_file
22
+ @manifest_file ||= File.join(template_path, "manifest.rb")
23
+ end
24
+
25
+ [:css_dir, :sass_dir, :images_dir, :javascripts_dir, :http_stylesheets_path].each do |dir|
20
26
  define_method dir do
21
27
  Compass.configuration.send(dir)
22
28
  end
@@ -25,6 +31,23 @@ module Compass
25
31
  end
26
32
  end
27
33
 
34
+ # Initializes the project to work with compass
35
+ def init
36
+ dirs = manifest.map do |entry|
37
+ loc = send("install_location_for_#{entry.type}", entry.to, entry.options)
38
+ File.dirname(loc)
39
+ end
40
+
41
+ if manifest.has_stylesheet?
42
+ dirs << sass_dir
43
+ dirs << css_dir
44
+ end
45
+
46
+ dirs.uniq.sort.each do |dir|
47
+ directory targetize(dir)
48
+ end
49
+ end
50
+
28
51
  # Runs the installer.
29
52
  # Every installer must conform to the installation strategy of prepare, install, and then finalize.
30
53
  # A default implementation is provided for each step.
@@ -39,14 +62,25 @@ module Compass
39
62
  def prepare
40
63
  end
41
64
 
42
- # The install method override this to install
65
+ def configure_option_with_default(opt)
66
+ value = options[opt]
67
+ value ||= begin
68
+ default_method = "default_#{opt}".to_sym
69
+ send(default_method) if respond_to?(default_method)
70
+ end
71
+ send("#{opt}=", value)
72
+ end
73
+
74
+ # The default install method. Calls install_<type> methods in the order specified by the manifest.
43
75
  def install
44
- raise "Not Yet Implemented"
76
+ manifest.each do |entry|
77
+ send("install_#{entry.type}", entry.from, entry.to, entry.options)
78
+ end
45
79
  end
46
80
 
47
81
  # The default finalize method -- it is a no-op.
48
82
  # This could print out a message or something.
49
- def finalize(options = {})
83
+ def finalize
50
84
  end
51
85
 
52
86
  def compilation_required?
@@ -91,10 +125,6 @@ module Compass
91
125
  "#{javascripts_dir}/#{to}"
92
126
  end
93
127
 
94
- installer :font do |to|
95
- "#{fonts_dir}/#{to}"
96
- end
97
-
98
128
  installer :file do |to|
99
129
  "#{pattern_name_as_dir}#{to}"
100
130
  end
@@ -116,7 +146,6 @@ module Compass
116
146
  ctx = TemplateContext.ctx(:to => to, :options => options)
117
147
  contents = process_erb(contents, ctx)
118
148
  end
119
- Compass.configure_sass_plugin!
120
149
  html = Haml::Engine.new(contents, :filename => templatize(from)).render
121
150
  write_file(targetize(to), html, options)
122
151
  else
@@ -136,12 +165,22 @@ module Compass
136
165
  strip_trailing_separator File.join(template_path, separate(path))
137
166
  end
138
167
 
139
- # Emits an HTML fragment that can be used to link to the compiled css files
140
168
  def stylesheet_links
141
- ""
169
+ html = "<head>\n"
170
+ manifest.each_stylesheet do |stylesheet|
171
+ # Skip partials.
172
+ next if File.basename(stylesheet.from)[0..0] == "_"
173
+ media = if stylesheet.options[:media]
174
+ %Q{ media="#{stylesheet.options[:media]}"}
175
+ end
176
+ ss_line = %Q{ <link href="#{http_stylesheets_path}/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
177
+ if stylesheet.options[:condition]
178
+ ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->"
179
+ end
180
+ html << ss_line + "\n"
181
+ end
182
+ html << "</head>"
142
183
  end
143
184
  end
144
185
  end
145
186
  end
146
- require 'compass/installers/bare_installer'
147
- require 'compass/installers/manifest_installer'
@@ -37,41 +37,9 @@ module Compass
37
37
  type :stylesheet
38
38
  type :image
39
39
  type :javascript
40
- type :font
41
40
  type :file
42
41
  type :html
43
42
 
44
- def help(value = nil)
45
- if value
46
- @help = value
47
- else
48
- @help
49
- end
50
- end
51
-
52
- attr_reader :welcome_message_options
53
-
54
- def welcome_message(value = nil, options = {})
55
- if value
56
- @welcome_message = value
57
- @welcome_message_options = options
58
- else
59
- @welcome_message
60
- end
61
- end
62
-
63
- def welcome_message_options
64
- @welcome_message_options || {}
65
- end
66
-
67
- def description(value = nil)
68
- if value
69
- @description = value
70
- else
71
- @description
72
- end
73
- end
74
-
75
43
  # Enumerates over the manifest files
76
44
  def each
77
45
  @entries.each {|e| yield e}
@@ -108,4 +76,4 @@ module Compass
108
76
  end
109
77
 
110
78
  end
111
- end
79
+ end
@@ -1,20 +1,7 @@
1
1
  module Compass
2
2
  class Logger
3
3
 
4
- DEFAULT_ACTIONS = [:directory, :exists, :remove, :create, :overwrite, :compile, :error, :identical]
5
-
6
- ACTION_COLORS = {
7
- :error => :red,
8
- :compile => :green,
9
- :overwrite => :yellow,
10
- :create => :green,
11
- :remove => :yellow,
12
- :exists => :green,
13
- :directory => :green,
14
- :identical => :green
15
- }
16
-
17
- COLORS = { :clear => 0, :red => 31, :green => 32, :yellow => 33 }
4
+ DEFAULT_ACTIONS = [:directory, :exists, :remove, :create, :overwrite, :compile]
18
5
 
19
6
  attr_accessor :actions, :options
20
7
 
@@ -26,22 +13,9 @@ module Compass
26
13
 
27
14
  # Record an action that has occurred
28
15
  def record(action, *arguments)
29
- emit color(ACTION_COLORS[action]) if Compass.configuration.color_output
30
16
  log "#{action_padding(action)}#{action} #{arguments.join(' ')}"
31
- emit color(:clear) if Compass.configuration.color_output
32
17
  end
33
18
 
34
- def color(c)
35
- if c && COLORS.has_key?(c.to_sym)
36
- "\e[#{COLORS[c.to_sym]}m"
37
- else
38
- ""
39
- end
40
- end
41
-
42
- def emit(msg)
43
- print msg
44
- end
45
19
  # Emit a log message
46
20
  def log(msg)
47
21
  puts msg
@@ -65,4 +39,4 @@ module Compass
65
39
  def log(msg)
66
40
  end
67
41
  end
68
- end
42
+ end