From a3722687e5438b68b2bc3c5c3fa6034bb5ca1413 Mon Sep 17 00:00:00 2001 From: davidmarkclements Date: Wed, 22 Feb 2012 15:27:58 +0000 Subject: [PATCH] added push and pull methods present in less/scss grids, with backwards compat for offset (if desired) --- stylesheets/styl/grid.styl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stylesheets/styl/grid.styl b/stylesheets/styl/grid.styl index 3af464a..fcc070a 100644 --- a/stylesheets/styl/grid.styl +++ b/stylesheets/styl/grid.styl @@ -56,5 +56,11 @@ column(x, columns = columns) *width total-width * ((((gutter-width + column-width ) * x) - gutter-width) / _gridsystem-width)-correction *margin 0 total-width * ( (gutter-width * 0.5) / _gridsystem-width)-correction -offset(offset = 1) +push(offset = 1) margin-left total-width*(((gutter-width+column-width)*offset + (gutter-width*0.5))/_gridsystem-width) + +offset(offset =1) + push(offset) + +pull(offset = 1) + margin-right total-width*(((gutter-width+column-width)*offset + (gutter-width*0.5))/_gridsystem-width) \ No newline at end of file