Add a boolean argument to the pull mixin that indicates wether you are pulling past the last column.

This commit is contained in:
Chris Eppstein 2008-09-13 23:52:04 -07:00
parent 975f06daa1
commit 95579a8e6b

View File

@ -61,9 +61,12 @@
:padding-left = (!layout_grid_outer_width) * !n
// mixin to a column to move it n columns to the left
=pull(!n)
=pull(!n, !last = false)
:float left
:position relative
@if !last
:margin-left = (-!layout_grid_outer_width * !n) + !layout_grid_margin
@if !!last
:margin-left = -!layout_grid_outer_width * !n
// mixin to a column to push it n columns to the right