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,9 +0,0 @@
1
- /*
2
- Welcome to Susy. Use this file to write IE specific override styles.
3
- Import this file using the following HTML or equivalent:
4
- <!--[if IE]>
5
- <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
6
- <![endif]-->
7
-
8
-
9
- @import base.sass
@@ -1,5 +0,0 @@
1
- stylesheet 'screen.sass', :media => "screen, projection"
2
- stylesheet 'print.sass', :media => "print"
3
- stylesheet 'ie.sass', :media => "screen, projection"
4
- stylesheet '_base.sass'
5
- stylesheet '_defaults.sass'
@@ -1,7 +0,0 @@
1
- /*
2
- Welcome to Susy. Use this file to define print styles.
3
- Import this file using the following HTML or equivalent:
4
- <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
5
-
6
-
7
- @import defaults.sass
@@ -1,44 +0,0 @@
1
- /*
2
- Welcome to Susy. Use this file to define screen styles.
3
- Import this file using the following HTML or equivalent:
4
- <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" />
5
-
6
-
7
- @import defaults.sass
8
-
9
-
10
- /* @group STRUCTURE */
11
-
12
-
13
-
14
- /* @end */
15
-
16
-
17
- /* @group COMPONENTS by type */
18
-
19
-
20
-
21
- /* @end */
22
-
23
-
24
- /* @group OVERRIDES by content */
25
-
26
-
27
-
28
- /* @end */
29
-
30
-
31
- /* @group OVERRIDES by page */
32
-
33
-
34
-
35
- /* @end */
36
-
37
-
38
- /* @group DEBUG */
39
-
40
- // Uncomment, adjust and use for debugging
41
- // #page
42
- // +show-grid("your-grid-image.png")
43
-
44
- /* @end */
@@ -1,62 +0,0 @@
1
- //**
2
- // Susy: Fixed-Elastic-Fluid grids without all the math
3
- // By: Eric A. Meyer and OddBird Collective
4
- // Site: www.oddbird.net/susy/
5
- //**
6
-
7
- // GRID
8
- // Set these values as needed for your grid layout.
9
- // - defaults are shown.
10
- !grid_unit = "em"
11
- !total_cols = 12
12
- !col_width = 4
13
- !gutter_width = 1
14
- !side_gutter_width = !gutter_width
15
-
16
-
17
- // OMEGA_FLOAT
18
- // By default, +omega elements are floated right.
19
- // You can override that globally here:
20
- // !omega_float = "right"
21
-
22
-
23
- // HACKS
24
- // Are you using hacks or conditional comments? Susy makes both possible.
25
- // Leave this as 'true' to use hacks, set it as false for conditional comments.
26
- // Conditional comments will require overrides for +omega, +inline-block and
27
- // several other mixins.
28
- // !hacks = true
29
-
30
-
31
- // FONT-SIZE
32
- // Override these values as needed (defaults are shown)
33
- // - You set the font and line heights in pixels.
34
- // - Susy will do the math and give you !base_font_size and !base_line_height
35
- // variables, set flexibly against the common browser default of 16px
36
- !base_font_size_px = 16
37
- !base_line_height_px = 24
38
-
39
-
40
- // SUSY
41
- // Don't move this @import above the GRID and FONT-SIZE overrides.
42
- @import susy/susy.sass
43
-
44
-
45
- // COLORS
46
- // Set any colors you will need later.
47
- !main = #194C66
48
- !alt = #CC6633
49
-
50
-
51
- // FONTS
52
- // Give yourself some font stacks to work with.
53
- =sans-family
54
- font-family: Helvetica, Arial, sans-serif
55
-
56
- =serif-family
57
- font-family: Baskerville, Palatino, serif
58
-
59
-
60
- // OTHER MIXINS
61
- // Mixins set here will be available in defaults, screen, print and IE
62
- // Or anywhere you import either base.sass or defaults.sass
@@ -1,148 +0,0 @@
1
- //** DEFAULT STYLES **//
2
- // Don't forget to set your default styles.
3
-
4
-
5
- // Get all the details and mixins from base.sass
6
- @import base.sass
7
- // Reset browser defaults, and prepare block-level HTML5 elements
8
- @import susy/reset.sass
9
- @import compass/css3.sass
10
-
11
-
12
- /* @group defaults */
13
-
14
- body
15
- +sans-family
16
- color= !main
17
-
18
- /* @group links */
19
-
20
- \:focus
21
- outline= 1px "dotted" !alt
22
-
23
- a
24
- &:link, &:visited
25
- color= !alt
26
- &:focus, &:hover, &:active
27
- color= !alt - #222
28
- text-decoration: none
29
-
30
- /* @end */
31
-
32
-
33
- /* @group headers */
34
-
35
- h1, h2, h3, h4, h5, h6
36
- font-weight: bold
37
-
38
- /* @end */
39
-
40
-
41
- /* @group forms */
42
-
43
- form *:focus
44
- outline: none
45
-
46
- fieldset
47
- margin= !base_line_height 0
48
-
49
- legend
50
- font-weight: bold
51
- font-variant: small-caps
52
-
53
- label
54
- display: block
55
- margin-top= !base_line_height
56
-
57
- legend + label
58
- margin-top: 0
59
-
60
- textarea, input[type="text"]
61
- +box-sizing("border-box")
62
- width: 100%
63
-
64
- /* @end */
65
-
66
-
67
- /* @group tables */
68
-
69
- /* tables still need 'cellspacing="0"' in the markup */
70
-
71
- table
72
- :width 100%
73
- :border= 1/16 + "em solid" !main + #333
74
- :left none
75
- :right none
76
- :padding= 7/16 + "em 0"
77
- :margin= 8/16 + "em 0"
78
-
79
- th
80
- :font-weight bold
81
-
82
- /* @end */
83
-
84
-
85
- /* @group block tags */
86
-
87
- p
88
- :margin= !base_line_height 0
89
-
90
- =list-default(!ol = false)
91
- :margin= !base_line_height
92
- @if !ol
93
- :list-style decimal
94
- @else
95
- :list-style disc
96
-
97
- =no-style-list
98
- +no-bullets
99
- :margin 0
100
- :padding 0
101
-
102
- ol
103
- +list-default("ol")
104
-
105
- ul
106
- +list-default
107
-
108
- blockquote
109
- :margin= !base_line_height
110
- +serif-family
111
-
112
- /* @end */
113
-
114
-
115
- /* @group inline tags */
116
-
117
- cite
118
- :font-style italic
119
-
120
- em
121
- :font-style italic
122
-
123
- strong
124
- :font-weight bold
125
-
126
- ins
127
- :text-decoration underline
128
-
129
- del
130
- :text-decoration line-through
131
-
132
- q
133
- :font-style italic
134
- em
135
- :font-style normal
136
-
137
- /* @end */
138
-
139
-
140
- /* @group replaced tags */
141
-
142
- img
143
- :vertical-align bottom
144
-
145
- /* @end */
146
-
147
-
148
- /* @end */
@@ -1,114 +0,0 @@
1
- /*
2
- Welcome to Susy. Use this file to define screen styles.
3
- Import this file using the following HTML or equivalent:
4
- <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" />
5
-
6
-
7
- @import defaults.sass
8
-
9
-
10
- /* @group STRUCTURE */
11
-
12
- #skip-links
13
- ul
14
- +no-style-list
15
- a
16
- +skip-link
17
- width: 100%
18
-
19
- body
20
- +susy
21
-
22
- #page
23
- position: relative
24
- +container
25
- background: rgba(0,0,0,.10)
26
-
27
- h1, h2
28
- +serif-family
29
- text-transform: uppercase
30
- text-align: center
31
- background: rgba(0,0,0,.15)
32
- letter-spacing= 1/14 + "em"
33
-
34
- h1 + p, h2 + p, p:first-child
35
- margin-top: 0
36
-
37
- header[role="banner"], #site-nav
38
- +full
39
- h1
40
- font-size: 1.5em
41
- line-height: 2em
42
-
43
- #site-nav
44
- text-align: center
45
- padding: 1.5em
46
- ul
47
- +inline-block-list(.5em)
48
-
49
- #content
50
- > aside
51
- +columns(2)
52
- &:first-child
53
- +alpha
54
- & + aside
55
- +omega
56
- section[role="main"]
57
- +columns(6)
58
- > section
59
- +full(6)
60
- .major
61
- article
62
- +columns(3,6)
63
- & + article
64
- +omega(6)
65
- .minor
66
- aside
67
- +columns(2,6)
68
- article
69
- +columns(4,6)
70
- +omega(6)
71
- header, .body
72
- +columns(2,4)
73
- .body
74
- +omega(4)
75
- footer
76
- +full(4)
77
-
78
- footer[role="contentinfo"]
79
- +full
80
- border-top= 1/14 + "em dotted"
81
- padding-top= 13/14 + "em"
82
-
83
-
84
- /* @end */
85
-
86
-
87
- /* @group COMPONENTS by type */
88
-
89
-
90
-
91
- /* @end */
92
-
93
-
94
- /* @group OVERRIDES by content */
95
-
96
-
97
-
98
- /* @end */
99
-
100
-
101
- /* @group OVERRIDES by page */
102
-
103
-
104
-
105
- /* @end */
106
-
107
-
108
- /* @group DEBUG */
109
-
110
- // Uncomment, adjust and use for debugging
111
- // #page
112
- // +show-grid("your-grid-image.png")
113
-
114
- /* @end */
@@ -1,226 +0,0 @@
1
- Feature: Command Line
2
- In order to manage my stylesheets
3
- As a user on the command line
4
- I want to create a new project
5
-
6
- Scenario: Install a project without a framework
7
- When I create a project using: compass create my_project
8
- Then a directory my_project/ is created
9
- And a configuration file my_project/config.rb is created
10
- And a sass file my_project/src/screen.sass is created
11
- And a sass file my_project/src/print.sass is created
12
- And a sass file my_project/src/ie.sass is created
13
- And a sass file my_project/src/screen.sass is compiled
14
- And a sass file my_project/src/print.sass is compiled
15
- And a sass file my_project/src/ie.sass is compiled
16
- And a css file my_project/stylesheets/screen.css is created
17
- And a css file my_project/stylesheets/print.css is created
18
- And a css file my_project/stylesheets/ie.css is created
19
- And I am told how to link to /stylesheets/screen.css for media "screen, projection"
20
- And I am told how to link to /stylesheets/print.css for media "print"
21
- And I am told how to conditionally link "IE" to /stylesheets/ie.css for media "screen, projection"
22
-
23
- Scenario: Install a project with blueprint
24
- When I create a project using: compass create bp_project --using blueprint
25
- Then a directory bp_project/ is created
26
- And a configuration file bp_project/config.rb is created
27
- And a sass file bp_project/src/screen.sass is created
28
- And a sass file bp_project/src/print.sass is created
29
- And a sass file bp_project/src/ie.sass is created
30
- And a sass file bp_project/src/screen.sass is compiled
31
- And a sass file bp_project/src/print.sass is compiled
32
- And a sass file bp_project/src/ie.sass is compiled
33
- And a css file bp_project/stylesheets/screen.css is created
34
- And a css file bp_project/stylesheets/print.css is created
35
- And a css file bp_project/stylesheets/ie.css is created
36
- And an image file bp_project/images/grid.png is created
37
- And I am told how to link to /stylesheets/screen.css for media "screen, projection"
38
- And I am told how to link to /stylesheets/print.css for media "print"
39
- And I am told how to conditionally link "lt IE 8" to /stylesheets/ie.css for media "screen, projection"
40
-
41
- Scenario: Install a project with specific directories
42
- When I create a project using: compass create custom_project --using blueprint --sass-dir sass --css-dir css --images-dir assets/imgs
43
- Then a directory custom_project/ is created
44
- And a directory custom_project/sass/ is created
45
- And a directory custom_project/css/ is created
46
- And a directory custom_project/assets/imgs/ is created
47
- And a sass file custom_project/sass/screen.sass is created
48
- And a css file custom_project/css/screen.css is created
49
- And an image file custom_project/assets/imgs/grid.png is created
50
-
51
- Scenario: Perform a dry run of creating a project
52
- When I create a project using: compass create my_project --dry-run
53
- Then a directory my_project/ is not created
54
- But a configuration file my_project/config.rb is reported created
55
- And a sass file my_project/src/screen.sass is reported created
56
- And a sass file my_project/src/print.sass is reported created
57
- And a sass file my_project/src/ie.sass is reported created
58
- And I am told how to link to /stylesheets/screen.css for media "screen, projection"
59
- And I am told how to link to /stylesheets/print.css for media "print"
60
- And I am told how to conditionally link "IE" to /stylesheets/ie.css for media "screen, projection"
61
-
62
- Scenario: Creating a bare project
63
- When I create a project using: compass create bare_project --bare
64
- Then a directory bare_project/ is created
65
- And a configuration file bare_project/config.rb is created
66
- And a directory bare_project/src/ is created
67
- And a directory bare_project/stylesheets/ is not created
68
- And I am congratulated
69
- And I am told that I can place stylesheets in the src subdirectory
70
- And I am told how to compile my sass stylesheets
71
-
72
- Scenario: Creating a bare project with a framework
73
- When I create a project using: compass create bare_project --using blueprint --bare
74
- Then an error message is printed out: A bare project cannot be created when a framework is specified.
75
- And the command exits with a non-zero error code
76
-
77
- Scenario: Initializing a rails project
78
- Given I'm in a newly created rails project: my_rails_project
79
- When I initialize a project using: compass init rails --sass-dir app/stylesheets --css-dir public/stylesheets/compiled
80
- Then a config file config/compass.rb is reported created
81
- Then a config file config/compass.rb is created
82
- And a sass file config/initializers/compass.rb is created
83
- And a sass file app/stylesheets/screen.sass is created
84
- And a sass file app/stylesheets/print.sass is created
85
- And a sass file app/stylesheets/ie.sass is created
86
-
87
- Scenario: Compiling an existing project.
88
- Given I am using the existing project in test/fixtures/stylesheets/compass
89
- When I run: compass compile
90
- Then a directory tmp/ is created
91
- And a sass file sass/layout.sass is reported compiled
92
- And a sass file sass/print.sass is reported compiled
93
- And a sass file sass/reset.sass is reported compiled
94
- And a sass file sass/utilities.sass is reported compiled
95
- And a css file tmp/layout.css is created
96
- And a css file tmp/print.css is created
97
- And a css file tmp/reset.css is created
98
- And a css file tmp/utilities.css is created
99
-
100
- Scenario: Compiling an existing project with a specified project
101
- Given I am using the existing project in test/fixtures/stylesheets/compass
102
- And I am in the parent directory
103
- When I run: compass compile tmp_compass
104
- Then a directory tmp_compass/tmp/ is created
105
- And a sass file tmp_compass/sass/layout.sass is reported compiled
106
- And a sass file tmp_compass/sass/print.sass is reported compiled
107
- And a sass file tmp_compass/sass/reset.sass is reported compiled
108
- And a sass file tmp_compass/sass/utilities.sass is reported compiled
109
- And a css file tmp_compass/tmp/layout.css is created
110
- And a css file tmp_compass/tmp/print.css is created
111
- And a css file tmp_compass/tmp/reset.css is created
112
- And a css file tmp_compass/tmp/utilities.css is created
113
-
114
- Scenario: Recompiling a project with no changes
115
- Given I am using the existing project in test/fixtures/stylesheets/compass
116
- When I run: compass compile
117
- And I run: compass compile
118
- Then a sass file sass/layout.sass is reported unchanged
119
- And a sass file sass/print.sass is reported unchanged
120
- And a sass file sass/reset.sass is reported unchanged
121
- And a sass file sass/utilities.sass is reported unchanged
122
-
123
- Scenario: Installing a pattern into a project
124
- Given I am using the existing project in test/fixtures/stylesheets/compass
125
- When I run: compass install blueprint/buttons
126
- Then a sass file sass/buttons.sass is created
127
- And an image file images/buttons/cross.png is created
128
- And an image file images/buttons/key.png is created
129
- And an image file images/buttons/tick.png is created
130
- And a css file tmp/buttons.css is created
131
-
132
- @now
133
- Scenario: Basic help
134
- When I run: compass help
135
- Then I should see the following "primary" commands:
136
- | compile |
137
- | create |
138
- | init |
139
- | watch |
140
- And I should see the following "other" commands:
141
- | config |
142
- | grid-img |
143
- | help |
144
- | install |
145
- | interactive |
146
- | stats |
147
- | validate |
148
- | version |
149
-
150
- Scenario: Recompiling a project with no material changes
151
- Given I am using the existing project in test/fixtures/stylesheets/compass
152
- When I run: compass compile
153
- And I wait 1 second
154
- And I touch sass/layout.sass
155
- And I run: compass compile
156
- Then a sass file sass/layout.sass is reported compiled
157
- Then a css file tmp/layout.css is reported identical
158
- And a sass file sass/print.sass is reported unchanged
159
- And a sass file sass/reset.sass is reported unchanged
160
- And a sass file sass/utilities.sass is reported unchanged
161
-
162
- Scenario: Recompiling a project with changes
163
- Given I am using the existing project in test/fixtures/stylesheets/compass
164
- When I run: compass compile
165
- And I wait 1 second
166
- And I add some sass to sass/layout.sass
167
- And I run: compass compile
168
- Then a sass file sass/layout.sass is reported compiled
169
- And a css file tmp/layout.css is reported overwritten
170
- And a sass file sass/print.sass is reported unchanged
171
- And a sass file sass/reset.sass is reported unchanged
172
- And a sass file sass/utilities.sass is reported unchanged
173
-
174
- Scenario: Watching a project for changes
175
- Given I am using the existing project in test/fixtures/stylesheets/compass
176
- When I run: compass compile
177
- And I run in a separate process: compass watch
178
- And I wait 1 second
179
- And I touch sass/layout.sass
180
- And I wait 2 seconds
181
- And I shutdown the other process
182
- Then a css file tmp/layout.css is reported identical
183
-
184
- Scenario: Generating a grid image so that I can debug my grid alignments
185
- Given I am using the existing project in test/fixtures/stylesheets/compass
186
- When I run: compass grid-img 30+10x24
187
- Then a png file images/grid.png is created
188
-
189
- Scenario: Generating a grid image to a specified path with custom dimensions
190
- Given I am using the existing project in test/fixtures/stylesheets/compass
191
- When I run: compass grid-img 50+10x24 assets/wide_grid.png
192
- Then a directory assets is created
193
- Then a png file assets/wide_grid.png is created
194
-
195
- Scenario: Generating a grid image with invalid dimensions
196
- Given I am using the existing project in test/fixtures/stylesheets/compass
197
- When I run: compass grid-img 50x24 assets/wide_grid.png
198
- Then a directory assets is not created
199
- And a png file assets/wide_grid.png is not created
200
-
201
- Scenario: Generate a compass configuration file
202
- Given I should clean up the directory: config
203
- When I run: compass config config/compass.rb --sass-dir sass --css-dir assets/css
204
- Then a configuration file config/compass.rb is created
205
- And the following configuration properties are set in config/compass.rb:
206
- | property | value |
207
- | sass_dir | sass |
208
- | css_dir | assets/css |
209
-
210
- Scenario: Validate the generated CSS
211
- Given I am using the existing project in test/fixtures/stylesheets/compass
212
- When I run: compass validate
213
- Then my css is validated
214
- And I am informed that my css is valid.
215
-
216
- Scenario: Get stats for my project
217
- Given I am using the existing project in test/fixtures/stylesheets/compass
218
- When I run: compass stats
219
- Then I am told statistics for each file:
220
- | Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS Rules | CSS Properties |
221
- | sass/layout.sass | 0 | 0 | 0 | 1 | 5 | 9 |
222
- | sass/print.sass | 0 | 0 | 0 | 2 | 61 | 61 |
223
- | sass/reset.sass | 4 | 1 | 0 | 2 | 191 | 665 |
224
- | sass/utilities.sass | 2 | 0 | 0 | 2 | 5 | 11 |
225
- | Total.* | 6 | 1 | 0 | 7 | 262 | 746 |
226
-