Skip to content

Instantly share code, notes, and snippets.

@kirkegaard
Created December 7, 2009 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirkegaard/250541 to your computer and use it in GitHub Desktop.
Save kirkegaard/250541 to your computer and use it in GitHub Desktop.
push and pull for 960 plugin for Compass
// overrides grid-unit-base and add position:relative
=grid-unit-base(!gutter_width = !ninesixty_gutter_width)
:display inline
:position relative
:float left
:margin
:left= !gutter_width / 2
:right= !gutter_width / 2
// added a grid-push and grid-pull
=grid-push(!n, !cols = !ninesixty_columns)
:left = (!ninesixty_grid_width / !cols)*!n
=grid-pull(!n, !cols = !ninesixty_columns)
:left = -(!ninesixty_grid_width / !cols)*!n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment