Skip to content

Commit

Permalink
omega now includes IE hacks, requires 'right' as second arg when floa…
Browse files Browse the repository at this point in the history
…ted right
  • Loading branch information
mirisuzanne committed Jul 23, 2009
1 parent 8c6c1dc commit d2682d9
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions sass/susy/_grid.sass
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,22 @@

//**
set on the last element of a row to take side-gutters into account
- must set !n for nested columns
=omega(!n = false)
@if !n
:margin-right= 0
@else
:margin-right= side_gutter() + "%"

//**
use to override +omega in ie.sass for IE6-7 to handle sub-pixel rounding issues
- set !nested for nested columns
- set !right for right-floated omega elements
=ie-omega(!nested = false, !right = false)
=omega(!nested = false, !right = false)
!s = side_gutter()
@if !nested
:margin-right 0
@else
: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
Expand Down

0 comments on commit d2682d9

Please sign in to comment.