Add a boolean argument to the pull mixin that indicates wether you are pulling past the last column.
This commit is contained in:
parent
975f06daa1
commit
95579a8e6b
@ -61,10 +61,13 @@
|
||||
: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
|
||||
:margin-left = -!layout_grid_outer_width * !n
|
||||
@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
|
||||
=push(!n)
|
||||
|
Loading…
Reference in New Issue
Block a user