Class Blueprint::CustomLayout
In: lib/blueprint/custom_layout.rb
Parent: Object

Generates a custom grid file, using ERB to evaluate custom settings

Methods

Constants

CSS_ERB_FILE = File.join(Blueprint::LIB_PATH, 'grid.css.erb')   path to ERB file used for CSS template

Attributes

column_count  [W] 
column_width  [W] 
gutter_width  [W] 

Public Class methods

Options

  • options
    • :column_count — Sets the column count of generated CSS
    • :column_width — Sets the column width (in pixels) of generated CSS
    • :gutter_width — Sets the gutter width (in pixels) of generated CSS

Public Instance methods

Column count of generated CSS. Returns itself or Blueprint‘s default

Column width (in pixels) of generated CSS. Returns itself or Blueprint‘s default

Boolean value if current settings are Blueprint‘s defaults

Loads grid.css.erb file, binds it to current instance, and returns output

Gutter width (in pixels) of generated CSS. Returns itself or Blueprint‘s default

Returns page width (in pixels)

[Validate]