Generate a baseline grid only by passing 0 for the widths to the grid builder. E.g. compass grid-img 0+0x28
This commit is contained in:
parent
6148abf04a
commit
07f988ebff
@ -64,14 +64,17 @@ module Compass
|
|||||||
# * <tt>:height</tt> -- Height (in pixels) of a row
|
# * <tt>:height</tt> -- Height (in pixels) of a row
|
||||||
# * <tt>:filename</tt> -- Output path of grid.png file
|
# * <tt>:filename</tt> -- Output path of grid.png file
|
||||||
def initialize(options={})
|
def initialize(options={})
|
||||||
@column_width = options[:column_width]
|
@column_width = options[:column_width] || 0
|
||||||
gutter_width = options[:gutter_width]
|
gutter_width = options[:gutter_width] || 0
|
||||||
|
|
||||||
height = options[:height] || 20
|
height = options[:height] || 20
|
||||||
|
width = @column_width + gutter_width
|
||||||
|
width = 10 if width == 0
|
||||||
|
|
||||||
@filename = options[:filename]
|
@filename = options[:filename]
|
||||||
@options = options
|
@options = options
|
||||||
|
|
||||||
super(@column_width + gutter_width, height, [0xe9,0xe9,0xe9])
|
super(width, height, [0xe9,0xe9,0xe9])
|
||||||
end
|
end
|
||||||
|
|
||||||
def working_path
|
def working_path
|
||||||
|
Loading…
Reference in New Issue
Block a user