compass 0.8.17 → 0.10.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +165 -0
- data/README.markdown +15 -3
- data/Rakefile +46 -7
- data/VERSION.yml +3 -2
- data/bin/compass +22 -4
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +2 -0
- 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_scoped/src/ie.sass +2 -1
- data/examples/blueprint_scoped/src/print.sass +2 -1
- data/examples/blueprint_scoped/src/screen.sass +2 -1
- data/examples/blueprint_semantic/parts/fancy_type.html.haml +1 -1
- data/examples/blueprint_semantic/src/liquid.sass +5 -6
- data/examples/blueprint_semantic/src/screen.sass +4 -5
- data/examples/compass/bootstrap.rb +3 -0
- data/{frameworks → examples/compass/extensions}/yui/stylesheets/_yui.sass +0 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_fonts.sass +8 -1
- data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_grids.sass +174 -130
- data/{frameworks → examples/compass/extensions}/yui/stylesheets/yui/modules/_reset.sass +0 -0
- data/{frameworks → examples/compass/extensions}/yui/templates/project/manifest.rb +0 -0
- data/{frameworks → examples/compass/extensions}/yui/templates/project/screen.sass +0 -0
- data/examples/compass/src/utilities.sass +2 -2
- data/examples/css3/config.rb +6 -0
- 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 +7 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +55 -0
- data/examples/css3/src/_base.sass +14 -0
- data/examples/css3/src/fancy-fonts.sass +7 -0
- data/examples/css3/src/gradient.sass +10 -0
- data/examples/css3/src/main.sass +80 -0
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/downloader.rb +57 -0
- data/examples/ninesixty/bootstrap.rb +4 -0
- data/examples/ninesixty/config.rb +9 -0
- data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
- data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
- data/examples/ninesixty/src/grid.sass +16 -0
- data/examples/ninesixty/src/text.sass +10 -0
- data/examples/susy/bootstrap.rb +3 -0
- data/examples/susy/config.rb +9 -0
- data/examples/susy/extensions/susy/LICENSE.txt +28 -0
- data/examples/susy/extensions/susy/README.mkdn +235 -0
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
- 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 +63 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
- 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 +301 -0
- data/examples/susy/extensions/susy/lib/susy.rb +2 -0
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
- data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
- data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
- data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
- data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
- data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
- data/examples/susy/src/_base.sass +62 -0
- data/examples/susy/src/_defaults.sass +148 -0
- data/examples/susy/src/screen.sass +114 -0
- data/examples/yui/bootstrap.rb +3 -0
- data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
- data/features/command_line.feature +226 -0
- data/features/extensions.feature +20 -0
- data/features/step_definitions/command_line_steps.rb +223 -0
- data/features/step_definitions/extension_steps.rb +13 -0
- data/lib/compass.rb +6 -7
- data/lib/compass/actions.rb +7 -1
- data/lib/compass/app_integration.rb +23 -4
- data/lib/compass/app_integration/merb.rb +1 -43
- data/lib/compass/app_integration/merb/runtime.rb +63 -0
- data/lib/compass/app_integration/rails.rb +24 -10
- data/lib/compass/app_integration/rails/configuration_defaults.rb +45 -0
- data/lib/compass/app_integration/rails/installer.rb +127 -0
- data/lib/compass/app_integration/rails/runtime.rb +14 -0
- data/lib/compass/app_integration/stand_alone.rb +22 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +28 -0
- data/lib/compass/app_integration/stand_alone/installer.rb +83 -0
- data/lib/compass/commands.rb +11 -0
- data/lib/compass/commands/base.rb +4 -1
- data/lib/compass/commands/create_project.rb +108 -5
- data/lib/compass/commands/generate_grid_background.rb +73 -6
- data/lib/compass/commands/help.rb +89 -0
- data/lib/compass/commands/installer_command.rb +20 -13
- data/lib/compass/commands/interactive.rb +61 -0
- data/lib/compass/commands/list_frameworks.rb +2 -2
- data/lib/compass/commands/print_version.rb +72 -4
- data/lib/compass/commands/project_base.rb +14 -34
- data/lib/compass/commands/project_stats.rb +162 -0
- data/lib/compass/commands/registry.rb +22 -0
- data/lib/compass/commands/stamp_pattern.rb +56 -3
- data/lib/compass/commands/update_project.rb +60 -6
- data/lib/compass/commands/validate_project.rb +62 -6
- data/lib/compass/commands/watch_project.rb +12 -5
- data/lib/compass/commands/write_configuration.rb +89 -4
- data/lib/compass/compiler.rb +13 -4
- data/lib/compass/configuration.rb +29 -310
- data/lib/compass/configuration/adapters.rb +59 -0
- data/lib/compass/configuration/comments.rb +22 -0
- data/lib/compass/configuration/data.rb +106 -0
- data/lib/compass/configuration/defaults.rb +138 -0
- data/lib/compass/configuration/helpers.rb +120 -0
- data/lib/compass/configuration/inheritance.rb +170 -0
- data/lib/compass/configuration/serialization.rb +86 -0
- data/lib/compass/dependencies.rb +4 -8
- data/lib/compass/errors.rb +4 -1
- data/lib/compass/exec.rb +11 -246
- data/lib/compass/exec/command_option_parser.rb +23 -0
- data/lib/compass/exec/global_options_parser.rb +37 -0
- data/lib/compass/exec/helpers.rb +28 -0
- data/lib/compass/exec/project_options_parser.rb +46 -0
- data/lib/compass/exec/sub_command_ui.rb +45 -0
- data/lib/compass/exec/switch_ui.rb +166 -0
- data/lib/compass/frameworks.rb +70 -7
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +31 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_buttons.sass +27 -27
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_colors.sass +0 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_debug.sass +2 -2
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_fancy_type.sass +19 -19
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_grid.sass +34 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +99 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_link_icons.sass +9 -9
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_liquid.sass +29 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +87 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_reset.sass +20 -18
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_scaffolding.sass +6 -4
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
- data/{frameworks/blueprint/stylesheets/blueprint/modules → lib/compass/frameworks/blueprint/stylesheets/blueprint}/_utilities.sass +15 -15
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +3 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons.sass +4 -4
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/key.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +17 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +23 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/grid.png +0 -0
- data/lib/compass/frameworks/blueprint/templates/project/ie.sass +16 -0
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +32 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/partials/_base.sass +0 -0
- data/lib/compass/frameworks/blueprint/templates/project/print.sass +8 -0
- data/{frameworks → lib/compass/frameworks}/blueprint/templates/project/screen.sass +3 -2
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +21 -0
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +2 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +14 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_layout.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_misc.sass +12 -12
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_reset.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/_utilities.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_border_radius.sass +47 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +20 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_sizing.sass +13 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_columns.sass +37 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_inline_block.sass +7 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_opacity.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +62 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/layout/_sticky_footer.sass +9 -7
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_general.sass +0 -1
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_links.sass +1 -1
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_lists.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_print.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_tables.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/_text.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_clearfix.sass +7 -7
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_float.sass +2 -2
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_hacks.sass +2 -2
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_reset.sass +28 -28
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/links/_hover_link.sass +2 -2
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/links/_link_colors.sass +6 -6
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +7 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_bullets.sass +6 -6
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +6 -6
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_inline_list.sass +9 -9
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +52 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_ellipsis.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_nowrap.sass +1 -1
- data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_replacement.sass +6 -6
- data/{frameworks → lib/compass/frameworks}/compass/templates/ellipsis/ellipsis.sass +0 -0
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +27 -0
- data/{frameworks → lib/compass/frameworks}/compass/templates/ellipsis/xml/ellipsis.xml +0 -0
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +20 -0
- data/lib/compass/frameworks/compass/templates/extension/stylesheets/main.sass +1 -0
- data/lib/compass/frameworks/compass/templates/extension/templates/project/manifest.rb +2 -0
- data/lib/compass/frameworks/compass/templates/extension/templates/project/screen.sass +2 -0
- data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
- data/{frameworks → lib/compass/frameworks}/compass/templates/project/ie.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/templates/project/manifest.rb +1 -0
- data/{frameworks → lib/compass/frameworks}/compass/templates/project/print.sass +0 -0
- data/{frameworks → lib/compass/frameworks}/compass/templates/project/screen.sass +0 -0
- data/lib/compass/grid_builder.rb +15 -11
- data/lib/compass/installers.rb +3 -5
- data/lib/compass/installers/bare_installer.rb +58 -0
- data/lib/compass/installers/base.rb +40 -51
- data/lib/compass/installers/manifest.rb +55 -2
- data/lib/compass/installers/manifest_installer.rb +59 -0
- data/lib/compass/installers/template_context.rb +44 -0
- data/lib/compass/logger.rb +28 -2
- data/lib/compass/sass_extensions.rb +2 -2
- data/lib/compass/sass_extensions/functions.rb +4 -2
- data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
- data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
- data/lib/compass/sass_extensions/functions/selectors.rb +4 -1
- data/lib/compass/sass_extensions/functions/urls.rb +22 -2
- data/lib/compass/sass_extensions/monkey_patches.rb +3 -3
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +23 -0
- data/lib/compass/stats.rb +92 -0
- data/lib/compass/validator.rb +2 -3
- data/lib/vendor/fssm/state.rb +1 -1
- data/test/command_line_helper.rb +19 -16
- data/test/command_line_test.rb +5 -4
- data/test/compass_test.rb +16 -15
- data/test/configuration_test.rb +24 -19
- data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
- 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/layout.css +2 -0
- data/test/fixtures/stylesheets/compass/css/print.css +2 -8
- data/test/fixtures/stylesheets/compass/css/reset.css +3 -3
- data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +9 -0
- data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
- data/test/fixtures/stylesheets/relative/css/print.css +1 -0
- data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
- data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
- data/test/io_helper.rb +36 -0
- data/test/rails_helper.rb +40 -0
- data/test/rails_integration_test.rb +7 -44
- data/test/sass_extensions_test.rb +2 -2
- data/test/test_helper.rb +9 -2
- metadata +257 -110
- data/frameworks/blueprint.rb +0 -2
- data/frameworks/blueprint/stylesheets/_blueprint.sass +0 -3
- data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +0 -93
- data/frameworks/blueprint/stylesheets/blueprint/_print.sass +0 -83
- data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +0 -3
- data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +0 -15
- data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +0 -55
- data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +0 -58
- data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +0 -104
- data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +0 -155
- data/frameworks/blueprint/templates/buttons/manifest.rb +0 -5
- data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -10
- data/frameworks/blueprint/templates/project/ie.sass +0 -15
- data/frameworks/blueprint/templates/project/manifest.rb +0 -6
- data/frameworks/blueprint/templates/project/print.sass +0 -3
- data/frameworks/compass.rb +0 -2
- data/frameworks/compass/stylesheets/_compass.sass +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/_print.sass +0 -24
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +0 -6
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -19
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -5
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -12
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -20
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +0 -27
- data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -9
- data/frameworks/compass/templates/ellipsis/manifest.rb +0 -2
- data/frameworks/yui.rb +0 -2
- data/frameworks/yui/stylesheets/yui/modules/_base.sass +0 -60
- data/lib/compass/installers/rails.rb +0 -135
- data/lib/compass/installers/stand_alone.rb +0 -60
- data/test/fixtures/stylesheets/yui/config.rb +0 -9
- data/test/fixtures/stylesheets/yui/css/mixins.css +0 -13
- data/test/fixtures/stylesheets/yui/sass/base.sass +0 -3
- data/test/fixtures/stylesheets/yui/sass/fonts.sass +0 -3
- data/test/fixtures/stylesheets/yui/sass/grids.sass +0 -3
- data/test/fixtures/stylesheets/yui/sass/mixins.sass +0 -16
data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/general/_tabs.sass
RENAMED
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// Emits styles for a tag cloud
|
2
|
+
=tag-cloud(!base_size = 1em)
|
3
|
+
font-size= !base_size
|
4
|
+
line-height= 1.2 * !base_size
|
5
|
+
.xxs, .xs, .s, .l, .xl, .xxl
|
6
|
+
line-height= 1.2 * !base_size
|
7
|
+
.xxs
|
8
|
+
font-size= !base_size / 2.0
|
9
|
+
.xs
|
10
|
+
font-size= 2.0 * !base_size / 3.0
|
11
|
+
.s
|
12
|
+
font-size= 3.0 * !base_size / 4.0
|
13
|
+
.l
|
14
|
+
font-size= 4.0 * !base_size / 3.0
|
15
|
+
.xl
|
16
|
+
font-size= 3.0 * !base_size / 2.0
|
17
|
+
.xxl
|
18
|
+
font-size= 2.0 * !base_size
|
19
|
+
|
@@ -7,18 +7,18 @@
|
|
7
7
|
// +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
|
8
8
|
|
9
9
|
=link-colors(!normal, !hover = false, !active = false, !visited = false, !focus = false)
|
10
|
-
|
10
|
+
color= !normal
|
11
11
|
@if !visited
|
12
12
|
&:visited
|
13
|
-
|
13
|
+
color= !visited
|
14
14
|
@if !focus
|
15
15
|
&:focus
|
16
|
-
|
16
|
+
color= !focus
|
17
17
|
@if !hover
|
18
18
|
&:hover
|
19
|
-
|
19
|
+
color= !hover
|
20
20
|
@if !active
|
21
21
|
&:active
|
22
|
-
|
22
|
+
color= !active
|
23
23
|
|
24
|
-
|
24
|
+
|
data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/lists/_bullets.sass
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
// Turn off the bullet for an element of a list
|
2
2
|
=no-bullet
|
3
|
-
|
4
|
-
|
3
|
+
list-style-type: none
|
4
|
+
margin-left: 0px
|
5
5
|
|
6
6
|
// turns off the bullets for an entire list
|
7
7
|
=no-bullets
|
@@ -13,9 +13,9 @@
|
|
13
13
|
// ul.pretty
|
14
14
|
// +pretty-bullets("my-icon.png", 5px, 7px)
|
15
15
|
=pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
|
16
|
-
|
16
|
+
margin-left: 0
|
17
17
|
li
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
padding-left= !padding
|
19
|
+
background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
20
|
+
list-style-type: none
|
21
21
|
|
@@ -32,15 +32,15 @@
|
|
32
32
|
Used to implement +horizontal-list.
|
33
33
|
=horizontal-list-item(!padding = 4px)
|
34
34
|
+no-bullet
|
35
|
-
|
35
|
+
white-space: nowrap
|
36
36
|
+float-left
|
37
|
-
:
|
38
|
-
|
39
|
-
|
37
|
+
padding:
|
38
|
+
left= !padding
|
39
|
+
right= !padding
|
40
40
|
&.first
|
41
|
-
|
41
|
+
padding-left: 0px
|
42
42
|
&.last
|
43
|
-
|
43
|
+
padding-right: 0px
|
44
44
|
|
45
45
|
//**
|
46
46
|
A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
// makes a list inline.
|
2
2
|
|
3
3
|
=inline-list
|
4
|
-
|
5
|
-
:
|
6
|
-
:
|
7
|
-
:
|
4
|
+
list-style-type: none
|
5
|
+
margin: 0px
|
6
|
+
padding: 0px
|
7
|
+
display: inline
|
8
8
|
li
|
9
|
-
:
|
10
|
-
:
|
11
|
-
:
|
9
|
+
margin: 0px
|
10
|
+
padding: 0px
|
11
|
+
display: inline
|
12
12
|
|
13
13
|
// makes an inlin list that is comma delimited.
|
14
14
|
// use of this recipe is not recommended at this time due to browser support issues.
|
@@ -23,7 +23,7 @@
|
|
23
23
|
+inline-list
|
24
24
|
li
|
25
25
|
&:after
|
26
|
-
:
|
26
|
+
content: ", "
|
27
27
|
&:last-child, &.last
|
28
28
|
&:after
|
29
|
-
:
|
29
|
+
content: ""
|
@@ -0,0 +1,52 @@
|
|
1
|
+
//**
|
2
|
+
Example 1:
|
3
|
+
a.twitter
|
4
|
+
+sprite-img("icons-32.png", 1)
|
5
|
+
a.facebook
|
6
|
+
+sprite-img("icons-32png", 2)
|
7
|
+
...
|
8
|
+
Example 2:
|
9
|
+
a
|
10
|
+
+sprite-background("icons-32.png")
|
11
|
+
a.twitter
|
12
|
+
+sprite-column(1)
|
13
|
+
a.facebook
|
14
|
+
+sprite-row(2)
|
15
|
+
...
|
16
|
+
|
17
|
+
!sprite_default_size ||= 32px
|
18
|
+
!sprite_default_margin ||= 0px
|
19
|
+
!sprite_image_default_width ||= !sprite_default_size
|
20
|
+
!sprite_image_default_height ||= !sprite_default_size
|
21
|
+
|
22
|
+
|
23
|
+
// Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
|
24
|
+
// To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
|
25
|
+
=sprite-img(!img, !col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
|
26
|
+
+sprite-background(!img, !width, !height)
|
27
|
+
+sprite-position(!col, !row, !width, !height, !margin)
|
28
|
+
|
29
|
+
// Sets rules common for all sprites, assumes you want a square, but allows a rectangular region.
|
30
|
+
=sprite-background(!img, !width = !sprite_default_size, !height = !width)
|
31
|
+
+sprite-background-rectangle(!img, !width, !height)
|
32
|
+
|
33
|
+
// Sets rules common for all sprites, assumes a rectangular region.
|
34
|
+
=sprite-background-rectangle(!img, !width = !sprite_image_default_width, !height = !sprite_image_default_height)
|
35
|
+
background= image_url(!img) "no-repeat"
|
36
|
+
width= !width
|
37
|
+
height= !height
|
38
|
+
overflow: hidden
|
39
|
+
|
40
|
+
// Allows horizontal sprite positioning optimized for a single row of sprites.
|
41
|
+
=sprite-column(!col, !width = !sprite_image_default_width, !margin = !sprite_default_margin)
|
42
|
+
+sprite-position(!col, 1, !width, 0px, !margin)
|
43
|
+
|
44
|
+
// Allows vertical sprite positioning optimized for a single column of sprites.
|
45
|
+
=sprite-row(!row, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
|
46
|
+
+sprite-position(1, !row, 0px, !height, !margin)
|
47
|
+
|
48
|
+
// Allows vertical and horizontal sprite positioning from a grid of equal dimensioned sprites.
|
49
|
+
=sprite-position(!col, !row = 1, !width = !sprite_image_default_width, !height = !sprite_image_default_height, !margin = !sprite_default_margin)
|
50
|
+
!x = ((!col - 1) * -!width) - ((!col - 1) * !margin)
|
51
|
+
!y = ((!row - 1) * -!height) - ((!row - 1) * !margin)
|
52
|
+
background-position= !x !y
|
@@ -0,0 +1,20 @@
|
|
1
|
+
=alternating-rows-and-columns(!even_row_color, !odd_row_color, !dark_intersection, !header_color = #FFF, !footer_color = #FFF)
|
2
|
+
th
|
3
|
+
background-color= !header_color
|
4
|
+
&.even
|
5
|
+
background-color= !header_color - !dark_intersection
|
6
|
+
tr.odd
|
7
|
+
td
|
8
|
+
background-color= !odd_row_color
|
9
|
+
&.even
|
10
|
+
background-color= !odd_row_color - !dark_intersection
|
11
|
+
tr.even
|
12
|
+
td
|
13
|
+
background-color= !even_row_color
|
14
|
+
&.even
|
15
|
+
background-color= !even_row_color - !dark_intersection
|
16
|
+
tfoot
|
17
|
+
th, td
|
18
|
+
background-color= !footer_color
|
19
|
+
&.even
|
20
|
+
background-color= !footer_color - !dark_intersection
|
@@ -0,0 +1,27 @@
|
|
1
|
+
=outer-table-borders(!width = 2px, !color = black)
|
2
|
+
border= !width "solid" !color
|
3
|
+
thead
|
4
|
+
th
|
5
|
+
border-bottom= !width "solid" !color
|
6
|
+
tfoot
|
7
|
+
th, td
|
8
|
+
border-top= !width "solid" !color
|
9
|
+
th
|
10
|
+
&:first-child
|
11
|
+
border-right= !width "solid" !color
|
12
|
+
|
13
|
+
=inner-table-borders(!width = 2px, !color = black)
|
14
|
+
th, td
|
15
|
+
border:
|
16
|
+
right= !width "solid" !color
|
17
|
+
bottom= !width "solid" !color
|
18
|
+
left-width: 0px
|
19
|
+
top-width: 0px
|
20
|
+
&:last-child,
|
21
|
+
&.last
|
22
|
+
border-right-width: 0px
|
23
|
+
tbody, tfoot
|
24
|
+
tr:last-child,
|
25
|
+
tr.last
|
26
|
+
th, td
|
27
|
+
border-bottom-width: 0px
|
data/{frameworks → lib/compass/frameworks}/compass/stylesheets/compass/utilities/text/_ellipsis.sass
RENAMED
File without changes
|
@@ -9,9 +9,9 @@
|
|
9
9
|
@param y
|
10
10
|
the y position of the background image.
|
11
11
|
=replace-text( !img, !x = 50%, !y = 50% )
|
12
|
-
|
13
|
-
:
|
14
|
-
:
|
15
|
-
|
16
|
-
:
|
17
|
-
|
12
|
+
text-indent: -9999em
|
13
|
+
overflow: hidden
|
14
|
+
background:
|
15
|
+
image= image_url(!img)
|
16
|
+
repeat: no-repeat
|
17
|
+
position= !x !y
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
description "Plugin for cross-browser ellipsis truncated text."
|
2
|
+
|
3
|
+
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
|
+
}
|
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
description "Generate a compass extension."
|
2
|
+
|
3
|
+
file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
|
4
|
+
file 'templates/project/manifest.rb'
|
5
|
+
file 'templates/project/screen.sass'
|
6
|
+
|
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
|
+
no_configuration_file!
|
20
|
+
skip_compilation!
|
@@ -0,0 +1 @@
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
When no framework is specified, a new compass project is set up with three stylesheets:
|
2
|
+
|
3
|
+
* screen.sass
|
4
|
+
* print.sass
|
5
|
+
* ie.sass
|
6
|
+
|
7
|
+
It is expected that you will link your html to these like so:
|
8
|
+
|
9
|
+
<head>
|
10
|
+
<link href="/stylesheets/screen.css" media="screen, projection"
|
11
|
+
rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/stylesheets/print.css" media="print"
|
13
|
+
rel="stylesheet" type="text/css" />
|
14
|
+
<!--[if IE]>
|
15
|
+
<link href="/stylesheets/ie.css" media="screen, projection"
|
16
|
+
rel="stylesheet" type="text/css" />
|
17
|
+
<![endif]-->
|
18
|
+
</head>
|
19
|
+
|
20
|
+
You don't have to use these three stylesheets, they are just a recommendation.
|
21
|
+
You can rename them, make new stylesheets, and delete them. Compass will
|
22
|
+
happily compile whatever sass files you place into your project.
|
23
|
+
|
24
|
+
Any folders you create in your source directory with sass files in them will be folders
|
25
|
+
that get created with css files in them when compiled.
|
26
|
+
|
27
|
+
Sass files beginning with an underscore are called partials, they are not directly
|
28
|
+
compiled to their own css file. You can use these partials by importing them
|
29
|
+
into other stylesheets. This is useful for keeping your stylesheets small and manageable
|
30
|
+
and single-focused. It is common to create a file called _base.sass at the top level
|
31
|
+
of your stylesheets and to import this to set up project-wide constants and mixins.
|
32
|
+
|
File without changes
|
File without changes
|
File without changes
|
data/lib/compass/grid_builder.rb
CHANGED
@@ -16,19 +16,21 @@ module Compass
|
|
16
16
|
rescue Exception => e
|
17
17
|
end
|
18
18
|
|
19
|
-
attr_reader :column_width, :gutter_width, :
|
19
|
+
attr_reader :column_width, :gutter_width, :filename, :able_to_generate, :options
|
20
20
|
|
21
21
|
# ==== Options
|
22
22
|
# * <tt>options</tt>
|
23
23
|
# * <tt>:column_width</tt> -- Width (in pixels) of current grid column
|
24
24
|
# * <tt>:gutter_width</tt> -- Width (in pixels) of current grid gutter
|
25
|
-
# * <tt>:
|
25
|
+
# * <tt>:height</tt> -- Height (in pixels) of a row
|
26
|
+
# * <tt>:filename</tt> -- Output path of grid.png file
|
26
27
|
def initialize(options={})
|
27
28
|
@able_to_generate = Magick::Long_version rescue false
|
28
29
|
return unless @able_to_generate
|
29
30
|
@column_width = options[:column_width]
|
30
31
|
@gutter_width = options[:gutter_width]
|
31
|
-
@
|
32
|
+
@height = options[:height] || 20
|
33
|
+
@filename = options[:filename]
|
32
34
|
@options = options
|
33
35
|
end
|
34
36
|
|
@@ -40,22 +42,20 @@ module Compass
|
|
40
42
|
def generate!
|
41
43
|
return false unless self.able_to_generate
|
42
44
|
total_width = self.column_width + self.gutter_width
|
43
|
-
height = 20
|
44
45
|
RVG::dpi = 100
|
45
46
|
|
46
|
-
rvg = RVG.new((total_width.to_f/RVG::dpi).in, (height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, height) do |canvas|
|
47
|
+
rvg = RVG.new((total_width.to_f/RVG::dpi).in, (@height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, @height) do |canvas|
|
47
48
|
canvas.background_fill = 'white'
|
48
49
|
|
49
50
|
canvas.g do |column|
|
50
|
-
column.rect(self.column_width, height).styles(:fill => "#e8effb")
|
51
|
+
column.rect(self.column_width - 1, @height).styles(:fill => "#e8effb")
|
51
52
|
end
|
52
53
|
|
53
54
|
canvas.g do |baseline|
|
54
|
-
baseline.line(0, (height - 1), total_width, (height- 1)).styles(:fill => "#e9e9e9")
|
55
|
+
baseline.line(0, (@height - 1), total_width, (@height- 1)).styles(:fill => "#e9e9e9")
|
55
56
|
end
|
56
57
|
end
|
57
58
|
|
58
|
-
filename = File.join(self.output_path, "grid.png")
|
59
59
|
if File.exists?(filename)
|
60
60
|
if options[:force]
|
61
61
|
overwrite = true
|
@@ -64,9 +64,13 @@ module Compass
|
|
64
64
|
raise Compass::FilesystemConflict.new(msg)
|
65
65
|
end
|
66
66
|
end
|
67
|
-
directory
|
67
|
+
directory File.dirname(filename)
|
68
68
|
logger.record((overwrite ? :overwrite : :create), basename(filename))
|
69
|
-
|
69
|
+
unless options[:dry_run]
|
70
|
+
rvg.draw.write(filename)
|
71
|
+
else
|
72
|
+
true
|
73
|
+
end
|
70
74
|
end
|
71
75
|
end
|
72
|
-
end
|
76
|
+
end
|