Skip to content

Commit

Permalink
!omega_float defaults +omega elements to float right
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne committed Oct 7, 2009
1 parent 19053aa commit 6609a95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sass/susy/_grid.sass
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,12 @@
//**
set on the last element of a row to take side-gutters into account
- set !nested for nested columns
- set !float for right-floated omega elements
- over-ride !omega_float globally or set +float locally for left-floated omega elements
!omega_float ||= "right"

=omega(!nested = false, !right = false)
!s = side_gutter()
+float(!omega_float)
@if !nested
:margin-right 0
@else
Expand Down
8 changes: 8 additions & 0 deletions templates/project/_base.sass
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
// !gutter_width = 1
// !side_gutter_width = !gutter_width
//**
OMEGA_FLOAT
By default, +omega elements are floated right.
You can override that globally here:
// !omega_float = "right"
//**
HACKS
Are you using hacks or conditional comments? Susy makes both possible.
Expand Down

0 comments on commit 6609a95

Please sign in to comment.