sass/susy/_grid.sass in ericam-compass-susy-plugin-0.4.1 vs sass/susy/_grid.sass in ericam-compass-susy-plugin-0.5.0

- old
+ new

@@ -48,46 +48,69 @@ :padding-left= columns(!n, !context) + gutter(!context) + "%" =suffix(!n, !context = false) :padding-right= columns(!n, !context) + gutter(!context) + "%" +//** + set as shortcut for prefix and suffix +=pad(!p = 0, !s = 0, !c = false) + @if !p != 0 + +prefix(!p,!c) + @if !s != 0 + +suffix(!s,!c) + //** - set on the first element of a row to take side-gutters into account - - must set !n for nested columns + set on any element spanning the first column in non-nested context + to take side-gutters into account =alpha(!nested = false) - @if !nested - :margin-left 0 - @else + @if !nested == false :margin-left= side_gutter() + "%" +//** + when global constant !hacks == true: + - this will be called automatically with hacks + when global constant !hacks == false: + - you can call it yourself in ie.sass without the hacks +=ie-omega(!nested = false, !right = false, !hack = false) + !s = side_gutter() + @if !right + @if !hack + :#margin-left -1% + @else + :margin-left -1% + @else + @if !nested + @if !hack + :#margin-right -1% + @else + :margin-right -1% + @else + @if !hack + :#margin-right= !s - 1 + "%" + @else + :margin-right= !s - 1 + "%" + //** set on the last element of a row to take side-gutters into account - set !nested for nested columns - - set !right for right-floated omega elements + - set !float for right-floated omega elements =omega(!nested = false, !right = false) !s = side_gutter() @if !nested :margin-right 0 @else :margin-right= !s + "%" - /* ugly hacks for IE6-7 */ - @if !right - :#margin-left -1% - @else - @if !nested - :#margin-right -1% - @else - :#margin-right= !s - 1 + "%" - + @if !hacks + /* ugly hacks for IE6-7 */ + +ie-omega(!nested, !right,"*") + /* end ugly hacks */ + //** set on an element that will span it's entire context -=full(!n = false) - +alpha(!n) - +omega(!n) - -//** - set as shortcut for prefix and suffix -=pad(!p = 0, !s = 0, !c = false) - @if !p != 0 - +prefix(!p,!c) - @if !s != 0 - +suffix(!s,!c) + - no need for +columns, +alpha or +omega on a +full element +=full(!nested = false) + :clear both + +clearfix + @if !nested == false + !s = side_gutter() + "%" + margin-right= !s + margin-left= !s \ No newline at end of file