compass-edge 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/VERSION.yml +1 -1
  2. data/features/command_line.feature +18 -11
  3. data/features/extensions.feature +20 -0
  4. data/features/step_definitions/command_line_steps.rb +26 -2
  5. data/features/step_definitions/extension_steps.rb +13 -0
  6. data/lib/compass/app_integration.rb +21 -0
  7. data/lib/compass/app_integration/rails.rb +18 -0
  8. data/lib/compass/app_integration/rails/configuration_defaults.rb +8 -0
  9. data/lib/compass/app_integration/rails/installer.rb +3 -5
  10. data/lib/compass/app_integration/stand_alone.rb +20 -1
  11. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +5 -1
  12. data/lib/compass/app_integration/stand_alone/installer.rb +0 -4
  13. data/lib/compass/commands.rb +1 -1
  14. data/lib/compass/commands/create_project.rb +2 -0
  15. data/lib/compass/commands/generate_grid_background.rb +1 -1
  16. data/lib/compass/commands/help.rb +20 -8
  17. data/lib/compass/commands/installer_command.rb +14 -14
  18. data/lib/compass/commands/interactive.rb +61 -0
  19. data/lib/compass/commands/project_base.rb +2 -2
  20. data/lib/compass/commands/project_stats.rb +2 -0
  21. data/lib/compass/commands/update_project.rb +2 -0
  22. data/lib/compass/commands/write_configuration.rb +9 -1
  23. data/lib/compass/configuration/data.rb +5 -2
  24. data/lib/compass/configuration/defaults.rb +2 -1
  25. data/lib/compass/configuration/helpers.rb +38 -10
  26. data/lib/compass/configuration/serialization.rb +2 -2
  27. data/lib/compass/exec/project_options_parser.rb +4 -0
  28. data/lib/compass/frameworks.rb +5 -1
  29. data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +6 -1
  30. data/lib/compass/installers/bare_installer.rb +0 -4
  31. data/lib/compass/installers/base.rb +1 -0
  32. metadata +5 -18
  33. data/examples/ninesixty/extensions/ninesixty/README.mkdn +0 -56
  34. data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +0 -36
  35. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +0 -1
  36. data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +0 -5
  37. data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +0 -64
  38. data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +0 -59
  39. data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +0 -34
  40. data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +0 -2
  41. data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +0 -10
  42. data/examples/yui/extensions/yui/stylesheets/_yui.sass +0 -7
  43. data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
  44. data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
  45. data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
  46. data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
  47. data/examples/yui/extensions/yui/templates/project/manifest.rb +0 -1
  48. data/examples/yui/extensions/yui/templates/project/screen.sass +0 -4
@@ -1,59 +0,0 @@
1
- !ninesixty_font_family ||= "Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif"
2
-
3
- =text(!font_family = !ninesixty_font_family)
4
- body
5
- :font= "13px/1.5" !font_family
6
-
7
- a:focus
8
- :outline 1px dotted invert
9
-
10
- hr
11
- :border-color #ccc
12
- :border-style solid
13
- :border-width 1px 0 0
14
- :clear both
15
- :height 0
16
-
17
- h1
18
- :font-size 25px
19
-
20
- h2
21
- :font-size 23px
22
-
23
- h3
24
- :font-size 21px
25
-
26
- h4
27
- :font-size 19px
28
-
29
- h5
30
- :font-size 17px
31
-
32
- h6
33
- :font-size 15px
34
-
35
- ol
36
- :list-style decimal
37
-
38
- ul
39
- :list-style square
40
-
41
- li
42
- :margin-left 30px
43
-
44
- p,
45
- dl,
46
- hr,
47
- h1,
48
- h2,
49
- h3,
50
- h4,
51
- h5,
52
- h6,
53
- ol,
54
- ul,
55
- pre,
56
- table,
57
- address,
58
- fieldset
59
- :margin-bottom 20px
@@ -1,34 +0,0 @@
1
- /*
2
- 960 Grid System ~ Core CSS.
3
- Learn more ~ http://960.gs/
4
-
5
- Licensed under GPL and MIT.
6
-
7
- @import compass/utilities/general/reset.sass
8
- @import 960/grid.sass
9
-
10
- +global-reset
11
-
12
- // The following generates the default grids provided by the css version of 960.gs
13
- .container_12
14
- +grid-system(12)
15
-
16
- .container_16
17
- +grid-system(16)
18
-
19
- // But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
20
-
21
- !ninesixty_columns = 24
22
- .two-column
23
- +grid-container
24
- #header,
25
- #footer,
26
- #sidebar,
27
- #main-content
28
- +grid-unit-base
29
- #header, #footer
30
- +grid-width(24)
31
- #sidebar
32
- +grid-width(8)
33
- #main-content
34
- +grid-width(16)
@@ -1,2 +0,0 @@
1
- stylesheet 'grid.sass', :media => "screen, projection"
2
- stylesheet 'text.sass', :media => "screen, projection"
@@ -1,10 +0,0 @@
1
- /*
2
- 960 Grid System ~ Text CSS.
3
- Learn more ~ http://960.gs/
4
-
5
- Licensed under GPL and MIT.
6
-
7
-
8
- @import 960/text.sass
9
-
10
- +text
@@ -1,7 +0,0 @@
1
- @import yui/modules/base.sass
2
- @import yui/modules/fonts.sass
3
- @import yui/modules/grids.sass
4
- =yui
5
- +yui-base
6
- +yui-base-fonts
7
- +yui-grids
@@ -1,70 +0,0 @@
1
- =yui-base
2
- body
3
- :margin 10px
4
-
5
- h1
6
- :font-size 138.5%
7
-
8
- h2
9
- :font-size 123.1%
10
-
11
- h3
12
- :font-size 108%
13
-
14
- h1, h2, h3
15
- :margin 1em 0
16
-
17
- h1,h2, h3, h4, h5, h6, strong, dt
18
- :font-weight bold
19
-
20
- optgroup
21
- :font-weight normal
22
-
23
- abbr, acronym
24
- :border-bottom 1px dotted #000
25
- :cursor help
26
-
27
- em
28
- :font-style italic
29
-
30
- del
31
- :text-decoration line-through
32
-
33
- blockquote, ul, ol, dl
34
- :margin 1em
35
-
36
- ol,ul,dl
37
- :margin-left 2em
38
-
39
- ol li
40
- :list-style decimal outside
41
-
42
- ul li
43
- :list-style disc outside
44
-
45
- dl dd
46
- :margin-left 1em
47
-
48
- th, td
49
- :border 1px solid #000
50
- :padding .5em
51
-
52
- th
53
- :font-weight bold
54
- :text-align center
55
-
56
- caption
57
- :margin-bottom .5em
58
- :text-align center
59
-
60
- sup
61
- :vertical-align super
62
-
63
- sub
64
- :vertical-align sub
65
-
66
- p, fieldset, table, pre
67
- :margin-bottom 1em
68
-
69
- button, input[type="checkbox"], input[type="radio"], input[type="reset"], input[type="submit"]
70
- padding: 1px
@@ -1,45 +0,0 @@
1
- !yui_default_base_font_size ||= 13px
2
- !yui_default_base_line_height ||= 1.231
3
- !yui_default_font_family ||= "arial,helvetica,clean,sans-serif"
4
-
5
- // Sets the font size specified in pixels using percents so that the base
6
- // font size changes and 1em has the correct value. When nesting font size
7
- // declarations, within the DOM tree, the base_font_size must be the parent's
8
- // effective font-size in pixels.
9
- // Usage Examples:
10
- // .big
11
- // +font-size(16px)
12
- // .bigger
13
- // +font-size(18px)
14
- // .big .bigger
15
- // +font-size(18px, 16px)
16
- //
17
- // For more information see the table found at http://developer.yahoo.com/yui/fonts/#fontsize
18
- =font-size(!size, !base_font_size = !yui_default_base_font_size)
19
- :font-size= percentage(!size / !base_font_size)
20
-
21
- // Sets the base fonts for a page, this should be mixed into the top level of a stylesheet.
22
- =yui-base-fonts(!family = !yui_default_font_family, !size = !yui_default_base_font_size, !line_height = !yui_default_base_line_height)
23
- body
24
- :font
25
- :size= !size
26
- :family= !family
27
- :line-height= !line_height
28
- :*font-size small
29
- :*font x-small
30
-
31
- select,
32
- input,
33
- button,
34
- textarea,
35
- button
36
- :font 99% arial,helvetica,clean,sans-serif
37
-
38
- table
39
- :font-size inherit
40
- :font 100%
41
-
42
- pre, code, kbd, samp, tt
43
- :font-family monospace
44
- :*font-size 108%
45
- :line-height 100%
@@ -1,385 +0,0 @@
1
- // This is a port of YUI Grids version 2.6.0
2
- // Note: This is not really tested yet. Use at your own risk.
3
-
4
- @import compass/utilities/general/float.sass
5
- @import fonts.sass
6
-
7
- =yui-grids
8
- +yui-grids-init
9
- +yui-grid-templates
10
- +yui-grid-divisions
11
-
12
- =yui-grid-templates
13
- #doc
14
- +yui-document(750px)
15
- #doc2
16
- +yui-document(950px)
17
- #doc3
18
- +yui-document("fluid")
19
- #doc4
20
- +yui-document(974px)
21
- /* Section: Preset Template Rules (.yui-t[1-6])
22
- .yui-t1
23
- +yui-two-column-left-template(160px)
24
- .yui-t2
25
- +yui-two-column-left-template(180px)
26
- .yui-t3
27
- +yui-two-column-left-template(300px)
28
- .yui-t4
29
- +yui-two-column-right-template(180px)
30
- .yui-t5
31
- +yui-two-column-right-template(240px)
32
- .yui-t6
33
- +yui-two-column-right-template(300px)
34
- .yui-t7
35
- +yui-one-column-template
36
-
37
- =yui-group-clearing
38
- zoom: 1
39
- &:after
40
- content: "."
41
- display: block
42
- height: 0
43
- clear: both
44
- visibility: hidden
45
-
46
- =yui-grids-init(!header = "#hd", !footer = "#ft", !body = "#bd")
47
- /* Section: General Rules
48
- body
49
- :text-align center
50
- @if !header
51
- #{!header}
52
- +yui-group-clearing
53
- @if !footer
54
- #{!footer}
55
- +yui-group-clearing
56
- @if !body
57
- #{!body}
58
- +yui-group-clearing
59
-
60
- =em-size(!style, !px_size, !base_font_size = !yui_default_base_font_size)
61
- :#{!style}= 1em * !px_size / !base_font_size
62
-
63
- =em-size-hacked(!style, !px_size, !base_font_size = !yui_default_base_font_size)
64
- +em-size(!style, !px_size, !base_font_size)
65
- +em-size("*"+!style, !px_size * 39 / 40, !base_font_size)
66
-
67
- // All documents must have these styles
68
- =yui-document-base(!min_width = false)
69
- :margin auto
70
- :text-align left
71
- @if !min_width
72
- :min-width= !min_width
73
-
74
- =yui-block-base
75
- :position relative
76
- :_position static
77
-
78
- =yui-main-block
79
- :float none
80
- :width auto
81
-
82
- // Creates a fixed width document container
83
- // Pass "fluid" for the width to create a document that grows with the width of the browser.
84
- =yui-document(!width, !min_width = false, !base_font_size = !yui_default_base_font_size)
85
- +yui-document-base(!min_width)
86
- @if !width == "fluid"
87
- :margin auto 10px
88
- :width auto
89
- @else
90
- +em-size-hacked("width", !width, !base_font_size)
91
-
92
- =yui-two-column-left-template(!column_width, !main_selector = "#yui-main", !block_selector = ".yui-b", !document_width = 750px, !min_width = false, !base_font_size = !yui_default_base_font_size)
93
- +yui-document(!document_width, !min_width, !base_font_size)
94
- #{!block_selector}
95
- +yui-block-base
96
- :float left
97
- +em-size-hacked("width", !column_width, !base_font_size)
98
- #{!main_selector}
99
- :width 100%
100
- :float right
101
- :margin-left -25em
102
- #{!block_selector}
103
- +yui-main-block
104
- +em-size("margin-left", !column_width + 13px, !base_font_size)
105
- // t3 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research
106
- @if !column_width > 180px
107
- +em-size("*margin-left", (!column_width + 15px) * 39 / 40, !base_font_size)
108
- @else
109
- +em-size("*margin-left", (!column_width + 14px) * 39 / 40, !base_font_size)
110
-
111
- =yui-two-column-right-template(!column_width, !main_selector = "#yui-main", !block_selector = ".yui-b", !document_width = 750px, !min_width = false, !base_font_size = !yui_default_base_font_size)
112
- +yui-document(!document_width, !min_width, !base_font_size)
113
- #{!block_selector}
114
- +yui-block-base
115
- :float right
116
- +em-size-hacked("width", !column_width, !base_font_size)
117
- #{!main_selector}
118
- :width 100%
119
- :float left
120
- :margin-right -25em
121
- #{!block_selector}
122
- +yui-main-block
123
- +em-size("margin-right", !column_width + 13px, !base_font_size)
124
- // t5 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research
125
- @if !column_width > 180px
126
- +em-size("*margin-right", (!column_width + 15px) * 39 / 40, !base_font_size)
127
- @else
128
- +em-size("*margin-right", (!column_width + 14px) * 39 / 40, !base_font_size)
129
-
130
- =yui-one-column-template(!main_selector = "#yui-main", !block_selector = ".yui-b", !document_width = 750px, !min_width = false, !base_font_size = !yui_default_base_font_size)
131
- +yui-document(!document_width, !min_width, !base_font_size)
132
- #{!main_selector}
133
- #{!block_selector}
134
- +yui-main-block
135
- :display block
136
- :margin 0 0 1em 0
137
-
138
- =yui-custom-template(!main_selector = "#yui-main", !block_selector = ".yui-b")
139
- #{!block_selector}
140
- +yui-block-base
141
- #{!main_selector}
142
- :width 100%
143
- #{!block_selector}
144
- +yui-main-block
145
-
146
- =yui-grid-divisions(!unit = ".yui-u", !g_50_50 = ".yui-g", !g_33_33_33 = ".yui-gb", !g_67_33 = ".yui-gc", !g_33_67 = ".yui-gd", !g_75_25 = ".yui-ge", !g_25_75 = ".yui-gf")
147
-
148
- /* Section: Grids and Nesting Grids
149
-
150
- /* from #yui-main, .yui-g .yui-u .yui-g
151
- #{nest(!g_50_50, !unit, !g_50_50)}
152
- width: 100%
153
-
154
- /* Children generally take half the available space
155
- #{nest(!g_33_33_33, !unit)},
156
- #{nest(!g_50_50, !g_33_33_33, !unit)},
157
- #{nest(!g_33_33_33, !g_50_50)},
158
- #{nest(!g_33_33_33, !g_33_33_33)},
159
- #{nest(!g_33_33_33, !g_67_33)},
160
- #{nest(!g_33_33_33, !g_33_67)},
161
- #{nest(!g_33_33_33, !g_75_25)},
162
- #{nest(!g_33_33_33, !g_25_75)},
163
- #{nest(!g_67_33, !unit)},
164
- #{nest(!g_67_33, !g_50_50)},
165
- #{nest(!g_33_67, !unit)}
166
- float: left
167
-
168
- /* Float units (and sub grids) to the right
169
- #{nest(!g_50_50, !unit)},
170
- #{nest(!g_50_50, !g_50_50)},
171
- #{nest(!g_50_50, !g_33_33_33)},
172
- #{nest(!g_50_50, !g_67_33)},
173
- #{nest(!g_50_50, !g_33_67)},
174
- #{nest(!g_50_50, !g_75_25)},
175
- #{nest(!g_50_50, !g_25_75)},
176
- #{nest(!g_67_33, !unit)},
177
- #{nest(!g_33_67, !g_50_50)},
178
- #{nest(!g_50_50, !g_67_33, !unit)},
179
- #{nest(!g_75_25, !unit)},
180
- #{nest(!g_75_25, !g_50_50)},
181
- #{nest(!g_25_75, !g_50_50)},
182
- #{nest(!g_25_75, !unit)}
183
- float: right
184
-
185
- /* Float units (and sub grids) to the left
186
- #{!g_50_50},
187
- #{!g_33_33_33},
188
- #{!g_67_33},
189
- #{!g_33_67},
190
- #{!g_75_25},
191
- #{!g_25_75},
192
- #{nest(!g_50_50, !g_67_33)},
193
- #{nest(!g_50_50, !g_75_25)},
194
- #{nest(!g_67_33, "div.first")}
195
- div.first
196
- float: left
197
-
198
- #{!g_50_50}
199
- #{!unit},
200
- #{!g_50_50},
201
- #{!g_33_33_33},
202
- #{!g_67_33},
203
- #{!g_33_67},
204
- #{!g_75_25},
205
- #{!g_25_75}
206
- width: 49.1%
207
-
208
- #{nest(!g_33_33_33, !unit)},
209
- #{nest(!g_50_50, !g_33_33_33, !unit)},
210
- #{nest(!g_33_33_33, !g_50_50)},
211
- #{nest(!g_33_33_33, !g_33_33_33)},
212
- #{nest(!g_33_33_33, !g_67_33)},
213
- #{nest(!g_33_33_33, !g_33_67)},
214
- #{nest(!g_33_33_33, !g_75_25)},
215
- #{nest(!g_33_33_33, !g_25_75)},
216
- #{nest(!g_67_33, !unit)},
217
- #{nest(!g_67_33, !g_50_50)},
218
- #{nest(!g_33_67, !unit)}
219
- width: 32%
220
- margin-left: 1.99%
221
-
222
- /* Give IE some extra breathing room for 1/3-based rounding issues
223
- #{nest(!g_33_33_33, !unit)}
224
- *margin-left: 1.9%
225
- *width: 31.9%
226
-
227
- #{nest(!g_50_50, !g_33_33_33)},
228
- #{!g_33_33_33},
229
- #{!g_67_33},
230
- #{!g_33_67}
231
- div.first
232
- margin-left: 0
233
-
234
- /* Section: Deep Nesting
235
- #{!g_50_50},
236
- #{!g_33_33_33},
237
- #{!g_67_33},
238
- #{!g_33_67},
239
- #{!g_75_25},
240
- #{!g_25_75}
241
- #{!g_50_50}
242
- #{!unit}
243
- width: 49%
244
- *width: 48.1%
245
- *margin-left: 0
246
-
247
- #{nest(!g_50_50, !g_50_50, !unit)}
248
- width: 48.1%
249
-
250
- #{!g_50_50},
251
- #{!g_33_33_33}
252
- #{!g_33_33_33}
253
- div.first
254
- *margin-right: 0
255
- *width: 32%
256
- _width: 31.7%
257
-
258
- #{nest(!g_50_50, !g_67_33, "div.first")},
259
- #{nest(!g_67_33, "div.first")},
260
- #{nest(!g_33_67, !g_50_50)},
261
- #{nest(!g_33_67, !unit)}
262
- width: 66%
263
-
264
- #{nest(!g_33_33_33, !g_50_50, "div.first")}
265
- *margin-right: 4%
266
- _margin-right: 1.3%
267
-
268
- #{!g_33_33_33}
269
- #{!g_67_33},
270
- #{!g_33_67}
271
- div.first
272
- *margin-right: 0
273
-
274
- #{!g_33_33_33}
275
- #{!g_33_33_33},
276
- #{!g_67_33}
277
- #{!unit}
278
- *margin-left: 1.8%
279
- _margin-left: 4%
280
-
281
- #{nest(!g_50_50, !g_33_33_33, !unit)}
282
- _margin-left: 1.0%
283
-
284
- #{nest(!g_33_33_33, !g_33_67, !unit)}
285
- *width: 66%
286
- _width: 61.2%
287
-
288
- #{nest(!g_33_33_33, !g_33_67, "div.first")}
289
- *width: 31%
290
- _width: 29.5%
291
-
292
- #{!g_50_50},
293
- #{!g_33_33_33}
294
- #{!g_67_33}
295
- #{!unit}
296
- width: 32%
297
- _float: right
298
- margin-right: 0
299
- _margin-left: 0
300
-
301
- #{nest(!g_33_33_33, !g_67_33, "div.first")}
302
- width: 66%
303
- *float: left
304
- *margin-left: 0
305
-
306
- #{!g_33_33_33}
307
- #{!g_75_25},
308
- #{!g_25_75}
309
- #{!unit}
310
- margin: 0
311
-
312
- #{nest(!g_33_33_33, !g_33_33_33, !unit)}
313
- _margin-left: .7%
314
-
315
- #{nest(!g_33_33_33, !g_50_50)},
316
- #{nest(!g_33_33_33, !g_33_33_33)}
317
- div.first
318
- *margin-left: 0
319
-
320
- #{!g_67_33},
321
- #{!g_33_67}
322
- #{!g_50_50}
323
- #{!unit}
324
- *width: 48.1%
325
- *margin-left: 0
326
-
327
- #{!g_33_67},
328
- #{nest(!g_33_33_33, !g_33_67)}
329
- div.first
330
- width: 32%
331
-
332
- #{nest(!g_50_50, !g_33_67, "div.first")}
333
- _width: 29.9%
334
-
335
- #{nest(!g_75_25, !unit)},
336
- #{nest(!g_75_25, !g_50_50)},
337
- #{nest(!g_25_75, "div.first")}
338
- width: 24%
339
-
340
- #{nest(!g_75_25, "div.first")},
341
- #{nest(!g_25_75, !g_50_50)},
342
- #{nest(!g_25_75, !unit)}
343
- width: 74.2%
344
-
345
- #{!g_33_33_33}
346
- #{!g_75_25},
347
- #{!g_25_75}
348
- div#{!unit}
349
- float: right
350
-
351
- #{!g_33_33_33}
352
- #{!g_75_25},
353
- #{!g_25_75}
354
- div.first
355
- float: left
356
-
357
- /* Width Accommodation for Nested Contexts
358
- #{!g_33_33_33}
359
- #{nest(!g_75_25, !unit)},
360
- #{nest(!g_25_75, "div.first")}
361
- *width: 24%
362
- _width: 20%
363
-
364
- /* Width Accommodation for Nested Contexts
365
- #{!g_33_33_33}
366
- #{nest(!g_75_25, "div.first")},
367
- #{nest(!g_25_75, !unit)}
368
- *width: 73.5%
369
- _width: 65.5%
370
-
371
- /* Patch for GD within GE
372
- #{nest(!g_75_25, "div.first", !g_33_67, !unit)}
373
- width: 65%
374
-
375
- #{nest(!g_75_25, "div.first", !g_33_67, "div.first")}
376
- width: 32%
377
-
378
- /* @group Clearing
379
- #{!g_50_50},
380
- #{!g_33_33_33},
381
- #{!g_67_33},
382
- #{!g_33_67},
383
- #{!g_75_25},
384
- #{!g_25_75}
385
- +yui-group-clearing