sass/susy/_grid.sass in ericam-compass-susy-plugin-0.4.0 vs sass/susy/_grid.sass in ericam-compass-susy-plugin-0.4.1
- old
+ new
@@ -50,42 +50,34 @@
=suffix(!n, !context = false)
:padding-right= columns(!n, !context) + gutter(!context) + "%"
//**
set on the first element of a row to take side-gutters into account
- - must override `!nested` for nested columns
+ - must set !n for nested columns
=alpha(!nested = false)
@if !nested
:margin-left 0
@else
:margin-left= side_gutter() + "%"
//**
set on the last element of a row to take side-gutters into account
- - must override `!nested` for nested columns
-=omega(!n = false)
- @if !n
- :margin-right= 0
+ - set !nested for nested columns
+ - set !right for right-floated omega elements
+=omega(!nested = false, !right = false)
+ !s = side_gutter()
+ @if !nested
+ :margin-right 0
@else
- :margin-right= side_gutter() + "%"
-
-//**
- use to override +omega in ie.sass for IE6-7 to handle sub-pixel rounding issues
- - must override `!nested` for nested columns
- - must override `!right` for right-floated omega elements
-=ie-omega(!nested = false, !right = false)
+ :margin-right= !s + "%"
+ /* ugly hacks for IE6-7 */
@if !right
- @if !nested
- :margin-right 0
- @else
- :margin-right= side_gutter() + "%"
- :margin-left -1%
+ :#margin-left -1%
@else
- @if !nested
- :margin-right= -1%
+ @if !nested
+ :#margin-right -1%
@else
- :margin-right= side_gutter() - 1 + "%"
-
+ :#margin-right= !s - 1 + "%"
//**
set on an element that will span it's entire context
=full(!n = false)
+alpha(!n)
\ No newline at end of file