public
Description: Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
Home | Edit | New

Overriding Constants

Sass provides a way of setting a variable using “conditional assignment”. This is useful for initializing constants with a value unless they are already set. Compass uses conditional assignment for all configurable constants.

To override a compass default value for any constant create a stylesheet named _base.sass and import it before importing any compass libraries into your stylesheet. In your base stylesheet, you can now define values for configurable constants.

Example

_base.sass


!blueprint_grid_columns = 32

screen.sass


@import base.sass, blueprint/modules/grid.sass

#header
  +column(32)
Last edited by chriseppstein, Mon Dec 08 08:43:49 -0800 2008
Home | Edit | New
Versions: