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.
- data/CHANGELOG.markdown +0 -153
- data/README.markdown +2 -12
- data/REVISION +1 -1
- data/Rakefile +2 -37
- data/VERSION.yml +1 -1
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +0 -2
- data/examples/blueprint_default/src/screen.sass +1 -1
- data/examples/blueprint_plugins/index.html.haml +6 -6
- data/examples/blueprint_plugins/src/buttons.sass +2 -2
- data/examples/blueprint_plugins/src/link_icons.sass +1 -1
- data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
- data/examples/blueprint_plugins/src/screen.sass +2 -2
- data/examples/blueprint_semantic/src/liquid.sass +4 -4
- data/examples/blueprint_semantic/src/screen.sass +3 -3
- data/examples/compass/src/utilities.sass +2 -2
- data/examples/downloader.rb +2 -2
- data/lib/compass/app_integration.rb +0 -21
- data/lib/compass/app_integration/rails.rb +0 -18
- data/lib/compass/app_integration/rails/configuration_defaults.rb +0 -16
- data/lib/compass/app_integration/rails/installer.rb +6 -6
- data/lib/compass/app_integration/stand_alone.rb +1 -20
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -5
- data/lib/compass/app_integration/stand_alone/installer.rb +17 -29
- data/lib/compass/commands.rb +2 -2
- data/lib/compass/commands/create_project.rb +1 -10
- data/lib/compass/commands/generate_grid_background.rb +1 -1
- data/lib/compass/commands/help.rb +7 -34
- data/lib/compass/commands/installer_command.rb +11 -15
- data/lib/compass/commands/project_base.rb +2 -2
- data/lib/compass/commands/update_project.rb +1 -51
- data/lib/compass/commands/validate_project.rb +3 -59
- data/lib/compass/commands/watch_project.rb +2 -4
- data/lib/compass/commands/write_configuration.rb +3 -84
- data/lib/compass/compiler.rb +4 -13
- data/lib/compass/configuration.rb +18 -23
- data/lib/compass/configuration/adapters.rb +1 -1
- data/lib/compass/configuration/data.rb +2 -5
- data/lib/compass/configuration/defaults.rb +1 -32
- data/lib/compass/configuration/helpers.rb +10 -47
- data/lib/compass/configuration/inheritance.rb +1 -1
- data/lib/compass/configuration/serialization.rb +2 -2
- data/lib/compass/errors.rb +1 -4
- data/lib/compass/exec.rb +0 -1
- data/lib/compass/exec/project_options_parser.rb +0 -4
- data/lib/compass/frameworks.rb +1 -40
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +1 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +4 -1
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +2 -57
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +0 -12
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +0 -13
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +0 -24
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +7 -1
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +1 -9
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -2
- data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +2 -2
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +1 -26
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +2 -16
- data/lib/compass/frameworks/compass/templates/project/manifest.rb +0 -1
- data/lib/compass/grid_builder.rb +1 -1
- data/lib/compass/installers.rb +1 -1
- data/lib/compass/installers/base.rb +52 -13
- data/lib/compass/installers/manifest.rb +1 -33
- data/lib/compass/logger.rb +2 -28
- data/lib/compass/sass_extensions/functions.rb +1 -3
- data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
- data/lib/compass/sass_extensions/functions/inline_image.rb +1 -22
- data/lib/compass/sass_extensions/functions/urls.rb +0 -20
- data/lib/compass/sass_extensions/monkey_patches.rb +2 -2
- data/lib/compass/validator.rb +3 -2
- data/lib/vendor/fssm.rb +6 -19
- data/lib/vendor/fssm/backends/fsevents.rb +60 -19
- data/lib/vendor/fssm/backends/polling.rb +18 -20
- data/lib/vendor/fssm/ext.rb +0 -30
- data/lib/vendor/fssm/monitor.rb +6 -10
- data/lib/vendor/fssm/path.rb +21 -24
- data/lib/vendor/fssm/state.rb +29 -37
- data/lib/vendor/fssm/support.rb +7 -3
- data/test/command_line_helper.rb +4 -12
- data/test/command_line_test.rb +2 -2
- data/test/compass_test.rb +4 -14
- data/test/configuration_test.rb +5 -5
- data/test/fixtures/stylesheets/blueprint/css/typography.css +3 -5
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
- data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
- data/test/fixtures/stylesheets/compass/css/print.css +8 -2
- data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
- data/test/fixtures/stylesheets/image_urls/css/screen.css +0 -2
- data/test/io_helper.rb +1 -18
- data/test/rails_integration_test.rb +41 -3
- data/test/sass_extensions_test.rb +2 -2
- data/test/test_helper.rb +0 -1
- metadata +9 -124
- data/examples/compass/bootstrap.rb +0 -3
- data/examples/compass/extensions/yui/stylesheets/_yui.sass +0 -7
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
- data/examples/compass/extensions/yui/templates/project/manifest.rb +0 -1
- data/examples/compass/extensions/yui/templates/project/screen.sass +0 -4
- data/examples/css3/config.rb +0 -6
- data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -7
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -5
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +0 -55
- data/examples/css3/src/_base.sass +0 -14
- data/examples/css3/src/fancy-fonts.sass +0 -7
- data/examples/css3/src/gradient.sass +0 -10
- data/examples/css3/src/main.sass +0 -80
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/susy/bootstrap.rb +0 -3
- data/examples/susy/config.rb +0 -9
- data/examples/susy/extensions/susy/LICENSE.txt +0 -28
- data/examples/susy/extensions/susy/README.mkdn +0 -235
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +0 -35
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +0 -141
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +0 -98
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +0 -19
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +0 -48
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +0 -14
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +0 -63
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +0 -1450
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +0 -91
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +0 -301
- data/examples/susy/extensions/susy/lib/susy.rb +0 -2
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +0 -5
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +0 -79
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +0 -128
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +0 -7
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +0 -23
- data/examples/susy/extensions/susy/sass/susy/_text.sass +0 -15
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +0 -81
- data/examples/susy/extensions/susy/templates/project/_base.sass +0 -62
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/templates/project/ie.sass +0 -9
- data/examples/susy/extensions/susy/templates/project/manifest.rb +0 -5
- data/examples/susy/extensions/susy/templates/project/print.sass +0 -7
- data/examples/susy/extensions/susy/templates/project/screen.sass +0 -44
- data/examples/susy/src/_base.sass +0 -62
- data/examples/susy/src/_defaults.sass +0 -148
- data/examples/susy/src/screen.sass +0 -114
- data/features/command_line.feature +0 -226
- data/features/extensions.feature +0 -20
- data/features/step_definitions/command_line_steps.rb +0 -223
- data/features/step_definitions/extension_steps.rb +0 -13
- data/lib/compass/commands/interactive.rb +0 -61
- data/lib/compass/commands/project_stats.rb +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +0 -84
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +0 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +0 -9
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +0 -82
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +0 -56
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +0 -179
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +0 -58
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +0 -44
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +0 -141
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +0 -123
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +0 -49
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +0 -37
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +0 -16
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +0 -18
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +0 -20
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +0 -31
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +0 -40
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +0 -15
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +0 -60
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +0 -57
- data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +0 -32
- data/lib/compass/installers/bare_installer.rb +0 -58
- data/lib/compass/installers/manifest_installer.rb +0 -59
- data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
- data/lib/compass/sass_extensions/functions/font_files.rb +0 -11
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
- data/lib/compass/stats.rb +0 -92
- data/lib/vendor/fssm/cache.rb +0 -193
- data/lib/vendor/fssm/fsevents.rb +0 -129
- data/lib/vendor/fssm/tree.rb +0 -176
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +0 -9
- data/test/fixtures/stylesheets/relative/css/ie.css +0 -1
- data/test/fixtures/stylesheets/relative/css/print.css +0 -1
- data/test/fixtures/stylesheets/relative/css/screen.css +0 -1
- data/test/fixtures/stylesheets/relative/sass/ie.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/print.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/screen.sass +0 -3
- 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,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
|
data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass
RENAMED
File without changes
|
@@ -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
|
data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass
RENAMED
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass
RENAMED
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass
RENAMED
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass
RENAMED
File without changes
|
@@ -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
|
-
|
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!
|
data/lib/compass/grid_builder.rb
CHANGED
data/lib/compass/installers.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|
data/lib/compass/logger.rb
CHANGED
@@ -1,20 +1,7 @@
|
|
1
1
|
module Compass
|
2
2
|
class Logger
|
3
3
|
|
4
|
-
DEFAULT_ACTIONS = [:directory, :exists, :remove, :create, :overwrite, :compile
|
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
|