Created
December 7, 2009 02:00
-
-
Save kirkegaard/250541 to your computer and use it in GitHub Desktop.
push and pull for 960 plugin for Compass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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