Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

added push and pull methods present in less/scss grids, with backwards c... #50

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2012
  1. @davidmarkclements

    added push and pull methods present in less/scss grids, with backward…

    davidmarkclements authored
    …s compat for offset (if desired)
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 stylesheets/styl/grid.styl
View
8 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)
Something went wrong with that request. Please try again.