Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.