From 26fe7f1074927103e77eadd3819e465b8fa83335 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 16 Apr 2011 00:17:19 -0700 Subject: [PATCH] Tell people who generate a grid background image that there's a better way. --- lib/compass/commands/generate_grid_background.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/compass/commands/generate_grid_background.rb b/lib/compass/commands/generate_grid_background.rb index 426fbc1e..b8a06e35 100644 --- a/lib/compass/commands/generate_grid_background.rb +++ b/lib/compass/commands/generate_grid_background.rb @@ -16,7 +16,10 @@ Description: By default, the image generated will be named "grid.png" and be found in the images directory. - This command requires that you have both ImageMagick and RMagick installed. + Unless you need to check layouts in legacy browsers, it's preferable + to use the pure CSS3-based grid background mixin: + + http://compass-style.org/reference/compass/layout/grid_background/ Examples: @@ -76,6 +79,12 @@ Options: puts "where 30 is the column width, 10 is the gutter width, and 20 is the (optional) height." return end + logger.yellow do + $stderr.puts "Unless you need to check layouts in legacy browsers, it's preferable" + $stderr.puts "to use the pure CSS3-based grid background mixin:" + $stderr.puts + $stderr.puts "http://compass-style.org/reference/compass/layout/grid_background/" + end column_width = $1.to_i gutter_width = $2.to_i height = $3.to_i if $3